Satellite traced interference. More...
#include "satellite-traced-interference.h"
Public Member Functions | |
SatTracedInterference () | |
Default constructor, not used. More... | |
SatTracedInterference (SatEnums::ChannelType_t channeltype, double rxBandwidth) | |
Constructor. More... | |
~SatTracedInterference () | |
Destructor. More... | |
void | DoDispose () |
Dispose of SatTracedInterference. More... | |
TypeId | GetInstanceTypeId (void) const |
Derived from Object. More... | |
void | SetRxBandwidth (double rxBandwidth) |
Set Rx bandwidth. More... | |
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) |
Derived from Object. More... | |
Static Public Member Functions inherited from ns3::SatInterference | |
static TypeId | GetTypeId (void) |
Derived from Object. More... | |
Private Member Functions | |
SatTracedInterference (const SatTracedInterference &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... | |
SatTracedInterference & | operator= (const SatTracedInterference &o) |
Private Attributes | |
SatEnums::ChannelType_t | m_channelType |
double | m_power |
double | m_rxBandwidth_Hz |
RX Bandwidth in Hz. More... | |
bool | m_rxing |
Satellite traced interference.
Interference values is based on trace file.
Definition at line 40 of file satellite-traced-interference.h.
ns3::SatTracedInterference::SatTracedInterference | ( | SatEnums::ChannelType_t | channeltype, |
double | rxBandwidth | ||
) |
Constructor.
channeltype | |
rxBandwidth |
Definition at line 57 of file satellite-traced-interference.cc.
References m_rxBandwidth_Hz.
ns3::SatTracedInterference::SatTracedInterference | ( | ) |
Default constructor, not used.
Definition at line 72 of file satellite-traced-interference.cc.
ns3::SatTracedInterference::~SatTracedInterference | ( | ) |
Destructor.
Definition at line 83 of file satellite-traced-interference.cc.
References ns3::SatInterference::Reset().
|
private |
o |
|
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 91 of file satellite-traced-interference.cc.
|
privatevirtual |
Calculates interference power for the given reference Sets final power at end time to finalPower.
Just return next value from trace input. finalPower is set to returned value.
event | Reference event which for interference is calculated. |
Implements ns3::SatInterference.
Definition at line 102 of file satellite-traced-interference.cc.
References m_channelType, m_power, and m_rxBandwidth_Hz.
void ns3::SatTracedInterference::DoDispose | ( | void | ) |
Dispose of SatTracedInterference.
Definition at line 139 of file satellite-traced-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 131 of file satellite-traced-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 123 of file satellite-traced-interference.cc.
References m_rxing.
|
privatevirtual |
Resets current interference.
Implements ns3::SatInterference.
Definition at line 117 of file satellite-traced-interference.cc.
TypeId ns3::SatTracedInterference::GetInstanceTypeId | ( | void | ) | const |
Derived from Object.
Definition at line 52 of file satellite-traced-interference.cc.
References GetTypeId().
|
static |
Derived from Object.
Definition at line 42 of file satellite-traced-interference.cc.
Referenced by GetInstanceTypeId().
|
private |
o |
void ns3::SatTracedInterference::SetRxBandwidth | ( | double | rxBandwidth | ) |
Set Rx bandwidth.
rxBandwidth |
Definition at line 147 of file satellite-traced-interference.cc.
References m_rxBandwidth_Hz.
|
private |
Definition at line 156 of file satellite-traced-interference.h.
Referenced by DoCalculate().
|
private |
Definition at line 151 of file satellite-traced-interference.h.
Referenced by DoCalculate().
|
private |
RX Bandwidth in Hz.
Definition at line 161 of file satellite-traced-interference.h.
Referenced by SatTracedInterference(), DoCalculate(), and SetRxBandwidth().
|
private |
Definition at line 146 of file satellite-traced-interference.h.
Referenced by DoNotifyRxEnd(), and DoNotifyRxStart().