Package org.opentrafficsim.core.gtu
Class GtuDumperTest
java.lang.Object
org.opentrafficsim.core.gtu.GtuDumperTest
- All Implemented Interfaces:
Serializable
,nl.tudelft.simulation.dsol.model.DsolModel<org.djunits.value.vdouble.scalar.Duration,
,OtsSimulatorInterface> OtsModelInterface
Test the GTUDumper class.
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:
- Peter Knoppers
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
void
Create one GTU with a really simple path of movement.final String
final nl.tudelft.simulation.dsol.model.inputparameters.InputParameterMap
final Network
final List<nl.tudelft.simulation.dsol.statistics.SimulationStatistic<org.djunits.value.vdouble.scalar.Duration>>
final String
final OtsSimulatorInterface
nl.tudelft.simulation.dsol.experiment.StreamInformation
void
setStreamInformation
(nl.tudelft.simulation.dsol.experiment.StreamInformation streamInformation) void
Test the argument checks of the GTUDumper constructor.void
Test the GTUDumper class.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface nl.tudelft.simulation.dsol.model.DsolModel
getDefaultStream, getStream, getStreams, resetStreams
-
Constructor Details
-
GtuDumperTest
public GtuDumperTest()
-
-
Method Details
-
testGTUDumper
@Test public void testGTUDumper() throws nl.tudelft.simulation.dsol.SimRuntimeException, NamingException, InterruptedException, IOExceptionTest the GTUDumper class.- Throws:
NamingException
- when that happens uncaught; this test has failednl.tudelft.simulation.dsol.SimRuntimeException
- when that happens uncaught; this test has failedInterruptedException
- when that happens uncaught; this test has failedIOException
- when that happens uncaught; this test has failed
-
createGtuDeprecated
public void createGtuDeprecated()Create one GTU with a really simple path of movement. -
constructModel
public final void constructModel() throws nl.tudelft.simulation.dsol.SimRuntimeException- Specified by:
constructModel
in interfacenl.tudelft.simulation.dsol.model.DsolModel<org.djunits.value.vdouble.scalar.Duration,
OtsSimulatorInterface> - Throws:
nl.tudelft.simulation.dsol.SimRuntimeException
-
getSimulator
- Specified by:
getSimulator
in interfacenl.tudelft.simulation.dsol.model.DsolModel<org.djunits.value.vdouble.scalar.Duration,
OtsSimulatorInterface>
-
getInputParameterMap
public final nl.tudelft.simulation.dsol.model.inputparameters.InputParameterMap getInputParameterMap()- Specified by:
getInputParameterMap
in interfacenl.tudelft.simulation.dsol.model.DsolModel<org.djunits.value.vdouble.scalar.Duration,
OtsSimulatorInterface>
-
getOutputStatistics
public final List<nl.tudelft.simulation.dsol.statistics.SimulationStatistic<org.djunits.value.vdouble.scalar.Duration>> getOutputStatistics()- Specified by:
getOutputStatistics
in interfacenl.tudelft.simulation.dsol.model.DsolModel<org.djunits.value.vdouble.scalar.Duration,
OtsSimulatorInterface>
-
getNetwork
- Specified by:
getNetwork
in interfaceOtsModelInterface
-
getShortName
- Specified by:
getShortName
in interfaceOtsModelInterface
-
getDescription
- Specified by:
getDescription
in interfaceOtsModelInterface
-
setStreamInformation
public void setStreamInformation(nl.tudelft.simulation.dsol.experiment.StreamInformation streamInformation) - Specified by:
setStreamInformation
in interfacenl.tudelft.simulation.dsol.model.DsolModel<org.djunits.value.vdouble.scalar.Duration,
OtsSimulatorInterface>
-
getStreamInformation
public nl.tudelft.simulation.dsol.experiment.StreamInformation getStreamInformation()- Specified by:
getStreamInformation
in interfacenl.tudelft.simulation.dsol.model.DsolModel<org.djunits.value.vdouble.scalar.Duration,
OtsSimulatorInterface>
-
testArgumentChecks
@Test public void testArgumentChecks() throws nl.tudelft.simulation.dsol.SimRuntimeException, IOException, NamingExceptionTest the argument checks of the GTUDumper constructor.- Throws:
NamingException
- when that happens uncaught; this test has failednl.tudelft.simulation.dsol.SimRuntimeException
- when that happens uncaught; this test has failedIOException
- when that happens uncaught; this test has failed
-