Package cpod

Class CPODImporter

java.lang.Object
cpod.CPODImporter

public class CPODImporter extends Object
Imports FPOD and CPOD data and converts into binary files.
Author:
Jamie Macaulay
  • Field Details

  • Constructor Details

    • CPODImporter

      public CPODImporter(CPODControl2 cpodControl)
  • Method Details

    • runImportTask

      public void runImportTask(ArrayList<CPODFile> files, CPODClickDataBlock clickDataBlock, CPODClickTrainDataBlock clickTrainDataBlock)
      Run the import task.
    • importCPODDataTask

      public javafx.concurrent.Task<Integer> importCPODDataTask(List<CPODFile> files)
      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

      public javafx.concurrent.Task<Integer> importCPODData(List<File> files)
      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

      public void runTasks(javafx.concurrent.Task<Integer> task)
      Run the tasks
      Parameters:
      task - - the tasks.
    • main

      public static void main(String[] args)