Package jmri.jmrit.operations.trains
Class TrainCsvSwitchLists
- java.lang.Object
-
- jmri.jmrit.operations.trains.TrainCommon
-
- jmri.jmrit.operations.trains.TrainCsvCommon
-
- jmri.jmrit.operations.trains.TrainCsvSwitchLists
-
public class TrainCsvSwitchLists extends TrainCsvCommon
Builds a comma separated value (csv) switch list for a location on the railroad.
-
-
Field Summary
-
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 TrainCsvSwitchLists()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.File
buildSwitchList(Location location)
builds a csv file containing the switch list for a locationprotected void
printEnd(CSVPrinter printer)
protected void
printEstimatedTimeEnRoute(CSVPrinter printer, java.lang.String time)
protected void
printExpectedTimeArrival(CSVPrinter printer, java.lang.String time)
protected void
printTrainArrives(CSVPrinter printer, java.lang.String name, java.lang.String direction)
-
Methods inherited from class jmri.jmrit.operations.trains.TrainCsvCommon
checkForEngineOrCabooseChange, engineCsvChange, listCarsLocationUnknown, printCar, printDepartureTime, printEngine, printHeader, printLocationComment, printLocationComment, printLocationName, printLocationSwitchListComment, printLocationSwitchListComment, printLogoURL, printPrinterName, printRailroadName, printRemoveHelpers, printRouteComment, printRouteLocationComment, printRouteLocationComment, printTrackComments, printTrainComment, printTrainDeparts, printTrainDescription, printTrainLength, printTrainName, printTrainTerminates, printTrainWeight, printValidity
-
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
-
-
-
-
Constructor Detail
-
TrainCsvSwitchLists
public TrainCsvSwitchLists()
-
-
Method Detail
-
buildSwitchList
public java.io.File buildSwitchList(Location location)
builds a csv file containing the switch list for a location- Parameters:
location
- The Location requesting a switch list.- Returns:
- File
-
printEnd
protected final void printEnd(CSVPrinter printer) throws java.io.IOException
- Throws:
java.io.IOException
-
printExpectedTimeArrival
protected final void printExpectedTimeArrival(CSVPrinter printer, java.lang.String time) throws java.io.IOException
- Throws:
java.io.IOException
-
printEstimatedTimeEnRoute
protected final void printEstimatedTimeEnRoute(CSVPrinter printer, java.lang.String time) throws java.io.IOException
- Throws:
java.io.IOException
-
printTrainArrives
protected final void printTrainArrives(CSVPrinter printer, java.lang.String name, java.lang.String direction) throws java.io.IOException
- Throws:
java.io.IOException
-
-