Class RandomWaypointWalker

java.lang.Object
casa.lepton.walk.RandomWaypointWalker
All Implemented Interfaces:
Walker

public class RandomWaypointWalker extends Object implements Walker
A Walker that implements the random way point mobility model.
  • Constructor Details

    • RandomWaypointWalker

      public RandomWaypointWalker(RandomWaypoint walk, long time)
  • Method Details

    • getWalk

      public Walk getWalk()
      Description copied from interface: Walker
      Returns an Walk object that defines the mobility model of this Walker.
      Specified by:
      getWalk in interface Walker
      Returns:
      the kind of Walk of this Walker.
    • getStep

      public Step getStep()
      Description copied from interface: Walker
      Returns a Step object that defines the current step of this Walker.
      Specified by:
      getStep in interface Walker
      Returns:
      the current Step of this Walker.
    • getPosition

      public casa.util.geom.CoordCar getPosition(long time)
      Description copied from interface: Walker
      Returns a CoordCar object that defines the position of this Walker at the specified time.
      Specified by:
      getPosition in interface Walker
      Parameters:
      time - the time for which the position is requested
      Returns:
      the position of this Walker at the specified time
    • nextStep

      public Step nextStep(long time)
    • nextStep

      public Step nextStep()
      Description copied from interface: Walker
      Returns a Step object that defines the next step of this Walker.
      Specified by:
      nextStep in interface Walker
      Returns:
      the next Step of this Walker.