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/EnergyManagementSystemActuator_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_ENERGYMANAGEMENTSYSTEMACTUATOR_IMPL_HPP
7 #define MODEL_ENERGYMANAGEMENTSYSTEMACTUATOR_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "ModelObject_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class ThermalZone;
16 class Space;
17
18 namespace detail {
19
20 /** EnergyManagementSystemActuator_Impl is a ModelObject_Impl that is the implementation class for EnergyManagementSystemActuator.*/
21 class MODEL_API EnergyManagementSystemActuator_Impl : public ModelObject_Impl
22 {
23 public:
24 /** @name Constructors and Destructors */
25 //@{
26
27 EnergyManagementSystemActuator_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
28
29 EnergyManagementSystemActuator_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
30
31 EnergyManagementSystemActuator_Impl(const EnergyManagementSystemActuator_Impl& other, Model_Impl* model, bool keepHandle);
32
33 388 virtual ~EnergyManagementSystemActuator_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 //@}
44 /** @name Getters */
45 //@{
46
47 boost::optional<ModelObject> actuatedComponent() const;
48
49 std::string actuatedComponentControlType() const;
50
51 std::string actuatedComponentType() const;
52
53 boost::optional<ModelObject> zoneOrSpace() const;
54 boost::optional<ThermalZone> thermalZone() const;
55 boost::optional<Space> space() const;
56
57 //@}
58 /** @name Setters */
59 //@{
60
61 bool setActuatedComponent(const ModelObject& modelObject);
62
63 bool setActuatedComponentControlType(const std::string& actuatedComponentControlType);
64
65 bool setActuatedComponentType(const std::string& actuatedComponentType);
66
67 bool setThermalZone(const ThermalZone& thermalZone);
68 bool setSpace(const Space& space);
69 void resetZoneOrSpace();
70
71 //@}
72 /** @name Other */
73 //@{
74
75 //@}
76 protected:
77 private:
78 − REGISTER_LOGGER("openstudio.model.EnergyManagementSystemActuator");
79 };
80
81 } // namespace detail
82
83 } // namespace model
84 } // namespace openstudio
85
86 #endif // MODEL_ENERGYMANAGEMENTSYSTEMACTUATOR_IMPL_HPP
87