A class representing a signal in time. More...
#include "lora-interference-helper.h"
Public Member Functions | |
Event (Time duration, double rxPowerdBm, uint8_t spreadingFactor, Ptr< Packet > packet, double frequencyMHz) | |
Construct a new interference signal Event object. | |
~Event () | |
Destructor. | |
Time | GetDuration () const |
Get the duration of the event. | |
Time | GetEndTime () const |
Get the ending time of the event. | |
double | GetFrequency () const |
Get the frequency this event was on. | |
Ptr< Packet > | GetPacket () const |
Get the packet this event was generated for. | |
double | GetRxPowerdBm () const |
Get the power of the event. | |
uint8_t | GetSpreadingFactor () const |
Get the spreading factor used by this signal. | |
Time | GetStartTime () const |
Get the starting time of the event. | |
void | Print (std::ostream &stream) const |
Print the current event in a human readable form. | |
Public Member Functions inherited from ns3::SimpleRefCount< LoraInterferenceHelper::Event > | |
SimpleRefCount () | |
Default constructor. | |
SimpleRefCount (const SimpleRefCount &o) | |
Copy constructor. | |
uint32_t | GetReferenceCount () const |
Get the reference count of the object. | |
SimpleRefCount & | operator= (const SimpleRefCount &o) |
Assignment operator. | |
void | Ref () const |
Increment the reference count. | |
void | Unref () const |
Decrement the reference count. | |
Private Attributes | |
Time | m_endTime |
The time this signal ends (at the device). | |
double | m_frequencyMHz |
The frequency this event was on. | |
Ptr< Packet > | m_packet |
The packet this event was generated for. | |
double | m_rxPowerdBm |
The power of this event in dBm (at the device). | |
uint8_t | m_sf |
The spreading factor of this signal. | |
Time | m_startTime |
The time this signal begins (at the device). | |
A class representing a signal in time.
Used in LoraInterferenceHelper to keep track of which signals overlap and cause destructive interference.
Definition at line 57 of file lora-interference-helper.h.
ns3::lorawan::LoraInterferenceHelper::Event::Event | ( | Time | duration, |
double | rxPowerdBm, | ||
uint8_t | spreadingFactor, | ||
Ptr< Packet > | packet, | ||
double | frequencyMHz | ||
) |
Construct a new interference signal Event object.
duration | The duration in time. |
rxPowerdBm | The power of the signal. |
spreadingFactor | The modulation spreading factor. |
packet | The packet transmitted. |
frequencyMHz | The carrier frequency of the signal. |
Definition at line 39 of file lora-interference-helper.cc.
ns3::lorawan::LoraInterferenceHelper::Event::~Event | ( | ) |
Destructor.
Definition at line 55 of file lora-interference-helper.cc.
Time ns3::lorawan::LoraInterferenceHelper::Event::GetDuration | ( | ) | const |
Get the duration of the event.
Definition at line 74 of file lora-interference-helper.cc.
Time ns3::lorawan::LoraInterferenceHelper::Event::GetEndTime | ( | ) | const |
Get the ending time of the event.
Definition at line 68 of file lora-interference-helper.cc.
double ns3::lorawan::LoraInterferenceHelper::Event::GetFrequency | ( | ) | const |
Get the frequency this event was on.
Definition at line 98 of file lora-interference-helper.cc.
Get the packet this event was generated for.
Definition at line 92 of file lora-interference-helper.cc.
double ns3::lorawan::LoraInterferenceHelper::Event::GetRxPowerdBm | ( | ) | const |
Get the power of the event.
Definition at line 80 of file lora-interference-helper.cc.
uint8_t ns3::lorawan::LoraInterferenceHelper::Event::GetSpreadingFactor | ( | ) | const |
Get the spreading factor used by this signal.
Definition at line 86 of file lora-interference-helper.cc.
Time ns3::lorawan::LoraInterferenceHelper::Event::GetStartTime | ( | ) | const |
Get the starting time of the event.
Definition at line 62 of file lora-interference-helper.cc.
void ns3::lorawan::LoraInterferenceHelper::Event::Print | ( | std::ostream & | stream | ) | const |
Print the current event in a human readable form.
stream | The output stream to use. |
Definition at line 104 of file lora-interference-helper.cc.
|
private |
The time this signal ends (at the device).
Definition at line 135 of file lora-interference-helper.h.
|
private |
The frequency this event was on.
Definition at line 139 of file lora-interference-helper.h.
The packet this event was generated for.
Definition at line 138 of file lora-interference-helper.h.
|
private |
The power of this event in dBm (at the device).
Definition at line 137 of file lora-interference-helper.h.
|
private |
The spreading factor of this signal.
Definition at line 136 of file lora-interference-helper.h.
|
private |
The time this signal begins (at the device).
Definition at line 134 of file lora-interference-helper.h.