CentralizedQProtocolSensor

Description

Functions

getAwaitingPackets

virtual uint32_t getAwaitingPackets() override { return awaitingPackets; };

Gets the number of awaiting packages the sensor has stored

getMaxAwaitingPackets

virtual uint32_t getMaxAwaitingPackets() override { return maxAwaitingPackets; };

hasBeenVisited

virtual bool hasBeenVisited() override { return visited; };

getSensorPosition

virtual double getSensorPosition() override { return sensorPosition; };

cMessage

cMessage *generationTimer = new cMessage();

initialize

virtual void initialize(int stage) override;

OMNET++ methods

finish

virtual void finish() override;

handleMessage

virtual void handleMessage(cMessage *msg) override;

handlePacket

virtual void handlePacket(Packet *pk) override;

Reacts to message received from the communication module and reacts accordingly.