public class WarnerBlock extends Block
blockNo, direction, downLinks, minimumBlockLength, speedRestrictionList, upLinks
endMilePost, maximumPossibleSpeed, startMilePost
BLOCK_ENTITY, LINK_ENTITY, LOOP_ENTITY
Constructor and Description |
---|
WarnerBlock() |
Modifier and Type | Method and Description |
---|---|
double |
getEarliestArrivalTime(double time1,
double time2,
int dir)
Time details of the earliest arrival
time1 in (unit ?)
time2 in (unit ?)
|
double |
getEarliestArrivalTime(double time,
int dir) |
int |
getSignal(Train currTrain,
int noOfColor,
double time)
This returns the signal of red or green and more.
|
addTinyBlocksToEmptyBlock, allowsTrain, calculateWarnerVelocityProfile, checkLastBlock, getBlockDirectionInInterval, getBlockName, getBlockNo, getBlockSignal, getDepartureTimeFromTrainNo, getEmptyBlockWithTinyBlocksAdded, getEndMilePost, getGradientList, getGradientsString, getHasPathToBlockMap, getLastIntervalByTrain, getLinkCrossoversString, getLinkLengthsString, getLinkListString, getLinkPrioritiesString, getLogger, getMilePostsByNextLink, getMilePostsByPreviousLink, getNextBlock, getNextBlockByDirection, getNextLink, getNextLinks, getNextLinks, getNightsfsr, getNonOverlappingRunTimeReturn, getNonOverlappingRunTimeSignal, getOccupancyTimeByTrain, getOnlyActualOccupancies, getOverlapDistance, getOverlappingRunTimeReturn, getPath, getPreviousLinks, getRunTimeVelocity, getSfsr, getSignal, getSignalFailFlag, getSignalFailure, getSpeedLimitEndMilePostsString, getSpeedLimitsString, getSpeedLimitStartMilePostsString, getSpeedRestrictionList, getSpeedRestrictionsString, getStartMilePost, getTrainNoFromOccupancy, getVelocityProfileArray, hasError, hasPath, hasPathTo, isDirectionOk, isFree, isLoop, isSignalFailed, isSignalRed, isWarner, printOccupancies, readCommonBlockLoopProperties, readSpeedRes, reserve, returnGradientFormat, returnMaxSpeedBetweenMilePosts, setBlockDirectionInInterval, setBlockName, setBlockNo, setBlockSignal, setEndMilePost, setEndMilePost, setEndMilePostDirectly, setGradientList, setLogger, setNextLinks, setNightsfsr, setPreviousLinks, setSfsr, setSignalFailFlag, setSignalFailure, setSpeedRestrictionList, setStartMilePost, setWarner, splitBlock, splitProfileForWarnerDistance, traverseBlock, waitingPermitted, whenFree
getDirection, getEndMilePost, getLength, getMaximumPossibleSpeed, getOccupanciesToDisplay, getOccupy, getStartMilePost, getTinyBlockList, isFree, isFree, setDirection, setLength, setMaximumPossibleSpeed, setOccupied, setOccupied, setOccupy, setStartMilePost, setTinyBlockList
getEntityType, isBlock, isLink, setEntityType
public double getEarliestArrivalTime(double time, int dir)
getEarliestArrivalTime
in class Block
Block.getEarliestArrivalTime(double, int)
public double getEarliestArrivalTime(double time1, double time2, int dir)
getEarliestArrivalTime
in class Block
public int getSignal(Train currTrain, int noOfColor, double time)
currTrain
- noOfColor
- time
- dir
-