Class ImportDataSystem<T>

java.lang.Object
PamView.importData.ImportDataSystem<T>
Type Parameters:
T - - the type of data loaded form the file. This could be a singles String, an ArrayList, ArrayList etc.

public class ImportDataSystem<T> extends Object
This class brings together the abstract classes and display componwenets which create a data import system for PAMGUARD. File dialogs, load bar dialogs etc. are all shared by most data import tasks.
Author:
Jamie Macaulay
  • Field Details

    • NO_FILE_LOAD

      public static final int NO_FILE_LOAD
      Unable to load data file. Probably a bad file path.
      See Also:
    • WRONG_FORMAT

      public static final int WRONG_FORMAT
      The file is in the wrong format.
      See Also:
  • Constructor Details

    • ImportDataSystem

      public ImportDataSystem(DataImport<T> dataImport)
  • Method Details

    • showImportDialog

      public void showImportDialog()
    • setTextProgress

      public void setTextProgress(int N, int ofN, String name)
      Set progress in the load bars' text output.
      Parameters:
      N - - number of units loaded
      ofN - - total number of units to load
      name - - name of the data unit that is being loaded.e.g. "NMEA units"
    • getName

      public String getName()
      Get the name of this loading system. e.g. Hydrophone Import
      Returns:
      name of the laoding system.
    • setName

      public void setName(String name)
      Set the name of this loading system. e.g. Hydrophone Import
    • getNUnitsLoaded

      public int getNUnitsLoaded()
      The number of units which have been loaded into the database or binary files.
      Returns:
    • getTotalNUnits

      public int getTotalNUnits()
      The total number of units that need loaded into the database or binary files.
      Returns: