Package org.opentrafficsim.demo.conflict
Class BusStreetDemo.CharacteristicsGenerator
- java.lang.Object
-
- org.opentrafficsim.demo.conflict.BusStreetDemo.CharacteristicsGenerator
-
- All Implemented Interfaces:
LaneBasedGTUCharacteristicsGenerator
- Enclosing class:
- BusStreetDemo
public static class BusStreetDemo.CharacteristicsGenerator extends Object implements LaneBasedGTUCharacteristicsGenerator
Copyright (c) 2013-2022 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version 29 jan. 2017
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Constructor Summary
Constructors Constructor Description CharacteristicsGenerator(org.opentrafficsim.core.dsol.OTSSimulatorInterface simulator, double[] probabilities, OTSRoadNetwork network)
-
-
-
Constructor Detail
-
CharacteristicsGenerator
public CharacteristicsGenerator(org.opentrafficsim.core.dsol.OTSSimulatorInterface simulator, double[] probabilities, OTSRoadNetwork network)- Parameters:
simulator- OTSSimulatorInterface; simulatorprobabilities- double[]; probabilitiesnetwork- OTSRoadNetwork; network
-
-
Method Detail
-
draw
public LaneBasedGTUCharacteristics draw() throws org.opentrafficsim.core.distributions.ProbabilityException, org.opentrafficsim.base.parameters.ParameterException, org.opentrafficsim.core.gtu.GTUException
- Specified by:
drawin interfaceLaneBasedGTUCharacteristicsGenerator- Throws:
org.opentrafficsim.core.distributions.ProbabilityExceptionorg.opentrafficsim.base.parameters.ParameterExceptionorg.opentrafficsim.core.gtu.GTUException
-
-