Satellite constant interference. More...
#include "satellite-constant-interference.h"
Public Member Functions | |
SatConstantInterference () | |
Default constructor. More... | |
~SatConstantInterference () | |
Destructor for SatConstantInterference. More... | |
TypeId | GetInstanceTypeId (void) const |
Public Member Functions inherited from ns3::SatInterference | |
SatInterference () | |
Constructor for Satellite interference base class. More... | |
~SatInterference () | |
Destructor for Satellite interference base class. More... | |
Ptr< SatInterference::InterferenceChangeEvent > | Add (Time rxDuration, double rxPower, Address rxAddress) |
Adds interference power to interference object. More... | |
std::vector< std::pair< double, double > > | Calculate (Ptr< SatInterference::InterferenceChangeEvent > event) |
Calculates interference power for the given reference. More... | |
TypeId | GetInstanceTypeId (void) const |
Derived from Object. More... | |
virtual bool | HasCollision (Ptr< SatInterference::InterferenceChangeEvent > event) |
Checks whether the packet has collided. More... | |
virtual void | NotifyRxEnd (Ptr< SatInterference::InterferenceChangeEvent > event) |
Notifies that RX is ended by a receiver. More... | |
virtual void | NotifyRxStart (Ptr< SatInterference::InterferenceChangeEvent > event) |
Notifies that RX is started by a receiver. More... | |
void | Reset (void) |
Resets current interference. More... | |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
Get the type ID. More... | |
Static Public Member Functions inherited from ns3::SatInterference | |
static TypeId | GetTypeId (void) |
Derived from Object. More... | |
Private Member Functions | |
SatConstantInterference (const SatConstantInterference &o) | |
virtual Ptr< SatInterference::InterferenceChangeEvent > | DoAdd (Time rxDuration, double rxPower, Address rxAddress) |
Adds interference power to interference object. More... | |
virtual std::vector< std::pair< double, double > > | DoCalculate (Ptr< SatInterference::InterferenceChangeEvent > event) |
Calculates interference power for the given reference Sets final power at end time to finalPower. More... | |
virtual void | DoNotifyRxEnd (Ptr< SatInterference::InterferenceChangeEvent > event) |
Notifies that RX is ended by a receiver. More... | |
virtual void | DoNotifyRxStart (Ptr< SatInterference::InterferenceChangeEvent > event) |
Notifies that RX is started by a receiver. More... | |
virtual void | DoReset (void) |
Resets current interference. More... | |
SatConstantInterference & | operator= (const SatConstantInterference &o) |
Private Attributes | |
double | m_power |
bool | m_rxing |
Satellite constant interference.
Interference is constant until set again by an attribute.
Definition at line 39 of file satellite-constant-interference.h.
ns3::SatConstantInterference::SatConstantInterference | ( | ) |
Default constructor.
Definition at line 60 of file satellite-constant-interference.cc.
ns3::SatConstantInterference::~SatConstantInterference | ( | ) |
Destructor for SatConstantInterference.
Definition at line 66 of file satellite-constant-interference.cc.
References ns3::SatInterference::Reset().
|
private |
|
privatevirtual |
Adds interference power to interference object.
No effect in this implementation.
rxDuration | Duration of the receiving. |
rxPower | Receiving power. |
rxAddress |
Implements ns3::SatInterference.
Definition at line 72 of file satellite-constant-interference.cc.
|
privatevirtual |
Calculates interference power for the given reference Sets final power at end time to finalPower.
Just return constant value set by Set method in this implementation. finalPower is set to returned value.
event | Reference event which for interference is calculated. |
Implements ns3::SatInterference.
Definition at line 83 of file satellite-constant-interference.cc.
|
privatevirtual |
Notifies that RX is ended by a receiver.
event | Interference reference event of receiver (ignored in this implementation) |
Implements ns3::SatInterference.
Definition at line 116 of file satellite-constant-interference.cc.
References m_rxing.
|
privatevirtual |
Notifies that RX is started by a receiver.
event | Interference reference event of receiver (ignored in this implementation) |
Implements ns3::SatInterference.
Definition at line 108 of file satellite-constant-interference.cc.
References m_rxing.
|
privatevirtual |
Resets current interference.
Implements ns3::SatInterference.
Definition at line 100 of file satellite-constant-interference.cc.
References m_rxing.
TypeId ns3::SatConstantInterference::GetInstanceTypeId | ( | void | ) | const |
Definition at line 55 of file satellite-constant-interference.cc.
References GetTypeId().
|
static |
Get the type ID.
Definition at line 41 of file satellite-constant-interference.cc.
References m_power.
Referenced by GetInstanceTypeId().
|
private |
|
private |
Definition at line 112 of file satellite-constant-interference.h.
Referenced by DoCalculate(), and GetTypeId().
|
private |
Definition at line 117 of file satellite-constant-interference.h.
Referenced by DoCalculate(), DoNotifyRxEnd(), DoNotifyRxStart(), and DoReset().