All Known Implementing Classes:
AbstractCommunicationModule, AdHocModule, CellModule

public interface CommunicationModule<TConf extends CommunicationModuleConfiguration>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Resets the communication module configuration (to null) and sends a disabling configure message to the RTI.
    void
    enable(TConf configuration)
    Stores the communication module configuration for enabling and sends configure message to the MOSAIC RTI.
    boolean
    Returns whether module is on or off.
    sendCam either over adhoc or cellular.
    void
    Finalize the process of sending a generic V2xMessage, which has already undergone several checks to be send on the specific interface (ad hoc or cell).
  • Method Details

    • sendV2xMessage

      void sendV2xMessage(V2xMessage msg)
      Finalize the process of sending a generic V2xMessage, 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

      void enable(TConf configuration)
      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