update20140630

This commit is contained in:
stubbfel
2014-06-30 13:58:10 +02:00
parent 565970632e
commit 1e6cf42df3
877 changed files with 1146249 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
#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