public class Track
extends java.lang.Object
Constructor and Description |
---|
Track(double coord,
Channel channel,
int trackNdx) |
Modifier and Type | Method and Description |
---|---|
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() |
public Track(double coord, Channel channel, int trackNdx)
public boolean isAvailable(double min, double max)
public Segment allocate(double min, double max)
public Segment allocateBiggest(double min, double src, double max)
public boolean isHorizontal()
public double getCenter()
public int getIndex()
public void resort(Segment s)
public java.lang.String toString()
toString
in class java.lang.Object