com.sun.electric.tool.generator.flag.router
Class LayerChannels

java.lang.Object
  extended by com.sun.electric.tool.generator.flag.router.LayerChannels

public class LayerChannels
extends java.lang.Object

All the channels for one layer


Constructor Summary
LayerChannels()
           
 
Method Summary
 void add(Channel ch)
           
 Channel findChanOverVertInterval(double x, double y1, double y2)
          For a horizontal layer, find a channel that covers a vertical pin at x from y1 to y2.
 Channel findVertBridge(Channel horChan1, Channel horChan2, double x1, double x2)
          For a vertical layer, find a vertical channel between x1 and x2 that can connect the two horizontal channels: horChan1 and horChan2.
 java.util.Collection<Channel> getChannels()
           
 int numChannels()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LayerChannels

public LayerChannels()
Method Detail

add

public void add(Channel ch)

getChannels

public java.util.Collection<Channel> getChannels()

findChanOverVertInterval

public Channel findChanOverVertInterval(double x,
                                        double y1,
                                        double y2)
For a horizontal layer, find a channel that covers a vertical pin at x from y1 to y2.


findVertBridge

public Channel findVertBridge(Channel horChan1,
                              Channel horChan2,
                              double x1,
                              double x2)
For a vertical layer, find a vertical channel between x1 and x2 that can connect the two horizontal channels: horChan1 and horChan2.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

numChannels

public int numChannels()