Class TrafCodDemo2.TrafCodModel
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.demo.trafficcontrol.TrafCodDemo2.TrafCodModel
- 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:
- TrafCodDemo2
public static class TrafCodDemo2.TrafCodModel
extends org.opentrafficsim.core.dsol.AbstractOtsModel
implements org.djutils.event.EventListener
The simulation model.
- See Also:
-
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
ConstructorDescriptionTrafCodModel
(org.opentrafficsim.core.dsol.OtsSimulatorInterface simulator, String shortName, String description, String xml) -
Method Summary
Modifier and TypeMethodDescriptionvoid
final RoadNetwork
void
notify
(org.djutils.event.Event event) toString()
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, getStreamInformation, setStreamInformation
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, wait, wait, wait
Methods inherited from interface nl.tudelft.simulation.dsol.model.DsolModel
getDefaultStream, getInputParameterMap, getOutputStatistics, getSimulator, getStream, getStreamInformation, getStreams, resetStreams, setStreamInformation
-
Constructor Details
-
TrafCodModel
public TrafCodModel(org.opentrafficsim.core.dsol.OtsSimulatorInterface simulator, String shortName, String description, String xml) - Parameters:
simulator
- OtsSimulatorInterface; the simulatorshortName
- String; name of the modeldescription
- String; description of the modelxml
- String; the XML string
-
-
Method Details
-
constructModel
public void constructModel() throws nl.tudelft.simulation.dsol.SimRuntimeException- Specified by:
constructModel
in interfacenl.tudelft.simulation.dsol.model.DsolModel<org.djunits.value.vdouble.scalar.Duration,
org.opentrafficsim.core.dsol.OtsSimulatorInterface> - Throws:
nl.tudelft.simulation.dsol.SimRuntimeException
-
getNetwork
- Specified by:
getNetwork
in interfaceorg.opentrafficsim.core.dsol.OtsModelInterface
-
notify
- Specified by:
notify
in interfaceorg.djutils.event.EventListener
- Throws:
RemoteException
-
toString
-