User Manual, Developers Guide and API Documentation

wimemac::drp::TempSendBuffer Class Reference

#include <drp/TempSendBuffer.hpp>

Inheritance diagram for wimemac::drp::TempSendBuffer:

Inheritance graph
[legend]
Collaboration diagram for wimemac::drp::TempSendBuffer:

Collaboration graph
[legend]

List of all members.

Public Member Functions

int CalculateMaxSize ()
wns::simulator::Time CalculateTxTime (int size)
bool CalculateTxTime (int size, wns::simulator::Time &duration)
bool FillBuffer ()
wns::ldk::CompoundPtr GetCompound ()
int GetCompoundSize ()
Bit getCurrentCompoundSize ()
Bit getNextCompoundSize ()
int GetNumOfRetransmissions ()
int GetNumOfRetransmissions (const wns::ldk::CompoundPtr &compound)
int GetNumOfTotalRetransmissions ()
wns::service::dll::UnicastAddress GetTarget ()
void ImmAck ()
bool IsBufferEmpty () const
void NewArrival ()
int numCompounds ()
void SetTxopDuration (wns::simulator::Time duration_)
bool StartBuffering ()
void StopBuffering ()
 TempSendBuffer (helper::Queues *_DRPQueues, wns::service::dll::UnicastAddress _target, DRPScheduler *_drpscheduler, wns::logger::Logger logger)
void TransmitCompound (const wns::ldk::CompoundPtr &compound)
wns::simulator::Time txBufferTime ()

Private Types

enum  AckType { No, Imm, Block }

Private Member Functions

void onTimeout ()
 Your callback. Implement this.
void SendCompounds ()

Private Attributes

helper::QueuesDRPQueues
DRPSchedulerdrpscheduler
int firstMASOfTxOP
const wns::simulator::Time GuardDuration
bool isTransmissionStarted
bool isWaitingSIFS
wns::logger::Logger logger
int numOfRetransmissions
int numTotalRetransmissions
int sentCompoundsInLastBufferAction
int sentCompoundsInLastTxOP
const wns::simulator::Time SIFS
int successfullCompoundsInLastBufferAction
int successfullCompoundsInLastTxOP
struct
wimemac::drp::TempSendBuffer::TempBuffer 
tempBuffer
const wns::simulator::Time TxAckDuration
wns::simulator::Time txOPStartTime
wns::simulator::Time txOPTime

Classes

struct  TempBuffer


Detailed Description

Definition at line 49 of file TempSendBuffer.hpp.


Member Enumeration Documentation

Enumerator:
No 
Imm 
Block 

Definition at line 80 of file TempSendBuffer.hpp.


Constructor & Destructor Documentation

TempSendBuffer::TempSendBuffer ( helper::Queues _DRPQueues,
wns::service::dll::UnicastAddress  _target,
DRPScheduler _drpscheduler,
wns::logger::Logger  logger 
)

Definition at line 34 of file TempSendBuffer.cpp.


Member Function Documentation

int TempSendBuffer::CalculateMaxSize (  ) 

Definition at line 205 of file TempSendBuffer.cpp.

wns::simulator::Time TempSendBuffer::CalculateTxTime ( int  size  ) 

Definition at line 264 of file TempSendBuffer.cpp.

bool TempSendBuffer::CalculateTxTime ( int  size,
wns::simulator::Time duration 
)

Definition at line 243 of file TempSendBuffer.cpp.

bool TempSendBuffer::FillBuffer (  ) 

Definition at line 151 of file TempSendBuffer.cpp.

wns::ldk::CompoundPtr TempSendBuffer::GetCompound (  ) 

Definition at line 306 of file TempSendBuffer.cpp.

int TempSendBuffer::GetCompoundSize (  ) 

Definition at line 211 of file TempSendBuffer.cpp.

Bit TempSendBuffer::getCurrentCompoundSize (  ) 

Definition at line 233 of file TempSendBuffer.cpp.

Bit TempSendBuffer::getNextCompoundSize (  ) 

Definition at line 223 of file TempSendBuffer.cpp.

int TempSendBuffer::GetNumOfRetransmissions (  ) 

Definition at line 99 of file TempSendBuffer.cpp.

int TempSendBuffer::GetNumOfRetransmissions ( const wns::ldk::CompoundPtr compound  ) 

Definition at line 92 of file TempSendBuffer.cpp.

int TempSendBuffer::GetNumOfTotalRetransmissions (  ) 

Definition at line 86 of file TempSendBuffer.cpp.

wns::service::dll::UnicastAddress TempSendBuffer::GetTarget (  ) 

Definition at line 105 of file TempSendBuffer.cpp.

void TempSendBuffer::ImmAck (  ) 

Definition at line 382 of file TempSendBuffer.cpp.

bool TempSendBuffer::IsBufferEmpty (  )  const

Definition at line 273 of file TempSendBuffer.cpp.

void TempSendBuffer::NewArrival (  ) 

Definition at line 401 of file TempSendBuffer.cpp.

int TempSendBuffer::numCompounds (  ) 

Definition at line 408 of file TempSendBuffer.cpp.

void TempSendBuffer::onTimeout (  )  [private, virtual]

The deriver is forced to implement this method. It gets called, whenever the timer fires.

Implements wns::events::CanTimeout.

Definition at line 325 of file TempSendBuffer.cpp.

void TempSendBuffer::SendCompounds (  )  [private]

Definition at line 279 of file TempSendBuffer.cpp.

void TempSendBuffer::SetTxopDuration ( wns::simulator::Time  duration_  ) 

Definition at line 58 of file TempSendBuffer.cpp.

bool TempSendBuffer::StartBuffering (  ) 

Definition at line 111 of file TempSendBuffer.cpp.

void TempSendBuffer::StopBuffering (  ) 

Definition at line 126 of file TempSendBuffer.cpp.

void TempSendBuffer::TransmitCompound ( const wns::ldk::CompoundPtr compound  ) 

Definition at line 312 of file TempSendBuffer.cpp.

wns::simulator::Time TempSendBuffer::txBufferTime (  ) 

Definition at line 414 of file TempSendBuffer.cpp.


Member Data Documentation

Definition at line 95 of file TempSendBuffer.hpp.

Definition at line 112 of file TempSendBuffer.hpp.

Definition at line 94 of file TempSendBuffer.hpp.

Definition at line 108 of file TempSendBuffer.hpp.

Definition at line 99 of file TempSendBuffer.hpp.

Definition at line 98 of file TempSendBuffer.hpp.

Definition at line 96 of file TempSendBuffer.hpp.

Definition at line 100 of file TempSendBuffer.hpp.

Definition at line 101 of file TempSendBuffer.hpp.

Definition at line 103 of file TempSendBuffer.hpp.

Definition at line 105 of file TempSendBuffer.hpp.

Definition at line 110 of file TempSendBuffer.hpp.

Definition at line 104 of file TempSendBuffer.hpp.

Definition at line 106 of file TempSendBuffer.hpp.

Definition at line 109 of file TempSendBuffer.hpp.

Definition at line 93 of file TempSendBuffer.hpp.

Definition at line 92 of file TempSendBuffer.hpp.


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

Generated on Sat May 26 03:32:49 2012 for openWNS by  doxygen 1.5.5