|
EPONImplementationforOMNet++
0.8Beta
|
This class holds a single ONUTable entry... More...
#include <ONUTableEntry.h>
Public Member Functions | |
| ONUTableEntry () | |
| ONUTableEntry (const ONUTableEntry &en) | |
| virtual | ~ONUTableEntry () |
| void | setId (MACAddress &mac) |
| void | setRTT (uint32_t rtt) |
| int | addLLID (uint16_t llid) |
| Check the LLID is unique and add. | |
| void | removeLLID (int idx) |
| void | setComTime (CommitedTime t) |
| MACAddress | getId () |
| uint16_t | getRTT () |
| uint16_t | getLLID (int idx) |
| vector< uint16_t > & | getLLIDs () const |
| int | getLLIDsNum () |
| CommitedTime | getComTime () |
| bool | isValid () |
| virtual cObject * | dup () |
| virtual std::string | info () |
| ONUTableEntry & | operator= (const ONUTableEntry &en) |
Public Attributes | |
| uint32_t | req [8] |
| uint32_t | totalReq |
Protected Attributes | |
| MACAddress | id |
| uint16_t | RTT |
| vector< uint16_t > | LLIDs |
| CommitedTime | comTimes |
Friends | |
| std::ostream & | operator<< (std::ostream &out, const ONUTableEntry &en) |
This class holds a single ONUTable entry...
| ONUTableEntry::ONUTableEntry | ( | const ONUTableEntry & | en | ) |
| ONUTableEntry::~ONUTableEntry | ( | ) | [virtual] |
{
LLIDs.clear();
}
| int ONUTableEntry::addLLID | ( | uint16_t | llid | ) |
| cObject * ONUTableEntry::dup | ( | ) | [virtual] |
{
return new ONUTableEntry(*this);
}
{return comTimes;}
| MACAddress ONUTableEntry::getId | ( | ) |
{return id;}
| uint16_t ONUTableEntry::getLLID | ( | int | idx | ) |
{return LLIDs[idx];}
| vector< uint16_t > & ONUTableEntry::getLLIDs | ( | ) | const |
{
return (vector<uint16_t> &)LLIDs;
}
| int ONUTableEntry::getLLIDsNum | ( | ) |
{return LLIDs.size();}
| uint16_t ONUTableEntry::getRTT | ( | ) |
{return RTT;}
| std::string ONUTableEntry::info | ( | ) | [virtual] |
{
return "A single ONU entry";
}
| bool ONUTableEntry::isValid | ( | ) |
{
return !id.equals("00:00:00:00:00:00");
}
| ONUTableEntry & ONUTableEntry::operator= | ( | const ONUTableEntry & | en | ) |
| void ONUTableEntry::removeLLID | ( | int | idx | ) |
| void ONUTableEntry::setComTime | ( | CommitedTime | t | ) |
| void ONUTableEntry::setId | ( | MACAddress & | mac | ) |
{id=mac;}
| void ONUTableEntry::setRTT | ( | uint32_t | rtt | ) |
{RTT=rtt;}
| std::ostream& operator<< | ( | std::ostream & | out, |
| const ONUTableEntry & | en | ||
| ) | [friend] |
CommitedTime ONUTableEntry::comTimes [protected] |
MACAddress ONUTableEntry::id [protected] |
vector<uint16_t> ONUTableEntry::LLIDs [protected] |
| uint32_t ONUTableEntry::req[8] |
uint16_t ONUTableEntry::RTT [protected] |
| uint32_t ONUTableEntry::totalReq |