Interface CommunicationModule<TConf extends CommunicationModuleConfiguration>
- All Known Implementing Classes:
AbstractCommunicationModule
,AdHocModule
,CellModule
public interface CommunicationModule<TConf extends CommunicationModuleConfiguration>
-
Method Summary
Modifier and TypeMethodDescriptionvoid
disable()
Resets the communication module configuration (to null) and sends a disabling configure message to the RTI.void
Stores the communication module configuration for enabling and sends configure message to the MOSAIC RTI.boolean
Returns whether module is on or off.sendCam()
sendCam either over adhoc or cellular.void
sendV2xMessage
(V2xMessage msg) Finalize the process of sending a genericV2xMessage
, which has already undergone several checks to be send on the specific interface (ad hoc or cell).
-
Method Details
-
sendV2xMessage
Finalize the process of sending a genericV2xMessage
, which has already undergone several checks to be send on the specific interface (ad hoc or cell).- Parameters:
msg
- V2X message to be sent
-
sendCam
Integer sendCam()sendCam either over adhoc or cellular.- Returns:
- message id of the sent CAM
-
enable
Stores the communication module configuration for enabling and sends configure message to the MOSAIC RTI.- Parameters:
configuration
- communication module configuration
-
disable
void disable()Resets the communication module configuration (to null) and sends a disabling configure message to the RTI. -
isEnabled
boolean isEnabled()Returns whether module is on or off.- Returns:
- whether module is on or off
-