Interface CommunicationModule<TConf extends CommunicationModuleConfiguration>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void disable()
      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 isEnabled()
      Returns whether module is on or off.
      Integer sendCam()
      sendCam either over adhoc or cellular.
      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).
    • Method Detail

      • 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