GCC Code Coverage Report


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

src/model/ZoneControlContaminantController_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_ZONECONTROLCONTAMINANTCONTROLLER_IMPL_HPP
7 #define MODEL_ZONECONTROLCONTAMINANTCONTROLLER_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "ModelObject_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class ThermalZone;
16 class Schedule;
17
18 namespace detail {
19
20 /** ZoneControlContaminantController_Impl is a ModelObject_Impl that is the implementation class for ZoneControlContaminantController.*/
21 class MODEL_API ZoneControlContaminantController_Impl : public ModelObject_Impl
22 {
23 public:
24 /** @name Constructors and Destructors */
25 //@{
26
27 ZoneControlContaminantController_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
28
29 ZoneControlContaminantController_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
30
31 ZoneControlContaminantController_Impl(const ZoneControlContaminantController_Impl& other, Model_Impl* model, bool keepHandle);
32
33 7 virtual ~ZoneControlContaminantController_Impl() override = default;
34
35 //@}
36 /** @name Virtual Methods */
37 //@{
38
39 virtual const std::vector<std::string>& outputVariableNames() const override;
40
41 virtual IddObjectType iddObjectType() const override;
42
43 virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override;
44
45 virtual ModelObject clone(Model model) const override;
46
47 //@}
48 /** @name Getters */
49 //@{
50
51 boost::optional<Schedule> carbonDioxideControlAvailabilitySchedule() const;
52
53 boost::optional<Schedule> carbonDioxideSetpointSchedule() const;
54
55 boost::optional<Schedule> minimumCarbonDioxideConcentrationSchedule() const;
56
57 boost::optional<Schedule> genericContaminantControlAvailabilitySchedule() const;
58
59 boost::optional<Schedule> genericContaminantSetpointSchedule() const;
60
61 //@}
62 /** @name Setters */
63 //@{
64
65 bool setCarbonDioxideControlAvailabilitySchedule(Schedule& schedule);
66
67 void resetCarbonDioxideControlAvailabilitySchedule();
68
69 bool setCarbonDioxideSetpointSchedule(Schedule& schedule);
70
71 void resetCarbonDioxideSetpointSchedule();
72
73 bool setMinimumCarbonDioxideConcentrationSchedule(Schedule& schedule);
74
75 void resetMinimumCarbonDioxideConcentrationSchedule();
76
77 bool setGenericContaminantControlAvailabilitySchedule(Schedule& schedule);
78
79 void resetGenericContaminantControlAvailabilitySchedule();
80
81 bool setGenericContaminantSetpointSchedule(Schedule& schedule);
82
83 void resetGenericContaminantSetpointSchedule();
84
85 //@}
86 /** @name Other */
87 //@{
88
89 boost::optional<ThermalZone> controlledZone() const;
90
91 bool setControlledZone(ThermalZone& zone);
92
93 void resetControlledZone();
94
95 //@}
96 protected:
97 private:
98 REGISTER_LOGGER("openstudio.model.ZoneControlContaminantController");
99 };
100
101 } // namespace detail
102
103 } // namespace model
104 } // namespace openstudio
105
106 #endif // MODEL_ZONECONTROLCONTAMINANTCONTROLLER_IMPL_HPP
107