Package jmri.jmrit.timetable
Class TimeTableCsvExport
java.lang.Object
jmri.jmrit.timetable.TimeTableCsvExport
Export a timetable in CSV format for import into a speadsheet.
CSV Content: Line 1 - Layout name, segment name and schedule name. Line 2 - Train names sorted by name and grouped by down or up direction. Line 3-n - Station row with the arrive and depart times for each train.
- Since:
- 4.15.3
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) BufferedWriter(package private) CSVPrinter(package private) List<TimeTableCsvExport.TrainEntry>(package private) boolean(package private) FileWriter(package private) String[](package private) TimeTableDataManager(package private) int(package private) HashMap<Integer,TimeTableCsvExport.TrainEntry> (package private) List<TimeTableCsvExport.TrainEntry> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate a CSV file that can be imported into a spreadsheet to create a timetable.(package private) StringformatTime(int t)
-
Field Details
-
tdm
-
errorOccurred
boolean errorOccurred -
fileWriter
-
bufferedWriter
-
csvFile
-
trainMap
-
trainIndex
int trainIndex -
downTrains
-
upTrains
-
stopRow
-
-
Constructor Details
-
TimeTableCsvExport
public TimeTableCsvExport()
-
-
Method Details
-
exportCsv
Create a CSV file that can be imported into a spreadsheet to create a timetable.- Parameters:
file- The file to be created.layoutId- The selected layout.segmentId- The selected segment.scheduleId- The selected schedule.- Returns:
- true if an error occured.
- Throws:
IOException- if unable to export the CSV file.
-
formatTime
-