#include <ChannelAccess.h>
Inherits BasicModule.
Inherited by BasicSnrEval, and P2PPhyLayer.
Inheritance diagram for ChannelAccess:
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? | |
ChannelControl * | cc |
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) |
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.
|
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. |
|
called by Blackboard to inform of changes Reimplemented from BasicModule. Reimplemented in P2PPhyLayer, SnrEval, and BasicSnrEval. |
|
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. |