Package jmri.jmrit.operations.trains
Class TrainSwitchLists
- java.lang.Object
-
- jmri.jmrit.operations.trains.TrainCommon
-
- jmri.jmrit.operations.trains.TrainSwitchLists
-
public class TrainSwitchLists extends TrainCommon
Builds a switch list for a location on the railroad
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.String
messageFormatText
(package private) TrainManager
trainManager
-
Fields inherited from class jmri.jmrit.operations.trains.TrainCommon
_dropCars, _pickupCars, _printLocalMoveHeader, _printPickupHeader, _printSetoutHeader, BLANK_LINE, BUILD_REPORT_CHAR, carManager, doneCars, ENGINE, engineManager, HORIZONTAL_LINE_CHAR, HYPHEN, index, IS_MANIFEST, IS_TWO_COLUMN_TRACK, LOCAL, locationManager, NEW_LINE, PAPER_MARGINS, PICKUP, SPACE, TAB, TEXT_COLOR_DONE, TEXT_COLOR_END, TEXT_COLOR_START, utilityCarTypes, VERTICAL_LINE_CHAR
-
-
Constructor Summary
Constructors Constructor Description TrainSwitchLists()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
buildSwitchList(Location location)
Builds a switch list for a location showing the work by train arrival time.protected void
newLine(java.io.PrintWriter file, java.lang.String string)
void
printSwitchList(Location location, boolean isPreview)
-
Methods inherited from class jmri.jmrit.operations.trains.TrainCommon
addCarsLocationUnknown, addLine, addLine, blockCarsByTrack, blockCarsByTrackNameTwoColumn, blockCarsTwoColumn, blockLocosTwoColumn, clearUtilityCarTypes, convertStringToDate, countPickupUtilityCars, countSetoutUtilityCars, countUtilityCars, createTabIfNeeded, dropCar, dropCar, dropEngine, dropEngines, formatColorString, formatStringToCommaSeparated, getDate, getDate, getDropCarHeader, getDropEngineHeader, getISO8601Date, getLineLength, getLocalMoveHeader, getManifestHeaderLineLength, getPageSize, getPickupCarHeader, getPickupEngineHeader, getTextColor, getTextColorName, getTextColorString, isNextCar, isNextCar, isThereWorkAtLocation, isThereWorkAtLocation, localMoveCar, newLine, newLine, padAndTruncate, padAndTruncateIfNeeded, padString, pickupCar, pickUpCar, pickUpCarTruncated, pickupEngine, pickupEngines, pickupUtilityCars, pickupUtilityCars, printCarHeader, printDropCarHeader, printDropEngineHeader, printEngineHeader, printHorizontalLine, printHorizontalLine, printLocalCarMoveHeader, printPickupCarHeader, printPickupEngineHeader, printTrackComments, printTrackNameHeader, setoutUtilityCars, setoutUtilityCars, setoutUtilityCars, splitString, tabString, truncatedDropCar
-
-
-
-
Field Detail
-
trainManager
TrainManager trainManager
-
messageFormatText
java.lang.String messageFormatText
-
-
Constructor Detail
-
TrainSwitchLists
public TrainSwitchLists()
-
-
Method Detail
-
buildSwitchList
public void buildSwitchList(Location location)
Builds a switch list for a location showing the work by train arrival time. If not running in real time, new train work is appended to the end of the file. User has the ability to modify the text of the messages which can cause an IllegalArgumentException. Some messages have more arguments than the default message allowing the user to customize the message to their liking. There also an option to list all of the car work by track name. This option is only available in real time and is shown after the switch list by train.- Parameters:
location
- The Location needing a switch list
-
printSwitchList
public void printSwitchList(Location location, boolean isPreview)
-
newLine
protected void newLine(java.io.PrintWriter file, java.lang.String string)
-
-