Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | Related Pages

ChannelAccess Class Reference
[channelControl - channel and connection related classesphyLayer - physical layer modulesbasicModules - basic module classes of the MF]

Basic class for all physical layers, please don't touch!! More...

#include <ChannelAccess.h>

Inherits BasicModule.

Inherited by BasicSnrEval, and P2PPhyLayer.

Inheritance diagram for ChannelAccess:

Inheritance graph
[legend]
Collaboration diagram for ChannelAccess:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual void initialize (int stage)
 Register with ChannelControl and subscribe to hostPos.
virtual void receiveBBItem (int category, const BBItem *details, int scopeModuleId)

Protected Member Functions

void sendToChannel (cMessage *msg, double delay)
 Sends a message to all nics connected to this one. Waits delay seconds before sending.

Protected Attributes

bool useSendDirect
 use sendDirect or not?
ChannelControlcc
 Pointer to the ChannelControl module.
bool coreDebug
 debug this core module?
HostMove hostMove
 Last move of this host.
int catHostMove
 category number given by bb for RSSI
bool isRegistered
 Is this module already registered with channelControl?

Private Member Functions

 Module_Class_Members (ChannelAccess, BasicModule, 0)

Detailed Description

Basic class for all physical layers, please don't touch!!

This class is not supposed to work on its own, but it contains functions and lists that cooperate with ChannelControl to handle the dynamically created gates. This means EVERY SnrEval (the lowest layer in a host) has to be derived from this class!!!! And please follow the instructions on how to declare a physical layer in a .ned file in "The Design of a Mobility Framework in OMNeT++" paper.

Please don't touch this class.

Author:
Marc Loebbers


Member Function Documentation

void ChannelAccess::initialize int  stage  )  [virtual]
 

Register with ChannelControl and subscribe to hostPos.

Upon initialization ChannelAccess registers the nic parent module to have all its connections handeled by ChannelControl

Reimplemented from BasicModule.

Reimplemented in GilbertElliotSnr, P2PPhyLayer, SnrEval, SnrEval80211, and BasicSnrEval.

void ChannelAccess::receiveBBItem int  category,
const BBItem details,
int  scopeModuleId
[virtual]
 

called by Blackboard to inform of changes

Reimplemented from BasicModule.

Reimplemented in P2PPhyLayer, SnrEval, and BasicSnrEval.

void ChannelAccess::sendToChannel cMessage *  msg,
double  delay
[protected]
 

Sends a message to all nics connected to this one. Waits delay seconds before sending.

This function has to be called whenever a packet is supposed to be sent to the channel. Don't try to figure out what gates you have and which ones are connected, this function does this for you!

depending on which ChannelControl module is used, the messages are send via sendDirect() or to the respective gates.


The documentation for this class was generated from the following files:
Generated on Fri Jan 12 08:29:50 2007 for Mobility Framework by  doxygen 1.4.4