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