Package org.opentrafficsim.core.gtu
Class GtuDumperTest
java.lang.Object
org.opentrafficsim.core.gtu.GtuDumperTest
- All Implemented Interfaces:
DsolModel<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
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidCreate one GTU with a really simple path of movement.voidvoidsetInputParameterMap(InputParameterMap inputParameterMap) voidsetResetApplicationExecutable(Runnable resetApplicationExecutable) voidsetStreamInformation(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, getInputParameterBoolean, getInputParameterDouble, getInputParameterDoubleScalar, getInputParameterFloat, getInputParameterFloatScalar, getInputParameterInteger, getInputParameterLocalDateTime, getInputParameterLong, getInputParameterString, getInputParameterUnit, getStream, getStreams, resetStreams
-
Method Details
-
testGTUDumper
@Test 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
-
createGtu
public void createGtu()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>
-
setResetApplicationExecutable
- Specified by:
setResetApplicationExecutablein interfaceDsolModel<Duration,OtsSimulatorInterface>
-
getResetApplicationExecutable
- Specified by:
getResetApplicationExecutablein interfaceDsolModel<Duration,OtsSimulatorInterface>
-
resetApplication
public void resetApplication()- Specified by:
resetApplicationin interfaceDsolModel<Duration,OtsSimulatorInterface>
-
setInputParameterMap
- Specified by:
setInputParameterMapin 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
-