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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidvoidCreate one GTU with a really simple path of movement.final Stringfinal nl.tudelft.simulation.dsol.model.inputparameters.InputParameterMapfinal Networkfinal List<nl.tudelft.simulation.dsol.statistics.SimulationStatistic<org.djunits.value.vdouble.scalar.Duration>>final Stringfinal OtsSimulatorInterfacenl.tudelft.simulation.dsol.experiment.StreamInformationvoidsetStreamInformation(nl.tudelft.simulation.dsol.experiment.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
-
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
-
createGtu
public void createGtu()Create one GTU with a really simple path of movement. -
constructModel
public final void constructModel() throws nl.tudelft.simulation.dsol.SimRuntimeException- Specified by:
constructModelin interfacenl.tudelft.simulation.dsol.model.DsolModel<org.djunits.value.vdouble.scalar.Duration,OtsSimulatorInterface> - Throws:
nl.tudelft.simulation.dsol.SimRuntimeException
-
getSimulator
- Specified by:
getSimulatorin 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:
getInputParameterMapin 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:
getOutputStatisticsin interfacenl.tudelft.simulation.dsol.model.DsolModel<org.djunits.value.vdouble.scalar.Duration,OtsSimulatorInterface>
-
getNetwork
- Specified by:
getNetworkin interfaceOtsModelInterface
-
getShortName
- Specified by:
getShortNamein interfaceOtsModelInterface
-
getDescription
- Specified by:
getDescriptionin interfaceOtsModelInterface
-
setStreamInformation
public void setStreamInformation(nl.tudelft.simulation.dsol.experiment.StreamInformation streamInformation) - Specified by:
setStreamInformationin interfacenl.tudelft.simulation.dsol.model.DsolModel<org.djunits.value.vdouble.scalar.Duration,OtsSimulatorInterface>
-
getStreamInformation
public nl.tudelft.simulation.dsol.experiment.StreamInformation getStreamInformation()- Specified by:
getStreamInformationin 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
-