

Public Member Functions | |
| WirelessPhyModule () | |
| virtual | ~WirelessPhyModule () |
| virtual void | recv (Packet *, Handler *callback) |
| virtual void | recv (Packet *p) |
| virtual int | command (int argc, const char *const *argv) |
Protected Attributes | |
| Phy * | phy_ |
Definition at line 54 of file wirelessphy-module.h.
| void WirelessPhyModule::recv | ( | Packet * | p, | |
| Handler * | callback | |||
| ) | [virtual] |
Call the recv method with only the Packet parameter in order to hide the callback (not used in this implementation) and mantain compatibility with the old ns2 code
| p | pointer to the packet will be received | |
| callback | pointer to a Handler class |
Reimplemented from Module.
Definition at line 94 of file wirelessphy-module.cc.
References DOWN, PlugIn::getPosition(), Module::sendDown(), and Module::sendUp().
Here is the call graph for this function:

| void WirelessPhyModule::recv | ( | Packet * | p | ) | [virtual] |
Abstract method which has to be filled with the ad-hoc operations that the module has to do to the packet received
| p | pointer to the packet will be received |
Implements Module.
Definition at line 78 of file wirelessphy-module.cc.
References hdr_MrclWrlPhy::destPos_, PlugIn::getPosition(), and phy_.
Here is the call graph for this function:

| int WirelessPhyModule::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 PlugIn
| 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) |
Reimplemented from Module.
Definition at line 49 of file wirelessphy-module.cc.
References Module::command(), and phy_.
Here is the call graph for this function:

1.5.2