public class WarnerBlock extends Block
blockNo, defaultOverlapDistance, 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)
(non-Javadoc)
|
double |
getEarliestArrivalTime(double time,
int dir)
(non-Javadoc)
|
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, getDownDirectionOverlapDistance, 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, getUpDirectionOverlapDistance, getVelocityProfileArray, hasError, hasPath, hasPathTo, isDirectionOk, isFree, isFreightLoop, 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
Block.getEarliestArrivalTime(double, double, int)
public int getSignal(Train currTrain, int noOfColor, double time)
currTrain
- noOfColor
- time
- dir
-