Files
scandocs/uni/masterarbeit/source/moversight/rvd/timer/ResourceValueTimer.h
2014-06-30 13:58:10 +02:00

46 lines
1.1 KiB
C++

#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