EPONImplementationforOMNet++
0.8Beta
|
Allocation per LLID. More...
#include <ONUQPerLLiDBase.h>
Public Member Functions | |
QueuePerLLid () | |
~QueuePerLLid () | |
Public Attributes | |
uint16_t | llid |
bool | isDefault |
Friends | |
std::ostream & | operator<< (std::ostream &out, QueuePerLLid &ql) |
Allocation per LLID.
Holds all the information around a queue per LLID. These include service name, priority, max. committed data rate and currently sent bytes (to be used later on DBA algorithm). Also this struct holds all the scalar and vector parameters needed for logging.
NOTE: The cOutVector class is not copy-able... which means that we cannot have objects of this type in this struck and use it in a vector (copy constructor will be called). So what we did is to have pointers to the cOutVectors which can be copied. This is done with the CopyableQueueCVectors class.
NOTE: Call the clean() method on this class to free all the vectors...
QueuePerLLid::QueuePerLLid | ( | ) | [inline] |
: QForContainer(){}
QueuePerLLid::~QueuePerLLid | ( | ) | [inline] |
{}
std::ostream& operator<< | ( | std::ostream & | out, |
QueuePerLLid & | ql | ||
) | [friend] |
{ out<<"llid: "<<ql.llid<<" SrvName: "<<ql.getServiceName()<<" QueueSize: "<<ql.length()<<endl; out<< "DataRate Limit: "<<ql.datarate_max<<" Currently sent: "<<ql.sentbits<<endl<< " Incoming Rate (bps): "<<ql.vec->incomingBPS <<" OutGoing Rate:"<<ql.getTxDataRate(); return out; }
uint16_t QueuePerLLid::llid |