51 void initializeApp(
int stage);
54 void handleTimerEvent(cMessage *msg);
69 sendPacketTimer =
new cMessage(
"packet timer");
70 scheduleAt(simTime() + 50, sendPacketTimer);
74 os <<
"Composite " << myIndex;
77 insertTrigger(identifier);
98 sendPacket(stack, cmsg);
104 getParentModule()->bubble(
"Starting chain!");
117 string final =
"Final sentence: " + cmsg->
sentence;
118 getParentModule()->bubble(
final.c_str());
124 getParentModule()->bubble(
"Adding 'He pounds'");
128 getParentModule()->bubble(
"Adding 'his fists'");
132 getParentModule()->bubble(
"Adding 'against'");
136 getParentModule()->bubble(
"Adding 'the posts'");
143 sendPacket(stack, cmsg);