A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::InterferenceHelper::NiChange Class Reference

Noise and Interference (thus Ni) event. More...

#include "interference-helper.h"

+ Collaboration diagram for ns3::InterferenceHelper::NiChange:

Public Member Functions

 NiChange (Watt_u power, Ptr< Event > event)
 Create a NiChange at the given time and the amount of NI change.
 
 ~NiChange ()
 
void AddPower (Watt_u power)
 Add a given amount of power.
 
Ptr< EventGetEvent () const
 Return the event causes the corresponding NI change.
 
Watt_u GetPower () const
 Return the power.
 

Private Attributes

Ptr< Eventm_event
 event
 
Watt_u m_power
 power
 

Detailed Description

Noise and Interference (thus Ni) event.

Definition at line 358 of file interference-helper.h.

Constructor & Destructor Documentation

◆ NiChange()

ns3::InterferenceHelper::NiChange::NiChange ( Watt_u power,
Ptr< Event > event )

Create a NiChange at the given time and the amount of NI change.

Parameters
powerthe power
eventcauses this NI change

Definition at line 131 of file interference-helper.cc.

◆ ~NiChange()

ns3::InterferenceHelper::NiChange::~NiChange ( )

Definition at line 137 of file interference-helper.cc.

Member Function Documentation

◆ AddPower()

void ns3::InterferenceHelper::NiChange::AddPower ( Watt_u power)

Add a given amount of power.

Parameters
powerthe power to be added to the existing value

Definition at line 149 of file interference-helper.cc.

◆ GetEvent()

Ptr< Event > ns3::InterferenceHelper::NiChange::GetEvent ( ) const

Return the event causes the corresponding NI change.

Returns
the event

Definition at line 155 of file interference-helper.cc.

◆ GetPower()

Watt_u ns3::InterferenceHelper::NiChange::GetPower ( ) const

Return the power.

Returns
the power

Definition at line 143 of file interference-helper.cc.

Member Data Documentation

◆ m_event

Ptr<Event> ns3::InterferenceHelper::NiChange::m_event
private

event

Definition at line 390 of file interference-helper.h.

◆ m_power

Watt_u ns3::InterferenceHelper::NiChange::m_power
private

power

Definition at line 389 of file interference-helper.h.


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