33 void initializeApp(
int stage);
42 void handleTimerEvent(cMessage *msg);
58 simtime_t *pt = (simtime_t*)i3msg->getContextPointer();
60 stats.collect(simTime() - *pt);
63 i3msg->setContextPointer(0);
72 recordScalar(
"I3Sim Number of samples",
stats.getCount());
73 recordScalar(
"I3Sim Min time",
stats.getMin());
74 recordScalar(
"I3Sim Max time",
stats.getMax());
75 recordScalar(
"I3Sim Mean time",
stats.getMean());
76 recordScalar(
"I3Sim Stardard dev",
stats.getStddev());
81 #define TRIGGER_TIMER 12345
84 cMessage *msg =
new cMessage();
86 scheduleAt(simTime() +
int(par(
"triggerDelay")), msg);
95 I3IPAddress myAddress(nodeIPAddress, par(
"clientPort"));
106 imsg->setContextPointer(
new simtime_t(simTime()));
108 sendThroughUDP(imsg, gateway.address);
109 scheduleAt(simTime() +
int(par(
"triggerDelay")), msg);