#include <phyPER.h>
Inherits BaseModule.

Public Member Functions | |
| virtual void | receiveBBItem (int category, const BBItem *details, int scopeModuleId) |
| Called by the Blackboard whenever a change occurs we're interested in. | |
Protected Member Functions | |
| virtual void | initialize (int stage) |
| Basic initialization for all modules. | |
| virtual void | handleMessage (cMessage *msg) |
Protected Attributes | |
| int | catPacket |
| int | catUWBIRPacket |
| long | nbSyncAttempts |
| long | nbSyncSuccesses |
| long | nbRx |
| long | nbRxnoRS |
| Packet | packet |
| UWBIRPacket | uwbirpacket |
| cOutVector | maiPER |
| cOutVector | maiPERnoRS |
TODO - Generated class
Definition at line 30 of file phyPER.h.
| void phyPER::initialize | ( | int | stage | ) | [protected, virtual] |
Basic initialization for all modules.
Subscription to Blackboard should be in stage==0, and firing notifications in stage==1 or later.
NOTE: You have to call this in the initialize() function of the inherited class!
Reimplemented from BaseModule.
Definition at line 22 of file phyPER.cc.
References Blackboard::subscribe(), and BaseModule::utility.
{
BaseModule::initialize(stage);
if(stage == 0) {
catPacket = utility->subscribe(this, &packet, -1);
catUWBIRPacket = utility->subscribe(this, &uwbirpacket, -1);
maiPER.setName("maiPER");
maiPERnoRS.setName("maiPERnoRS");
nbSyncAttempts = 0;
nbSyncSuccesses = 0;
nbRx = 0;
nbRxnoRS = 0;
}
}
1.7.1