sources:
generator.cpp (709 bytes)
generator.h (417 bytes)
generator_n.cpp (4.0k)
lbs_i.cpp (2.6k)
lbs_i.h (430 bytes)
lbs_i_n.cpp (4.1k)
lbs_ii.cpp (3.3k)
lbs_ii.h (439 bytes)
lbs_ii_n.cpp (4.1k)
minimumselector.cpp (1.7k)
minimumselector.h (359 bytes)
minimumselector_n.cpp (4.1k)
randomselector.cpp (454 bytes)
randomselector.h (266 bytes)
randomselector_n.cpp (4.1k)
server.cpp (1.6k)
server.h (508 bytes)
server_n.cpp (4.0k)
servicenet_n.cpp (13.6k)
sink.cpp (1.3k)
sink.h (495 bytes)
sink_n.cpp (3.9k)


website:
more info here


screenshot:
studies/performance/Performance-Code5/sink.h
download file

  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