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.
$LastChangedDate: 2015-07-24 02:58:59 +0200 (Fri, 24 Jul 2015) $, @version $Revision: 1147 $, by $Author: averbraeck $, initial version Oct 18, 2016
BSD-style license. See OpenTrafficSim License.- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConnectorgetConnector()Retrieve the IMB connector.java.lang.StringgetId()Retrieve the id for the Transceiver channel, e.g.voidhandleMessageFromIMB(java.lang.String imbEventName, TByteBuffer imbPayload)Handle an IMB message sent to OTS.
-
-
-
Method Detail
-
getId
java.lang.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
void handleMessageFromIMB(java.lang.String imbEventName, TByteBuffer imbPayload) throws IMBExceptionHandle 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
-
-