Stores reservation info for use in scheduling data channel by reservation channel MAC. More...
#include <uan-mac-rc.h>
Public Member Functions | |
Reservation () | |
Create empty object with default values. More... | |
Reservation (std::list< std::pair< Ptr< Packet >, UanAddress > > &list, uint8_t frameNo, uint32_t maxPkts=0) | |
Create Reservation object with given packet list, frame number and max packets. More... | |
~Reservation () | |
void | AddTimestamp (Time t) |
uint8_t | GetFrameNo () const |
uint32_t | GetLength () const |
uint32_t | GetNoFrames () const |
const std::list< std::pair < Ptr< Packet >, UanAddress > > & | GetPktList (void) const |
uint8_t | GetRetryNo () const |
Time | GetTimestamp (uint8_t n) const |
void | IncrementRetry () |
Increments retry count by 1. More... | |
bool | IsTransmitted () const |
void | SetFrameNo (uint8_t fn) |
void | SetTransmitted (bool t=true) |
Sets reservation transmitted state. More... | |
Private Attributes | |
uint8_t | m_frameNo |
uint32_t | m_length |
std::list< std::pair< Ptr < Packet >, UanAddress > > | m_pktList |
uint8_t | m_retryNo |
std::vector< Time > | m_timestamp |
bool | m_transmitted |
Stores reservation info for use in scheduling data channel by reservation channel MAC.
Definition at line 52 of file uan-mac-rc.h.
ns3::Reservation::Reservation | ( | ) |
Create empty object with default values.
Definition at line 45 of file uan-mac-rc.cc.
ns3::Reservation::Reservation | ( | std::list< std::pair< Ptr< Packet >, UanAddress > > & | list, |
uint8_t | frameNo, | ||
uint32_t | maxPkts = 0 |
||
) |
Create Reservation object with given packet list, frame number and max packets.
list | List of packets for assigned to reservation |
frameNo | Frame number of reservation transmission |
maxPkts | Maximum number of packets to assign to reservation from packet list (0 = no maximum) |
Definition at line 54 of file uan-mac-rc.cc.
References ns3::UanHeaderRcData::GetSerializedSize(), ns3::UanHeaderCommon::GetSerializedSize(), list, m_length, and m_pktList.
ns3::Reservation::~Reservation | ( | ) |
Definition at line 75 of file uan-mac-rc.cc.
References m_pktList, and m_timestamp.
void ns3::Reservation::AddTimestamp | ( | Time | t | ) |
t | Time of latest RTS send |
Definition at line 134 of file uan-mac-rc.cc.
References m_timestamp.
Referenced by ns3::UanMacRc::Associate().
uint8_t ns3::Reservation::GetFrameNo | ( | void | ) | const |
Definition at line 104 of file uan-mac-rc.cc.
References m_frameNo.
Referenced by ns3::UanMacRc::CreateRtsHeader().
uint32_t ns3::Reservation::GetLength | ( | void | ) | const |
Definition at line 92 of file uan-mac-rc.cc.
References m_length.
Referenced by ns3::UanMacRc::CreateRtsHeader().
uint32_t ns3::Reservation::GetNoFrames | ( | void | ) | const |
Definition at line 86 of file uan-mac-rc.cc.
References m_pktList.
Referenced by ns3::UanMacRc::CreateRtsHeader().
const std::list< std::pair< Ptr< Packet >, UanAddress > > & ns3::Reservation::GetPktList | ( | void | ) | const |
Definition at line 98 of file uan-mac-rc.cc.
References m_pktList.
uint8_t ns3::Reservation::GetRetryNo | ( | void | ) | const |
Definition at line 110 of file uan-mac-rc.cc.
References m_retryNo.
Referenced by ns3::UanMacRc::CreateRtsHeader().
Time ns3::Reservation::GetTimestamp | ( | uint8_t | n | ) | const |
n | Timestamp for retry number n to return |
Definition at line 116 of file uan-mac-rc.cc.
References m_timestamp.
Referenced by ns3::UanMacRc::CreateRtsHeader().
void ns3::Reservation::IncrementRetry | ( | ) |
bool ns3::Reservation::IsTransmitted | ( | ) | const |
Definition at line 122 of file uan-mac-rc.cc.
References m_transmitted.
void ns3::Reservation::SetFrameNo | ( | uint8_t | fn | ) |
fn | Frame number to set reservation to |
Definition at line 128 of file uan-mac-rc.cc.
References m_frameNo.
void ns3::Reservation::SetTransmitted | ( | bool | t = true | ) |
Sets reservation transmitted state.
t | True if resevation has been transmitted |
Definition at line 146 of file uan-mac-rc.cc.
References m_transmitted.
|
private |
Definition at line 116 of file uan-mac-rc.h.
Referenced by GetFrameNo(), and SetFrameNo().
|
private |
Definition at line 115 of file uan-mac-rc.h.
Referenced by GetLength(), and Reservation().
|
private |
Definition at line 114 of file uan-mac-rc.h.
Referenced by GetNoFrames(), GetPktList(), Reservation(), and ~Reservation().
|
private |
Definition at line 118 of file uan-mac-rc.h.
Referenced by GetRetryNo(), and IncrementRetry().
|
private |
Definition at line 117 of file uan-mac-rc.h.
Referenced by AddTimestamp(), GetTimestamp(), and ~Reservation().
|
private |
Definition at line 119 of file uan-mac-rc.h.
Referenced by IsTransmitted(), and SetTransmitted().