update20140630
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user