Public Member Functions

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.

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.

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: