DESERT 3.5.1
|
#include <uwinterference.h>
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< ListNode > | power_list |
EndInterfTimer | end_timer |
double | use_maxinterval_ |
double | initial_interference_time |
double | start_rx_time |
double | end_rx_time |
Definition at line 149 of file uwinterference.h.
uwinterference::uwinterference | ( | ) |
Constructor of the class uwinterference.
Definition at line 72 of file uwinterference.cpp.
|
virtual |
Destructor of the class uwinterference.
Definition at line 83 of file uwinterference.cpp.
|
virtual |
Add a packet to the interference calculation.
pw | Received power of the current packet |
type | type of the packet (DATA or CTRL) |
Definition at line 108 of file uwinterference.cpp.
|
virtual |
Add a packet to the interference calculation.
p | Pointer to the interferer packet |
Reimplemented in uwinterferenceofdm.
Definition at line 88 of file uwinterference.cpp.
Returns the counters of collisions.
starttime | timestamp of the start of reception phase |
duration | duration of the reception phase |
type | type of the packet (DATA or CTRL) |
Reimplemented in uwinterferenceofdm.
Definition at line 336 of file uwinterference.cpp.
|
virtual |
Returns the counters of collisions.
p | Pointer of the packet for which the counters are needed |
Reimplemented in uwinterferenceofdm.
Definition at line 322 of file uwinterference.cpp.
|
virtual |
Reimplemented in uwinterferenceofdm.
Definition at line 276 of file uwinterference.cpp.
|
inline |
Get the timestamp of the end of reception phase.
Definition at line 236 of file uwinterference.h.
|
inline |
Get the timestamp of the begin of reception of the first interferer packet.
Definition at line 247 of file uwinterference.h.
|
virtual |
Compute the average interference power for the given packet.
pw | Received power of the current packet |
starttime | timestamp of the start of reception phase |
duration | duration of the reception phase |
Definition at line 225 of file uwinterference.cpp.
|
virtual |
Compute the average interference power for the given packet.
p | Pointer to the interferer packet |
Reimplemented in uwinterferenceofdm.
Definition at line 212 of file uwinterference.cpp.
|
inline |
Get the timestamp of the start of reception phase.
Definition at line 227 of file uwinterference.h.
|
virtual |
Returns the percentage of overlap between current packet and interference packets.
starttime | timestamp of the start of reception phase |
duration | duration of the reception phase |
Reimplemented in uwinterferenceofdm.
Definition at line 293 of file uwinterference.cpp.
|
virtual |
Returns the percentage of overlap between current packet and interference packets.
p | Pointer of the packet for which the overlap is needed |
Reimplemented in uwinterferenceofdm.
Definition at line 285 of file uwinterference.cpp.
|
virtual |
Remove a packet to the interference calculation.
pw | Received power of the current packet |
type | type of the packet (DATA or CTRL) |
Definition at line 151 of file uwinterference.cpp.
|
protected |
timetamp of the end of reception phase
Definition at line 261 of file uwinterference.h.
|
protected |
Timer for schedules end of interference for a transmission.
Definition at line 254 of file uwinterference.h.
|
protected |
timestamp of the begin of reception of the first interferer packet
Definition at line 258 of file uwinterference.h.
|
protected |
List with power and counters.
Definition at line 253 of file uwinterference.h.
|
protected |
timestamp of the start of reception phase
Definition at line 260 of file uwinterference.h.
|
protected |
set to 1 to use maxinterval_.
Definition at line 256 of file uwinterference.h.