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

#include <uwinterference.h>

Inheritance diagram for uwinterference:
Collaboration diagram for uwinterference:

Public Member Functions

 uwinterference ()
 
virtual ~uwinterference ()
 
virtual void addToInterference (Packet *p)
 
virtual void addToInterference (double pw, PKT_TYPE tp)
 
virtual void removeFromInterference (double pw, PKT_TYPE tp)
 
virtual double getInterferencePower (Packet *p)
 
virtual double getInterferencePower (double power, double starttime, double duration)
 
virtual double getCurrentTotalPower ()
 
virtual double getTimeOverlap (Packet *p)
 
virtual double getTimeOverlap (double starttime, double duration)
 
virtual counter getCounters (Packet *p)
 
virtual counter getCounters (double starttime, double duration, PKT_TYPE tp)
 
double getStartRxTime ()
 
double getEndRxTime ()
 
double getInitialInterferenceTime ()
 

Protected Attributes

std::list< ListNodepower_list
 
EndInterfTimer end_timer
 
double use_maxinterval_
 
double initial_interference_time
 
double start_rx_time
 
double end_rx_time
 

Detailed Description

Definition at line 149 of file uwinterference.h.

Constructor & Destructor Documentation

◆ uwinterference()

uwinterference::uwinterference ( )

Constructor of the class uwinterference.

Definition at line 72 of file uwinterference.cpp.

◆ ~uwinterference()

uwinterference::~uwinterference ( )
virtual

Destructor of the class uwinterference.

Definition at line 83 of file uwinterference.cpp.

Member Function Documentation

◆ addToInterference() [1/2]

void uwinterference::addToInterference ( double  pw,
PKT_TYPE  tp 
)
virtual

Add a packet to the interference calculation.

Parameters
pwReceived power of the current packet
typetype of the packet (DATA or CTRL)

Definition at line 108 of file uwinterference.cpp.

◆ addToInterference() [2/2]

void uwinterference::addToInterference ( Packet *  p)
virtual

Add a packet to the interference calculation.

Parameters
pPointer to the interferer packet

Reimplemented in uwinterferenceofdm.

Definition at line 88 of file uwinterference.cpp.

◆ getCounters() [1/2]

counter uwinterference::getCounters ( double  starttime,
double  duration,
PKT_TYPE  tp 
)
virtual

Returns the counters of collisions.

Parameters
starttimetimestamp of the start of reception phase
durationduration of the reception phase
typetype of the packet (DATA or CTRL)
Returns
counter variable that represent the counters of the interference

Reimplemented in uwinterferenceofdm.

Definition at line 336 of file uwinterference.cpp.

◆ getCounters() [2/2]

counter uwinterference::getCounters ( Packet *  p)
virtual

Returns the counters of collisions.

Parameters
pPointer of the packet for which the counters are needed
Returns
counter variable that represent the counters of the interference

Reimplemented in uwinterferenceofdm.

Definition at line 322 of file uwinterference.cpp.

◆ getCurrentTotalPower()

double uwinterference::getCurrentTotalPower ( )
virtual

Reimplemented in uwinterferenceofdm.

Definition at line 276 of file uwinterference.cpp.

◆ getEndRxTime()

double uwinterference::getEndRxTime ( )
inline

Get the timestamp of the end of reception phase.

Returns
timestamp of the start of reception phase

Definition at line 236 of file uwinterference.h.

◆ getInitialInterferenceTime()

double uwinterference::getInitialInterferenceTime ( )
inline

Get the timestamp of the begin of reception of the first interferer packet.

Returns
timestamp of the begin of reception of the first interferer packet

Definition at line 247 of file uwinterference.h.

◆ getInterferencePower() [1/2]

double uwinterference::getInterferencePower ( double  power,
double  starttime,
double  duration 
)
virtual

Compute the average interference power for the given packet.

Parameters
pwReceived power of the current packet
starttimetimestamp of the start of reception phase
durationduration of the reception phase
Returns
average interference power

Definition at line 225 of file uwinterference.cpp.

◆ getInterferencePower() [2/2]

double uwinterference::getInterferencePower ( Packet *  p)
virtual

Compute the average interference power for the given packet.

Parameters
pPointer to the interferer packet
Returns
average interference power

Reimplemented in uwinterferenceofdm.

Definition at line 212 of file uwinterference.cpp.

◆ getStartRxTime()

double uwinterference::getStartRxTime ( )
inline

Get the timestamp of the start of reception phase.

Returns
timestamp of the start of reception phase

Definition at line 227 of file uwinterference.h.

◆ getTimeOverlap() [1/2]

double uwinterference::getTimeOverlap ( double  starttime,
double  duration 
)
virtual

Returns the percentage of overlap between current packet and interference packets.

Parameters
starttimetimestamp of the start of reception phase
durationduration of the reception phase
Returns
percantage of overlap

Reimplemented in uwinterferenceofdm.

Definition at line 293 of file uwinterference.cpp.

◆ getTimeOverlap() [2/2]

double uwinterference::getTimeOverlap ( Packet *  p)
virtual

Returns the percentage of overlap between current packet and interference packets.

Parameters
pPointer of the packet for which the overlap is needed
Returns
percantage of overlap

Reimplemented in uwinterferenceofdm.

Definition at line 285 of file uwinterference.cpp.

◆ removeFromInterference()

void uwinterference::removeFromInterference ( double  pw,
PKT_TYPE  tp 
)
virtual

Remove a packet to the interference calculation.

Parameters
pwReceived power of the current packet
typetype of the packet (DATA or CTRL)

Definition at line 151 of file uwinterference.cpp.

Member Data Documentation

◆ end_rx_time

double uwinterference::end_rx_time
protected

timetamp of the end of reception phase

Definition at line 261 of file uwinterference.h.

◆ end_timer

EndInterfTimer uwinterference::end_timer
protected

Timer for schedules end of interference for a transmission.

Definition at line 254 of file uwinterference.h.

◆ initial_interference_time

double uwinterference::initial_interference_time
protected

timestamp of the begin of reception of the first interferer packet

Definition at line 258 of file uwinterference.h.

◆ power_list

std::list<ListNode> uwinterference::power_list
protected

List with power and counters.

Definition at line 253 of file uwinterference.h.

◆ start_rx_time

double uwinterference::start_rx_time
protected

timestamp of the start of reception phase

Definition at line 260 of file uwinterference.h.

◆ use_maxinterval_

double uwinterference::use_maxinterval_
protected

set to 1 to use maxinterval_.

Definition at line 256 of file uwinterference.h.


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