EMANE
1.2.1
|
The common physical layer header used to facilitate heterogeneous radio model experimentation. More...
#include <commonphyheader.h>
Public Member Functions | |
CommonPHYHeader (RegistrationId registrationId, std::uint16_t subId, std::uint16_t u16SequenceNumber, std::uint64_t u64BandwidthHz, const TimePoint &txTime, const FrequencySegments &frequencySegments, const Transmitters &transmitters, const std::pair< double, bool > &optionalFixedAntennaGaindBi) | |
CommonPHYHeader (UpstreamPacket &pkt) | |
CommonPHYHeader (CommonPHYHeader &&rvalue) | |
~CommonPHYHeader () | |
RegistrationId | getRegistrationId () const |
std::uint16_t | getSubId () const |
const std::pair< double, bool > & | getOptionalFixedAntennaGaindBi () const |
const TimePoint & | getTxTime () const |
Microseconds | getDuration () const |
std::uint64_t | getBandwidthHz () const |
std::uint16_t | getSequenceNumber () const |
const FrequencySegments & | getFrequencySegments () const |
const Transmitters & | getTransmitters () const |
void | prependTo (DownstreamPacket &pkt) const |
Strings | format () const |
The common physical layer header used to facilitate heterogeneous radio model experimentation.
Definition at line 53 of file commonphyheader.h.
EMANE::CommonPHYHeader::CommonPHYHeader | ( | RegistrationId | registrationId, |
std::uint16_t | subId, | ||
std::uint16_t | u16SequenceNumber, | ||
std::uint64_t | u64BandwidthHz, | ||
const TimePoint & | txTime, | ||
const FrequencySegments & | frequencySegments, | ||
const Transmitters & | transmitters, | ||
const std::pair< double, bool > & | optionalFixedAntennaGaindBi | ||
) |
Creates a CommonPHYHeader instance
registrationId | Registration id of the physical layer |
subId | Sub id used to delineate different waveforms |
u16SequenceNumber | Sequence number |
u64BandwidthHz | Transceiver bandwidth in Hz |
txTime | Transmit time stamp |
frequencySegments | List of frequency segments |
transmitters | List of transmitters |
optionalFixedAntennaGaindBi | Optional fixed antenna gain |
Definition at line 186 of file commonphyheader.cc.
EMANE::CommonPHYHeader::CommonPHYHeader | ( | UpstreamPacket & | pkt | ) |
Creates a CommonPHYHeader instance by stripping an UpstreamPacket
pkt | UpstreamPacket that is stripped in order to create the instance |
SerializationException | when the data stripped cannot be de-serialized into a CommonPHYHeader |
Definition at line 107 of file commonphyheader.cc.
EMANE::CommonPHYHeader::CommonPHYHeader | ( | CommonPHYHeader && | rvalue | ) |
Creates a CommonPHYHeader instance by moving another instance
Definition at line 205 of file commonphyheader.cc.
EMANE::CommonPHYHeader::~CommonPHYHeader | ( | ) |
Destroys an instance
Definition at line 209 of file commonphyheader.cc.
EMANE::Strings EMANE::CommonPHYHeader::format | ( | ) | const |
Returns format suitable for logger callable
Definition at line 337 of file commonphyheader.cc.
std::uint64_t EMANE::CommonPHYHeader::getBandwidthHz | ( | ) | const |
Gets the transceiver bandwidth in Hz
Definition at line 265 of file commonphyheader.cc.
EMANE::Microseconds EMANE::CommonPHYHeader::getDuration | ( | ) | const |
Gets the message duration
Definition at line 233 of file commonphyheader.cc.
const EMANE::FrequencySegments & EMANE::CommonPHYHeader::getFrequencySegments | ( | ) | const |
Gets a reference to the frequency segment list
Definition at line 277 of file commonphyheader.cc.
const std::pair< double, bool > & EMANE::CommonPHYHeader::getOptionalFixedAntennaGaindBi | ( | ) | const |
Gets the optional fixed antenna gain in dBi
first
is the antenna gain in dBi and second
is a boolean flag indicating whether the gain is valid (present) Definition at line 221 of file commonphyheader.cc.
EMANE::RegistrationId EMANE::CommonPHYHeader::getRegistrationId | ( | ) | const |
Gets the physical layer registration id
Definition at line 211 of file commonphyheader.cc.
std::uint16_t EMANE::CommonPHYHeader::getSequenceNumber | ( | ) | const |
std::uint16_t EMANE::CommonPHYHeader::getSubId | ( | ) | const |
const EMANE::Transmitters & EMANE::CommonPHYHeader::getTransmitters | ( | ) | const |
Gets a reference to the transmitters list
Definition at line 283 of file commonphyheader.cc.
const EMANE::TimePoint & EMANE::CommonPHYHeader::getTxTime | ( | ) | const |
Gets the transmission time stamp
Definition at line 227 of file commonphyheader.cc.
void EMANE::CommonPHYHeader::prependTo | ( | DownstreamPacket & | pkt | ) | const |
Prepends CommonPHYHeader to downstream packet
pkt | Packet to prepend header |
SerializationException |
Definition at line 288 of file commonphyheader.cc.