39 sigStatPDUFTLENGTH = registerSignal(SIG_STAT_PDUFT_LENGTH);
41 cDisplayString& disp = getDisplayString();
42 disp.setTagArg(
"t", 1,
"t");
43 disp.setTagArg(
"t", 0, getClassName());
61 if (t->find(qos) != t->end())
63 ret.push_back((*t)[qos]);
67 ret.push_back(t->begin()->second);
71 if (t->find(
ANY_QOS) != t->end())
81 std::ostringstream os;
83 os << this->getName() << endl;
84 for (
FWDTableIt tIt = table.begin(); tIt != table.end(); tIt++)
86 os <<
"\t" << tIt->first << endl;
87 for (
qos2PortIt qIt = tIt->second.begin(); qIt != tIt->second.end();
90 os <<
"\t\t->(" << qIt->first <<
" , " << qIt->second->getFullPath()
101 emit(sigStatPDUFTLENGTH, (
long) table.size());
106 emit(sigStatPDUFTLENGTH, (
long) table.size());
111 table[addr][qos] = port;
112 emit(sigStatPDUFTLENGTH, (
long) table.size());
116 table[addr].erase(qos);
117 if (table[addr].empty())
122 emit(sigStatPDUFTLENGTH, (
long) table.size());
128 emit(sigStatPDUFTLENGTH, (
long) table.size());
133 emit(sigStatPDUFTLENGTH, (
long) table.size());
138 emit(sigStatPDUFTLENGTH, (
long) table.size());
143 if (table[addr].empty())
147 emit(sigStatPDUFTLENGTH, (
long) table.size());
153 sigStatPDUFTLENGTH = registerSignal(SIG_STAT_PDUFT_LENGTH);
157 if (par(
"printAtEnd").boolValue())
159 EV << toString() << endl;
map< std::string, RMTPort * > qos2Port
void remove(const std::string &addr, const std::string &qos)
std::string getQoSId() const
Getter of selected QoS-cube identifier.
const APN & getIpcAddress() const
Getter of IPC Process address which should be unambiguous within DIF.
qos2Port::iterator qos2PortIt
const std::string VAL_MGMTQOSID
virtual ConnectionId & getConnId()
FWDTable::iterator FWDTableIt
void initSignalsAndListeners()
virtual Address & getDstAddr()
vector< RMTPort * > lookup(const PDU *pdu)
void insert(const std::string &addr, const std::string &qos, RMTPort *port)
Register_Class(SimpleTable::SimpleTable)
const std::string & getName() const
Gets APN string name representation.
Address class holds IPC Process identification.