GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 100.0% 1 / 1 / 2
Functions: 100.0% 1 / 1 / 2
Branches: -% 0 / 1 / 1

src/model/AirflowNetworkOccupantVentilationControl_Impl.hpp
Line Branch Exec Source
1 /***********************************************************************************************************************
2 * OpenStudio(R), Copyright (c) Alliance for Energy Innovation, LLC.
3 * See also https://openstudio.net/license
4 ***********************************************************************************************************************/
5
6 #ifndef MODEL_AIRFLOWNETWORKOCCUPANTVENTILATIONCONTROL_IMPL_HPP
7 #define MODEL_AIRFLOWNETWORKOCCUPANTVENTILATIONCONTROL_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "ModelObject_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 // TODO: Check the following class names against object getters and setters.
16 class Curve;
17 class Schedule;
18
19 namespace detail {
20
21 /** AirflowNetworkOccupantVentilationControl_Impl is a ModelObject_Impl that is the implementation class for AirflowNetworkOccupantVentilationControl.*/
22 class MODEL_API AirflowNetworkOccupantVentilationControl_Impl : public ModelObject_Impl
23 {
24 public:
25 /** @name Constructors and Destructors */
26 //@{
27
28 AirflowNetworkOccupantVentilationControl_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
29
30 AirflowNetworkOccupantVentilationControl_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
31
32 AirflowNetworkOccupantVentilationControl_Impl(const AirflowNetworkOccupantVentilationControl_Impl& other, Model_Impl* model, bool keepHandle);
33
34 2 virtual ~AirflowNetworkOccupantVentilationControl_Impl() override = default;
35
36 //@}
37 /** @name Virtual Methods */
38 //@{
39
40 virtual const std::vector<std::string>& outputVariableNames() const override;
41
42 virtual IddObjectType iddObjectType() const override;
43
44 virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override;
45
46 //@}
47 /** @name Getters */
48 //@{
49
50 double minimumOpeningTime() const;
51
52 bool isMinimumOpeningTimeDefaulted() const;
53
54 double minimumClosingTime() const;
55
56 bool isMinimumClosingTimeDefaulted() const;
57
58 Curve thermalComfortLowTemperatureCurve() const;
59
60 double thermalComfortTemperatureBoundaryPoint() const;
61
62 bool isThermalComfortTemperatureBoundaryPointDefaulted() const;
63
64 boost::optional<Curve> thermalComfortHighTemperatureCurve() const;
65
66 double maximumPredictedPercentageofDissatisfiedThreshold() const;
67
68 bool isMaximumPredictedPercentageofDissatisfiedThresholdDefaulted() const;
69
70 bool occupancyCheck() const;
71
72 bool isOccupancyCheckDefaulted() const;
73
74 boost::optional<Schedule> openingProbabilitySchedule() const;
75
76 boost::optional<Schedule> closingProbabilitySchedule() const;
77
78 //@}
79 /** @name Setters */
80 //@{
81
82 bool setMinimumOpeningTime(double minimumOpeningTime);
83
84 void resetMinimumOpeningTime();
85
86 bool setMinimumClosingTime(double minimumClosingTime);
87
88 void resetMinimumClosingTime();
89
90 bool setThermalComfortLowTemperatureCurve(const Curve& curve);
91
92 //void resetThermalComfortLowTemperatureCurve();
93
94 bool setThermalComfortTemperatureBoundaryPoint(double thermalComfortTemperatureBoundaryPoint);
95
96 void resetThermalComfortTemperatureBoundaryPoint();
97
98 bool setThermalComfortHighTemperatureCurve(const Curve& curve);
99
100 void resetThermalComfortHighTemperatureCurve();
101
102 bool setMaximumPredictedPercentageofDissatisfiedThreshold(double maximumPredictedPercentageofDissatisfiedThreshold);
103
104 void resetMaximumPredictedPercentageofDissatisfiedThreshold();
105
106 void setOccupancyCheck(bool occupancyCheck);
107
108 void resetOccupancyCheck();
109
110 bool setOpeningProbabilitySchedule(Schedule& schedule);
111
112 void resetOpeningProbabilitySchedule();
113
114 bool setClosingProbabilitySchedule(Schedule& schedule);
115
116 void resetClosingProbabilitySchedule();
117
118 //@}
119 /** @name Other */
120 //@{
121
122 //@}
123 protected:
124 private:
125 − REGISTER_LOGGER("openstudio.model.AirflowNetworkOccupantVentilationControl");
126 };
127
128 } // namespace detail
129
130 } // namespace model
131 } // namespace openstudio
132
133 #endif // MODEL_AIRFLOWNETWORKOCCUPANTVENTILATIONCONTROL_IMPL_HPP
134