Class StraightLineMovement

java.lang.Object
simulatedAcquisition.movement.MovementModel
simulatedAcquisition.movement.StraightLineMovement

public class StraightLineMovement extends MovementModel
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 Details

    • StraightLineMovement

      public StraightLineMovement(SimObject simObject)
  • Method Details

    • start

      public boolean start(long timeMilliseconds, SimObjectDataUnit simObjectDataUnit)
      Description copied from class: MovementModel
      Prepare to start moving. Called once at run start.
      Specified by:
      start in class MovementModel
      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 boolean takeStep(long timeMilliseconds, SimObjectDataUnit simObjectDataUnit)
      Description copied from class: MovementModel
      Take a step. Update the position, heading, etc. directly in the SimSoundDataUnit.
      Specified by:
      takeStep in class MovementModel
      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 String getName()
      Specified by:
      getName in class MovementModel
      Returns:
      Name for the model.