Package cpod
Class CPODImporter
java.lang.Object
cpod.CPODImporter
Imports FPOD and CPOD data and converts into binary files.
- Author:
- Jamie Macaulay
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjavafx.concurrent.Task<Integer>
importCPODData
(List<File> files) Import CPOD and/or FPOD data from a list of files.javafx.concurrent.Task<Integer>
importCPODDataTask
(List<CPODFile> files) Import the CPOD data from a certain file type.static void
void
runImportTask
(ArrayList<CPODFile> files, CPODClickDataBlock clickDataBlock, CPODClickTrainDataBlock clickTrainDataBlock) Run the import task.void
Run the tasks
-
Field Details
-
MAX_SAVE
public static final int MAX_SAVE- See Also:
-
-
Constructor Details
-
CPODImporter
-
-
Method Details
-
runImportTask
public void runImportTask(ArrayList<CPODFile> files, CPODClickDataBlock clickDataBlock, CPODClickTrainDataBlock clickTrainDataBlock) Run the import task. -
importCPODDataTask
Import the CPOD data from a certain file type.- Parameters:
files
- to import - a list of CPOD compatible files (can be a mix but only the files corresponding to type will be processed)type
- - the type flag of the file e.g. CPODFileType.CP1- Returns:
- the CPOD import task.
-
importCPODData
Import CPOD and/or FPOD data from a list of files. The files can be CP1/FP1 or CP3/FP3 or a mix of both.- Parameters:
files
- - a list of CPOD or FPOD files- Returns:
- the task to import the list.
-
runTasks
Run the tasks- Parameters:
task
- - the tasks.
-
main
-