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

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

public class Track
extends java.lang.Object


Constructor Summary
Track(double coord, Channel channel, int trackNdx)
           
 
Method Summary
 Segment allocate(double min, double max)
           
 Segment allocateBiggest(double min, double src, double max)
          Allocate longest segment within the interval [min, max] that covers src.
 double getCenter()
           
 int getIndex()
           
 boolean isAvailable(double min, double max)
           
 boolean isHorizontal()
           
 void resort(Segment s)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Track

public Track(double coord,
             Channel channel,
             int trackNdx)
Method Detail

isAvailable

public boolean isAvailable(double min,
                           double max)

allocate

public Segment allocate(double min,
                        double max)

allocateBiggest

public Segment allocateBiggest(double min,
                               double src,
                               double max)
Allocate longest segment within the interval [min, max] that covers src.


isHorizontal

public boolean isHorizontal()

getCenter

public double getCenter()

getIndex

public int getIndex()

resort

public void resort(Segment s)

toString

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