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/SizingParameters_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_SIZINGPARAMETERS_IMPL_HPP
7 #define MODEL_SIZINGPARAMETERS_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 /** SizingParameters_Impl is a ModelObject_Impl that is the implementation class for SizingParameters.*/
18 class MODEL_API SizingParameters_Impl : public ModelObject_Impl
19 {
20
21 public:
22 /** @name Constructors and Destructors */
23 //@{
24
25 SizingParameters_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
26
27 SizingParameters_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
28
29 SizingParameters_Impl(const SizingParameters_Impl& other, Model_Impl* model, bool keepHandle);
30
31 1083 virtual ~SizingParameters_Impl() override = default;
32
33 //@}
34
35 /** @name Virtual Methods */
36 //@{
37
38 virtual boost::optional<ParentObject> parent() const override;
39
40 virtual const std::vector<std::string>& outputVariableNames() const override;
41
42 virtual IddObjectType iddObjectType() const override;
43
44 //@}
45 /** @name Getters */
46 //@{
47
48 double heatingSizingFactor() const;
49
50 bool isHeatingSizingFactorDefaulted() const;
51
52 double coolingSizingFactor() const;
53
54 bool isCoolingSizingFactorDefaulted() const;
55
56 boost::optional<int> timestepsinAveragingWindow() const;
57
58 //@}
59 /** @name Setters */
60 //@{
61
62 bool setHeatingSizingFactor(double heatingSizingFactor);
63
64 void resetHeatingSizingFactor();
65
66 bool setCoolingSizingFactor(double coolingSizingFactor);
67
68 void resetCoolingSizingFactor();
69
70 bool setTimestepsinAveragingWindow(boost::optional<int> timestepsinAveragingWindow);
71
72 void resetTimestepsinAveragingWindow();
73
74 //@}
75 /** @name Other */
76 //@{
77
78 //@}
79 protected:
80 private:
81 REGISTER_LOGGER("openstudio.model.SizingParameters");
82 };
83
84 } // namespace detail
85
86 } // namespace model
87 } // namespace openstudio
88
89 #endif // MODEL_SIZINGPARAMETERS_IMPL_HPP
90