Package org.opentrafficsim.ahfe
Class AHFEUtil
- java.lang.Object
-
- org.opentrafficsim.ahfe.AHFEUtil
-
public final class AHFEUtil extends Object
Copyright (c) 2013-2020 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 2 mrt. 2017
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
createDemand(OTSRoadNetwork network, GTUColorer gtuColorer, OTSSimulatorInterface simulator, int replication, String anticipationStrategy, Duration reactionTime, Duration anticipationTime, double truckFraction, Time simulationTime, Frequency leftDemand, Frequency rightDemand, double leftFraction, double distanceError, double speedError, double accelerationError)
-
-
-
Method Detail
-
createDemand
public static void createDemand(OTSRoadNetwork network, GTUColorer gtuColorer, OTSSimulatorInterface simulator, int replication, String anticipationStrategy, Duration reactionTime, Duration anticipationTime, double truckFraction, Time simulationTime, Frequency leftDemand, Frequency rightDemand, double leftFraction, double distanceError, double speedError, double accelerationError) throws ValueRuntimeException, ParameterException, GTUException, SimRuntimeException, ProbabilityException
- Parameters:
network
- OTSRoadNetwork; the networkgtuColorer
- GTUColorer; the GTU colorersimulator
- OTSSimulatorInterface; the simulatorreplication
- int; replication numberanticipationStrategy
- String; anticipation strategyreactionTime
- Duration; reaction timeanticipationTime
- Duration; anticipation timetruckFraction
- double; truck fractionsimulationTime
- Time; simulation timeleftDemand
- Frequency; demand on left highwayrightDemand
- Frequency; demand on right highwayleftFraction
- double; fraction of traffic generated on left lanedistanceError
- double; distance errorspeedError
- double; speed erroraccelerationError
- double; acceleration error- Throws:
ValueRuntimeException
- on value errorParameterException
- on parameter errorGTUException
- on gtu errorProbabilityException
- on probability errorSimRuntimeException
- on sim runtime error
-
-