Class BLOfflineTask

java.lang.Object
offlineProcessing.OfflineTask
bearinglocaliser.offline.BLOfflineTask

public class BLOfflineTask extends OfflineTask
  • Constructor Details Link icon

  • Method Details Link icon

    • checkDataBlocks Link icon

      public void checkDataBlocks()
      do checks on the datablocks. Needed when this is running as an offline task since if was probably impossible to set these when it was constructed.
    • getName Link icon

      public String getName()
      Specified by:
      getName in class OfflineTask
      Returns:
      a name for the task, to be displayed in the dialog.
    • hasSettings Link icon

      public boolean hasSettings()
      Description copied from class: OfflineTask
      task has settings which can be modified. If this is true, then callSettings(Component component) should do something such as open a dialog or show a menu, or something.
      Overrides:
      hasSettings in class OfflineTask
      Returns:
      true or false
    • callSettings Link icon

      public boolean callSettings()
      Description copied from class: OfflineTask
      Call any task specific settings
      use callSettings(Component component) instead wherever possible.
      Overrides:
      callSettings in class OfflineTask
      Returns:
      true if settings may have changed.
    • prepareTask Link icon

      public void prepareTask()
      Description copied from class: OfflineTask
      Called at the start of the thread which executes this task.
      Overrides:
      prepareTask in class OfflineTask
    • processDataUnit Link icon

      public boolean processDataUnit(PamDataUnit dataUnit)
      Description copied from class: OfflineTask
      Process a single data unit.
      Specified by:
      processDataUnit in class OfflineTask
      Returns:
      true if the data unit has changed in some way so that it will need re-writing to it's binary file or database.
    • newDataLoad Link icon

      public void newDataLoad(long startTime, long endTime, OfflineDataMapPoint mapPoint)
      Description copied from class: OfflineTask
      Called when new data are loaded for offline processing (or once at the start of processing loaded data).
      Specified by:
      newDataLoad in class OfflineTask
      Parameters:
      startTime - start time of loaded data
      endTime - end time of loaded data
    • loadedDataComplete Link icon

      public void loadedDataComplete()
      Description copied from class: OfflineTask
      Called when processing of loaded data, or each map point worth of data, is complete.
      Specified by:
      loadedDataComplete in class OfflineTask
    • canRun Link icon

      public boolean canRun()
      Description copied from class: OfflineTask
      can the task be run ? This will generally be true, but may be false if the task is dependent on some other module which may not be present.
      Overrides:
      canRun in class OfflineTask
      Returns:
      true if it's possible to run the task.