Class TrafCODDemo2.TrafCODModel
java.lang.Object
nl.tudelft.simulation.event.EventProducer
nl.tudelft.simulation.dsol.model.AbstractDSOLModel<Time,Duration,SimTimeDoubleUnit,S>
nl.tudelft.simulation.dsol.model.AbstractDSOLModel.TimeDoubleUnit<OTSSimulatorInterface>
org.opentrafficsim.core.dsol.AbstractOTSModel
org.opentrafficsim.demo.trafficcontrol.TrafCODDemo2.TrafCODModel
- All Implemented Interfaces:
java.io.Serializable
,java.util.EventListener
,DSOLModel<Time,Duration,SimTimeDoubleUnit,OTSSimulatorInterface>
,DSOLModel.TimeDoubleUnit<OTSSimulatorInterface>
,nl.tudelft.simulation.event.EventListenerInterface
,nl.tudelft.simulation.event.EventProducerInterface
,OTSModelInterface
- Enclosing class:
- TrafCODDemo2
public static class TrafCODDemo2.TrafCODModel extends AbstractOTSModel implements nl.tudelft.simulation.event.EventListenerInterface
The simulation model.
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class nl.tudelft.simulation.dsol.model.AbstractDSOLModel
AbstractDSOLModel.CalendarDouble<S extends SimulatorInterface.CalendarDouble>, AbstractDSOLModel.CalendarFloat<S extends SimulatorInterface.CalendarFloat>, AbstractDSOLModel.CalendarLong<S extends SimulatorInterface.CalendarLong>, AbstractDSOLModel.TimeDouble<S extends SimulatorInterface.TimeDouble>, AbstractDSOLModel.TimeDoubleUnit<S extends SimulatorInterface.TimeDoubleUnit>, AbstractDSOLModel.TimeFloat<S extends SimulatorInterface.TimeFloat>, AbstractDSOLModel.TimeFloatUnit<S extends SimulatorInterface.TimeFloatUnit>, AbstractDSOLModel.TimeLong<S extends SimulatorInterface.TimeLong>
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 inherited from class nl.tudelft.simulation.dsol.model.AbstractDSOLModel
inputParameterMap, outputStatistics, simulator
-
Constructor Summary
Constructors Constructor Description TrafCODModel(OTSSimulatorInterface simulator, java.lang.String shortName, java.lang.String description, java.lang.String xml)
-
Method Summary
Modifier and Type Method Description void
constructModel()
javax.swing.JPanel
getControllerDisplayPanel()
OTSRoadNetwork
getNetwork()
TrafCOD
getTrafCOD()
void
notify(nl.tudelft.simulation.event.EventInterface event)
Methods inherited from class org.opentrafficsim.core.dsol.AbstractOTSModel
getDescription, getShortName, setDescription, setShortName
Methods inherited from class nl.tudelft.simulation.dsol.model.AbstractDSOLModel
addInputParameter, getInputParameter, getInputParameterMap, getOutputStatistics, getSimulator
Methods inherited from class nl.tudelft.simulation.event.EventProducer
addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, 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
getInputParameterMap, getOutputStatistics, getSimulator
-
Constructor Details
-
TrafCODModel
public TrafCODModel(OTSSimulatorInterface simulator, java.lang.String shortName, java.lang.String description, java.lang.String xml)- Parameters:
simulator
- OTSSimulatorInterface; the simulatorshortName
- String; name of the modeldescription
- String; description of the modelxml
- String; the XML string
-
-
Method Details
-
constructModel
- Specified by:
constructModel
in interfaceDSOLModel<Time,Duration,SimTimeDoubleUnit,OTSSimulatorInterface>
- Throws:
SimRuntimeException
-
getNetwork
- Specified by:
getNetwork
in interfaceOTSModelInterface
-
getTrafCOD
- Returns:
- trafCOD
-
getControllerDisplayPanel
public final javax.swing.JPanel getControllerDisplayPanel()- Returns:
- controllerDisplayPanel
-
notify
public void notify(nl.tudelft.simulation.event.EventInterface event) throws java.rmi.RemoteException- Specified by:
notify
in interfacenl.tudelft.simulation.event.EventListenerInterface
- Throws:
java.rmi.RemoteException
-