33 timer =
new cMessage(
"app_timer");
41 cancelAndDelete(
timer );
51 simulation.getModuleByPath(
"globalObserver.globalFunctions[0].function.observer"));
53 msglen = par(
"messageLength");
66 double random = uniform( 0, 1 );
74 scheduleAt( simTime() + 10,
timer );
91 scheduleAt(simTime() + 1,
timer);
118 send(msg,
"to_lowerTier");
127 send(msg,
"to_lowerTier");
138 traced->setTimestamp();
142 traced->setByteLength(
msglen);
144 msg->encapsulate(traced);
146 send(msg,
"to_lowerTier");
153 getParentModule()->getParentModule()->bubble(
"Received message!");
154 EV <<
"[ALMTest::handleMCast()]\n"
155 <<
" App received data message for group: " << mcast->
getGroupId()