Class DefaultLaneBasedGtuCharacteristicsGeneratorOd

java.lang.Object
org.opentrafficsim.road.gtu.generator.characteristics.DefaultLaneBasedGtuCharacteristicsGeneratorOd
All Implemented Interfaces:
LaneBasedGtuCharacteristicsGeneratorOd

public final class DefaultLaneBasedGtuCharacteristicsGeneratorOd extends Object implements LaneBasedGtuCharacteristicsGeneratorOd
Default generator for LaneBasedGtuCharacteristics in a context with OD information.

Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.

Author:
Alexander Verbraeck, Peter Knoppers, Wouter Schakel
  • Method Details

    • draw

      public LaneBasedGtuCharacteristics draw(Node origin, Node destination, Category category, nl.tudelft.simulation.jstats.streams.StreamInterface randomStream) throws GtuException
      Generate new LaneBasedGtuCharacteristics using given input from OD.
      Specified by:
      draw in interface LaneBasedGtuCharacteristicsGeneratorOd
      Parameters:
      origin - Node; origin
      destination - Node; destination
      category - Category; category (GTU type, route, or more)
      randomStream - StreamInterface; stream for random numbers
      Returns:
      LaneBasedGtuCharacteristics
      Throws:
      GtuException - if characteristics could not be generated for the GTUException
    • defaultLmrs

      public static LaneBasedStrategicalRoutePlannerFactory defaultLmrs(nl.tudelft.simulation.jstats.streams.StreamInterface stream)
      Returns a strategical model factory for a standard LMRS model, to be used in Factory.
      Parameters:
      stream - StreamInterface; random number stream.
      Returns:
      LaneBasedStrategicalRoutePlannerFactory; factory for a standard LMRS model.