Package org.opentrafficsim.core.gtu
Class GTUDumperTest
- java.lang.Object
-
- org.opentrafficsim.core.gtu.GTUDumperTest
-
- All Implemented Interfaces:
Serializable,DSOLModel<Time,Duration,SimTimeDoubleUnit,OTSSimulatorInterface>,DSOLModel.TimeDoubleUnit<OTSSimulatorInterface>,OTSModelInterface
public class GTUDumperTest extends Object implements OTSModelInterface
Test the GTUDumper class.Copyright (c) 2013-2022 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version Feb 11 2020
- Author:
- Peter Knoppers
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface nl.tudelft.simulation.dsol.model.DSOLModel
DSOLModel.TimeDouble<S extends SimulatorInterface<Double,Double,SimTimeDouble>>, DSOLModel.TimeDoubleUnit<S extends SimulatorInterface<Time,Duration,SimTimeDoubleUnit>>, DSOLModel.TimeFloat<S extends SimulatorInterface<Float,Float,SimTimeFloat>>, DSOLModel.TimeFloatUnit<S extends SimulatorInterface<FloatTime,FloatDuration,SimTimeFloatUnit>>, DSOLModel.TimeLong<S extends SimulatorInterface<Long,Long,SimTimeLong>>
-
-
Field Summary
Fields Modifier and Type Field Description TemporaryFoldertestDirTemporary directory that should be deleted by Junit at end of test.
-
Constructor Summary
Constructors Constructor Description GTUDumperTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconstructModel()voidcreateGTU()Create one GTU with a really simple path of movement.StringgetDescription()InputParameterMapgetInputParameterMap()OTSNetworkgetNetwork()List<StatisticsInterface<Time,Duration,SimTimeDoubleUnit>>getOutputStatistics()StringgetShortName()OTSSimulatorInterfacegetSimulator()StreamInformationgetStreamInformation()voidsetStreamInformation(StreamInformation streamInformation)voidtestArgumentChecks()Test the argument checks of the GTUDumper constructor.voidtestGTUDumper()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 Detail
-
testDir
public TemporaryFolder testDir
Temporary directory that should be deleted by Junit at end of test.
-
-
Method Detail
-
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
-
createGTU
public void createGTU()
Create one GTU with a really simple path of movement.
-
constructModel
public final void constructModel() throws SimRuntimeException- Specified by:
constructModelin interfaceDSOLModel<Time,Duration,SimTimeDoubleUnit,OTSSimulatorInterface>- Throws:
SimRuntimeException
-
getSimulator
public final OTSSimulatorInterface getSimulator()
- Specified by:
getSimulatorin interfaceDSOLModel<Time,Duration,SimTimeDoubleUnit,OTSSimulatorInterface>
-
getInputParameterMap
public final InputParameterMap getInputParameterMap()
- Specified by:
getInputParameterMapin interfaceDSOLModel<Time,Duration,SimTimeDoubleUnit,OTSSimulatorInterface>
-
getOutputStatistics
public final List<StatisticsInterface<Time,Duration,SimTimeDoubleUnit>> getOutputStatistics()
- Specified by:
getOutputStatisticsin interfaceDSOLModel<Time,Duration,SimTimeDoubleUnit,OTSSimulatorInterface>
-
getNetwork
public final OTSNetwork getNetwork()
- Specified by:
getNetworkin interfaceOTSModelInterface
-
getShortName
public final String getShortName()
- Specified by:
getShortNamein interfaceOTSModelInterface
-
getDescription
public final String getDescription()
- Specified by:
getDescriptionin interfaceOTSModelInterface
-
setStreamInformation
public void setStreamInformation(StreamInformation streamInformation)
- Specified by:
setStreamInformationin interfaceDSOLModel<Time,Duration,SimTimeDoubleUnit,OTSSimulatorInterface>
-
getStreamInformation
public StreamInformation getStreamInformation()
- Specified by:
getStreamInformationin interfaceDSOLModel<Time,Duration,SimTimeDoubleUnit,OTSSimulatorInterface>
-
testArgumentChecks
public void testArgumentChecks() throws SimRuntimeException, IOException, NamingExceptionTest 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
-
-