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/server.h
download file

  1 #ifndef SERVER_H
  2 #define SERVER_H
  3
  4 #include <omnetpp.h>
  5
  6 class Server : public cSimpleModule {
  7 public:
  8     Module_Class_Members(Server,cSimpleModule,16384)
  9     virtual void activity();
 10     virtual void finish();
 11     virtual void initialize();
 12
 13     long getJobsInSystem() {return jobsInSystem;}
 14
 15 private:
 16     long jobsInSystem;   // parameter holding current number of jobs in the server
 17     long messageCount;   // number of jobs served
 18     cQueue queue;        // waiting line
 19 };
 20
 21 #endif
 22