Class ExportTrainLineups
- java.lang.Object
-
- jmri.jmrit.XmlFile
-
- jmri.jmrit.operations.trains.tools.ExportTrainLineups
-
public class ExportTrainLineups extends XmlFile
Builds the train lineups in a comma delimited file (CSV). Only trains that are built and have the "Build" checkbox selected are exported.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jmri.jmrit.XmlFile
XmlFile.Validate
-
-
Field Summary
-
Fields inherited from class jmri.jmrit.XmlFile
dtdLocation, xsltLocation
-
-
Constructor Summary
Constructors Constructor Description ExportTrainLineups()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.String
defaultOperationsFilename()
static java.lang.String
getOperationsFileName()
static void
setOperationsFileName(java.lang.String name)
void
writeFile(java.lang.String name)
Writes the train lineups for each location a train visits.void
writeOperationsTrainsFile()
-
Methods inherited from class jmri.jmrit.XmlFile
addDefaultInfo, backupFileName, checkFile, createFileNameWithDate, dumpElement, findFile, getBuilder, getDefaultDtdLocation, getDefaultValidate, getDtdLocation, getProcessingInstructionHRef, getProcessingInstructionType, getRoot, getValidate, makeBackupFile, makeBackupFile, newDocument, newDocument, revertBackupFile, rootFromFile, rootFromInputStream, rootFromName, rootFromURL, setDefaultDtdLocation, setDefaultValidate, setDtdLocation, setValidate, userFileChooser, userFileChooser, writeXML, xmlDir
-
-
-
-
Constructor Detail
-
ExportTrainLineups
public ExportTrainLineups()
-
-
Method Detail
-
writeOperationsTrainsFile
public void writeOperationsTrainsFile()
-
writeFile
public void writeFile(java.lang.String name)
Writes the train lineups for each location a train visits. The lineup includes: Train Name, Lead Engine, Location, Arrival Time, Departure Time, Direction, Pulls, Drops, Loads, Empties, Length, Weight, Engineer, Conductor, Train Description, Train Comment- Parameters:
name
- file path name
-
defaultOperationsFilename
public static java.lang.String defaultOperationsFilename()
-
setOperationsFileName
public static void setOperationsFileName(java.lang.String name)
-
getOperationsFileName
public static java.lang.String getOperationsFileName()
-
-