Class PublisherTest.TestModel

java.lang.Object
org.djutils.event.LocalEventProducer
nl.tudelft.simulation.dsol.model.AbstractDsolModel<org.djunits.value.vdouble.scalar.Duration,org.opentrafficsim.core.dsol.OtsSimulatorInterface>
org.opentrafficsim.core.dsol.AbstractOtsModel
org.opentrafficsim.sim0mq.publisher.PublisherTest.TestModel
All Implemented Interfaces:
Serializable, Remote, EventListener, nl.tudelft.simulation.dsol.model.DsolModel<org.djunits.value.vdouble.scalar.Duration,org.opentrafficsim.core.dsol.OtsSimulatorInterface>, org.djutils.event.EventListener, org.djutils.event.EventProducer, org.opentrafficsim.core.dsol.OtsModelInterface
Enclosing class:
PublisherTest

class PublisherTest.TestModel extends org.opentrafficsim.core.dsol.AbstractOtsModel implements org.djutils.event.EventListener
The Model.
  • Field Summary

    Fields inherited from class nl.tudelft.simulation.dsol.model.AbstractDsolModel

    inputParameterMap, outputStatistics, simulator, streamInformation

    Fields inherited from interface org.djutils.event.EventProducer

    FIRST_POSITION, LAST_POSITION
  • Constructor Summary

    Constructors
    Constructor
    Description
    TestModel(org.opentrafficsim.core.dsol.OtsSimulatorInterface simulator, String shortName, String description, String xml)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    org.opentrafficsim.core.network.Network
    nl.tudelft.simulation.dsol.experiment.StreamInformation
    void
    notify(org.djutils.event.Event event)
    void
    setStreamInformation(nl.tudelft.simulation.dsol.experiment.StreamInformation streamInformation)

    Methods inherited from class org.opentrafficsim.core.dsol.AbstractOtsModel

    getDescription, getShortName, setDescription, setInitialStreams, setShortName

    Methods inherited from class nl.tudelft.simulation.dsol.model.AbstractDsolModel

    addInputParameter, getInputParameter, getInputParameterMap, getOutputStatistics, getSimulator

    Methods inherited from class org.djutils.event.LocalEventProducer

    addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireUnverifiedEvent, fireUnverifiedEvent, fireUnverifiedTimedEvent, fireUnverifiedTimedEvent, getEventListenerMap, getEventTypesWithListeners, getListenerReferences, hasListeners, numberOfListeners, removeAllListeners, removeAllListeners, removeListener

    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, getInputParameterMap, getOutputStatistics, getSimulator, getStream, getStreams, resetStreams
  • Constructor Details

    • TestModel

      TestModel(org.opentrafficsim.core.dsol.OtsSimulatorInterface simulator, String shortName, String description, String xml)
      Parameters:
      simulator - OtsSimulatorInterface; the simulator
      shortName - String; the model name
      description - String; the model description
      xml - String; the XML description of the simulation model
  • Method Details

    • notify

      public void notify(org.djutils.event.Event event) throws RemoteException
      Specified by:
      notify in interface org.djutils.event.EventListener
      Throws:
      RemoteException
    • constructModel

      public 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,org.opentrafficsim.core.dsol.OtsSimulatorInterface>
      Throws:
      nl.tudelft.simulation.dsol.SimRuntimeException
    • getNetwork

      public org.opentrafficsim.core.network.Network getNetwork()
      Specified by:
      getNetwork in interface org.opentrafficsim.core.dsol.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,org.opentrafficsim.core.dsol.OtsSimulatorInterface>
      Overrides:
      setStreamInformation in class nl.tudelft.simulation.dsol.model.AbstractDsolModel<org.djunits.value.vdouble.scalar.Duration,org.opentrafficsim.core.dsol.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,org.opentrafficsim.core.dsol.OtsSimulatorInterface>
      Overrides:
      getStreamInformation in class nl.tudelft.simulation.dsol.model.AbstractDsolModel<org.djunits.value.vdouble.scalar.Duration,org.opentrafficsim.core.dsol.OtsSimulatorInterface>