Private Member Functions

I3TRTServer Class Reference

Inheritance diagram for I3TRTServer:
I3 BaseApp BaseRpc BaseTcpSupport RpcListener

List of all members.

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

Detailed Description

Definition at line 31 of file I3TriggerRoutingTime.cc.


Member Function Documentation

void I3TRTServer::deliver ( OverlayKey key,
cMessage *  msg 
) [private, virtual]

Delivers a packet from the overlay.

Parameters:
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.

Parameters:
stage Actual stage

Reimplemented from I3.

Definition at line 48 of file I3TriggerRoutingTime.cc.

                                         {
    statsDumped = false;
    I3::initializeApp(stage);
}


The documentation for this class was generated from the following file: