WirelessChModule Class Reference

Inheritance diagram for WirelessChModule:

Inheritance graph
[legend]
Collaboration diagram for WirelessChModule:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 WirelessChModule ()
virtual ~WirelessChModule ()
virtual void recv (Packet *p, ChSAP *chsap)
virtual int command (int argc, const char *const *argv)

Protected Member Functions

double getPropDelay (Position *source, Position *dest)
int * getInfluencedNodes (Position *p, double radius, int *numInfluencedNodes)
void sortChSAPList ()
void sendUpPhy (Packet *p, ChSAP *chsap)

Private Attributes

bool sorted_
double CSThresh_
double freq_
double L_
double lambda_

Detailed Description

Definition at line 40 of file wirelessch-module.h.


Member Function Documentation

void WirelessChModule::recv ( Packet *  p,
ChSAP chsap 
) [virtual]

Abstract method used to receive packet from the module of the above layer, it gives also knowledges about the source through the instance of ChSAP which connected them

Parameters:
p pointer to the packet will be received
chsap pointer of the instance which connects the ChannelModule with the source Module
See also:
ChSAP, Module

Implements ChannelModule.

Definition at line 217 of file wirelessch-module.cc.

References sendUpPhy().

Here is the call graph for this function:

int WirelessChModule::command ( int  argc,
const char *const *  argv 
) [virtual]

TCL command interpreter. It implements the following OTcl methods:

Moreover it inherits all the OTcl method of Module

Parameters:
argc number of arguments in argv
argv array of strings which are the comand parameters (Note that argv[0] is the name of the object)
Returns:
TCL_OK or TCL_ERROR whether the command has been dispatched succesfully or no
See also:
Module, ChSAP, PlugIn

Reimplemented from ChannelModule.

Definition at line 56 of file wirelessch-module.cc.

References ChannelModule::command().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Wed Nov 26 15:52:37 2008 for NS-MIRACLE library by  doxygen 1.5.2