Skip to content

Instantly share code, notes, and snippets.

View elkorn's full-sized avatar

Korneliusz Caputa elkorn

View GitHub Profile
#include <omnetpp.h>
class Server : public cSimpleModule
{
private:
cQueue queue; //the queue; first job in the queue is being serviced
cMessage *departure; //message-reminder of the end of service (job departure)
simtime_t departure_time; //time of the next departure
cOutVector *proces;
cMessage *pomiar;