Interface LaneBasedGtuCharacteristicsGeneratorOd

All Known Implementing Classes:
DefaultLaneBasedGtuCharacteristicsGeneratorOd
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface LaneBasedGtuCharacteristicsGeneratorOd
Interface for classes that generate GTU characteristics based on OD information. Additional to LaneBasedGtuCharacteristicsGenerator this class draws based on origin, destination, category, and a random stream.

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 Summary

    Modifier and Type
    Method
    Description
    draw(Node origin, Node destination, Category category, nl.tudelft.simulation.jstats.streams.StreamInterface randomStream)
    Generate new LaneBasedGtuCharacteristics using given input from OD.
  • Method Details

    • draw

      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.
      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