Package jmri.jmrit.operations.trains.csv
Class TrainCsvCommon
java.lang.Object
jmri.jmrit.operations.trains.trainbuilder.TrainCommon
jmri.jmrit.operations.trains.csv.TrainCsvCommon
- Direct Known Subclasses:
TrainCsvManifest,TrainCsvSwitchLists
Contains the csv operators for manifests and switch lists
-
Field Summary
Fields inherited from class jmri.jmrit.operations.trains.trainbuilder.TrainCommon
_dropCars, _pickupCars, BLANK_LINE, BUILD_REPORT_CHAR, carManager, ENGINE, engineManager, HORIZONTAL_LINE_CHAR, HYPHEN, IS_MANIFEST, IS_TWO_COLUMN_TRACK, LOCAL, locationManager, NEW_LINE, PAPER_MARGINS, PICKUP, SPACE, TAB, TEXT_COLOR_DONE, TEXT_COLOR_END, TEXT_COLOR_START, VERTICAL_LINE_CHAR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidcheckForEngineOrCabooseChange(CSVPrinter fileOut, Train train, RouteLocation rl) protected voidengineCsvChange(CSVPrinter fileOut, RouteLocation rl, int legOptions) protected voidlistCarsLocationUnknown(CSVPrinter fileOut) protected voidprintCar(CSVPrinter fileOut, Car car, String code, String message, int count) protected final voidprintDepartureTime(CSVPrinter printer, String time) protected voidprintEngine(CSVPrinter fileOut, Engine engine, String code, String message) protected final voidprintHeader(CSVPrinter printer) protected final voidprintLocationComment(CSVPrinter printer, String comment, String textColorName) protected final voidprintLocationComment(CSVPrinter fileOut, Location location) protected final voidprintLocationName(CSVPrinter printer, String name) protected final voidprintLocationSwitchListComment(CSVPrinter printer, String comment, String textColorName) protected final voidprintLocationSwitchListComment(CSVPrinter fileOut, Location location) protected voidprintLogoURL(CSVPrinter fileOut, Train train) protected final voidprintPrinterName(CSVPrinter printer, String name) protected final voidprintRailroadName(CSVPrinter printer, String name) protected final voidprintRemoveHelpers(CSVPrinter printer) protected final voidprintRouteComment(CSVPrinter fileOut, Train train) protected final voidprintRouteLocationComment(CSVPrinter printer, String comment, String textColorName) protected final voidprintRouteLocationComment(CSVPrinter fileOut, RouteLocation rl) protected voidprintTrackComments(CSVPrinter fileOut, RouteLocation rl, List<Car> carList) protected final voidprintTrainComment(CSVPrinter fileOut, Train train) protected final voidprintTrainDeparts(CSVPrinter printer, String name, String direction) protected final voidprintTrainDescription(CSVPrinter printer, String description) protected final voidprintTrainLength(CSVPrinter printer, int length, int empty, int total) protected final voidprintTrainName(CSVPrinter printer, String name) protected final voidprintTrainTerminates(CSVPrinter printer, String name) protected final voidprintTrainWeight(CSVPrinter printer, int weight) protected final voidprintValidity(CSVPrinter printer, String date) Methods inherited from class jmri.jmrit.operations.trains.trainbuilder.TrainCommon
addCarsLocationUnknown, addLine, addLine, blockCarsByTrack, blockCarsByTrackNameTwoColumn, blockCarsTwoColumn, blockLocosTwoColumn, clearUtilityCarTypes, convertStringTime, convertStringToDate, countPickupUtilityCars, countSetoutUtilityCars, countUtilityCars, createTabIfNeeded, dropCar, dropCar, dropEngine, dropEngines, formatColorString, formatStringToCommaSeparated, getDate, getDate, getDropCarHeader, getDropEngineHeader, getISO8601Date, getLineLength, getLocalMoveHeader, getManifestHeaderLineLength, getPageSize, getPickupCarHeader, getPickupEngineHeader, getSwitchListTrainStatus, getTextColor, getTextColorName, getTextColorString, getTrainMessage, isNextCar, isNextCar, isThereWorkAtLocation, isThereWorkAtLocation, localMoveCar, newLine, newLine, padAndTruncate, padAndTruncateIfNeeded, padString, pickupCar, pickUpCar, pickUpCarTruncated, pickupEngine, pickupEngines, pickupUtilityCars, pickupUtilityCars, printCarHeader, printDropCarHeader, printDropEngineHeader, printEngineHeader, printHorizontalLine, printHorizontalLine, printHorizontalLine1, printHorizontalLine2, printHorizontalLine3, printLocalCarMoveHeader, printPickupCarHeader, printPickupEngineHeader, printTrackComments, printTrackNameHeader, setCarPickupAndSetoutTimes, setoutUtilityCars, setoutUtilityCars, setoutUtilityCars, splitString, splitStringLeftParenthesis, tabString, truncatedDropCar
-
Constructor Details
-
TrainCsvCommon
public TrainCsvCommon()
-
-
Method Details
-
printDepartureTime
- Throws:
IOException
-
printHeader
- Throws:
IOException
-
printLocationSwitchListComment
protected final void printLocationSwitchListComment(CSVPrinter printer, String comment, String textColorName) throws IOException - Throws:
IOException
-
printLocationComment
protected final void printLocationComment(CSVPrinter printer, String comment, String textColorName) throws IOException - Throws:
IOException
-
printLocationName
- Throws:
IOException
-
printPrinterName
- Throws:
IOException
-
printRailroadName
- Throws:
IOException
-
printRemoveHelpers
- Throws:
IOException
-
printRouteLocationComment
protected final void printRouteLocationComment(CSVPrinter printer, String comment, String textColorName) throws IOException - Throws:
IOException
-
printTrainDeparts
protected final void printTrainDeparts(CSVPrinter printer, String name, String direction) throws IOException - Throws:
IOException
-
printTrainDescription
protected final void printTrainDescription(CSVPrinter printer, String description) throws IOException - Throws:
IOException
-
printTrainLength
protected final void printTrainLength(CSVPrinter printer, int length, int empty, int total) throws IOException - Throws:
IOException
-
printTrainName
- Throws:
IOException
-
printTrainTerminates
- Throws:
IOException
-
printTrainWeight
- Throws:
IOException
-
printValidity
- Throws:
IOException
-
printLocationSwitchListComment
protected final void printLocationSwitchListComment(CSVPrinter fileOut, Location location) throws IOException - Throws:
IOException
-
printLocationComment
- Throws:
IOException
-
printRouteLocationComment
protected final void printRouteLocationComment(CSVPrinter fileOut, RouteLocation rl) throws IOException - Throws:
IOException
-
printTrainComment
- Throws:
IOException
-
printRouteComment
- Throws:
IOException
-
printLogoURL
- Throws:
IOException
-
printCar
protected void printCar(CSVPrinter fileOut, Car car, String code, String message, int count) throws IOException - Throws:
IOException
-
printEngine
protected void printEngine(CSVPrinter fileOut, Engine engine, String code, String message) throws IOException - Throws:
IOException
-
checkForEngineOrCabooseChange
protected final void checkForEngineOrCabooseChange(CSVPrinter fileOut, Train train, RouteLocation rl) throws IOException - Throws:
IOException
-
engineCsvChange
protected void engineCsvChange(CSVPrinter fileOut, RouteLocation rl, int legOptions) throws IOException - Throws:
IOException
-
printTrackComments
protected void printTrackComments(CSVPrinter fileOut, RouteLocation rl, List<Car> carList) throws IOException - Throws:
IOException
-
listCarsLocationUnknown
- Throws:
IOException
-