SMUCNGPerfOperator.h 806 Bytes
Newer Older
1
/*
2
 * SMUCNGPerfOperator.h
3
4
5
6
7
 *
 *  Created on: Jul 20, 2019
 *      Author: carla
 */

8
9
#ifndef ANALYTICS_SMUCNGPERF_SMUCNGPERFOPERATOR_H_
#define ANALYTICS_SMUCNGPERF_SMUCNGPERFOPERATOR_H_
10

11
#include "../../includes/OperatorTemplate.h"
12
#include "SMUCSensorBase.h"
13
14
#include <map>

15
class SMUCNGPerfOperator: virtual public OperatorTemplate<SMUCSensorBase>{
16
17
18
19
private:
	std::map<SMUCSensorBase::Metrics, int> _metricToPosition;

public:
20
21
	SMUCNGPerfOperator(const std::string& name);
	virtual ~SMUCNGPerfOperator();
22
23
24
25
26
27
28
29
30
31
    void printConfig(LOG_LEVEL ll) override;

	void setMetricToPosition(const std::map<SMUCSensorBase::Metrics,int>&metricToPosition) {
		_metricToPosition = metricToPosition;
	}

protected:
    virtual void compute(U_Ptr unit) override;
};

32
#endif /* ANALYTICS_SMUCNGPERF_SMUCNGPERFOPERATOR_H_ */