DESERT 3.5.1
Loading...
Searching...
No Matches
UWMPhypatch Class Reference

#include <uwmphypatch.h>

Inheritance diagram for UWMPhypatch:
Collaboration diagram for UWMPhypatch:

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_
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ UWMPhypatch()

UWMPhypatch::UWMPhypatch ( )

Class constructor.

Definition at line 57 of file uwmphypatch.cpp.

◆ ~UWMPhypatch()

UWMPhypatch::~UWMPhypatch ( )

Class destructor.

Definition at line 62 of file uwmphypatch.cpp.

Member Function Documentation

◆ endRx()

void UWMPhypatch::endRx ( Packet *  p)
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.

◆ endTx()

void UWMPhypatch::endTx ( Packet *  p)
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.

◆ getModulationType()

int UWMPhypatch::getModulationType ( Packet *  )
protectedvirtual

Unused method.

Definition at line 111 of file uwmphypatch.cpp.

◆ getTxDuration()

double UWMPhypatch::getTxDuration ( Packet *  )
protectedvirtual

Unused method.

Definition at line 107 of file uwmphypatch.cpp.

◆ recv()

void UWMPhypatch::recv ( Packet *  p)
virtual

Method to handle the reception of packets arriving from the upper layers of the network simulator.

Parameters
ppointer to the packet that has been received from the simulator's upper layers.

Definition at line 67 of file uwmphypatch.cpp.

◆ startRx()

void UWMPhypatch::startRx ( Packet *  p)
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.

◆ startTx()

void UWMPhypatch::startTx ( Packet *  p)
protectedvirtual

Method to send the packet to be transmitted over the communication channel.

Parameters
ppointer to the packet to be transmitted.

Definition at line 82 of file uwmphypatch.cpp.

Member Data Documentation

◆ debug_

int UWMPhypatch::debug_
private

Flag to enable debug mode (i.e., printing of debug messages) if set to 1.

Definition at line 64 of file uwmphypatch.h.


The documentation for this class was generated from the following files: