Class MovementModel

java.lang.Object
simulatedAcquisition.movement.MovementModel
Direct Known Subclasses:
CircularMovement, GridMovement, StraightLineMovement

public abstract class MovementModel extends Object
Model of movement of a simulated object.
Author:
doug
  • Constructor Details

    • MovementModel

      public MovementModel(SimObject simObject)
  • Method Details

    • start

      public abstract boolean start(long timeMilliseconds, SimObjectDataUnit simObjectDataUnit)
      Prepare to start moving. Called once at run start.
      Parameters:
      timeMilliseconds - current time in milliseconds
      simObjectDataUnit - Some data unit to modify.
      Returns:
      true if step taken OK. False if track is completed, in which case acquisition will stop.
    • takeStep

      public abstract boolean takeStep(long timeMilliseconds, SimObjectDataUnit simObjectDataUnit)
      Take a step. Update the position, heading, etc. directly in the SimSoundDataUnit.
      Parameters:
      timeMilliseconds - current time in milliseconds
      simObjectDataUnit - Some data unit to modify.
      Returns:
      true if step taken OK. False if track is completed, in which case acquisition will stop.
    • getName

      public abstract String getName()
      Returns:
      Name for the model.
    • hasOptions

      public boolean hasOptions()
      Has configurable options.
      Returns:
      true of it has a dialog
    • showOptions

      public boolean showOptions(Window window, SimObject simObject)
      Show options dialog. All options to be handled and stored internally by the MovementModel.
      Parameters:
      window -
      simObject -
      Returns:
    • getSimObject

      public SimObject getSimObject()
      Returns:
      the simObject