#include <channel-module.h>
Inheritance diagram for ChannelModule:


Public Member Functions | |
| ChannelModule () | |
| virtual | ~ChannelModule () |
| virtual int | command (int argc, const char *const *argv) |
| virtual void | recv (Packet *p, Handler *h) |
| virtual void | recv (Packet *p) |
| virtual void | recv (Packet *p, ChSAP *chsap)=0 |
| ChSAP * | getChSAP (int i) |
| void | swapChSAP (int i, int j) |
| int | getChSAPnum () |
Definition at line 47 of file channel-module.h.
| ChannelModule::ChannelModule | ( | ) |
ChannelModule constructor
Definition at line 33 of file channel-module.cc.
| ChannelModule::~ChannelModule | ( | ) | [virtual] |
ChannelModule destructor
Definition at line 37 of file channel-module.cc.
| int ChannelModule::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
| 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.
Reimplemented in LinkChannelModule, UmtsWirelessChModule, DumbWirelessChModule, and WirelessChModule.
Definition at line 43 of file channel-module.cc.
References Module::addUpSAP(), and Module::command().
Referenced by WirelessChModule::command(), DumbWirelessChModule::command(), UmtsWirelessChModule::command(), and LinkChannelModule::command().
Here is the call graph for this function:

| void ChannelModule::recv | ( | Packet * | p, | |
| Handler * | h | |||
| ) | [virtual] |
Call the recv method casting the Handler parameter as a ChSAP in order to interface old version of code with the new one
| p | pointer to the packet will be received | |
| h | pointer to a Handler class |
Reimplemented from Module.
Reimplemented in LinkChannelModule.
Definition at line 80 of file channel-module.cc.
Referenced by ChSAP::handle(), recv(), and ChSAP::sendDown().
| void ChannelModule::recv | ( | Packet * | p | ) | [virtual] |
Method that intefaces the basic recv method (with only packet as parameter) with the specific Channel Module recv method, which uses the ChSAP to have knowledges about the source
| p | pointer to the packet will be received |
Implements Module.
Definition at line 85 of file channel-module.cc.
References recv().
Here is the call graph for this function:

| virtual void ChannelModule::recv | ( | Packet * | p, | |
| ChSAP * | chsap | |||
| ) | [pure 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
| p | pointer to the packet will be received | |
| chsap | pointer of the instance which connects the ChannelModule with the source Module |
Implemented in LinkChannelModule, UmtsWirelessChModule, DumbWirelessChModule, and WirelessChModule.
| ChSAP * ChannelModule::getChSAP | ( | int | i | ) |
Return a pointer to instance of the i-ChSAP
| i | index of the ChSAP requested |
Definition at line 68 of file channel-module.cc.
References Module::getUpLaySAP().
Referenced by UmtsWirelessChModule::command(), WirelessChModule::getInfluencedNodes(), WirelessChModule::sendUpPhy(), DumbWirelessChModule::sendUpPhy(), UmtsWirelessChModule::sendUpPhy(), and WirelessChModule::sortChSAPList().
Here is the call graph for this function:

| void ChannelModule::swapChSAP | ( | int | i, | |
| int | j | |||
| ) |
Swap two instances of the ChSAP installed, i.e., the i-ChSAP one with the j-ChSAP one
Definition at line 74 of file channel-module.cc.
References Module::swapUpLaySAP().
Referenced by WirelessChModule::sortChSAPList().
Here is the call graph for this function:

| int ChannelModule::getChSAPnum | ( | ) |
Return the number of ChSAP installed
Definition at line 63 of file channel-module.cc.
References Module::getUpLaySAPnum().
Referenced by UmtsWirelessChModule::command(), WirelessChModule::getInfluencedNodes(), DumbWirelessChModule::sendUpPhy(), UmtsWirelessChModule::sendUpPhy(), and WirelessChModule::sortChSAPList().
Here is the call graph for this function:

1.5.2