Interface Transceiver
- All Superinterfaces:
Identifiable
- All Known Subinterfaces:
EventTransceiver
public interface Transceiver extends Identifiable
Relay events between IMB domain and OTS domain.
Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Method Summary
Modifier and Type Method Description ConnectorgetConnector()Retrieve the IMB connector.StringgetId()Retrieve the id for the Transceiver channel, e.g.voidhandleMessageFromIMB(String imbEventName, TByteBuffer imbPayload)Handle an IMB message sent to OTS.
-
Method Details
-
getId
String getId()Retrieve the id for the Transceiver channel, e.g. "GTU" or "Simulator Control".- Specified by:
getIdin interfaceIdentifiable- Returns:
- String; the id for the Transceiver channel, e.g. "GTU" or "Simulator Control".
-
getConnector
Connector getConnector()Retrieve the IMB connector.- Returns:
- Connector the IMB connector.
-
handleMessageFromIMB
Handle an IMB message sent to OTS.- Parameters:
imbEventName- String; the IMB event name of the message that was received from IMBimbPayload- TByteBuffer; the packed IMB message payload- Throws:
IMBException- in case the IMB event cannot be handled by this Transceiver
-