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.TemporaryFolderTemporary directory that should be deleted by Junit at end of test. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidvoidCreate one GTU with a really simple path of movement.final Stringfinal InputParameterMapfinal Networkfinal List<StatisticsInterface<Duration>>final Stringfinal OtsSimulatorInterfacevoidsetStreamInformation(StreamInformation streamInformation) voidTest the argument checks of the GTUDumper constructor.voidTest the GTUDumper class.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
constructModelin interfaceDSOLModel<Duration,OtsSimulatorInterface> - Throws:
SimRuntimeException
-
getSimulator
- Specified by:
getSimulatorin interfaceDSOLModel<Duration,OtsSimulatorInterface>
-
getInputParameterMap
- Specified by:
getInputParameterMapin interfaceDSOLModel<Duration,OtsSimulatorInterface>
-
getOutputStatistics
- Specified by:
getOutputStatisticsin interfaceDSOLModel<Duration,OtsSimulatorInterface>
-
getNetwork
- Specified by:
getNetworkin interfaceOtsModelInterface
-
getShortName
- Specified by:
getShortNamein interfaceOtsModelInterface
-
getDescription
- Specified by:
getDescriptionin interfaceOtsModelInterface
-
setStreamInformation
- Specified by:
setStreamInformationin interfaceDSOLModel<Duration,OtsSimulatorInterface>
-
getStreamInformation
- Specified by:
getStreamInformationin 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
-