EMANE
1.2.1
|
R2RI Neighbor Metric Control Message is sent to an NEM's transport layer to convey information about MAC layer neighbors. More...
#include <r2rineighbormetriccontrolmessage.h>
Public Types | |
enum | { IDENTIFIER = EMANE_CONTROL_MEASSGE_R2RI_NEIGHBOR_METRIC } |
Public Member Functions | |
R2RINeighborMetricControlMessage * | clone () const override |
~R2RINeighborMetricControlMessage () | |
const R2RINeighborMetrics & | getNeighborMetrics () const |
std::string | serialize () const override |
ControlMessageId | getId () const |
Static Public Member Functions | |
static R2RINeighborMetricControlMessage * | create (const Serialization &serialization) |
static R2RINeighborMetricControlMessage * | create (const R2RINeighborMetrics &neighborMetrics) |
R2RI Neighbor Metric Control Message is sent to an NEM's transport layer to convey information about MAC layer neighbors.
Definition at line 59 of file r2rineighbormetriccontrolmessage.h.
anonymous enum |
Enumerator | |
---|---|
IDENTIFIER |
Definition at line 128 of file r2rineighbormetriccontrolmessage.h.
EMANE::Controls::R2RINeighborMetricControlMessage::~R2RINeighborMetricControlMessage | ( | ) |
Destroys an instance
Definition at line 67 of file r2rineighbormetriccontrolmessage.cc.
|
overridevirtual |
Clones the control message on the heap
Implements EMANE::Cloneable< ControlMessage >.
Definition at line 152 of file r2rineighbormetriccontrolmessage.cc.
|
static |
Creates an R2RINeighborMetricControlMessage from a serialization on the heap
serialization | Message serialization |
SerializationException | when a valid message cannot be de-serialized |
Definition at line 121 of file r2rineighbormetriccontrolmessage.cc.
|
static |
Creates an R2RINeighborMetricControlMessage on the heap
neighborMetrics | Neighbor metrics |
Definition at line 77 of file r2rineighbormetriccontrolmessage.cc.
|
inlineinherited |
Gets the control message id
Definition at line 64 of file controlmessage.h.
const EMANE::Controls::R2RINeighborMetrics & EMANE::Controls::R2RINeighborMetricControlMessage::getNeighborMetrics | ( | ) | const |
Gets the neighbor metrics
Definition at line 71 of file r2rineighbormetriccontrolmessage.cc.
|
overridevirtual |
Serializes the instance
SerializationException | if the instance cannot be serialized |
Reimplemented from EMANE::Serializable.
Definition at line 82 of file r2rineighbormetriccontrolmessage.cc.