#ifndef RESSOURCEVALUETIMER_H #define RESSOURCEVALUETIMER_H #include "common/timer/MoversightTimer.h" #include "ms/PeerResources.h" namespace ubeeme { namespace moversight { class ResourceValueDistributor; class TimerResourceValueProfile; /** * @brief Timer change the resource value in perodic interval * @class TimerResourceValueProfile * @author Felix Stubbe * @ingroup Moversight */ class ResourceValueTimer : public MoversightTimer { public: ResourceValueTimer(TimerResourceValueProfile & trvp, ResourceValueDistributor & rvd); virtual ~ResourceValueTimer(); ResourceValueTimer(const ResourceValueTimer& other); ResourceValueTimer& operator=(const ResourceValueTimer& other); virtual void timeout(); virtual ResourceValueTimer * dup(); PeerResources getPeerResources(); void setPeerResources(const PeerResources & resources); private: TimerResourceValueProfile & trvp; }; } } #endif // RESSOURCEVALUETIMER_H