GCC Code Coverage Report


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

src/model/Node.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_NODE_HPP
7 #define MODEL_NODE_HPP
8
9 #include "ModelAPI.hpp"
10 #include "ModelObject.hpp"
11 #include "StraightComponent.hpp"
12 #include "Connection.hpp"
13
14 namespace openstudio {
15 namespace model {
16
17 class SetpointManagerSingleZoneReheat;
18
19 class SetpointManagerMixedAir;
20
21 class SetpointManagerScheduled;
22
23 class SetpointManagerFollowOutdoorAirTemperature;
24
25 class SetpointManagerOutdoorAirReset;
26
27 class SetpointManagerWarmest;
28
29 class SetpointManager;
30
31 class AirflowNetworkDistributionNode;
32
33 namespace detail {
34 class Node_Impl;
35 } // namespace detail
36
37 /** Node is a ModelObject that defines a point in an EnergyPlus HVAC topology where fluid conditions are known and
38 * control devices can be applied. EnergyPlus IDD does not define a Node object, however the concept of a node
39 * is central to modeling HVAC systems in EnergyPlus.
40 */
41 class MODEL_API Node : public StraightComponent
42 {
43
44 public:
45 /** Constructs a new Node object and places it inside the
46 * model. The object is fully initialized with all companion objects.
47 */
48 explicit Node(const Model& model);
49
50 375888 virtual ~Node() override = default;
51 // Default the copy and move operators because the virtual dtor is explicit
52 94683 Node(const Node& other) = default;
53 136130 Node(Node&& other) = default;
54 ✗ Node& operator=(const Node&) = default;
55 1329 Node& operator=(Node&&) = default;
56
57 std::vector<SetpointManager> setpointManagers() const;
58
59 static IddObjectType iddObjectType();
60
61 AirflowNetworkDistributionNode getAirflowNetworkDistributionNode();
62
63 boost::optional<AirflowNetworkDistributionNode> airflowNetworkDistributionNode() const;
64
65 protected:
66 friend class Model;
67
68 friend class openstudio::IdfObject;
69
70 friend class openstudio::detail::IdfObject_Impl;
71
72 /// @cond
73
74 using ImplType = detail::Node_Impl;
75
76 explicit Node(std::shared_ptr<detail::Node_Impl> impl);
77
78 private:
79 REGISTER_LOGGER("openstudio.model.Node");
80
81 /// @endcond
82 };
83
84 /** \relates Node */
85 using OptionalNode = boost::optional<Node>;
86
87 /** \relates Node */
88 using NodeVector = std::vector<Node>;
89
90 } // namespace model
91 } // namespace openstudio
92
93 #endif // MODEL_Node_HPP
94