|
DESERT 4.0.0
|
#include <uwmphypatch.h>


Public Member Functions | |
| UWMPhypatch () | |
| ~UWMPhypatch () | |
| virtual void | recv (Packet *) |
Protected Member Functions | |
| virtual void | startTx (Packet *p) |
| virtual void | endTx (Packet *p) |
| virtual void | startRx (Packet *p) |
| virtual void | endRx (Packet *p) |
| virtual double | getTxDuration (Packet *) |
| virtual int | getModulationType (Packet *) |
Private Attributes | |
| int | debug_ |
Class to patch the absence of a PHY layer's module when we want to use a module of the MAC layer. This module just receive a packet and forward it to the layer below (or above) sending the required cross-layer messages to the MAC layer.
| UWMPhypatch::UWMPhypatch | ( | ) |
Class constructor.
References debug_.
| UWMPhypatch::~UWMPhypatch | ( | ) |
Class destructor.
|
protectedvirtual |
Method to send a packet to the above layers after the finishing of a reception.
| p | pointer to the last received packet. |
Referenced by recv().
|
protectedvirtual |
Method to send a cross layer message Phy2MacEndTx(p) to notify the above layers of the simulator about the end of a given transmission, see http://telecom.dei.unipd.it/ns/miracle/doxygen/classMPhy.html#c8c2f52d3833fed8ac736aca0ee52c98.
| p | pointer to the last transmitted packet. |
Referenced by recv().
|
protectedvirtual |
Unused method.
|
protectedvirtual |
Unused method.
|
virtual |
|
protectedvirtual |
Method in charge to send a cross layer message Phy2MacStartRx(p) to notify the above layers of the simulator about the start of a reception, see http://telecom.dei.unipd.it/ns/miracle/doxygen/classMPhy.html#a15cc91b98013e1c631ad85072867ab6.
| p | pointer to the last received packet. |
Referenced by recv().
|
protectedvirtual |
Method to send the packet to be transmitted over the communication channel.
| p | pointer to the packet to be transmitted. |
Referenced by recv().
|
private |
Flag to enable debug mode (i.e., printing of debug messages) if set to 1.
Referenced by UWMPhypatch().