-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCondition.h
More file actions
54 lines (44 loc) · 1.03 KB
/
Condition.h
File metadata and controls
54 lines (44 loc) · 1.03 KB
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
47
48
49
50
51
52
53
54
#pragma once
#include "Defines.h"
enum ConditionType {
NULL_CONDITION,
CONSTANT_TEMPERATURE,
NO_HEAT_EXCHANGE,
HEAT_FLOW,
ENVIRONMENT_HEAT_EXCHANGE,
};
class Condition {
protected:
ConditionType m_type;
public:
Condition();
Condition(ConditionType type);
ConditionType getType() const;
};
class ConstantTempCondition : public Condition {
private:
double m_temperature;
public:
explicit ConstantTempCondition(double temperature);
double getTemperature() const;
};
class NoHeatExchangeCondition : public Condition {
public:
NoHeatExchangeCondition();
};
class HeatFlowCondition : public Condition {
private:
double m_flow;
public:
HeatFlowCondition(double flow);
double getFlow() const;
};
class EnvironmentHeatExchangeCondition : public Condition {
private:
double m_environment_temp;
double m_exchange_coeff;
public:
EnvironmentHeatExchangeCondition(double environment_temp, double exchange_coeff);
double getEnvironmentTemp() const;
double getEchangeCoeff() const;
};