-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsensor.cpp
More file actions
46 lines (34 loc) · 883 Bytes
/
Copy pathsensor.cpp
File metadata and controls
46 lines (34 loc) · 883 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#include "sensor.h"
Sensor::Sensor(int id, const QString& type, double reliability, const QString& name, double max, double min)
: id(id), type(type), reliability(reliability), name(name), max(max), min(min) {}
Sensor::~Sensor() {}
int Sensor::getId() const {
return id;
}
QString Sensor::getType() const {
return type;
}
double Sensor::getReliability() const {
return reliability;
}
QString Sensor::getName() const {
return name;
}
double Sensor::getMax() const {
return max;
}
double Sensor::getMin() const {
return min;
}
void Sensor::setName(const QString &newName) {
name = newName;
}
void Sensor::setReliability(double newReliability) {
reliability = newReliability;
}
void Sensor::setMax(double newMax) {
max = newMax;
}
void Sensor::setMin(double newMin) {
min = newMin;
}