Class BusWalker

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

public class BusWalker extends Object implements Walker
A Walker for a bus that follows a given journey with fixed times at some bus stops.
  • Constructor Details

    • BusWalker

      public BusWalker(BusWalk walk, BusJourney journey, long pauseSeed)
      Constructor
      Parameters:
      walk - the walk
      journey - the bus journey
      pauseSeed - the seed to generate random pause durations
  • Method Details

    • getWalk

      public BusWalk 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.
    • 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
    • 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.
    • 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.