ns-3
|
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. | |
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. | |
uint32_t | GetNoFrames () const |
uint32_t | GetLength () const |
const std::list< std::pair < Ptr< Packet >, UanAddress > > & | GetPktList (void) const |
uint8_t | GetFrameNo () const |
uint8_t | GetRetryNo () const |
Time | GetTimestamp (uint8_t n) const |
bool | IsTransmitted () const |
void | SetFrameNo (uint8_t fn) |
void | AddTimestamp (Time t) |
void | IncrementRetry () |
Increments retry count by 1. | |
void | SetTransmitted (bool t=true) |
Sets reservation transmitted state. |
Stores reservation info for use in scheduling data channel by reservation channel MAC.
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) |
References ns3::UanHeaderRcData::GetSerializedSize(), and ns3::UanHeaderCommon::GetSerializedSize().
uint8_t ns3::Reservation::GetFrameNo | ( | void | ) | const |
uint32_t ns3::Reservation::GetLength | ( | void | ) | const |
uint32_t ns3::Reservation::GetNoFrames | ( | void | ) | const |
const std::list< std::pair< Ptr< Packet >, UanAddress > > & ns3::Reservation::GetPktList | ( | void | ) | const |
uint8_t ns3::Reservation::GetRetryNo | ( | void | ) | const |
Time ns3::Reservation::GetTimestamp | ( | uint8_t | n | ) | const |
n | Timestamp for retry number n to return |
bool ns3::Reservation::IsTransmitted | ( | ) | const |
void ns3::Reservation::SetFrameNo | ( | uint8_t | fn | ) |
fn | Frame number to set reservation to |
void ns3::Reservation::SetTransmitted | ( | bool | t = true | ) |
Sets reservation transmitted state.
t | True if resevation has been transmitted |