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-2020 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.CalendarDouble<S extends SimulatorInterface.CalendarDouble>, DSOLModel.CalendarFloat<S extends SimulatorInterface.CalendarFloat>, DSOLModel.CalendarLong<S extends SimulatorInterface.CalendarLong>, DSOLModel.TimeDouble<S extends SimulatorInterface.TimeDouble>, DSOLModel.TimeDoubleUnit<S extends SimulatorInterface.TimeDoubleUnit>, DSOLModel.TimeFloat<S extends SimulatorInterface.TimeFloat>, DSOLModel.TimeFloatUnit<S extends SimulatorInterface.TimeFloatUnit>, DSOLModel.TimeLong<S extends SimulatorInterface.TimeLong>
-
-
Field Summary
Fields Modifier and Type Field Description TemporaryFolder
testDir
Temporary 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 void
constructModel()
void
createGTU()
Create one GTU with a really simple path of movement.String
getDescription()
InputParameterMap
getInputParameterMap()
OTSNetwork
getNetwork()
List<OutputStatistic<?>>
getOutputStatistics()
String
getShortName()
OTSSimulatorInterface
getSimulator()
void
testArgumentChecks()
Test the argument checks of the GTUDumper constructor.void
testGTUDumper()
Test the GTUDumper class.
-
-
-
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, IOException
Test 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:
constructModel
in interfaceDSOLModel<Time,Duration,SimTimeDoubleUnit,OTSSimulatorInterface>
- Throws:
SimRuntimeException
-
getSimulator
public final OTSSimulatorInterface getSimulator()
- Specified by:
getSimulator
in interfaceDSOLModel<Time,Duration,SimTimeDoubleUnit,OTSSimulatorInterface>
-
getInputParameterMap
public final InputParameterMap getInputParameterMap()
- Specified by:
getInputParameterMap
in interfaceDSOLModel<Time,Duration,SimTimeDoubleUnit,OTSSimulatorInterface>
-
getOutputStatistics
public final List<OutputStatistic<?>> getOutputStatistics()
- Specified by:
getOutputStatistics
in interfaceDSOLModel<Time,Duration,SimTimeDoubleUnit,OTSSimulatorInterface>
-
getNetwork
public final OTSNetwork getNetwork()
- Specified by:
getNetwork
in interfaceOTSModelInterface
-
getShortName
public final String getShortName()
- Specified by:
getShortName
in interfaceOTSModelInterface
-
getDescription
public final String getDescription()
- Specified by:
getDescription
in interfaceOTSModelInterface
-
testArgumentChecks
public void testArgumentChecks() throws SimRuntimeException, IOException, NamingException
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
-
-