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 classFactory 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 newLaneBasedGtuCharacteristicsusing 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 Generate newLaneBasedGtuCharacteristicsusing given input from OD.- Specified by:
drawin interfaceLaneBasedGtuCharacteristicsGeneratorOd- 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
-
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- StreamInterface; random number stream.- Returns:
- LaneBasedStrategicalRoutePlannerFactory; factory for a standard LMRS model.
-