CommunicationProtocolBase

Description

Functions

initialize

virtual void initialize(int stage) {};

handleMessage

virtual void handleMessage(cMessage *msg);

Redirects message to the proper function

handlePacket

virtual void handlePacket(Packet *pk) {};

Handles package received from communication This packet is a message that was sent to the drone

handleTelemetry

virtual void handleTelemetry(Telemetry *telemetry) {};

Handles telemetry received from mobility The mobility module exchanges mobility information in the form of telemetry

sendCommand

virtual void sendCommand(MobilityCommand *order, int gateIndex = -1);

Sends command to mobility gate. A gate index of -1 broadcasts message to all gates.

sendCommand

virtual void sendCommand(PythonMobilityCommand *order, int gateIndex = -1);

Sends command to mobility gate. A gate index of -1 broadcasts message to all gates.

sendCommand

virtual void sendCommand(CommunicationCommand *order, int gateIndex = -1);

Sends command to communication gate. A gate index of -1 broadcasts message to all gates.

initiateTimeout

virtual void initiateTimeout(simtime_t duration);

Sets a timeout

isTimedout

virtual bool isTimedout();

Checks if the module is timed out