Package org.opentrafficsim.core.gtu
Class GtuDumperTest
java.lang.Object
org.opentrafficsim.core.gtu.GtuDumperTest
- All Implemented Interfaces:
Serializable
,DSOLModel<Duration,
,OtsSimulatorInterface> OtsModelInterface
Test the GTUDumper class.
Copyright (c) 2013-2023 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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionorg.junit.rules.TemporaryFolder
Temporary directory that should be deleted by Junit at end of test. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal void
void
Create one GTU with a really simple path of movement.final String
final InputParameterMap
final Network
final List<StatisticsInterface<Duration>>
final String
final OtsSimulatorInterface
void
setStreamInformation
(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
-
Field Details
-
testDir
public org.junit.rules.TemporaryFolder testDirTemporary directory that should be deleted by Junit at end of test.
-
-
Constructor Details
-
GtuDumperTest
public GtuDumperTest()
-
-
Method Details
-
testGTUDumper
public void testGTUDumper() throws SimRuntimeException, NamingException, InterruptedException, IOExceptionTest the GTUDumper class.- Throws:
NamingException
- when that happens uncaught; this test has failedSimRuntimeException
- 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
- Specified by:
constructModel
in interfaceDSOLModel<Duration,
OtsSimulatorInterface> - Throws:
SimRuntimeException
-
getSimulator
- Specified by:
getSimulator
in interfaceDSOLModel<Duration,
OtsSimulatorInterface>
-
getInputParameterMap
- Specified by:
getInputParameterMap
in interfaceDSOLModel<Duration,
OtsSimulatorInterface>
-
getOutputStatistics
- Specified by:
getOutputStatistics
in interfaceDSOLModel<Duration,
OtsSimulatorInterface>
-
getNetwork
- Specified by:
getNetwork
in interfaceOtsModelInterface
-
getShortName
- Specified by:
getShortName
in interfaceOtsModelInterface
-
getDescription
- Specified by:
getDescription
in interfaceOtsModelInterface
-
setStreamInformation
- Specified by:
setStreamInformation
in interfaceDSOLModel<Duration,
OtsSimulatorInterface>
-
getStreamInformation
- Specified by:
getStreamInformation
in interfaceDSOLModel<Duration,
OtsSimulatorInterface>
-
testArgumentChecks
Test the argument checks of the GTUDumper constructor.- Throws:
NamingException
- when that happens uncaught; this test has failedSimRuntimeException
- when that happens uncaught; this test has failedIOException
- when that happens uncaught; this test has failed
-