EPONImplementationforOMNet++
0.8Beta
|
EPON_LLidCtrlInfo extends cObject and is used for ControlInfo carried in the messages. More...
#include <EPON_CtrlInfo.h>
Public Member Functions | |
EPON_LLidCtrlInfo () | |
EPON_LLidCtrlInfo (int lid) | |
virtual | ~EPON_LLidCtrlInfo () |
virtual cObject * | dup () const |
virtual std::string | info () const |
Public Attributes | |
int | llid |
EPON_LLidCtrlInfo extends cObject and is used for ControlInfo carried in the messages.
It currently contains only LLID (Logical Link ID) information. This information are added by the module generated the message OR by the RelayUnit which is responsible for traffic differentiation. Finally, this is used in the EPON_mac module in order to generate the correct Ethernet preamble.
The methods are the classical ones: Constructor/Destructor, dup() and info() (needed to extend cObject).
{ llid = 0; }
EPON_LLidCtrlInfo::EPON_LLidCtrlInfo | ( | int | lid | ) |
{ llid = lid; }
EPON_LLidCtrlInfo::~EPON_LLidCtrlInfo | ( | ) | [virtual] |
{
// TODO Auto-generated destructor stub
}
cObject * EPON_LLidCtrlInfo::dup | ( | ) | const [virtual] |
{ return new EPON_LLidCtrlInfo(llid); }
std::string EPON_LLidCtrlInfo::info | ( | ) | const [virtual] |
{ std::string ret="LLiD: "; char tos[10]; sprintf(tos,"%d",llid); return ret+tos; }