GCC Code Coverage Report


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

src/model/SetpointManagerSingleZoneReheat.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_SETPOINTMANAGERSINGLEZONEREHEAT_HPP
7 #define MODEL_SETPOINTMANAGERSINGLEZONEREHEAT_HPP
8
9 #include "ModelAPI.hpp"
10 #include "SetpointManager.hpp"
11
12 namespace openstudio {
13
14 namespace model {
15
16 class ThermalZone;
17
18 namespace detail {
19
20 class SetpointManagerSingleZoneReheat_Impl;
21
22 }
23
24 /** SetpointManagerSingleZoneReheat is an interface to theIDD object
25 * named "OS:SetpointManager:SingleZone:Reheat"
26 *
27 * The purpose of this class is to simplify the construction and manipulation
28 * of the EnergyPlus SetpointManager:SingleZone:Reheat object.
29 */
30 class MODEL_API SetpointManagerSingleZoneReheat : public SetpointManager
31 {
32
33 public:
34 752 virtual ~SetpointManagerSingleZoneReheat() override = default;
35 // Default the copy and move operators because the virtual dtor is explicit
36 71 SetpointManagerSingleZoneReheat(const SetpointManagerSingleZoneReheat& other) = default;
37 45 SetpointManagerSingleZoneReheat(SetpointManagerSingleZoneReheat&& other) = default;
38 ✗ SetpointManagerSingleZoneReheat& operator=(const SetpointManagerSingleZoneReheat&) = default;
39 ✗ SetpointManagerSingleZoneReheat& operator=(SetpointManagerSingleZoneReheat&&) = default;
40
41 /** Constructs a new SetpointManagerSingleZoneReheat object and places it inside the
42 * model. The loop is fully initialized with all companion objects.
43 */
44 explicit SetpointManagerSingleZoneReheat(const Model& model);
45
46 /** Returns the value of the MinimumSupplyAirTemperature field. **/
47 double minimumSupplyAirTemperature();
48
49 /** Sets the value of the MinimumSupplyAirTemperature field. **/
50 bool setMinimumSupplyAirTemperature(double value);
51
52 /** Returns the value of the MaximumSupplyAirTemperature field. **/
53 double maximumSupplyAirTemperature();
54
55 /** Sets the value of the MaximumSupplyAirTemperature field. **/
56 bool setMaximumSupplyAirTemperature(double value);
57
58 /** Returns the Node referred to by the SetpointNodeName field. **/
59 boost::optional<Node> setpointNode() const;
60
61 std::string controlVariable() const;
62
63 bool setControlVariable(const std::string& controlVariable);
64
65 boost::optional<ThermalZone> controlZone();
66
67 bool setControlZone(ThermalZone& thermalZone);
68
69 void resetControlZone();
70
71 static IddObjectType iddObjectType();
72
73 static std::vector<std::string> controlVariableValues();
74
75 protected:
76 friend class Model;
77
78 friend class openstudio::IdfObject;
79
80 friend class openstudio::detail::IdfObject_Impl;
81
82 friend class detail::SetpointManagerSingleZoneReheat_Impl;
83
84 /// @cond
85
86 using ImplType = detail::SetpointManagerSingleZoneReheat_Impl;
87
88 explicit SetpointManagerSingleZoneReheat(std::shared_ptr<detail::SetpointManagerSingleZoneReheat_Impl> impl);
89
90 private:
91 REGISTER_LOGGER("openstudio.model.SetpointManagerSingleZoneReheat");
92
93 /// @endcond
94 };
95
96 using OptionalSetpointManagerSingleZoneReheat = boost::optional<SetpointManagerSingleZoneReheat>;
97
98 using SetpointManagerSingleZoneReheatVector = std::vector<SetpointManagerSingleZoneReheat>;
99
100 } // namespace model
101
102 } // namespace openstudio
103
104 #endif // MODEL_SETPOINTMANAGERSINGLEZONEREHEAT_HPP
105