public class SimulatorTransceiver extends AbstractTransceiver
Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Modifier and Type | Class and Description |
---|---|
(package private) static class |
SimulatorTransceiver.EmptyTransformer
Transform the an event without content to a corresponding IMB message.
|
(package private) static class |
SimulatorTransceiver.SpeedTransformer
Transform the a simulation speed change event to a corresponding IMB message.
Event is sent from OTS to IMB to indicate that the OTS simulation has changed the intended execution speed (there is, however, no guarantee that the simulator is able to reach that particular speed). |
Constructor and Description |
---|
SimulatorTransceiver(org.opentrafficsim.imb.connector.Connector connector,
org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator)
Construct a new SimulatorTransceiver.
|
addIMBtoOTSChannel, addIMBtoOTSChannel, addOTSToIMBChannel, getConnector, getId, getSimulator, handleMessageFromIMB, notify, removeOTSToIMBChannel, toString
addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, removeAllListeners, removeAllListeners, removeListener
public SimulatorTransceiver(org.opentrafficsim.imb.connector.Connector connector, org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator) throws org.opentrafficsim.imb.IMBException
connector
- Connector; the IMB connector through which this transceiver communicatessimulator
- OTSDEVSSimulatorInterface; the simulator to schedule the incoming notifications onorg.opentrafficsim.imb.IMBException
- when the registration of one of the channels failsNullPointerException
- in case one of the arguments is null.Copyright © 2014–2016 Delft University of Technology. All rights reserved.