GCC Code Coverage Report


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

src/model/AvailabilityManagerDifferentialThermostat.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_AVAILABILITYMANAGERDIFFERENTIALTHERMOSTAT_HPP
7 #define MODEL_AVAILABILITYMANAGERDIFFERENTIALTHERMOSTAT_HPP
8
9 #include "ModelAPI.hpp"
10 #include "AvailabilityManager.hpp"
11
12 namespace openstudio {
13
14 namespace model {
15
16 class Node;
17
18 namespace detail {
19
20 class AvailabilityManagerDifferentialThermostat_Impl;
21
22 } // namespace detail
23
24 /** AvailabilityManagerDifferentialThermostat is a AvailabilityManager that wraps the OpenStudio IDD object 'OS:AvailabilityManager:DifferentialThermostat'. */
25 class MODEL_API AvailabilityManagerDifferentialThermostat : public AvailabilityManager
26 {
27 public:
28 /** @name Constructors and Destructors */
29 //@{
30
31 explicit AvailabilityManagerDifferentialThermostat(const Model& model);
32
33 3 virtual ~AvailabilityManagerDifferentialThermostat() override = default;
34 // Default the copy and move operators because the virtual dtor is explicit
35 ✗ AvailabilityManagerDifferentialThermostat(const AvailabilityManagerDifferentialThermostat& other) = default;
36 ✗ AvailabilityManagerDifferentialThermostat(AvailabilityManagerDifferentialThermostat&& other) = default;
37 ✗ AvailabilityManagerDifferentialThermostat& operator=(const AvailabilityManagerDifferentialThermostat&) = default;
38 ✗ AvailabilityManagerDifferentialThermostat& operator=(AvailabilityManagerDifferentialThermostat&&) = default;
39
40 //@}
41
42 static IddObjectType iddObjectType();
43
44 /** @name Getters */
45 //@{
46
47 boost::optional<Node> hotNode() const;
48
49 boost::optional<Node> coldNode() const;
50
51 double temperatureDifferenceOnLimit() const;
52
53 double temperatureDifferenceOffLimit() const;
54
55 //@}
56 /** @name Setters */
57 //@{
58
59 bool setHotNode(const Node& node);
60
61 void resetHotNode();
62
63 bool setColdNode(const Node& node);
64
65 void resetColdNode();
66
67 bool setTemperatureDifferenceOnLimit(double temperatureDifferenceOnLimit);
68
69 bool setTemperatureDifferenceOffLimit(double temperatureDifferenceOffLimit);
70
71 //@}
72 /** @name Other */
73 //@{
74
75 //@}
76 protected:
77 /// @cond
78 using ImplType = detail::AvailabilityManagerDifferentialThermostat_Impl;
79
80 explicit AvailabilityManagerDifferentialThermostat(std::shared_ptr<detail::AvailabilityManagerDifferentialThermostat_Impl> impl);
81
82 friend class detail::AvailabilityManagerDifferentialThermostat_Impl;
83 friend class Model;
84 friend class IdfObject;
85 friend class openstudio::detail::IdfObject_Impl;
86 /// @endcond
87 private:
88 REGISTER_LOGGER("openstudio.model.AvailabilityManagerDifferentialThermostat");
89 };
90
91 /** \relates AvailabilityManagerDifferentialThermostat*/
92 using OptionalAvailabilityManagerDifferentialThermostat = boost::optional<AvailabilityManagerDifferentialThermostat>;
93
94 /** \relates AvailabilityManagerDifferentialThermostat*/
95 using AvailabilityManagerDifferentialThermostatVector = std::vector<AvailabilityManagerDifferentialThermostat>;
96
97 } // namespace model
98 } // namespace openstudio
99
100 #endif // MODEL_AVAILABILITYMANAGERDIFFERENTIALTHERMOSTAT_HPP
101