Package jmri.jmrit.operations.trains
Class TrainCsvCommon
- java.lang.Object
-
- jmri.jmrit.operations.trains.TrainCommon
-
- jmri.jmrit.operations.trains.TrainCsvCommon
-
- Direct Known Subclasses:
TrainCsvManifest
,TrainCsvSwitchLists
public class TrainCsvCommon extends TrainCommon
Contains the csv operators for manifests and switch lists
-
-
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 TrainCsvCommon()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkForEngineOrCabooseChange(CSVPrinter fileOut, Train train, RouteLocation rl)
protected void
engineCsvChange(CSVPrinter fileOut, RouteLocation rl, int legOptions)
protected void
listCarsLocationUnknown(CSVPrinter fileOut)
protected void
printCar(CSVPrinter fileOut, Car car, java.lang.String code, java.lang.String message, int count)
protected void
printDepartureTime(CSVPrinter printer, java.lang.String time)
protected void
printEngine(CSVPrinter fileOut, Engine engine, java.lang.String code, java.lang.String message)
protected void
printHeader(CSVPrinter printer)
protected void
printLocationComment(CSVPrinter printer, java.lang.String comment, java.lang.String textColorName)
protected void
printLocationComment(CSVPrinter fileOut, Location location)
protected void
printLocationName(CSVPrinter printer, java.lang.String name)
protected void
printLocationSwitchListComment(CSVPrinter printer, java.lang.String comment, java.lang.String textColorName)
protected void
printLocationSwitchListComment(CSVPrinter fileOut, Location location)
protected void
printLogoURL(CSVPrinter fileOut, Train train)
protected void
printPrinterName(CSVPrinter printer, java.lang.String name)
protected void
printRailroadName(CSVPrinter printer, java.lang.String name)
protected void
printRemoveHelpers(CSVPrinter printer)
protected void
printRouteComment(CSVPrinter fileOut, Train train)
protected void
printRouteLocationComment(CSVPrinter printer, java.lang.String comment, java.lang.String textColorName)
protected void
printRouteLocationComment(CSVPrinter fileOut, RouteLocation rl)
protected void
printTrackComments(CSVPrinter fileOut, RouteLocation rl, java.util.List<Car> carList)
protected void
printTrainComment(CSVPrinter fileOut, Train train)
protected void
printTrainDeparts(CSVPrinter printer, java.lang.String name, java.lang.String direction)
protected void
printTrainDescription(CSVPrinter printer, java.lang.String description)
protected void
printTrainLength(CSVPrinter printer, int length, int empty, int total)
protected void
printTrainName(CSVPrinter printer, java.lang.String name)
protected void
printTrainTerminates(CSVPrinter printer, java.lang.String name)
protected void
printTrainWeight(CSVPrinter printer, int weight)
protected void
printValidity(CSVPrinter printer, java.lang.String date)
-
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
-
TrainCsvCommon
public TrainCsvCommon()
-
-
Method Detail
-
printDepartureTime
protected final void printDepartureTime(CSVPrinter printer, java.lang.String time) throws java.io.IOException
- Throws:
java.io.IOException
-
printHeader
protected final void printHeader(CSVPrinter printer) throws java.io.IOException
- Throws:
java.io.IOException
-
printLocationSwitchListComment
protected final void printLocationSwitchListComment(CSVPrinter printer, java.lang.String comment, java.lang.String textColorName) throws java.io.IOException
- Throws:
java.io.IOException
-
printLocationComment
protected final void printLocationComment(CSVPrinter printer, java.lang.String comment, java.lang.String textColorName) throws java.io.IOException
- Throws:
java.io.IOException
-
printLocationName
protected final void printLocationName(CSVPrinter printer, java.lang.String name) throws java.io.IOException
- Throws:
java.io.IOException
-
printPrinterName
protected final void printPrinterName(CSVPrinter printer, java.lang.String name) throws java.io.IOException
- Throws:
java.io.IOException
-
printRailroadName
protected final void printRailroadName(CSVPrinter printer, java.lang.String name) throws java.io.IOException
- Throws:
java.io.IOException
-
printRemoveHelpers
protected final void printRemoveHelpers(CSVPrinter printer) throws java.io.IOException
- Throws:
java.io.IOException
-
printRouteLocationComment
protected final void printRouteLocationComment(CSVPrinter printer, java.lang.String comment, java.lang.String textColorName) throws java.io.IOException
- Throws:
java.io.IOException
-
printTrainDeparts
protected final void printTrainDeparts(CSVPrinter printer, java.lang.String name, java.lang.String direction) throws java.io.IOException
- Throws:
java.io.IOException
-
printTrainDescription
protected final void printTrainDescription(CSVPrinter printer, java.lang.String description) throws java.io.IOException
- Throws:
java.io.IOException
-
printTrainLength
protected final void printTrainLength(CSVPrinter printer, int length, int empty, int total) throws java.io.IOException
- Throws:
java.io.IOException
-
printTrainName
protected final void printTrainName(CSVPrinter printer, java.lang.String name) throws java.io.IOException
- Throws:
java.io.IOException
-
printTrainTerminates
protected final void printTrainTerminates(CSVPrinter printer, java.lang.String name) throws java.io.IOException
- Throws:
java.io.IOException
-
printTrainWeight
protected final void printTrainWeight(CSVPrinter printer, int weight) throws java.io.IOException
- Throws:
java.io.IOException
-
printValidity
protected final void printValidity(CSVPrinter printer, java.lang.String date) throws java.io.IOException
- Throws:
java.io.IOException
-
printLocationSwitchListComment
protected final void printLocationSwitchListComment(CSVPrinter fileOut, Location location) throws java.io.IOException
- Throws:
java.io.IOException
-
printLocationComment
protected final void printLocationComment(CSVPrinter fileOut, Location location) throws java.io.IOException
- Throws:
java.io.IOException
-
printRouteLocationComment
protected final void printRouteLocationComment(CSVPrinter fileOut, RouteLocation rl) throws java.io.IOException
- Throws:
java.io.IOException
-
printTrainComment
protected final void printTrainComment(CSVPrinter fileOut, Train train) throws java.io.IOException
- Throws:
java.io.IOException
-
printRouteComment
protected final void printRouteComment(CSVPrinter fileOut, Train train) throws java.io.IOException
- Throws:
java.io.IOException
-
printLogoURL
protected void printLogoURL(CSVPrinter fileOut, Train train) throws java.io.IOException
- Throws:
java.io.IOException
-
printCar
protected void printCar(CSVPrinter fileOut, Car car, java.lang.String code, java.lang.String message, int count) throws java.io.IOException
- Throws:
java.io.IOException
-
printEngine
protected void printEngine(CSVPrinter fileOut, Engine engine, java.lang.String code, java.lang.String message) throws java.io.IOException
- Throws:
java.io.IOException
-
checkForEngineOrCabooseChange
protected final void checkForEngineOrCabooseChange(CSVPrinter fileOut, Train train, RouteLocation rl) throws java.io.IOException
- Throws:
java.io.IOException
-
engineCsvChange
protected void engineCsvChange(CSVPrinter fileOut, RouteLocation rl, int legOptions) throws java.io.IOException
- Throws:
java.io.IOException
-
printTrackComments
protected void printTrackComments(CSVPrinter fileOut, RouteLocation rl, java.util.List<Car> carList) throws java.io.IOException
- Throws:
java.io.IOException
-
listCarsLocationUnknown
protected void listCarsLocationUnknown(CSVPrinter fileOut) throws java.io.IOException
- Throws:
java.io.IOException
-
-