Package org.opentrafficsim.core.gtu
Class GTUDumperTest
- java.lang.Object
-
- org.opentrafficsim.core.gtu.GTUDumperTest
-
- All Implemented Interfaces:
java.io.Serializable,DSOLModel<Time,Duration,SimTimeDoubleUnit,OTSSimulatorInterface>,DSOLModel.TimeDoubleUnit<OTSSimulatorInterface>,OTSModelInterface
public class GTUDumperTest extends java.lang.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 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.java.lang.StringgetDescription()InputParameterMapgetInputParameterMap()OTSNetworkgetNetwork()java.util.List<OutputStatistic<?>>getOutputStatistics()java.lang.StringgetShortName()OTSSimulatorInterfacegetSimulator()voidtestArgumentChecks()Test the argument checks of the GTUDumper constructor.voidtestGTUDumper()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, javax.naming.NamingException, java.lang.InterruptedException, java.io.IOExceptionTest the GTUDumper class.- Throws:
javax.naming.NamingException- when that happens uncaught; this test has failedSimRuntimeException- when that happens uncaught; this test has failedjava.lang.InterruptedException- when that happens uncaught; this test has failedjava.io.IOException- 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 java.util.List<OutputStatistic<?>> getOutputStatistics()
- Specified by:
getOutputStatisticsin interfaceDSOLModel<Time,Duration,SimTimeDoubleUnit,OTSSimulatorInterface>
-
getNetwork
public final OTSNetwork getNetwork()
- Specified by:
getNetworkin interfaceOTSModelInterface
-
getShortName
public final java.lang.String getShortName()
- Specified by:
getShortNamein interfaceOTSModelInterface
-
getDescription
public final java.lang.String getDescription()
- Specified by:
getDescriptionin interfaceOTSModelInterface
-
testArgumentChecks
public void testArgumentChecks() throws SimRuntimeException, java.io.IOException, javax.naming.NamingExceptionTest the argument checks of the GTUDumper constructor.- Throws:
javax.naming.NamingException- when that happens uncaught; this test has failedSimRuntimeException- when that happens uncaught; this test has failedjava.io.IOException- when that happens uncaught; this test has failed
-
-