- getActiveLeaf() - Method in class trackmodel.StaticSwitch
-
Gets the active leaf.
- getActiveSwitches() - Method in class wayside.PlcImporter
-
- getAllTrainData() - Static method in class CTCModel.CTCModel
-
- getAuthority() - Method in class CTCModel.CTCTrainData
-
- getAuthority(int) - Method in class trackmodel.TrackModel
-
Gets the authority of a block.
- getAuthority() - Method in class trainmodel.Train
-
Method for the Train Controller to see the authority
- getAuthority() - Method in interface trainmodel.TrainModelInterface
-
- getAuthority(int) - Static method in class wayside.WaysideController
-
Checks the TrackModel to determine if a block has authority.
- getBeacon() - Method in class trackmodel.StaticBlock
-
Gets the beacon value.
- getBeacon() - Method in class trainmodel.Train
-
Method for the Train Controller to get the beacon information
- getBlockID() - Method in class CTCModel.CTCTrainData
-
- getBlockIds() - Method in class trackmodel.TrackModel
-
Gets the block ids
- getCrossing(int) - Static method in class wayside.WaysideController
-
Checks the TrackModel to determine if a block is occupied.
- getCrossings() - Method in class wayside.PlcImporter
-
- getCrossings() - Method in class wayside.WCStaticTrack
-
- getCrossingState(int) - Method in class trackmodel.TrackModel
-
Gets the crossing state.
- getCrossingState(int) - Method in interface trackmodel.TrackModelInterface
-
- getCurrentTemperature() - Method in class trainmodel.Train
-
- getCurrentVelocity() - Method in class trainmodel.Train
-
- getDefaultLeaf() - Method in class trackmodel.StaticSwitch
-
Gets the default leaf.
- getDefaultSwitches() - Method in class wayside.PlcImporter
-
- getDestination() - Method in class CTCModel.CTCTrainData
-
- getDisplacement() - Method in class trainmodel.Train
-
Calculates the distances traveled from the last time it was called
- getDisplacement() - Method in interface trainmodel.TrainModelInterface
-
- getDoors() - Method in class traincontroller.TrainBeacon
-
- getElevation() - Method in class trackmodel.StaticBlock
-
Gets the elevation.
- getElevation() - Method in interface trackmodel.StaticBlockInterface
-
Gets the elevation in meters.
- getEmergencyBrakeRate() - Method in class trainmodel.Train
-
Method for the Train Controller to get the emergency brake rates of the train
- getEmergencyBrakes() - Method in class trainmodel.Train
-
- getGrade() - Method in class trackmodel.StaticBlock
-
Gets the grade.
- getGrade() - Method in interface trackmodel.StaticBlockInterface
-
Gets the grade in percentage.
- getGrade(int) - Method in class trackmodel.TrackModel
-
Gets the grade of the block a train is on.
- getGrade(int) - Method in interface trackmodel.TrackModelInterface
-
- getGrade() - Method in class trainmodel.Train
-
Helper method to get the grade from the Track Model
- getGraph() - Static method in class CTCModel.CTCGUI
-
- getGUI() - Method in class trainmodel.Train
-
- getHeight() - Method in class org.netbeans.lib.awtextra.AbsoluteConstraints
-
- getId() - Method in class trackmodel.StaticBlock
-
Gets the identifier.
- getId() - Method in class trackmodel.StaticSwitch
-
- getID() - Method in class traincontroller.TrainController
-
- getInfrastructure() - Method in interface trackmodel.StaticBlockInterface
-
Gets the infrastructure (as a raw string).
- getLastVisited() - Method in class CTCModel.CTCTrainData
-
- getLayoutAlignmentX(Container) - Method in class org.netbeans.lib.awtextra.AbsoluteLayout
-
Returns the alignment along the x axis.
- getLayoutAlignmentY(Container) - Method in class org.netbeans.lib.awtextra.AbsoluteLayout
-
Returns the alignment along the y axis.
- getLeftDoor() - Method in class trainmodel.Train
-
- getLeftDoors() - Method in interface trainmodel.TrainModelInterface
-
- getLength() - Method in class trackmodel.StaticBlock
-
Gets the length.
- getLength() - Method in interface trackmodel.StaticBlockInterface
-
Gets the length in meters.
- getLength() - Method in class trainmodel.Train
-
Method for the Track Model to get the length of the train
- getLights() - Method in class trainmodel.Train
-
- getLights() - Method in interface trainmodel.TrainModelInterface
-
- getLine() - Method in class trackmodel.StaticBlock
-
Gets the line.
- getMaxPassengers() - Method in class trainmodel.Train
-
- getMaxPower() - Method in class trainmodel.Train
-
Helper method when setting the power
- getMaxPower() - Method in interface trainmodel.TrainModelInterface
-
- getNextBlock() - Method in class traincontroller.MapTracker
-
- getNextBlocks() - Method in interface trackmodel.StaticBlockInterface
-
Gets the next blocks.
- getNextId() - Method in class trackmodel.StaticBlock
-
Gets the id of the next block.
- getNumTrains() - Method in class traincontroller.TrainController
-
- getOrigin() - Method in class CTCModel.CTCTrainData
-
- getPassengers() - Static method in class CTCModel.CTCModel
-
- getPassengers() - Method in class trainmodel.Train
-
- getPaths() - Method in class wayside.PlcImporter
-
- getPaths() - Method in class wayside.WCStaticTrack
-
- getPower() - Method in class traincontroller.TrainController
-
Computes the necessary power at which to set a train, given an authority.
- getPower() - Method in interface traincontroller.TrainControllerInterface
-
Computes the necessary power at which to set the train, given an authority.
- getPower() - Method in class trainmodel.Train
-
Method for the Train Controller to get the current power
- getPower2() - Method in class traincontroller.TrainController
-
- getPreviousId() - Method in class trackmodel.StaticBlock
-
Gets the id of the previous block.
- getRegion() - Method in class trackmodel.StaticBlock
-
Gets the region.
- getRightDoor() - Method in class trainmodel.Train
-
- getRightDoors() - Method in interface trainmodel.TrainModelInterface
-
- getRoot() - Method in class trackmodel.StaticSwitch
-
Gets the root of the switch.
- getServiceBrakeRate() - Method in class trainmodel.Train
-
Method for the Train Controller to get the service brake rates of the train
- getServiceBrakes() - Method in class trainmodel.Train
-
- getSignal(int) - Method in class trackmodel.TrackModel
-
Gets the signal of a block.
- getSignal(int) - Method in interface trackmodel.TrackModelInterface
-
- getSignal(int) - Static method in class wayside.WaysideController
-
Checks the TrackModel to determine if a switch is active.
- getSize() - Method in class trainmodel.TrainTracker
-
Size of the arrayList of Trains
- getSpeed() - Method in class CTCModel.CTCTrainData
-
- getSpeed(int) - Static method in class wayside.WaysideController
-
- getSpeedLimit() - Method in class trackmodel.StaticBlock
-
Gets the speed limit.
- getSpeedLimit() - Method in interface trackmodel.StaticBlockInterface
-
Gets the speed limit in meters per second.
- getStaticBlock(int) - Method in class trackmodel.StaticTrack
-
Gets the static block with a specified id.
- getStaticBlock(int) - Method in class trackmodel.TrackModel
-
Gets the static block info for a given id.
- getStaticBlock(int, StaticSwitch) - Method in class trackmodel.TrackModel
-
Gets the static block.
- getStaticBlock(int) - Method in interface trackmodel.TrackModelInterface
-
- getStaticSwitch() - Method in class trackmodel.StaticBlock
-
Gets the static switch connected to this block.
- getStaticSwitch(int) - Method in class trackmodel.StaticTrack
-
Gets the static switch with a specified id.
- getStaticSwitch(int) - Method in class trackmodel.TrackModel
-
Gets the static switch.
- getStaticSwitch(int) - Method in interface trackmodel.TrackModelInterface
-
- getStaticTrack() - Method in class trackmodel.TrackModel
-
Generates and returns a static track.
- getStation() - Method in class trackmodel.StaticBlock
-
Gets the station.
- getStation(int) - Method in class traincontroller.MapTracker
-
- getStationID() - Method in class traincontroller.TrainBeacon
-
- getStatus(int) - Method in class trackmodel.TrackModel
-
Gets the status of a block.
- getSuggestedSpeed() - Method in class trainmodel.Train
-
Method for the Train Controller to receive the suggested speed
- getSuggestedSpeed() - Method in interface trainmodel.TrainModelInterface
-
- getSwitch(int) - Method in class trackmodel.TrackModel
-
Gets the switch state.
- getSwitch(int) - Method in interface trackmodel.TrackModelInterface
-
- getSwitch(int) - Static method in class wayside.WaysideController
-
Checks the TrackModel to determine if a switch is active.
- getSwitchBlocks() - Method in class wayside.PlcImporter
-
- getSwitches() - Method in class wayside.PlcImporter
-
- getSwitches() - Method in class wayside.WCStaticTrack
-
- getSwitchID() - Method in class traincontroller.TrainBeacon
-
- getSwitchIds() - Method in class trackmodel.TrackModel
-
Gets the switch ids
- getTime() - Method in class trainmodel.Train
-
Helper method to calculate displacement
- getTrackLen() - Method in class wayside.PlcImporter
-
- getTrackModel() - Static method in class trackmodel.TrackModel
-
Initialize/get the track model.
- getTrain(int) - Method in class trainmodel.TrainTracker
-
Gets the train object specified
- getTrainAuthority(int) - Method in class trackmodel.TrackModel
-
Gets the train's commanded authority.
- getTrainAuthority(int) - Method in interface trackmodel.TrackModelInterface
-
- getTrainBeacon(int) - Method in class trackmodel.TrackModel
-
Returns beacon information if train in within range of a beacon.
- getTrainBeacon(int) - Method in interface trackmodel.TrackModelInterface
-
- getTrainBlock(int) - Method in class trackmodel.TrackModel
-
Gets the train's current block (internal use only)
- getTrainBlockChange(int) - Method in class trackmodel.TrackModel
-
Gets the train block change.
- getTrainControllerByID(int) - Method in class traincontroller.TrainController
-
- getTrainData(int) - Static method in class CTCModel.CTCModel
-
- getTrainDataTrainId(int) - Static method in class CTCModel.CTCModel
-
- getTrainID() - Method in class CTCModel.CTCTrainData
-
- getTrainId() - Method in class trainmodel.Train
-
- getTrainIds() - Method in class trackmodel.TrackModel
-
Gets the train ids
- getTrainLoadedPassenger(int) - Method in class trackmodel.TrackModel
-
Gets the train's loaded passenger flag
- getTrainModelFromTrainTracker(int) - Method in class trackmodel.TrackModel
-
- getTrainPassengers(int) - Method in class trackmodel.TrackModel
-
Gets the number of passengers disembarked on a train.
- getTrainPassengers(int) - Method in interface trackmodel.TrackModelInterface
-
- getTrainPosition(int) - Method in class trackmodel.TrackModel
-
Gets the train's current position (internal use only)
- getTrainReportedBlockChange(int) - Method in class trackmodel.TrackModel
-
Gets the train's reported block change flag
- getTrainReportedPassenger(int) - Method in class trackmodel.TrackModel
-
Gets the train's reported passenger flag
- getTrainSpeed(int) - Method in class trackmodel.TrackModel
-
Gets the train's suggested speed.
- getTrainSpeed(int) - Method in interface trackmodel.TrackModelInterface
-
- getTrainTest(int) - Method in class trainmodel.TrainTracker
-
getTrain test method without GUI
- getTrainTracker() - Static method in class trainmodel.TrainTracker
-
Train Tracker singalton
- getVelocity() - Method in class trainmodel.Train
-
- getVelocity() - Method in interface trainmodel.TrainModelInterface
-
- getWidth() - Method in class org.netbeans.lib.awtextra.AbsoluteConstraints
-
- getX() - Method in class org.netbeans.lib.awtextra.AbsoluteConstraints
-
- getY() - Method in class org.netbeans.lib.awtextra.AbsoluteConstraints
-
- GlobalGUI - Class in shared
-
- GlobalGUI() - Constructor for class shared.GlobalGUI
-
- grade - Static variable in class trackmodel.GUI
-
- grade - Variable in class trainmodel.Train
-
- gravity - Variable in class trainmodel.Train
-
- GREEN_LINE - Static variable in class wayside.WCStaticTrack
-
- GUI - Class in trackmodel
-
- GUI() - Constructor for class trackmodel.GUI
-
- gui - Variable in class trainmodel.Train
-
- sendForService() - Method in class traincontroller.TrainController
-
Does the necessary work to send a train in for maintenance.
- sendSuggestions() - Static method in class CTCModel.CTCModel
-
- serviceBrake - Variable in class trainmodel.Train
-
- serviceBrakeRate - Variable in class trainmodel.Train
-
- setActiveLeaf(StaticBlock) - Method in class trackmodel.StaticSwitch
-
Sets the active leaf.
- setAuthority(String) - Method in class CTCModel.CTCTrainData
-
- setAuthority(int, boolean) - Method in class trackmodel.TrackModel
-
Sets the authority.
- setAuthority(int, boolean) - Method in interface trackmodel.TrackModelInterface
-
- setAuthorityInput - Variable in class trainmodel.TrainModelGUI
-
- setBeacon(int) - Method in class trackmodel.StaticBlock
-
Sets the beacon value.
- setBidirectional(boolean) - Method in class trackmodel.StaticBlock
-
Sets whether the block is bidirectional.
- setBidirectional(int, boolean) - Method in class trackmodel.TrackModel
-
Sets whether the block is bidirectional.
- setBlockID(int) - Method in class CTCModel.CTCTrainData
-
- setCrossing(boolean) - Method in class trackmodel.StaticBlock
-
Sets whether the block is a crossing.
- setCrossing(int, boolean) - Method in class trackmodel.TrackModel
-
Sets whether the block has a rr_crossing.
- setCrossingState(int, boolean) - Method in class trackmodel.TrackModel
-
Sets the crossing state.
- setCrossingState(int, boolean) - Method in interface trackmodel.TrackModelInterface
-
- setCurrentBlock(StaticBlock) - Method in class traincontroller.MapTracker
-
- setDefaultLeaf(StaticBlock) - Method in class trackmodel.StaticSwitch
-
Sets the default leaf.
- setDestination(int) - Method in class CTCModel.CTCTrainData
-
- setDisplay(String) - Method in class trainmodel.Train
-
Method for the Train Controller to set the display when approaching stops.
- setDoors(boolean, boolean) - Method in class traincontroller.TrainController
-
Commands the Train in question to open their right or left doors.
- setDoors(int) - Method in class traincontroller.TrainController
-
- setElevation(double) - Method in class trackmodel.StaticBlock
-
Sets the elevation.
- setElevation(int, double) - Method in class trackmodel.TrackModel
-
Sets the elevation of a block.
- setEmergencyBrakes(boolean) - Method in class trainmodel.Train
-
Turn emergency brakes on or off
- setGrade(double) - Method in class trackmodel.StaticBlock
-
Sets the grade.
- setGrade(int, double) - Method in class trackmodel.TrackModel
-
Sets the grade of a block.
- setHeater(boolean) - Method in class trackmodel.StaticBlock
-
Sets whether the block is heater.
- setHeater(int, boolean) - Method in class trackmodel.TrackModel
-
Sets whether the block has a heater.
- setId(int) - Method in class trackmodel.StaticBlock
-
Sets the identifier.
- setKiKp(double, double) - Method in class traincontroller.TrainController
-
- setKu(double) - Method in class traincontroller.TrainController
-
- setLastVisited(int) - Method in class CTCModel.CTCTrainData
-
- setLeftDoor(int) - Method in class trainmodel.Train
-
Change the status of the left door
- setLeftDoors(boolean) - Method in interface trainmodel.TrainModelInterface
-
- setLength(double) - Method in class trackmodel.StaticBlock
-
Sets the length.
- setLength(int, double) - Method in class trackmodel.TrackModel
-
Sets the length of a block.
- setLights(boolean) - Method in class traincontroller.TrainController
-
Commands the Train in question to turn their lights on or off.
- setLights(boolean) - Method in class trainmodel.Train
-
Change the status of the lights
- setLights(boolean) - Method in interface trainmodel.TrainModelInterface
-
- setLine(String) - Method in class trackmodel.StaticBlock
-
Sets the line.
- setLine(int, String) - Method in class trackmodel.TrackModel
-
Sets the block's line.
- setNeedsUpdate(boolean) - Method in class trackmodel.StaticBlock
-
Sets whether the block is out of date.
- setNextId(int) - Method in class trackmodel.StaticBlock
-
Sets the id of the next block.
- setOccupied(int, boolean) - Method in class trackmodel.TrackModel
-
Sets whether or not a block is occupied.
- setOperational(int) - Method in class trackmodel.TrackModel
-
- setOperational(int) - Method in interface trackmodel.TrackModelInterface
-
- setOrigin(int) - Method in class CTCModel.CTCTrainData
-
- setPassengers(int) - Method in class trainmodel.Train
-
Method for the Track Model to set the number of passengers in the train
- setPower(double, int) - Method in class trainmodel.Train
-
Method for the Train Controller to set the power for the train
- setPowerInput - Variable in class trainmodel.TrainModelGUI
-
- setPreviousId(int) - Method in class trackmodel.StaticBlock
-
Sets the id of the previous block.
- setRandom(Random) - Method in class trackmodel.TrackModel
-
This is useful for forcing random during testing
- setRegion(String) - Method in class trackmodel.StaticBlock
-
Sets the region.
- setRegion(int, String) - Method in class trackmodel.TrackModel
-
Sets the region of a block.
- setRepair(int) - Method in class trackmodel.TrackModel
-
- setRepair(int) - Method in interface trackmodel.TrackModelInterface
-
- setRightDoor(int) - Method in class trainmodel.Train
-
Change the status of the right door
- setRightDoors(boolean) - Method in interface trainmodel.TrainModelInterface
-
- setRoot(StaticBlock) - Method in class trackmodel.StaticSwitch
-
Sets the root of the switch.
- setScheduleText(String) - Static method in class CTCModel.CTCGUI
-
- setServiceBrakes(boolean) - Method in class trainmodel.Train
-
Turn service brakes on or off
- setSignal(int, boolean) - Method in class trackmodel.TrackModel
-
Sets the signal on a block.
- setSignal(int, boolean) - Method in interface trackmodel.TrackModelInterface
-
- setSpeed(double) - Method in class CTCModel.CTCTrainData
-
- setSpeed(int, double) - Method in class trackmodel.TrackModel
-
Sets the suggested speed.
- setSpeed(int, double) - Method in interface trackmodel.TrackModelInterface
-
- setSpeedLimit(double) - Method in class trackmodel.StaticBlock
-
Sets the speet limit.
- setSpeedLimit(int, double) - Method in class trackmodel.TrackModel
-
Sets the speed_limit of a block.
- setStaticBlockUpdate(int) - Method in class trackmodel.TrackModel
-
- setStaticSwitch(StaticSwitch) - Method in class trackmodel.StaticBlock
-
Sets the static switch.
- setStation(String) - Method in class trackmodel.StaticBlock
-
Sets the station.
- setStation(int, String) - Method in class trackmodel.TrackModel
-
Sets the block's station.
- setStatus(int, BlockStatus) - Method in class trackmodel.TrackModel
-
Sets the status of a block.
- setSwitch(int, boolean) - Method in class trackmodel.TrackModel
-
Sets the switch.
- setSwitch(int, boolean) - Method in interface trackmodel.TrackModelInterface
-
- setSwitch(int, boolean) - Static method in class wayside.WaysideController
-
Accepts a switch position suggestion from CTC.
- setT(double) - Method in class traincontroller.TrainController
-
- setTemp(double) - Method in class traincontroller.TrainController
-
- setTemperature(double) - Method in class trainmodel.Train
-
- setTemperatureInput - Variable in class trainmodel.TrainModelGUI
-
- setTrack(StaticTrack) - Method in class traincontroller.MapTracker
-
- setTrack(StaticTrack) - Method in class traincontroller.TrainController
-
- setTrainBlock(int, int) - Method in class trackmodel.TrackModel
-
Sets the train's current block (internal use only)
- setTrainDirection(int, boolean) - Method in class trackmodel.TrackModel
-
Gets the train's current direction (internal use only)
- setTrainID(int) - Method in class CTCModel.CTCTrainData
-
- setTrainLoadedPassenger(int, boolean) - Method in class trackmodel.TrackModel
-
Sets the train's loaded passenger flag (internal use only)
- setTrainReportedBlockChange(int, boolean) - Method in class trackmodel.TrackModel
-
Sets the train's reported block change flag (internal use only)
- setTrainReportedPassenger(int, boolean) - Method in class trackmodel.TrackModel
-
Sets the train's reported passenger flag (internal use only)
- setUnderground(boolean) - Method in class trackmodel.StaticBlock
-
Sets whether the block is underground.
- setUnderground(int, boolean) - Method in class trackmodel.TrackModel
-
Sets whether the block is underground.
- shared - package shared
-
- show() - Static method in class traincontroller.TrainController
-
- signal - Static variable in class trackmodel.GUI
-
- signalFailure(boolean) - Method in class traincontroller.TrainController
-
- signalFailure - Variable in class trainmodel.Train
-
- signalFailure - Variable in class trainmodel.TrainModelGUI
-
- signalFailureMode(boolean) - Method in class trainmodel.Train
-
Turn signal failure on/off
- signalGroup - Variable in class trainmodel.TrainModelGUI
-
- sine(double) - Method in class trainmodel.Train
-
Calculates the sin of an angle
- sleepTime - Static variable in class shared.Environment
-
- speed - Variable in class shared.Suggestion
-
- speed_limit - Static variable in class trackmodel.GUI
-
- startblock - Variable in class traincontroller.MapTracker
-
- StaticBlock - Class in trackmodel
-
Class for static block.
- StaticBlock() - Constructor for class trackmodel.StaticBlock
-
Constructs the object.
- staticBlockCache - Variable in class trackmodel.TrackModel
-
- StaticBlockInterface - Interface in trackmodel
-
- StaticSwitch - Class in trackmodel
-
- StaticSwitch(int) - Constructor for class trackmodel.StaticSwitch
-
Constructs the Static Switch.
- staticSwitchCache - Variable in class trackmodel.TrackModel
-
- StaticTrack - Class in trackmodel
-
Class for static track.
- StaticTrack() - Constructor for class trackmodel.StaticTrack
-
Constructs the object.
- station - Static variable in class trackmodel.GUI
-
- station - Variable in class traincontroller.TrainController
-
- status - Static variable in class trackmodel.GUI
-
- stop - Variable in class traincontroller.TrainController
-
- submitChanges - Static variable in class trackmodel.GUI
-
- suggest(boolean[], int[]) - Method in class wayside.Decider
-
Decides if the suggestion is safe,
and also calulates the necessary state.
- suggest(Suggestion[]) - Static method in class wayside.WaysideController
-
How CTC presents a suggestion of speed and authority for each train.
- suggestedSpeedDisplay - Variable in class trainmodel.TrainModelGUI
-
- suggestedSpeedLabel - Variable in class trainmodel.TrainModelGUI
-
- Suggestion - Class in shared
-
- Suggestion(int, int, int[]) - Constructor for class shared.Suggestion
-
- switchBlocks - Static variable in class trackmodel.GUI
-
- switchDist - Variable in class traincontroller.MapTracker
-
- switchId - Static variable in class trackmodel.GUI
-
- switchState - Static variable in class trackmodel.GUI
-
- switchState - Variable in class trackmodel.TrackModel
-
- switchTrains(TrainController) - Method in class traincontroller.TrainControllerUI
-