GCC Code Coverage Report


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

src/model/GeneratorFuelCellWaterSupply.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_GENERATORFUELCELLWATERSUPPLY_HPP
7 #define MODEL_GENERATORFUELCELLWATERSUPPLY_HPP
8
9 #include "ModelAPI.hpp"
10 #include "ModelObject.hpp"
11
12 namespace openstudio {
13
14 namespace model {
15
16 class CurveQuadratic;
17 class CurveCubic;
18 class Node;
19 class Schedule;
20 class GeneratorFuelCell;
21
22 namespace detail {
23
24 class GeneratorFuelCellWaterSupply_Impl;
25
26 } // namespace detail
27
28 /** GeneratorFuelCellWaterSupply is a ModelObject that wraps the OpenStudio IDD object 'OS:Generator:FuelCell:WaterSupply'. */
29 class MODEL_API GeneratorFuelCellWaterSupply : public ModelObject
30 {
31 public:
32 /** @name Constructors and Destructors */
33 //@{
34
35 explicit GeneratorFuelCellWaterSupply(const Model& model);
36
37 explicit GeneratorFuelCellWaterSupply(const Model& model, const std::string& waterTempMode);
38
39 explicit GeneratorFuelCellWaterSupply(const Model& model, const CurveQuadratic& flowRateCurve, const CurveCubic& pumpPowerCurve,
40 Schedule tempSchedule);
41
42 explicit GeneratorFuelCellWaterSupply(const Model& model, const CurveQuadratic& flowRateCurve, const CurveCubic& pumpPowerCurve,
43 const Node& waterTempNode, const std::string& waterTempMode);
44
45 110 virtual ~GeneratorFuelCellWaterSupply() override = default;
46 // Default the copy and move operators because the virtual dtor is explicit
47 22 GeneratorFuelCellWaterSupply(const GeneratorFuelCellWaterSupply& other) = default;
48 50 GeneratorFuelCellWaterSupply(GeneratorFuelCellWaterSupply&& other) = default;
49 ✗ GeneratorFuelCellWaterSupply& operator=(const GeneratorFuelCellWaterSupply&) = default;
50 ✗ GeneratorFuelCellWaterSupply& operator=(GeneratorFuelCellWaterSupply&&) = default;
51
52 //@}
53
54 static IddObjectType iddObjectType();
55
56 static std::vector<std::string> waterTemperatureModelingModeValues();
57
58 /** @name Getters */
59 //@{
60
61 CurveQuadratic reformerWaterFlowRateFunctionofFuelRateCurve() const;
62
63 CurveCubic reformerWaterPumpPowerFunctionofFuelRateCurve() const;
64
65 double pumpHeatLossFactor() const;
66
67 std::string waterTemperatureModelingMode() const;
68
69 boost::optional<Node> waterTemperatureReferenceNode() const;
70
71 boost::optional<Schedule> waterTemperatureSchedule() const;
72
73 // Return optional parent generator
74 boost::optional<GeneratorFuelCell> fuelCell() const;
75
76 //@}
77 /** @name Setters */
78 //@{
79
80 bool setReformerWaterFlowRateFunctionofFuelRateCurve(const CurveQuadratic& quadraticCurves);
81
82 bool setReformerWaterPumpPowerFunctionofFuelRateCurve(const CurveCubic& cubicCurves);
83
84 bool setPumpHeatLossFactor(double pumpHeatLossFactor);
85
86 void resetPumpHeatLossFactor();
87
88 bool setWaterTemperatureModelingMode(const std::string& waterTemperatureModelingMode);
89
90 void resetWaterTemperatureModelingMode();
91
92 bool setWaterTemperatureReferenceNode(const Node& connection);
93
94 void resetWaterTemperatureReferenceNode();
95
96 bool setWaterTemperatureSchedule(Schedule& schedule);
97
98 void resetWaterTemperatureSchedule();
99
100 //@}
101 /** @name Other */
102 //@{
103
104 //@}
105 protected:
106 /// @cond
107 using ImplType = detail::GeneratorFuelCellWaterSupply_Impl;
108
109 explicit GeneratorFuelCellWaterSupply(std::shared_ptr<detail::GeneratorFuelCellWaterSupply_Impl> impl);
110
111 friend class detail::GeneratorFuelCellWaterSupply_Impl;
112 friend class Model;
113 friend class IdfObject;
114 friend class openstudio::detail::IdfObject_Impl;
115 /// @endcond
116 private:
117 − REGISTER_LOGGER("openstudio.model.GeneratorFuelCellWaterSupply");
118 };
119
120 /** \relates GeneratorFuelCellWaterSupply*/
121 using OptionalGeneratorFuelCellWaterSupply = boost::optional<GeneratorFuelCellWaterSupply>;
122
123 /** \relates GeneratorFuelCellWaterSupply*/
124 using GeneratorFuelCellWaterSupplyVector = std::vector<GeneratorFuelCellWaterSupply>;
125
126 } // namespace model
127 } // namespace openstudio
128
129 #endif // MODEL_GENERATORFUELCELLWATERSUPPLY_HPP
130