|
EMANE
1.2.1
|
R2RI queue metrics are used in conjunction with the R2RIQueueMetricControlMessage to inform an NEM's transport layer of MAC queue state. More...
#include <r2riqueuemetric.h>
Public Member Functions | |
| R2RIQueueMetric (std::uint32_t u32QueueId, std::uint32_t u32MaxSize, std::uint32_t u32CurrentDepth, std::uint32_t u32NumDiscards, const Microseconds &avgDelay) | |
| ~R2RIQueueMetric () | |
| std::uint32_t | getQueueId () const |
| std::uint32_t | getMaxSize () const |
| std::uint32_t | getCurrentDepth () const |
| std::uint32_t | getNumDiscards () const |
| const Microseconds & | getAvgDelay () const |
R2RI queue metrics are used in conjunction with the R2RIQueueMetricControlMessage to inform an NEM's transport layer of MAC queue state.
Definition at line 54 of file r2riqueuemetric.h.
|
inline |
Creates an R2RIQueueMetric instance
| u32QueueId | Queue Id, 0 based |
| u32MaxSize | Max queue size |
| u32CurrentDepth | Current Queue depth |
| u32NumDiscards | Number of discards |
| avgDelay | Average queue delay in microseconds |
Definition at line 34 of file r2riqueuemetric.inl.
|
inline |
Destroys an instance
Definition at line 46 of file r2riqueuemetric.inl.
|
inline |
Gets the average queue delay in microseconds over the report interval
Definition at line 77 of file r2riqueuemetric.inl.
|
inline |
Gets the current queue depth over the report interval
Definition at line 63 of file r2riqueuemetric.inl.
|
inline |
Gets the max queue size over the report interval
Definition at line 56 of file r2riqueuemetric.inl.
|
inline |
Gets the number of queue discards over the report interval
Definition at line 70 of file r2riqueuemetric.inl.
|
inline |