Package simulatedAcquisition.movement
Class MovementModel
java.lang.Object
simulatedAcquisition.movement.MovementModel
- Direct Known Subclasses:
CircularMovement
,GridMovement
,StraightLineMovement
Model of movement of a simulated object.
- Author:
- doug
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract String
getName()
boolean
Has configurable options.boolean
showOptions
(Window window, SimObject simObject) Show options dialog.abstract boolean
start
(long timeMilliseconds, SimObjectDataUnit simObjectDataUnit) Prepare to start moving.abstract boolean
takeStep
(long timeMilliseconds, SimObjectDataUnit simObjectDataUnit) Take a step.
-
Constructor Details
-
MovementModel
-
-
Method Details
-
start
Prepare to start moving. Called once at run start.- 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
Take a step. Update the position, heading, etc. directly in the SimSoundDataUnit.- 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
- Returns:
- Name for the model.
-
hasOptions
public boolean hasOptions()Has configurable options.- Returns:
- true of it has a dialog
-
showOptions
Show options dialog. All options to be handled and stored internally by the MovementModel.- Parameters:
window
-simObject
-- Returns:
-
getSimObject
- Returns:
- the simObject
-