Class BusWalk

java.lang.Object
casa.lepton.walk.BusWalk
All Implemented Interfaces:
Walk

public class BusWalk extends Object implements Walk
A Walk that provides BusWalker instances for the journeys of buses of a bus line. The journeys are loaded from a journeys file and the paths files listed as the first line of this file in the same directory. Moreover, this class has a main method used to generate a DGS file from the journeys of a bus line
  • Method Details

    • getDefault

      public static BusWalk getDefault(OppNodeProperties props)
      Method called to generate an instance of this class in OppNodeProperties.getWalk()
      Parameters:
      props - the properties that contains the journeys directory and filename and the seed
      Returns:
      instance of this class
    • getArea

      public casa.util.geom.AreaCar getArea()
      Description copied from interface: Walk
      Returns the area in which this walk is defined.
      Specified by:
      getArea in interface Walk
      Returns:
      the AreaCar in which this walk is defined
    • getWalker

      public BusWalker getWalker(long time, String nodeId)
      Description copied from interface: Walk
      Returns a new Walker that will move according to the mobility model implemented in this instance of Walk.
      Specified by:
      getWalker in interface Walk
      Parameters:
      time - the time of creation of this walker
      Returns:
      a new Walker, whose mobility starts at the specified time
    • main

      public static void main(String[] args) throws IOException, ParseException
      Throws:
      IOException
      ParseException