GCC Code Coverage Report


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

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