Package tethys.tasks
Class TethysTaskManager
java.lang.Object
offlineProcessing.UnitTaskManager
tethys.tasks.TethysTaskManager
- All Implemented Interfaces:
PamSettings
,SettingsNameProvider
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddSingleTask
(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.int
long
boolean
restoreSettings
(PamControlledUnitSettings pamControlledUnitSettings) Methods inherited from class offlineProcessing.UnitTaskManager
add, addMenuItems, clearAll, get, getMenuItems, remove, size, taskGroupAction
-
Constructor Details
-
Method Details
-
generateTasks
public int generateTasks() -
addSingleTask
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
- Specified by:
getUnitName
in interfaceSettingsNameProvider
- Returns:
- A Name specific to this instance of the particular class, e.g. Sperm whale detector, Beaked whale detector, etc.
-
getUnitType
- Specified by:
getUnitType
in interfacePamSettings
- Returns:
- A Name specific to the type, e.g. Click detector
-
getSettingsReference
- Specified by:
getSettingsReference
in interfacePamSettings
- Returns:
- The serialisable object that will be stored
-
getSettingsVersion
public long getSettingsVersion()- Specified by:
getSettingsVersion
in interfacePamSettings
- Returns:
- An integer version number for the settings
-
restoreSettings
- Specified by:
restoreSettings
in interfacePamSettings
- 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
- Returns:
- the taskParameters
-