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/UnitarySystemPerformanceMultispeed_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_UNITARYSYSTEMPERFORMANCEMULTISPEED_IMPL_HPP
7 #define MODEL_UNITARYSYSTEMPERFORMANCEMULTISPEED_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "ModelObject_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class SupplyAirflowRatioField;
16 class ModelExtensibleGroup;
17
18 namespace detail {
19
20 /** UnitarySystemPerformanceMultispeed_Impl is a ModelObject_Impl that is the implementation class for UnitarySystemPerformanceMultispeed.*/
21 class MODEL_API UnitarySystemPerformanceMultispeed_Impl : public ModelObject_Impl
22 {
23 public:
24 /** @name Constructors and Destructors */
25 //@{
26 UnitarySystemPerformanceMultispeed_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
27
28 UnitarySystemPerformanceMultispeed_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
29
30 UnitarySystemPerformanceMultispeed_Impl(const UnitarySystemPerformanceMultispeed_Impl& other, Model_Impl* model, bool keepHandle);
31
32 26 virtual ~UnitarySystemPerformanceMultispeed_Impl() override = default;
33
34 //@}
35 /** @name Virtual Methods */
36 //@{
37 virtual const std::vector<std::string>& outputVariableNames() const override;
38
39 virtual IddObjectType iddObjectType() const override;
40 //@}
41 /** @name Getters */
42 //@{
43 bool singleModeOperation() const;
44
45 double noLoadSupplyAirflowRateRatio() const;
46
47 std::vector<SupplyAirflowRatioField> supplyAirflowRatioFields() const;
48
49 //@}
50 /** @name Setters */
51 //@{
52 bool setSingleModeOperation(bool singleMode);
53
54 void resetSingleModeOperation();
55
56 bool setNoLoadSupplyAirflowRateRatio(double noLoadSupplyAirflowRateRatio);
57
58 bool setSupplyAirflowRatioFields(const std::vector<SupplyAirflowRatioField>& airflowRatioFields);
59
60 bool addSupplyAirflowRatioField(const SupplyAirflowRatioField& airflowRatio);
61
62 bool addSupplyAirflowRatioField(double heatingRatio, double coolingRatio);
63
64 void resetSupplyAirflowRatioFields();
65
66 //@}
67
68 protected:
69 private:
70 − REGISTER_LOGGER("openstudio.model.UnitarySystemPerformanceMultispeed");
71 boost::optional<double> readDoubleFieldOrAutosize(unsigned fieldNum, const ModelExtensibleGroup& group) const;
72 };
73
74 } // namespace detail
75
76 } // namespace model
77 } // namespace openstudio
78
79 #endif // MODEL_UNITARYSYSTEMPERFORMANCEMULTISPEED_IMPL_HPP
80