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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Factory forDefaultGtuCharacteristicsGeneratorOD
. -
Method Summary
Modifier and TypeMethodDescriptiondefaultLmrs
(nl.tudelft.simulation.jstats.streams.StreamInterface stream) Returns a strategical model factory for a standard LMRS model, to be used inFactory
.draw
(Node origin, Node destination, Category category, nl.tudelft.simulation.jstats.streams.StreamInterface randomStream) Generate newLaneBasedGtuCharacteristics
using given input from OD.
-
Method Details
-
draw
public LaneBasedGtuCharacteristics draw(Node origin, Node destination, Category category, nl.tudelft.simulation.jstats.streams.StreamInterface randomStream) throws GtuException Description copied from interface:LaneBasedGtuCharacteristicsGeneratorOd
Generate newLaneBasedGtuCharacteristics
using given input from OD.- Specified by:
draw
in interfaceLaneBasedGtuCharacteristicsGeneratorOd
- Parameters:
origin
- origindestination
- destinationcategory
- category (GTU type, route, or more)randomStream
- 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 inFactory
.- Parameters:
stream
- random number stream.- Returns:
- factory for a standard LMRS model.
-