Package simulatedAcquisition.movement
Class CircularMovement
java.lang.Object
simulatedAcquisition.movement.MovementModel
simulatedAcquisition.movement.CircularMovement
- All Implemented Interfaces:
PamSettings
,SettingsNameProvider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
long
boolean
Has configurable options.boolean
restoreSettings
(PamControlledUnitSettings pamControlledUnitSettings) boolean
showOptions
(Window window, SimObject simObject) Show options dialog.boolean
start
(long timeMilliseconds, SimObjectDataUnit simObjectDataUnit) Prepare to start moving.boolean
takeStep
(long timeMilliseconds, SimObjectDataUnit simObjectDataUnit) Take a step.Methods inherited from class simulatedAcquisition.movement.MovementModel
getSimObject
-
Constructor Details
-
CircularMovement
-
-
Method Details
-
start
Description copied from class:MovementModel
Prepare to start moving. Called once at run start.- Specified by:
start
in classMovementModel
- Parameters:
timeMilliseconds
- current time in millisecondssimObjectDataUnit
- Some data unit to modify.- Returns:
- true if step taken OK. False if track is completed, in which case acquisition will stop.
-
takeStep
Description copied from class:MovementModel
Take a step. Update the position, heading, etc. directly in the SimSoundDataUnit.- Specified by:
takeStep
in classMovementModel
- Parameters:
timeMilliseconds
- current time in millisecondssimObjectDataUnit
- Some data unit to modify.- Returns:
- true if step taken OK. False if track is completed, in which case acquisition will stop.
-
getName
- Specified by:
getName
in classMovementModel
- Returns:
- Name for the model.
-
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
- 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
-
hasOptions
public boolean hasOptions()Description copied from class:MovementModel
Has configurable options.- Overrides:
hasOptions
in classMovementModel
- Returns:
- true of it has a dialog
-
showOptions
Description copied from class:MovementModel
Show options dialog. All options to be handled and stored internally by the MovementModel.- Overrides:
showOptions
in classMovementModel
- Returns:
-