34 lines
782 B
C++
34 lines
782 B
C++
//
|
|
// Created by camer on 20/05/2020.
|
|
//
|
|
|
|
#ifndef PROJET_VICTORAVECUNK_TERRARIUMPARAMETER_H
|
|
#define PROJET_VICTORAVECUNK_TERRARIUMPARAMETER_H
|
|
|
|
|
|
class TerrariumParameter { //TODO add to diagram
|
|
private:
|
|
float value, thresholdHigh, thresholdLow;
|
|
public:
|
|
class ThresholdExcep {
|
|
public:
|
|
int id;
|
|
ThresholdExcep(int id):id(id){};
|
|
};
|
|
TerrariumParameter(float thresholdHigh, float thresholdLow);
|
|
|
|
//getters setters
|
|
float getValue() const;
|
|
void setValue(float value);
|
|
float getThresholdHigh() const;
|
|
void setThresholdHigh(float thresholdHigh);
|
|
float getThresholdLow() const;
|
|
void setThresholdLow(float thresholdLow);
|
|
|
|
//Methods
|
|
bool is2High();
|
|
bool is2Low();
|
|
};
|
|
|
|
|
|
#endif //PROJET_VICTORAVECUNK_TERRARIUMPARAMETER_H
|