// // This file is part of an OMNeT++/OMNEST simulation example. // // Copyright (C) 2006-2015 OpenSim Ltd. // // This file is distributed WITHOUT ANY WARRANTY. See the file // `license' for details on this and other legal matters. // #ifndef __SINKEXT_H__ #define __SINKEXT_H__ #include #include "Sink.h" using namespace omnetpp; /** * Sink module that displays the number of received jobs. */ class SinkExt : public queueing::Sink { protected: int numJobsReceived; virtual void initialize() override; virtual void handleMessage(cMessage *msg) override; virtual void refreshDisplay() const override; }; #endif