public class WarnerBlock extends Block
blockNo, direction, downLinks, minimumBlockLength, speedRestrictionList, upLinksendMilePost, maximumPossibleSpeed, startMilePostBLOCK_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, whenFreegetDirection, getEndMilePost, getLength, getMaximumPossibleSpeed, getOccupanciesToDisplay, getOccupy, getStartMilePost, getTinyBlockList, isFree, isFree, setDirection, setLength, setMaximumPossibleSpeed, setOccupied, setOccupied, setOccupy, setStartMilePost, setTinyBlockListgetEntityType, isBlock, isLink, setEntityTypepublic double getEarliestArrivalTime(double time,
int dir)
getEarliestArrivalTime in class BlockBlock.getEarliestArrivalTime(double, int)public double getEarliestArrivalTime(double time1,
double time2,
int dir)
getEarliestArrivalTime in class Blockpublic int getSignal(Train currTrain, int noOfColor, double time)
currTrain - noOfColor - time - dir -