47 activeStrategy = this->neighborCache->par(
"gvbSendStrategy").stdstringValue();
80 EV <<
"|DD|> GlobalViewBuilder::handleRpcCall (" <<
") <||" << endl;
101 if (dynamic_cast<AreaDataCall*>(msg)) {
107 <<
": " << msg->
getSrcNode().
getIp() <<
" is not my parent! Deleting AreaDataCall!" << std::endl;
126 newAreaCall->setBitLength(temp->getBitLength());
140 <<
") is no child of mine! Deleting Coordinates!" << std::endl;
161 cPolymorphic* context,
162 int rpcId, simtime_t rtt)
182 cap = _CapReqResponse->getAreaData().CBRAreaPool;
193 cPolymorphic* context,
int rpcId,
196 std::cout <<
"THIS SHOULD NOT HAPPEN!!!" << std::endl;
241 std::stringstream nodeState;
243 nodeState <<
"LVL: ";
254 EV <<
"|DD|> GlobalViewBuilder::handleCoordSendTimer ("
255 <<
"Spread GlobaLViewData" <<
") <||" << endl;
266 neighborCache->getParentModule()->getDisplayString().setTagArg(
"t", 0, nodeState.str().c_str());
268 std::cout << simTime() <<
" @ "
270 <<
": I have no parent :-(" << std::endl;
293 uint32_t tempSize = 0;
307 EV <<
"[GlobalViewBuilder::spreadGlobalView() @ "
310 <<
")]\n CAP.size() " << ccd.size()
311 <<
" != numTerminalCount: no spreading!" << endl;
312 std::cout <<
"[GlobalViewBuilder::spreadGlobalView() @ "
315 <<
")]\n CCD.size() " << ccd.size()
316 <<
" != numTerminalCount: no spreading!" << std::endl;
321 EV <<
"[GlobalViewBuilder::spreadGlobalView() @ "
324 <<
")]\n CAP.size() " << ccd.size()
325 <<
" in id change phase, no spreading" << endl;
326 std::cout <<
"[GlobalViewBuilder::spreadGlobalView() @ "
329 <<
")]\n CAP.size() " << ccd.size()
330 <<
" in id change phase, no spreading" << std::endl;
337 if ((ccd.size() > (tempSize * 1.2)) ||
338 (ccd.size() < (tempSize * 0.8))) {
339 EV <<
"[GlobalViewBuilder::spreadGlobalView() @ "
342 <<
")]\n CAP.size() is too fluctuant: no spreading!" << endl;
343 std::cout <<
"[GlobalViewBuilder::spreadGlobalView() @ "
346 <<
")]\n CAP.size() is too fluctuant: no spreading!" << std::endl;
416 <<
" No CAP available for spreading!" << endl;
419 <<
" No CAP available for spreading!" << std::endl;
448 std::cout <<
"\n " << simTime() <<
" CCD @ "
450 <<
": size = " << ccd.size() <<
"\n" << std::endl;