Modifier and Type | Field and Description |
---|---|
Block |
SignalDirection.block |
Modifier and Type | Method and Description |
---|---|
int |
Signal.getSignal(Block currentBlock,
Train currTrain,
double arrivalTime,
boolean consideringHalts,
int maxSignalAspectsToBeConsidered,
SimulationInstance simulationInstance)
1) It first calls block.isFree(arrivalTime) which in return calls
occupy.inInterval(time) IntervalArray: int inInterval(double time)
returns the interval in the array which contains the given time argument
or returns -1 if no such interval exists.
|
Constructor and Description |
---|
SignalDirection(Train train,
Block block,
Link previousLink,
int signal,
double arrivalTime) |
Modifier and Type | Class and Description |
---|---|
class |
Loop |
class |
WarnerBlock |
class |
WarnerLoop |
Modifier and Type | Field and Description |
---|---|
Block |
Route.nextBlock |
Block |
Route.previousBlock |
Modifier and Type | Method and Description |
---|---|
Block |
Block.getEmptyBlockWithTinyBlocksAdded(Train train,
int signal,
Link previousLink,
Link nextLink,
double profileStartingMilePost,
boolean enteredOnYellow,
boolean enteringNextBlockOnYellow)
Add the tiny blocks of the blocks from the startBlock till the signal
value number of the blocks into the emptyBlock.
|
Block |
Link.getNextBlock() |
Block |
Block.getNextBlock(Train train)
1) It finds a preferred loop or a block as per whether the currentblock
has next block as a loop or block.
|
Block |
Block.getNextBlockByDirection(int direction) |
Block |
Block.getPath(Block block,
Train Train,
int numberOfSignalAspects) |
Block |
Link.getPreviousBlock() |
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<Block> |
Link.getCrossovers() |
java.util.ArrayList<Block> |
Block.splitBlock(double newMilepost) |
Modifier and Type | Method and Description |
---|---|
double |
Block.addTinyBlocksToEmptyBlock(Link previousLink,
Block iterBlock,
Train train,
Link nextIterLink,
double milepost,
boolean enteredOnYellow) |
RunTimeReturn |
Block.calculateWarnerVelocityProfile(Train train,
int signal,
double arrivalTime,
Block nextBlock,
RunTimeReturn runtimereturn,
double finalVelocity,
double warnerDistance,
SimulationInstance simulationInstance,
int maxSignalAspectsToBeConsidered) |
Block |
Block.getPath(Block block,
Train Train,
int numberOfSignalAspects) |
boolean |
Block.hasPathTo(Block nextBlock,
int direction) |
void |
Link.setNextBlock(Block nextBlock) |
void |
Link.setPreviousBlock(Block previousBlock) |
SplitProfileForWarner |
Block.splitProfileForWarnerDistance(Train train,
VelocityProfileArray originalProfile,
Block largeBlock,
double warnerDistance)
Split the profile of the block into two profiles one for the warner
distance and other for the rest of the block.
|
Modifier and Type | Method and Description |
---|---|
void |
Link.setCrossovers(java.util.ArrayList<Block> crossovers) |
Constructor and Description |
---|
Block(Block block) |
Link(Block _previousBlock,
Block _nextBlock) |
Link(Block blk,
double length) |
Link(Block blk,
double length,
int priority) |
Link(int nextBlockNo,
double relativePreviousBlockMilePost,
double relativeNextBlockMilePost,
double length,
int priority,
double maximumSpeed,
Block previousBlock) |
Modifier and Type | Method and Description |
---|---|
static TinyBlockList |
TinyBlockList.createTinyBlockFormats(Block block,
java.util.ArrayList<Gradient> gradientFormatList,
SimulationInstance simulationInstance) |
Constructor and Description |
---|
SpeedRestriction(double speedLimit,
double relativeStartMilePost,
double relativeEndMilePost,
Block block) |
Modifier and Type | Method and Description |
---|---|
Block |
HashBlockTable.getBlockFromBlockNo(int blockNo) |
Block |
LinkList.getNextMainBlock() |
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<Block> |
HashBlockTable.returnBlockArrayNew(double a,
double b) |
Modifier and Type | Method and Description |
---|---|
static void |
GradientList.buildGradientForBlock(java.lang.String gradientValuesString,
java.lang.String gradientDirectionsString,
java.lang.String relativeStartMilePostsString,
java.lang.String relativeEndMilePostsString,
Block block) |
LinkList |
HashBlockTable.getAllLinksForBlock(Block block) |
java.util.TreeSet<java.lang.Double> |
HashBlockTable.getLinkLocationsOnBlock(Block block) |
Train |
TrainList.getTrainNew(int trainNo,
double time,
Block block) |
static void |
GradientList.readGradients(java.io.StreamTokenizer streamtokenizer,
Block block) |
static void |
SpeedRestrictionList.readSpeedRestriction(java.io.StreamTokenizer streamtokenizer,
Block block) |
Gradient |
GradientList.returnGradientFormat(double start,
double end,
Block block) |
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<Block> |
Train.getBlocksByMaxTimeTaken(SimulationInstance simulationInstance) |
Modifier and Type | Method and Description |
---|---|
boolean |
Train.isStartLoop(Block block) |
Modifier and Type | Field and Description |
---|---|
java.util.ArrayList<Block> |
SectionInputDialog.blockList |
Modifier and Type | Method and Description |
---|---|
Block |
SectionInputDialog.getBlockByBlockNo(int blockNo) |
Modifier and Type | Method and Description |
---|---|
void |
SectionInputDialog.addBlock(Block block) |
void |
SectionInputDialog.removeBlock(Block block) |
Modifier and Type | Method and Description |
---|---|
void |
BlockInput.readBlocks(java.util.ArrayList<Block> blockList) |
void |
BlockInput.writeBlocks(java.util.ArrayList<Block> blockList) |
Modifier and Type | Method and Description |
---|---|
Block |
SimulationInstance.getBlockFromBlockNo(int blockNo) |
Modifier and Type | Method and Description |
---|---|
LinkList |
SimulationInstance.getAllLinksForBlock(Block block) |
java.util.TreeSet<java.lang.Double> |
SimulationInstance.getLinkLocationsOnBlock(Block block) |
Train |
SimulationInstance.getTrainNew(int trainNo,
double time,
Block block) |
Constructor and Description |
---|
BlockData(Block blk) |
Modifier and Type | Field and Description |
---|---|
Block |
SplitProfileForWarner.largeBlock
largeBlock
|
Modifier and Type | Method and Description |
---|---|
Block |
HashBlockEntry.getBlock() |
Modifier and Type | Method and Description |
---|---|
double |
BlockScheduler.calculateMaxSpeedOfTrain(Block block)
Get the maximum speed of the train for the block it would overlap into
while just exiting the currentBlock.
|
double |
BlockScheduler.calculateTotalTimeTillEnd(RunTimeReturn runTimeReturn,
Block nextBlock,
double arrivalTime,
Link nextLink,
double profileStartingMilePost,
OverlapParameters overlapParameters,
boolean enteredOnYellow)
Calculate the time since the head of the train leaves the currentBlock
till the tail of the train leaves currentBlock.
|
boolean |
BlockScheduler.determineEnteredOnYellow(Block block,
Train train,
double arrivalTime) |
simulator.scheduler.BlockScheduler.LastOverlapBlock |
BlockScheduler.getLastOverlapBlock(Block blockIter,
OverlapParameters overlapParameters) |
BlockScheduler |
SchedulerFactory.getScheduler(Block block,
Train simulatorTrain,
SimulationInstance simulationInstance)
Get the Block scheduler.
|
boolean |
BlockScheduler.hasReachedOverlapEndDistance(Block block,
OverlapParameters overlapParameters)
Determine if the block depending upon the train's direction covers the
Global.overlapEndDistance
|
void |
HashBlockEntry.setBlock(Block block) |
Constructor and Description |
---|
BlockScheduler(Block block,
Train Train,
SimulationInstance simulationInstance)
blockSchedulingParameters
|
Modifier and Type | Method and Description |
---|---|
TrainKinetics |
VelocityProfileArray.getTrainKineticsByTime(double time,
int trainDirection,
Block block) |
Constructor and Description |
---|
VelocityProfileArray(Train simulatorTrain,
Block currBlock,
double startVelocity,
double finalVelocity)
1) It calculates velocity of the train for every tinyblock in the middle
of the blocks.
|