Class TrainCustomCommon
java.lang.Object
jmri.jmrit.operations.trains.excel.TrainCustomCommon
- Direct Known Subclasses:
TrainCustomManifest,TrainCustomSwitchList
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddCsvFile(File csvFile) Adds one CSV file path to the collection of files to be processed.booleanbooleanChecks to see if the common file existsbooleanThe common file contains a list of CSV files that need to be processed.booleanvoidload(org.jdom2.Element options) booleanprocess()Processes the CSV files using a Custom external program that reads the file of file names.voidsetCommonFileName(String name) voidsetDirectoryName(String name) voidsetFileName(String name) voidstore(org.jdom2.Element options) boolean
-
Field Details
-
xmlElement
-
directoryName
-
-
Constructor Details
-
TrainCustomCommon
-
-
Method Details
-
getFileName
-
setFileName
-
getCommonFileName
-
setCommonFileName
-
getDirectoryName
-
setDirectoryName
-
getDirectoryPathName
-
doesExcelFileExist
-
getExcelFile
-
doesCommonFileExist
Checks to see if the common file exists- Returns:
- true if the common file exists
-
getCommonFile
The common file contains a list of CSV files that need to be processed.- Returns:
- the common file.
-
addCsvFile
Adds one CSV file path to the collection of files to be processed.- Parameters:
csvFile- The File to add.- Returns:
- true if successful
-
process
Processes the CSV files using a Custom external program that reads the file of file names.- Returns:
- True if successful.
-
checkProcessReady
-
isProcessAlive
-
waitForProcessToComplete
- Returns:
- true if process completes without a timeout, false if there's a timeout.
- Throws:
InterruptedException- if process thread is interrupted
-
load
-
store
-