DESERT 3.5.1
|
#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.
Definition at line 62 of file uwmphypatch.h.
UWMPhypatch::UWMPhypatch | ( | ) |
Class constructor.
Definition at line 57 of file uwmphypatch.cpp.
UWMPhypatch::~UWMPhypatch | ( | ) |
Class destructor.
Definition at line 62 of file uwmphypatch.cpp.
|
protectedvirtual |
Method to send a packet to the above layers after the finishing of a
reception.
@param p pointer to the last received packet.
Definition at line 100 of file uwmphypatch.cpp.
|
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.
@param p pointer to the last transmitted packet.
Definition at line 88 of file uwmphypatch.cpp.
|
protectedvirtual |
Unused method.
Definition at line 111 of file uwmphypatch.cpp.
|
protectedvirtual |
Unused method.
Definition at line 107 of file uwmphypatch.cpp.
|
virtual |
Method to handle the reception of packets arriving from the upper layers of the network simulator.
p | pointer to the packet that has been received from the simulator's upper layers. |
Definition at line 67 of file uwmphypatch.cpp.
|
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.
@param p pointer to the last received packet.
Definition at line 94 of file uwmphypatch.cpp.
|
protectedvirtual |
Method to send the packet to be transmitted over the communication channel.
p | pointer to the packet to be transmitted. |
Definition at line 82 of file uwmphypatch.cpp.
|
private |
Flag to enable debug mode (i.e., printing of debug messages) if set to 1.
Definition at line 64 of file uwmphypatch.h.