#include <interference_miv.h>
Inheritance diagram for MInterferenceMIV:
Public Member Functions | |
MInterferenceMIV () | |
virtual | ~MInterferenceMIV () |
virtual void | addToInterference (Packet *p) |
virtual void | addToInterference (double power, double starttime) |
virtual double | getInterferencePower (Packet *p) |
virtual double | getInterferencePower (double power, double starttime, double endtime) |
virtual double | getCurrentTotalPower () |
Protected Member Functions | |
void | dump (string msg) |
Protected Attributes | |
Function | pp |
dumps to stdout all the interference data currently stored | |
double | maxinterval_ |
Power on the channel as a function of time. | |
EndInterferenceMIVTimer | endinterftimer |
int | debug_ |
schedules end of interference for a transmission | |
Friends | |
class | EndInterferenceMIVTimer |
Definition at line 82 of file interference_miv.h.
void MInterferenceMIV::addToInterference | ( | Packet * | p | ) | [virtual] |
Add the transmission of this packet to the iterference perceived by the PHY layer.
p | this packet |
Implements MInterference.
Reimplemented in UmtsMInterferenceMIV.
Definition at line 76 of file interference_miv.cc.
References debug_, dump(), hdr_MPhy::duration, endinterftimer, and hdr_MPhy::Pr.
Referenced by UmtsMInterferenceMIV::addToInterference(), and EndInterferenceMIVTimer::handle().
Here is the call graph for this function:
double MInterferenceMIV::getInterferencePower | ( | Packet * | p | ) | [virtual] |
Computes the interference power that a given packet is subject to.
p | the given packet |
Implements MInterference.
Reimplemented in UmtsMInterferenceMIV.
Definition at line 131 of file interference_miv.cc.
References hdr_MPhy::duration, hdr_MPhy::Pr, and hdr_MPhy::rxtime.
Referenced by UmtsMInterferenceMIV::getInterferencePower().
double MInterferenceMIV::getCurrentTotalPower | ( | ) | [virtual] |
Returns the total power on the channel at time NOW
Implements MInterference.
Definition at line 218 of file interference_miv.cc.
References pp.
Maximum time interval for which power information is to be stored
Definition at line 99 of file interference_miv.h.
Referenced by UmtsMInterferenceMIV::addToInterference(), and addToInterference().