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.
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 Details
-
draw
LaneBasedGtuCharacteristics draw(Node origin, Node destination, Category category, nl.tudelft.simulation.jstats.streams.StreamInterface randomStream) throws GtuException Generate newLaneBasedGtuCharacteristics
using given input from OD.- Parameters:
origin
- Node; origindestination
- Node; destinationcategory
- 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
-