Modifier and Type | Field and Description |
---|---|
static Train |
GlobalVar.freightTrain |
Modifier and Type | Method and Description |
---|---|
int |
Station.simulateTrain(Train currTrain,
java.lang.String simulationType,
SimulationInstance simulationInstance)
Station: int simulateTrain(Train currTrain) 1) Consider the starting
loop.
|
Modifier and Type | Field and Description |
---|---|
Train |
SignalDirection.train |
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 | Field and Description |
---|---|
Train |
Route.train |
Modifier and Type | Method and Description |
---|---|
Train |
Loop.getLoopNextTrainToBeScheduled() |
Modifier and Type | Method and Description |
---|---|
double |
Block.addTinyBlocksToEmptyBlock(Link previousLink,
Block iterBlock,
Train train,
Link nextIterLink,
double milepost,
boolean enteredOnYellow) |
boolean |
Block.allowsTrain(Train currTrain,
double arrivalTime,
java.lang.String TRAIN_TYPE_ALLOWED_ON_THIRD_LINE) |
RunTimeReturn |
Block.calculateWarnerVelocityProfile(Train train,
int signal,
double arrivalTime,
Block nextBlock,
RunTimeReturn runtimereturn,
double finalVelocity,
double warnerDistance,
SimulationInstance simulationInstance,
int maxSignalAspectsToBeConsidered) |
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.
|
Interval |
Block.getLastIntervalByTrain(Train train) |
double |
Block.getMilePostsByNextLink(Link nextLink,
Train train,
double profileStartingMilePost) |
double |
Block.getMilePostsByPreviousLink(Link previousLink,
Train train,
double profileStartingMilePost) |
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.
|
Link |
Block.getNextLink(Train train) |
RunTimeReturn |
Block.getNonOverlappingRunTimeReturn(Train train,
VelocityProfileArray velocityProfileArray,
double startMilePost,
double endMilePost,
double linkMilePost,
Link previousLink) |
RunTimeReturn |
Block.getNonOverlappingRunTimeSignal(Train train,
int signal,
double startVelocity,
double endVelocity,
Link previousLink,
Link nextLink,
double profileStartingMilePost,
boolean enteredOnYellow)
1) It does some signal handling.
|
double |
Block.getOccupancyTimeByTrain(Train train) |
RunTimeReturn |
Block.getOverlappingRunTimeReturn(Train train,
VelocityProfileArray velocityprofilearray,
OverlapParameters overlapParameters)
Get the
RunTimeReturn for the block and the overlapping part of
the train after it just exits the block. |
Block |
Block.getPath(Block block,
Train Train,
int numberOfSignalAspects) |
RunTimeReturn |
Block.getRunTimeVelocity(Train Train,
double d,
double d1) |
int |
Block.getSignal(Train train,
double arrivalTime,
boolean consideringHalts,
int maxSignalAspectsToBeConsidered,
SimulationInstance simulationInstance) |
int |
WarnerBlock.getSignal(Train currTrain,
int noOfColor,
double time)
This returns the signal of red or green and more.
|
int |
WarnerLoop.getSignal(Train currTrain,
int noOfColor,
double time)
(non-Javadoc)
|
VelocityProfileArray |
Block.getVelocityProfileArray(Train train,
int signal,
double startVelocity,
double endVelocity,
Link nextLink,
Link previousLink,
double profileStartingMilePost,
boolean enteredOnYellow,
boolean enteringNextBlockOnYellow) |
boolean |
Block.isDirectionOk(Train Train,
double arrivalTime) |
void |
Link.reserve(Train train,
double startTime,
double interBlockTime) |
void |
Block.reserve(Train train,
double arrivalTime,
double departureTime,
boolean actualOccupancy) |
void |
TrackSegment.setOccupied(Train train,
double startTime,
double endTime,
boolean actualOccupancy,
java.lang.String blockName) |
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.
|
StatusTraverseBlock |
Loop.traverseBlock(Train currTrain,
double arrivalTime,
double deptTime,
double startVelocity,
Link previousLink,
Link nextFastestLink,
double profileStartingMilePost,
SimulationInstance simulationInstance,
int nextReferenceLoopNumber)
Loop: StatusTraverseBlock traverseBlock((Train currTrain, double
arrivalTime, double deptTime, double startVelocity) 1) creates an
instance of the blockScheduler for this loop as the currentBlock and the
currTrain 2) goes to blockScheduler.traverseBlock(arrivalTime, deptTime,
startVelocity) (non-Javadoc)
|
StatusTraverseBlock |
Block.traverseBlock(Train train,
double arrivalTime,
double departureTime,
double startVelocity,
Link previousLink,
Link nextFastestLink,
double profileStartingMilePost,
SimulationInstance simulationInstance,
int nextReferenceLoopNumber) |
Constructor and Description |
---|
Route(int previousBlockNo,
int nextBlockNo,
SimulationInstance simulationInstance,
Train train) |
Modifier and Type | Method and Description |
---|---|
Train |
TrainList.getTrain(int trainNo) |
Train |
TrainList.getTrainNew(int trainNo,
double time,
Block block) |
Modifier and Type | Method and Description |
---|---|
LinkList |
LinkList.getSortedLinks(Train train,
int nextStnBlock)
NextBLockArray: ArrayList getSortedLinks(Train train, Block block,
double arrivalTime, double deptTime, double startVelocity) 1) The base
cases as in the nextBlockArray has size 0 or 1 it should return the
linkArray or add the only nextBlock and return.
|
Modifier and Type | Class and Description |
---|---|
class |
PassengerTrain
PassengerTrain
|
class |
ScheduledTrain |
class |
UnscheduledTrain |
Modifier and Type | Field and Description |
---|---|
static java.util.Comparator<Train> |
Train.trainComparator |
Modifier and Type | Method and Description |
---|---|
Train |
Train.getPreviousRakeLinkTrain() |
Train |
Train.getRakeLinkTrain() |
Modifier and Type | Method and Description |
---|---|
void |
Train.copyTimeTablesFromTrain(Train simulatorTrain,
int simulationTimeInstance,
SimulationInstance simulationInstance) |
void |
Train.setPreviousRakeLinkTrain(Train previousRakeLinkTrain) |
void |
Train.setRakeLinkTrain(Train rakeLinkTrain) |
Constructor and Description |
---|
ScheduledTrain(Train simulatorTrain) |
Train(Train simulatorTrain) |
Modifier and Type | Field and Description |
---|---|
Train |
TrainInputDialog.trainToBeEdited |
Modifier and Type | Field and Description |
---|---|
java.util.ArrayList<Train> |
SectionInputDialog.trainList |
Modifier and Type | Method and Description |
---|---|
Train |
SectionInputDialog.getTrainByTrainNumber(int trainNumber) |
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<Train> |
SectionInputDialog.getTrainList(boolean isScheduled) |
Modifier and Type | Method and Description |
---|---|
void |
SectionInputDialog.addTrain(Train train) |
void |
SectionInputDialog.removeTrain(Train train) |
Modifier and Type | Method and Description |
---|---|
void |
TrainInputDialog.readScheduledTrains(java.util.ArrayList<Train> trainList,
int nEntries) |
void |
TrainInputDialog.readUnscheduledTrains(java.util.ArrayList<Train> trainList) |
void |
TrainInputDialog.write(java.util.ArrayList<Train> trainList,
boolean isScheduled) |
Modifier and Type | Field and Description |
---|---|
Train |
SimulationInstance.currentTrain
currentTrain details
|
Modifier and Type | Field and Description |
---|---|
java.util.Stack<Train> |
SimulationInstance.trainStack |
Modifier and Type | Method and Description |
---|---|
Train |
SimulationInstance.getTrainFromTrainNo(int trainNumber) |
Train |
SimulationInstance.getTrainNew(int trainNo,
double time,
Block block) |
Modifier and Type | Method and Description |
---|---|
static void |
ChangeTimeTable.changeRefToMin(Train train) |
static void |
ChangeTimeTable.changeToMin(Train Train) |
int |
SortTrain.compare(Train train1,
Train train2) |
Modifier and Type | Method and Description |
---|---|
static void |
ChangeTimeTable.changeRefToHrs(java.util.ArrayList<Train> trains) |
static void |
ChangeTimeTable.changeRefToMin(java.util.ArrayList<Train> trains) |
static void |
ChangeTimeTable.changeToHrs(java.util.ArrayList<Train> Trains) |
static void |
ChangeTimeTable.changeToMin(java.util.ArrayList<Train> Trains) |
Modifier and Type | Method and Description |
---|---|
void |
GraphPaper.drawBlockReservations(Train train) |
void |
GraphPaper.drawTrain(Train train,
int numberOfSignalAspects) |
void |
GraphPanel.drawTrain(Train Train,
int numberOfSignalAspects) |
Constructor and Description |
---|
TrainData(Train trn) |
Modifier and Type | Field and Description |
---|---|
Train |
StationToStationScheduler.train |
Modifier and Type | Method and Description |
---|---|
Train |
LoopTrainScheduleData.getTrain() |
Modifier and Type | Method and Description |
---|---|
int |
StationToStationScheduler.compare(Train train1,
Train train2) |
boolean |
BlockScheduler.determineEnteredOnYellow(Block block,
Train train,
double arrivalTime) |
BlockScheduler |
SchedulerFactory.getScheduler(Block block,
Train simulatorTrain,
SimulationInstance simulationInstance)
Get the Block scheduler.
|
static void |
StationToStationScheduler.insertionSort(TrainList trainList,
Train train) |
void |
LoopTrainScheduleData.setTrain(Train train) |
Constructor and Description |
---|
BlockScheduler(Block block,
Train Train,
SimulationInstance simulationInstance)
blockSchedulingParameters
|
Condition(Train train,
Loop loop) |
LoopTrainScheduleData(Loop loop,
Train train,
double referenceDepartureTime) |
StationToStationScheduler(Train train,
Loop startLoop,
Loop nextReferenceLoop,
double departureTime) |
Modifier and Type | Method and Description |
---|---|
double |
VelocityProfileArray.getEndVelocity(Train simulatorTrain) |
double |
VelocityProfileArray.getStartVelocity(Train simulatorTrain) |
void |
VelocityProfileArray.sort(Train train) |
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.
|