Package tethys.tasks

Class TethysTaskManager

java.lang.Object
offlineProcessing.UnitTaskManager
tethys.tasks.TethysTaskManager
All Implemented Interfaces:
PamSettings, SettingsNameProvider

public class TethysTaskManager extends UnitTaskManager implements PamSettings
Manager for offline tasks in Tethys. These probably won't be made available as tasks in Tethys, but will be picked up by the batch processor which can then execute them across multiple datasets.

These will have to be set up with their own complete sets of parameters, i.e. all the information that was normally going into the export Wizards, so that they can be fully automated from the batch processor.

A menu will be provided for the dev phase, but will probably then be removed.

  • Constructor Details Link icon

    • TethysTaskManager Link icon

      public TethysTaskManager(TethysControl tethysControl)
  • Method Details Link icon

    • generateTasks Link icon

      public int generateTasks()
    • addSingleTask Link icon

      public TethysTaskGroup addSingleTask(TethysTask tethysTask)
      Most tasks are going to be in groups of their own since they all use different primary datablocks, so can make it easy to generate all these groups.
      Parameters:
      tethysTask -
      Returns:
      generated group
    • getUnitName Link icon

      public String getUnitName()
      Specified by:
      getUnitName in interface SettingsNameProvider
      Returns:
      A Name specific to this instance of the particular class, e.g. Sperm whale detector, Beaked whale detector, etc.
    • getUnitType Link icon

      public String getUnitType()
      Specified by:
      getUnitType in interface PamSettings
      Returns:
      A Name specific to the type, e.g. Click detector
    • getSettingsReference Link icon

      public Serializable getSettingsReference()
      Specified by:
      getSettingsReference in interface PamSettings
      Returns:
      The serialisable object that will be stored
    • getSettingsVersion Link icon

      public long getSettingsVersion()
      Specified by:
      getSettingsVersion in interface PamSettings
      Returns:
      An integer version number for the settings
    • restoreSettings Link icon

      public boolean restoreSettings(PamControlledUnitSettings pamControlledUnitSettings)
      Specified by:
      restoreSettings in interface PamSettings
      Parameters:
      pamControlledUnitSettings -
      Returns:
      true if successful The object performs final checks (if needed) and then casts the settings data pamcontrolledunitSettings.settings into the correct type and uses as required
    • getTaskParameters Link icon

      public TethysTaskParameters getTaskParameters()
      Returns:
      the taskParameters