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.
{ I3InsertTriggerMessage *i3msg; i3msg = dynamic_cast<I3InsertTriggerMessage*>(msg); if (i3msg) { simtime_t *pt = (simtime_t*)i3msg->getContextPointer(); if (pt) { stats.collect(simTime() - *pt); //cout << "Trigger reach time " << simTime() - *pt << endl; delete pt; i3msg->setContextPointer(0); } } I3::deliver(key, msg); }
void I3TRTServer::finish | ( | ) | [private, virtual] |
collects statistical data
Reimplemented from I3.
Definition at line 69 of file I3TriggerRoutingTime.cc.
{ if (!statsDumped) { statsDumped = true; recordScalar("I3Sim Number of samples", stats.getCount()); recordScalar("I3Sim Min time", stats.getMin()); recordScalar("I3Sim Max time", stats.getMax()); recordScalar("I3Sim Mean time", stats.getMean()); recordScalar("I3Sim Stardard dev", stats.getStddev()); stats.clearResult(); } }
void I3TRTServer::initializeApp | ( | int | stage | ) | [private, virtual] |
Actual initialization function.
stage | Actual stage |
Reimplemented from I3.
Definition at line 48 of file I3TriggerRoutingTime.cc.
{ statsDumped = false; I3::initializeApp(stage); }