DumbWirelessChModule Class Reference

Inheritance diagram for DumbWirelessChModule:

Inheritance graph
[legend]
Collaboration diagram for DumbWirelessChModule:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 DumbWirelessChModule ()
virtual ~DumbWirelessChModule ()
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)
void sendUpPhy (Packet *p, ChSAP *chsap)

Protected Attributes

int usePropagationDelay_

Detailed Description

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


Member Function Documentation

void DumbWirelessChModule::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 117 of file wirelessch-dumb.cc.

References sendUpPhy().

Here is the call graph for this function:

int DumbWirelessChModule::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 53 of file wirelessch-dumb.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:48:30 2008 for NS-MIRACLE library by  doxygen 1.5.2