-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCondition.cpp
More file actions
41 lines (30 loc) · 1.1 KB
/
Condition.cpp
File metadata and controls
41 lines (30 loc) · 1.1 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
#include "Condition.h"
Condition::Condition() : m_type(NULL_CONDITION) {
}
Condition::Condition(ConditionType type) : m_type(type) {
}
ConditionType Condition::getType() const {
return m_type;
}
ConstantTempCondition::ConstantTempCondition(double temperature) :
Condition(CONSTANT_TEMPERATURE), m_temperature(temperature) {
}
double ConstantTempCondition::getTemperature() const {
return m_temperature;
}
NoHeatExchangeCondition::NoHeatExchangeCondition() : Condition(NO_HEAT_EXCHANGE) {
}
HeatFlowCondition::HeatFlowCondition(double flow) : Condition(HEAT_FLOW), m_flow(flow) {
}
double HeatFlowCondition::getFlow() const {
return m_flow;
}
EnvironmentHeatExchangeCondition::EnvironmentHeatExchangeCondition(double environment_temp, double exchange_coeff) :
Condition(ENVIRONMENT_HEAT_EXCHANGE), m_environment_temp(environment_temp), m_exchange_coeff(exchange_coeff) {
}
double EnvironmentHeatExchangeCondition::getEnvironmentTemp() const {
return m_environment_temp;
}
double EnvironmentHeatExchangeCondition::getEchangeCoeff() const {
return m_exchange_coeff;
}