Class OdApplierTest
java.lang.Object
org.opentrafficsim.road.gtu.strategical.od.OdApplierTest
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) final nl.tudelft.simulation.dsol.experiment.SingleReplication<org.djunits.value.vdouble.scalar.Duration>Returns the replication.(package private) final OtsSimulatorInterfaceReturns the simulator.(package private) final nl.tudelft.simulation.jstats.streams.StreamInterfaceReturns the set random number stream.(package private) final org.djunits.value.vdouble.scalar.TimegetTime()Returns the set simulation time.voidvoidTest whether correct headways and frequencies are calculated.
-
Constructor Details
-
OdApplierTest
Constructor.- Throws:
OtsGeometryException- on exceptionNetworkException- on exceptionNamingException- on ...
-
-
Method Details
-
getTime
final org.djunits.value.vdouble.scalar.Time getTime()Returns the set simulation time.- Returns:
- set simulation time
-
getStream
final nl.tudelft.simulation.jstats.streams.StreamInterface getStream()Returns the set random number stream.- Returns:
- set random number stream
-
getReplication
final nl.tudelft.simulation.dsol.experiment.SingleReplication<org.djunits.value.vdouble.scalar.Duration> getReplication()Returns the replication.- Returns:
- replication
-
getSimulator
Returns the simulator.- Returns:
- simulator
-
headwayGeneratorTest
@Test public void headwayGeneratorTest() throws org.djunits.value.ValueRuntimeException, NetworkException, org.opentrafficsim.base.parameters.ParameterException, nl.tudelft.simulation.dsol.SimRuntimeException, ProbabilityException, IllegalArgumentException, IllegalAccessException, OtsGeometryExceptionTest whether correct headways and frequencies are calculated.- Throws:
NetworkException- on exceptionorg.djunits.value.ValueRuntimeException- on exceptionnl.tudelft.simulation.dsol.SimRuntimeException- on exceptionorg.opentrafficsim.base.parameters.ParameterException- on exceptionProbabilityException- on exceptionIllegalAccessException- on exceptionIllegalArgumentException- on exceptionOtsGeometryException- on exception
-
gtuFractionTest
@Test public void gtuFractionTest() throws org.djunits.value.ValueRuntimeException, NetworkException, org.opentrafficsim.base.parameters.ParameterException, nl.tudelft.simulation.dsol.SimRuntimeException, ProbabilityException, GtuException- Throws:
org.djunits.value.ValueRuntimeException- on exceptionNetworkException- on exceptionnl.tudelft.simulation.dsol.SimRuntimeException- on exceptionorg.opentrafficsim.base.parameters.ParameterException- on exceptionGtuException- on exceptionProbabilityException- on exception
-