Holds the frequency, offset and duration of a frequency segment.
More...
#include <frequencysegment.h>
Holds the frequency, offset and duration of a frequency segment.
- Note
- Instances are immutable
Definition at line 49 of file frequencysegment.h.
◆ FrequencySegment() [1/4]
EMANE::FrequencySegment::FrequencySegment |
( |
std::uint64_t |
u64FrequencyHz, |
|
|
const Microseconds & |
durationMicroseconds, |
|
|
const Microseconds & |
offsetMicroseconds = Microseconds::zero() |
|
) |
| |
|
inline |
Create a FrequencySegment instance
- Parameters
-
u64FrequencyHz | Frequency in Hz |
durationMicroseconds | Segment duration in microseconds |
offsetMicroseconds | Segment offset relative to the start not the previous segment |
Definition at line 45 of file frequencysegment.inl.
◆ FrequencySegment() [2/4]
EMANE::FrequencySegment::FrequencySegment |
( |
std::uint64_t |
u64FrequencyHz, |
|
|
double |
dPowerdBm, |
|
|
const Microseconds & |
durationMicroseconds, |
|
|
const Microseconds & |
offsetMicroseconds = Microseconds::zero() |
|
) |
| |
|
inline |
Create a FrequencySegment instance
- Parameters
-
u64FrequencyHz | Frequency in Hz |
durationMicroseconds | Segment duration in microseconds |
offsetMicroseconds | Segment offset relative to the start not the previous segment |
dPowerdBm | Receive power of the segment in dBm (upstream) or transmit power of segment in dBm (downstream) |
Definition at line 34 of file frequencysegment.inl.
◆ FrequencySegment() [3/4]
EMANE::FrequencySegment::FrequencySegment |
( |
const FrequencySegment & |
rhs, |
|
|
double |
dRxPowerdBm |
|
) |
| |
|
inline |
Create a FrequencySegment from another instance
- Parameters
-
rhs | Instance to copy |
dRxPowerdBm | Receive power of the segment in dBm (upstream only) |
Definition at line 55 of file frequencysegment.inl.
◆ FrequencySegment() [4/4]
◆ getDuration()
Gets the segment duration in microseconds
- Returns
- duration reference
Definition at line 76 of file frequencysegment.inl.
◆ getFrequencyHz()
std::uint64_t EMANE::FrequencySegment::getFrequencyHz |
( |
| ) |
const |
|
inline |
◆ getOffset()
Gets the segment offset in microseconds
- Returns
- offset reference
Definition at line 70 of file frequencysegment.inl.
◆ getPowerdBm()
std::pair< double, bool > EMANE::FrequencySegment::getPowerdBm |
( |
| ) |
const |
|
inline |
Gets the power of the segment in dBm if present
- Returns
- pair receive power and flag that is true if power specified
Definition at line 88 of file frequencysegment.inl.
◆ getRxPowerdBm()
double EMANE::FrequencySegment::getRxPowerdBm |
( |
| ) |
const |
|
inline |
Gets the receive power of the segment in dBm
- Returns
- receive power
Definition at line 82 of file frequencysegment.inl.
The documentation for this class was generated from the following files: