Class EventMultiplexer
java.lang.Object
org.djutils.event.LocalEventProducer
org.opentrafficsim.sim0mq.publisher.EventMultiplexer
- All Implemented Interfaces:
Serializable
,Remote
,EventListener
,org.djutils.event.EventListener
,org.djutils.event.EventProducer
class EventMultiplexer
extends org.djutils.event.LocalEventProducer
implements org.djutils.event.EventListener
Create a subscription to SimulatorInterface.START_EVENT and SimulatorInterface.STOP_EVENT and emit a SIMULATOR_STATE_CHANGED
event for each.
-
Field Summary
Fields inherited from interface org.djutils.event.EventProducer
FIRST_POSITION, LAST_POSITION
-
Constructor Summary
ConstructorDescriptionEventMultiplexer
(org.opentrafficsim.core.dsol.OtsSimulatorInterface simulator) -
Method Summary
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
-
Constructor Details
-
EventMultiplexer
EventMultiplexer(org.opentrafficsim.core.dsol.OtsSimulatorInterface simulator) throws RemoteException - Parameters:
simulator
- OtsSimulatorInterface; the simulator- Throws:
RemoteException
- on network error
-
-
Method Details
-
notify
- Specified by:
notify
in interfaceorg.djutils.event.EventListener
- Throws:
RemoteException
-