Public Member Functions | Protected Member Functions | Protected Attributes

phyPER Class Reference

#include <phyPER.h>

Inherits BaseModule.

Collaboration diagram for phyPER:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

TODO - Generated class

Definition at line 30 of file phyPER.h.


Member Function Documentation

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;
  }
}


The documentation for this class was generated from the following files: