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

public class GtuDumperTest extends Object implements 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 Details

    • GtuDumperTest

      public GtuDumperTest()
  • Method Details

    • testGTUDumper

      @Test public void testGTUDumper() throws nl.tudelft.simulation.dsol.SimRuntimeException, NamingException, InterruptedException, IOException
      Test the GTUDumper class.
      Throws:
      NamingException - when that happens uncaught; this test has failed
      nl.tudelft.simulation.dsol.SimRuntimeException - when that happens uncaught; this test has failed
      InterruptedException - when that happens uncaught; this test has failed
      IOException - when that happens uncaught; this test has failed
    • createGtuDeprecated

      public void createGtuDeprecated()
      Create one GTU with a really simple path of movement.
    • constructModel

      public final void constructModel() throws nl.tudelft.simulation.dsol.SimRuntimeException
      Specified by:
      constructModel in interface nl.tudelft.simulation.dsol.model.DsolModel<org.djunits.value.vdouble.scalar.Duration,OtsSimulatorInterface>
      Throws:
      nl.tudelft.simulation.dsol.SimRuntimeException
    • getSimulator

      public final OtsSimulatorInterface getSimulator()
      Specified by:
      getSimulator in interface nl.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:
      getInputParameterMap in interface nl.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:
      getOutputStatistics in interface nl.tudelft.simulation.dsol.model.DsolModel<org.djunits.value.vdouble.scalar.Duration,OtsSimulatorInterface>
    • getNetwork

      public final Network getNetwork()
      Specified by:
      getNetwork in interface OtsModelInterface
    • getShortName

      public final String getShortName()
      Specified by:
      getShortName in interface OtsModelInterface
    • getDescription

      public final String getDescription()
      Specified by:
      getDescription in interface OtsModelInterface
    • setStreamInformation

      public void setStreamInformation(nl.tudelft.simulation.dsol.experiment.StreamInformation streamInformation)
      Specified by:
      setStreamInformation in interface nl.tudelft.simulation.dsol.model.DsolModel<org.djunits.value.vdouble.scalar.Duration,OtsSimulatorInterface>
    • getStreamInformation

      public nl.tudelft.simulation.dsol.experiment.StreamInformation getStreamInformation()
      Specified by:
      getStreamInformation in interface nl.tudelft.simulation.dsol.model.DsolModel<org.djunits.value.vdouble.scalar.Duration,OtsSimulatorInterface>
    • testArgumentChecks

      @Test public void testArgumentChecks() throws nl.tudelft.simulation.dsol.SimRuntimeException, IOException, NamingException
      Test the argument checks of the GTUDumper constructor.
      Throws:
      NamingException - when that happens uncaught; this test has failed
      nl.tudelft.simulation.dsol.SimRuntimeException - when that happens uncaught; this test has failed
      IOException - when that happens uncaught; this test has failed