Private Member Functions | |
void | initializeApp (int stage) |
Actual initialization function. | |
void | deliver (OverlayKey &key, cMessage *msg) |
Delivers a packet from the overlay. | |
void | finish () |
collects statistical data |
Definition at line 31 of file I3TriggerRoutingTime.cc.
void I3TRTServer::deliver | ( | OverlayKey & | key, | |
cMessage * | msg | |||
) | [private, virtual] |
Delivers a packet from the overlay.
key | Key from the overlay | |
msg | Message to deliver |
Reimplemented from I3.
Definition at line 53 of file I3TriggerRoutingTime.cc.
00053 { 00054 I3InsertTriggerMessage *i3msg; 00055 00056 i3msg = dynamic_cast<I3InsertTriggerMessage*>(msg); 00057 if (i3msg) { 00058 simtime_t *pt = (simtime_t*)i3msg->getContextPointer(); 00059 if (pt) { 00060 stats.collect(simTime() - *pt); 00061 //cout << "Trigger reach time " << simTime() - *pt << endl; 00062 delete pt; 00063 i3msg->setContextPointer(0); 00064 } 00065 } 00066 I3::deliver(key, msg); 00067 }
void I3TRTServer::finish | ( | ) | [private, virtual] |
collects statistical data
Reimplemented from I3.
Definition at line 69 of file I3TriggerRoutingTime.cc.
00069 { 00070 if (!statsDumped) { 00071 statsDumped = true; 00072 recordScalar("I3Sim Number of samples", stats.getCount()); 00073 recordScalar("I3Sim Min time", stats.getMin()); 00074 recordScalar("I3Sim Max time", stats.getMax()); 00075 recordScalar("I3Sim Mean time", stats.getMean()); 00076 recordScalar("I3Sim Stardard dev", stats.getStddev()); 00077 stats.clearResult(); 00078 } 00079 }
void I3TRTServer::initializeApp | ( | int | stage | ) | [private, virtual] |
Actual initialization function.
stage | Actual stage |
Reimplemented from I3.
Definition at line 48 of file I3TriggerRoutingTime.cc.
00048 { 00049 statsDumped = false; 00050 I3::initializeApp(stage); 00051 }