ns3::Reservation Class Reference
Stores reservation info for use in scheduling data channel by reservation channel MAC.
More...
#include <uan-mac-rc.h>
List of all members.
Detailed Description
Stores reservation info for use in scheduling data channel by reservation channel MAC.
Constructor & Destructor Documentation
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.
- Parameters:
-
| 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) |
Member Function Documentation
void ns3::Reservation::AddTimestamp |
( |
Time |
t |
) |
|
- Parameters:
-
| t | Time of latest RTS send |
uint8_t ns3::Reservation::GetFrameNo |
( |
|
) |
const |
- Returns:
- Frame number of reservation
uint32_t ns3::Reservation::GetLength |
( |
|
) |
const |
- Returns:
- total byte length of reservation (sum of all packets with headers)
uint32_t ns3::Reservation::GetNoFrames |
( |
|
) |
const |
- Returns:
- number of frames in reservation
const std::list<std::pair <Ptr<Packet>, UanAddress > >& ns3::Reservation::GetPktList |
( |
void |
|
) |
const |
- Returns:
- reference to list of packets in this reservation
uint8_t ns3::Reservation::GetRetryNo |
( |
|
) |
const |
- Returns:
- Retry number of reservation
Time ns3::Reservation::GetTimestamp |
( |
uint8_t |
n |
) |
const |
- Returns:
- Timestamp nth RTS send for this reservation
- Parameters:
-
| n | Timestamp for retry number n to return |
bool ns3::Reservation::IsTransmitted |
( |
|
) |
const |
- Returns:
- True if reservation packets have been transmitted
void ns3::Reservation::SetFrameNo |
( |
uint8_t |
fn |
) |
|
- Parameters:
-
| fn | Frame number to set reservation to |
void ns3::Reservation::SetTransmitted |
( |
bool |
t = true |
) |
|
Sets reservation transmitted state.
- Parameters:
-
| t | True if resevation has been transmitted |
The documentation for this class was generated from the following file:
- src/devices/uan/model/uan-mac-rc.h