Modifier and Type | Field and Description |
---|---|
double |
endMilePost |
double |
maximumPossibleSpeed |
double |
startMilePost |
BLOCK_ENTITY, LINK_ENTITY, LOOP_ENTITY
Constructor and Description |
---|
TrackSegment() |
TrackSegment(double startMilePost,
double endMilePost) |
TrackSegment(double startMilepost,
double endMilepost,
double maximumSpeed) |
Modifier and Type | Method and Description |
---|---|
int |
getDirection() |
double |
getEndMilePost() |
double |
getLength() |
double |
getMaximumPossibleSpeed() |
IntervalArray |
getOccupanciesToDisplay() |
IntervalArray |
getOccupy() |
double |
getStartMilePost() |
TinyBlockList |
getTinyBlockList() |
int |
isFree(double time) |
int |
isFree(double startTime,
double endTime) |
void |
setDirection(int direction) |
void |
setEndMilePost(double endMilepost) |
void |
setLength(double length) |
void |
setMaximumPossibleSpeed(double maximumPossibleSpeed) |
void |
setOccupied(double time1,
double time2) |
void |
setOccupied(Train train,
double startTime,
double endTime,
boolean actualOccupancy,
java.lang.String blockName) |
void |
setOccupy(IntervalArray occupy) |
void |
setStartMilePost(double startMilepost) |
void |
setTinyBlockList(TinyBlockList tinyBlockList) |
getEntityType, hasError, isBlock, isLink, isLoop, setEntityType
public double startMilePost
public double endMilePost
public double maximumPossibleSpeed
public TrackSegment(double startMilepost, double endMilepost, double maximumSpeed)
public TrackSegment(double startMilePost, double endMilePost)
public TrackSegment()
public void setStartMilePost(double startMilepost)
public double getStartMilePost()
public void setEndMilePost(double endMilepost)
public double getEndMilePost()
public void setDirection(int direction)
public int getDirection()
public IntervalArray getOccupy()
public IntervalArray getOccupanciesToDisplay()
public void setOccupy(IntervalArray occupy)
public void setOccupied(Train train, double startTime, double endTime, boolean actualOccupancy, java.lang.String blockName)
trainNo
- : stores the train numberactualOccupancy
- : the actual occupancy of the traintime1
- : time1 in (unit ?)time2
- : time2 in (unit ?)public void setOccupied(double time1, double time2)
time1
- time2
- public int isFree(double startTime, double endTime)
startTime
- : stores the start time (unit ?)endTime
- : stores the end time (unit ?)public int isFree(double time)
time
- : time in (unit ?)public double getLength()
public double getMaximumPossibleSpeed()
public void setMaximumPossibleSpeed(double maximumPossibleSpeed)
public TinyBlockList getTinyBlockList()
public void setTinyBlockList(TinyBlockList tinyBlockList)
public void setLength(double length)