Commit b6d659be authored by Alessio Netti's avatar Alessio Netti

Analytics: minor changes to plugins

- Making all configurator destructors virtual
- Minor changes to the regressor plugin to accommodate the
classification extension
parent 1b644a40
......@@ -40,7 +40,7 @@ class AggregatorConfigurator : virtual public OperatorConfiguratorTemplate<Aggre
public:
AggregatorConfigurator();
~AggregatorConfigurator();
virtual ~AggregatorConfigurator();
private:
void sensorBase(AggregatorSensorBase& s, CFG_VAL config) override;
......
......@@ -40,7 +40,7 @@ class JobAggregatorConfigurator : public JobOperatorConfiguratorTemplate<JobAggr
public:
JobAggregatorConfigurator();
~JobAggregatorConfigurator();
virtual ~JobAggregatorConfigurator();
private:
void sensorBase(AggregatorSensorBase& s, CFG_VAL config) override;
......
......@@ -40,7 +40,7 @@ class ClusteringConfigurator : virtual public OperatorConfiguratorTemplate<Clust
public:
ClusteringConfigurator();
~ClusteringConfigurator();
virtual ~ClusteringConfigurator();
private:
void sensorBase(ClusteringSensorBase& s, CFG_VAL config) override;
......
......@@ -41,7 +41,7 @@ class FilesinkConfigurator : virtual public OperatorConfiguratorTemplate<Filesin
public:
FilesinkConfigurator();
~FilesinkConfigurator();
virtual ~FilesinkConfigurator();
private:
void sensorBase(FilesinkSensorBase& s, CFG_VAL config) override;
......
......@@ -40,11 +40,11 @@ class RegressorConfigurator : virtual public OperatorConfiguratorTemplate<Regres
public:
RegressorConfigurator();
~RegressorConfigurator();
virtual ~RegressorConfigurator();
private:
void sensorBase(RegressorSensorBase& s, CFG_VAL config) override;
void operatorAttributes(RegressorOperator& op, CFG_VAL config) override;
virtual void operatorAttributes(RegressorOperator& op, CFG_VAL config) override;
bool unit(UnitTemplate<RegressorSensorBase>& u) override;
};
......
......@@ -69,7 +69,7 @@ RegressorOperator::~RegressorOperator() {
restResponse_t RegressorOperator::REST(const string& action, const unordered_map<string, string>& queries) {
restResponse_t resp;
if(action=="train") {
resp.response = "Re-training triggered for regressor " + this->_name + "!\n";
resp.response = "Re-training triggered for model " + this->_name + "!\n";
this->_trainingPending = true;
} else if(action=="importances") {
resp.response = getImportances();
......
......@@ -71,7 +71,7 @@ public:
unsigned long long getTrainingSamples() { return _trainingSamples; }
bool getComputeImportances() { return _importances; }
void printConfig(LOG_LEVEL ll) override;
virtual void printConfig(LOG_LEVEL ll) override;
protected:
......
......@@ -40,7 +40,7 @@ class SmoothingConfigurator : virtual public OperatorConfiguratorTemplate<Smooth
public:
SmoothingConfigurator();
~SmoothingConfigurator();
virtual ~SmoothingConfigurator();
private:
void sensorBase(SmoothingSensorBase& s, CFG_VAL config) override;
......
......@@ -40,7 +40,7 @@ class TesterOperatorConfigurator : virtual public OperatorConfiguratorTemplate<T
public:
TesterOperatorConfigurator();
~TesterOperatorConfigurator();
virtual ~TesterOperatorConfigurator();
private:
void sensorBase(SensorBase& s, CFG_VAL config) override;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment