1 #ifndef SINK_H
2 #define SINK_H
3
4 #include <omnetpp.h>
5
6 class Sink : public cSimpleModule {
7 public:
8 Module_Class_Members(Sink,cSimpleModule,16384)
9 virtual void activity();
10 virtual void finish();
11
12 // discard data recorded so far
13 // call after initial transient to get steady state values
14 void reset();
15
16 private:
17 cStdDev sInfo; // statistics since last reset()
18 long totalCount; // total count of samples since start of activity()
19 };
20
21 #endif
22