GCC Code Coverage Report


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

src/model/EnergyManagementSystemTrendVariable_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_ENERGYMANAGEMENTSYSTEMTRENDVARIABLE_IMPL_HPP
7 #define MODEL_ENERGYMANAGEMENTSYSTEMTRENDVARIABLE_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "ModelObject_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 namespace detail {
16
17 /** EnergyManagementSystemTrendVariable_Impl is a ModelObject_Impl that is the implementation class for EnergyManagementSystemTrendVariable.*/
18 class MODEL_API EnergyManagementSystemTrendVariable_Impl : public ModelObject_Impl
19 {
20 public:
21 /** @name Constructors and Destructors */
22 //@{
23
24 EnergyManagementSystemTrendVariable_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
25
26 EnergyManagementSystemTrendVariable_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
27
28 EnergyManagementSystemTrendVariable_Impl(const EnergyManagementSystemTrendVariable_Impl& other, Model_Impl* model, bool keepHandle);
29
30 17 virtual ~EnergyManagementSystemTrendVariable_Impl() override = default;
31
32 //@}
33 /** @name Virtual Methods */
34 //@{
35
36 virtual const std::vector<std::string>& outputVariableNames() const override;
37
38 virtual IddObjectType iddObjectType() const override;
39
40 //@}
41 /** @name Getters */
42 //@{
43
44 std::string emsVariableName() const;
45
46 int numberOfTimestepsToBeLogged() const;
47
48 boost::optional<ModelObject> emsVariableObject() const;
49
50 boost::optional<EnergyManagementSystemActuator> emsActuator() const;
51 boost::optional<EnergyManagementSystemSensor> emsSensor() const;
52 boost::optional<EnergyManagementSystemGlobalVariable> emsGlobalVariable() const;
53 boost::optional<EnergyManagementSystemTrendVariable> emsTrendVariable() const;
54 boost::optional<EnergyManagementSystemInternalVariable> emsInternalVariable() const;
55 boost::optional<EnergyManagementSystemCurveOrTableIndexVariable> emsCurveOrTableIndexVariable() const;
56 boost::optional<EnergyManagementSystemConstructionIndexVariable> emsConstructionIndexVariable() const;
57
58 //@}
59 /** @name Setters */
60 //@{
61
62 bool setEMSVariableName(const std::string& eMSVariableName);
63
64 bool setNumberOfTimestepsToBeLogged(int numberofTimestepstobeLogged);
65
66 bool setEMSVariableName(const EnergyManagementSystemActuator& object);
67 bool setEMSVariableName(const EnergyManagementSystemSensor& object);
68 bool setEMSVariableName(const EnergyManagementSystemGlobalVariable& object);
69 bool setEMSVariableName(const EnergyManagementSystemTrendVariable& object);
70 bool setEMSVariableName(const EnergyManagementSystemInternalVariable& object);
71 bool setEMSVariableName(const EnergyManagementSystemCurveOrTableIndexVariable& object);
72 bool setEMSVariableName(const EnergyManagementSystemConstructionIndexVariable& object);
73
74 //@}
75 /** @name Other */
76 //@{
77
78 //@}
79 protected:
80 private:
81 REGISTER_LOGGER("openstudio.model.EnergyManagementSystemTrendVariable");
82 };
83
84 } // namespace detail
85
86 } // namespace model
87 } // namespace openstudio
88
89 #endif // MODEL_ENERGYMANAGEMENTSYSTEMTRENDVARIABLE_IMPL_HPP
90