EMANE
1.2.1
|
R2RI Self Metric Control Message is sent to an NEM's transport layer to specify the parameters necessary to interpret R2RI neighbor and queue metric control messages. More...
#include <r2riselfmetriccontrolmessage.h>
Public Types | |
enum | { IDENTIFIER = EMANE_CONTROL_MEASSGE_R2RI_SELF_METRIC } |
Public Member Functions | |
R2RISelfMetricControlMessage * | clone () const override |
~R2RISelfMetricControlMessage () | |
std::uint64_t | getBroadcastDataRatebps () const |
std::uint64_t | getMaxDataRatebps () const |
const Microseconds & | getReportInterval () const |
Serialization | serialize () const override |
ControlMessageId | getId () const |
Static Public Member Functions | |
static R2RISelfMetricControlMessage * | create (const Serialization &serialization) |
static R2RISelfMetricControlMessage * | create (std::uint64_t u64BroadcastDataRatebps, std::uint64_t u64MaxDataRatebps, const Microseconds &reportInteral) |
R2RI Self Metric Control Message is sent to an NEM's transport layer to specify the parameters necessary to interpret R2RI neighbor and queue metric control messages.
Definition at line 59 of file r2riselfmetriccontrolmessage.h.
anonymous enum |
Enumerator | |
---|---|
IDENTIFIER |
Definition at line 144 of file r2riselfmetriccontrolmessage.h.
EMANE::Controls::R2RISelfMetricControlMessage::~R2RISelfMetricControlMessage | ( | ) |
Destroys an instance
Definition at line 87 of file r2riselfmetriccontrolmessage.cc.
|
overridevirtual |
Clones the control message on the heap
Implements EMANE::Cloneable< ControlMessage >.
Definition at line 150 of file r2riselfmetriccontrolmessage.cc.
|
static |
Creates an R2RISelfMetricControlMessage from a serialization on the heap
serialization | Message serialization |
SerializationException | when a valid message cannot be de-serialized |
Definition at line 134 of file r2riselfmetriccontrolmessage.cc.
|
static |
Creates an R2RISelfMetricControlMessage the heap
u64BroadcastDataRatebps | Broadcast datarate in bps |
u64MaxDataRatebps | Max unicast datarate in bps |
reportInteral | Message report interval in microseconds |
Definition at line 106 of file r2riselfmetriccontrolmessage.cc.
std::uint64_t EMANE::Controls::R2RISelfMetricControlMessage::getBroadcastDataRatebps | ( | ) | const |
Gets the broadcast datarate in bps
Definition at line 90 of file r2riselfmetriccontrolmessage.cc.
|
inlineinherited |
Gets the control message id
Definition at line 64 of file controlmessage.h.
std::uint64_t EMANE::Controls::R2RISelfMetricControlMessage::getMaxDataRatebps | ( | ) | const |
Gets the max unicast datarate in bps
Definition at line 95 of file r2riselfmetriccontrolmessage.cc.
const EMANE::Microseconds & EMANE::Controls::R2RISelfMetricControlMessage::getReportInterval | ( | ) | const |
Gets the report interval in microseconds
Definition at line 100 of file r2riselfmetriccontrolmessage.cc.
|
overridevirtual |
Serializes the instance
SerializationException | if the instance cannot be serialized |
Reimplemented from EMANE::Serializable.
Definition at line 115 of file r2riselfmetriccontrolmessage.cc.