A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::zigbee::RreqRetryTableEntry Class Reference

The route request retry table entry. More...

#include "zigbee-nwk-tables.h"

+ Inheritance diagram for ns3::zigbee::RreqRetryTableEntry:
+ Collaboration diagram for ns3::zigbee::RreqRetryTableEntry:

Public Member Functions

 RreqRetryTableEntry (uint8_t rreqId, EventId rreqRetryEvent, uint8_t rreqRetryCount)
 The constructor of the RREQ retry table entry.
 
EventId GetRreqEventId ()
 Get the RREQ id of the RREQ retry.
 
uint8_t GetRreqId () const
 Get the RREQ Id from the entry.
 
uint8_t GetRreqRetryCount () const
 Get the RREQ retry count from the entry.
 
void Print (Ptr< OutputStreamWrapper > stream) const
 Print the values of the RREQ retry table entry.
 
void SetRreqEventId (EventId eventId)
 Set the event id of the RREQ retry.
 
void SetRreqRetryCount (uint8_t rreqRetryCount)
 Set the RREQ retry count from the entry.
 
- Public Member Functions inherited from ns3::SimpleRefCount< RreqRetryTableEntry >
 SimpleRefCount ()
 Default constructor.
 
 SimpleRefCount (const SimpleRefCount &o)
 Copy constructor.
 
uint32_t GetReferenceCount () const
 Get the reference count of the object.
 
SimpleRefCountoperator= (const SimpleRefCount &o)
 Assignment operator.
 
void Ref () const
 Increment the reference count.
 
void Unref () const
 Decrement the reference count.
 

Private Attributes

uint8_t m_rreqId
 The RREQ ID.
 
uint8_t m_rreqRetryCount
 The number of RREQ retries.
 
EventId m_rreqRetryEventId
 The event id of the next RREQ retry callback.
 

Detailed Description

The route request retry table entry.

It represents information stored about future route requests retries.

Definition at line 784 of file zigbee-nwk-tables.h.

Constructor & Destructor Documentation

◆ RreqRetryTableEntry()

ns3::zigbee::RreqRetryTableEntry::RreqRetryTableEntry ( uint8_t rreqId,
EventId rreqRetryEvent,
uint8_t rreqRetryCount )

The constructor of the RREQ retry table entry.

Parameters
rreqIdThe RREQ ID
rreqRetryEventThe EventId of the next RREQ retry callback
rreqRetryCountThe current number of RREQ retries for this RREQ ID

Definition at line 31 of file zigbee-nwk-tables.cc.

References m_rreqId, m_rreqRetryCount, and m_rreqRetryEventId.

Member Function Documentation

◆ GetRreqEventId()

EventId ns3::zigbee::RreqRetryTableEntry::GetRreqEventId ( )

Get the RREQ id of the RREQ retry.

Returns
The event id

Definition at line 65 of file zigbee-nwk-tables.cc.

References m_rreqRetryEventId.

◆ GetRreqId()

uint8_t ns3::zigbee::RreqRetryTableEntry::GetRreqId ( ) const

Get the RREQ Id from the entry.

Returns
The RREQ ID from the entry

Definition at line 41 of file zigbee-nwk-tables.cc.

References m_rreqId.

◆ GetRreqRetryCount()

uint8_t ns3::zigbee::RreqRetryTableEntry::GetRreqRetryCount ( ) const

Get the RREQ retry count from the entry.

Returns
The RREQ retry count

Definition at line 53 of file zigbee-nwk-tables.cc.

References m_rreqRetryCount.

◆ Print()

void ns3::zigbee::RreqRetryTableEntry::Print ( Ptr< OutputStreamWrapper > stream) const

Print the values of the RREQ retry table entry.

Parameters
streamThe stream object used to print.

Definition at line 71 of file zigbee-nwk-tables.cc.

References ns3::EventId::IsPending(), m_rreqId, m_rreqRetryCount, and m_rreqRetryEventId.

+ Here is the call graph for this function:

◆ SetRreqEventId()

void ns3::zigbee::RreqRetryTableEntry::SetRreqEventId ( EventId eventId)

Set the event id of the RREQ retry.

Parameters
eventIdThe event id corresponding to the next RREQ retry callback

Definition at line 59 of file zigbee-nwk-tables.cc.

References m_rreqRetryEventId.

◆ SetRreqRetryCount()

void ns3::zigbee::RreqRetryTableEntry::SetRreqRetryCount ( uint8_t rreqRetryCount)

Set the RREQ retry count from the entry.

Parameters
rreqRetryCountThe value of the RREQ retry count

Definition at line 47 of file zigbee-nwk-tables.cc.

References m_rreqRetryCount.

Member Data Documentation

◆ m_rreqId

uint8_t ns3::zigbee::RreqRetryTableEntry::m_rreqId
private

The RREQ ID.

Definition at line 839 of file zigbee-nwk-tables.h.

Referenced by RreqRetryTableEntry(), GetRreqId(), and Print().

◆ m_rreqRetryCount

uint8_t ns3::zigbee::RreqRetryTableEntry::m_rreqRetryCount
private

The number of RREQ retries.

Definition at line 841 of file zigbee-nwk-tables.h.

Referenced by RreqRetryTableEntry(), GetRreqRetryCount(), Print(), and SetRreqRetryCount().

◆ m_rreqRetryEventId

EventId ns3::zigbee::RreqRetryTableEntry::m_rreqRetryEventId
private

The event id of the next RREQ retry callback.

Definition at line 840 of file zigbee-nwk-tables.h.

Referenced by RreqRetryTableEntry(), GetRreqEventId(), Print(), and SetRreqEventId().


The documentation for this class was generated from the following files: