MInterferenceMIV Class Reference

#include <interference_miv.h>

Inheritance diagram for MInterferenceMIV:

Inheritance graph
[legend]
Collaboration diagram for MInterferenceMIV:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

Calculate interference using Mean Integral Value

Definition at line 82 of file interference_miv.h.


Member Function Documentation

void MInterferenceMIV::addToInterference ( Packet *  p  )  [virtual]

Add the transmission of this packet to the iterference perceived by the PHY layer.

Parameters:
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.

Parameters:
p the given packet
Returns:
interference power in W

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

Returns:
total power in W

Implements MInterference.

Definition at line 218 of file interference_miv.cc.

References pp.


Member Data Documentation

EndInterferenceMIVTimer MInterferenceMIV::endinterftimer [protected]

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().


The documentation for this class was generated from the following files:
Generated on Wed Nov 26 15:49:00 2008 for NS-MIRACLE library by  doxygen 1.5.2