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/AvailabilityManagerNightVentilation_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_AVAILABILITYMANAGERNIGHTVENTILATION_IMPL_HPP
7 #define MODEL_AVAILABILITYMANAGERNIGHTVENTILATION_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "AvailabilityManager_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class Schedule;
16 class ThermalZone;
17
18 namespace detail {
19
20 /** AvailabilityManagerNightVentilation_Impl is a AvailabilityManager_Impl that is the implementation class for AvailabilityManagerNightVentilation.*/
21 class MODEL_API AvailabilityManagerNightVentilation_Impl : public AvailabilityManager_Impl
22 {
23 public:
24 /** @name Constructors and Destructors */
25 //@{
26
27 AvailabilityManagerNightVentilation_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
28
29 AvailabilityManagerNightVentilation_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
30
31 AvailabilityManagerNightVentilation_Impl(const AvailabilityManagerNightVentilation_Impl& other, Model_Impl* model, bool keepHandle);
32
33 10 virtual ~AvailabilityManagerNightVentilation_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 //@}
46 /** @name Getters */
47 //@{
48
49 Schedule applicabilitySchedule() const;
50
51 boost::optional<Schedule> ventilationTemperatureSchedule() const;
52
53 double ventilationTemperatureDifference() const;
54
55 double ventilationTemperatureLowLimit() const;
56
57 double nightVentingFlowFraction() const;
58
59 boost::optional<ThermalZone> controlZone() const;
60
61 //@}
62 /** @name Setters */
63 //@{
64
65 bool setApplicabilitySchedule(Schedule& schedule);
66
67 bool setVentilationTemperatureSchedule(Schedule& schedule);
68
69 void resetVentilationTemperatureSchedule();
70
71 bool setVentilationTemperatureDifference(double ventilationTemperatureDifference);
72
73 bool setVentilationTemperatureLowLimit(double ventilationTemperatureLowLimit);
74
75 bool setNightVentingFlowFraction(double nightVentingFlowFraction);
76
77 bool setControlZone(const boost::optional<ThermalZone>& thermalZone);
78
79 void resetControlZone();
80
81 //@}
82 /** @name Other */
83 //@{
84
85 //@}
86 protected:
87 private:
88 − REGISTER_LOGGER("openstudio.model.AvailabilityManagerNightVentilation");
89
90 // TODO: Check the return types of these methods.
91 // Optional getters for use by methods like children() so can remove() if the constructor fails.
92 // There are other ways for the public versions of these getters to fail--perhaps all required
93 // objects should be returned as boost::optionals
94 boost::optional<Schedule> optionalApplicabilitySchedule() const;
95 };
96
97 } // namespace detail
98
99 } // namespace model
100 } // namespace openstudio
101
102 #endif // MODEL_AVAILABILITYMANAGERNIGHTVENTILATION_IMPL_HPP
103