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
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionabstract StringgetName()booleanHas configurable options.booleanshowOptions(Window window, SimObject simObject) Show options dialog.abstract booleanstart(long timeMilliseconds, SimObjectDataUnit simObjectDataUnit) Prepare to start moving.abstract booleantakeStep(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
 
 
 -