Class ODApplierTest
- java.lang.Object
-
- org.opentrafficsim.road.gtu.strategical.od.ODApplierTest
-
public class ODApplierTest extends Object
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 12 dec. 2017
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Constructor Summary
Constructors Constructor Description ODApplierTest()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) SingleReplication<Duration>
getReplication()
Returns the replication.(package private) OTSSimulatorInterface
getSimulator()
Returns the simulator.(package private) StreamInterface
getStream()
Returns the set random number stream.(package private) Time
getTime()
Returns the set simulation time.void
gtuFractionTest()
void
headwayGeneratorTest()
Test whether correct headways and frequencies are calculated.
-
-
-
Constructor Detail
-
ODApplierTest
public ODApplierTest() throws NetworkException, OTSGeometryException, NamingException
Constructor.- Throws:
OTSGeometryException
- on exceptionNetworkException
- on exceptionNamingException
- on ...
-
-
Method Detail
-
getTime
final Time getTime()
Returns the set simulation time.- Returns:
- set simulation time
-
getStream
final StreamInterface getStream()
Returns the set random number stream.- Returns:
- set random number stream
-
getReplication
final SingleReplication<Duration> getReplication()
Returns the replication.- Returns:
- replication
-
getSimulator
final OTSSimulatorInterface getSimulator()
Returns the simulator.- Returns:
- simulator
-
headwayGeneratorTest
public void headwayGeneratorTest() throws ValueRuntimeException, NetworkException, org.opentrafficsim.base.parameters.ParameterException, SimRuntimeException, ProbabilityException, IllegalArgumentException, IllegalAccessException, OTSGeometryException
Test whether correct headways and frequencies are calculated.- Throws:
NetworkException
- on exceptionValueRuntimeException
- on exceptionSimRuntimeException
- on exceptionorg.opentrafficsim.base.parameters.ParameterException
- on exceptionProbabilityException
- on exceptionIllegalAccessException
- on exceptionIllegalArgumentException
- on exceptionOTSGeometryException
- on exception
-
gtuFractionTest
public void gtuFractionTest() throws ValueRuntimeException, NetworkException, org.opentrafficsim.base.parameters.ParameterException, SimRuntimeException, ProbabilityException, GTUException
- Throws:
ValueRuntimeException
- on exceptionNetworkException
- on exceptionSimRuntimeException
- on exceptionorg.opentrafficsim.base.parameters.ParameterException
- on exceptionGTUException
- on exceptionProbabilityException
- on exception
-
-