Package simulatedAcquisition.movement
Class StraightLineMovement
java.lang.Object
simulatedAcquisition.movement.MovementModel
simulatedAcquisition.movement.StraightLineMovement
Simplest movement model - is the one that's in there at the
moment, i.e. stationary or moving in a straight line.
- Author:
- Doug Gillespie
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
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, hasOptions, showOptions
-
Constructor Details
-
StraightLineMovement
-
-
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.
-