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/SolarCollectorFlatPlatePhotovoltaicThermal_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_SOLARCOLLECTORFLATPLATEPHOTOVOLTAICTHERMAL_IMPL_HPP
7 #define MODEL_SOLARCOLLECTORFLATPLATEPHOTOVOLTAICTHERMAL_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "StraightComponent_Impl.hpp"
11
12 namespace openstudio {
13
14 namespace model {
15
16 class GeneratorPhotovoltaic;
17 class PlanarSurface;
18 class SolarCollectorPerformancePhotovoltaicThermalBIPVT;
19 class SolarCollectorPerformancePhotovoltaicThermalSimple;
20
21 namespace detail {
22
23 /** SolarCollectorFlatPlatePhotovoltaicThermal_Impl is a StraightComponent_Impl that is the implementation class for SolarCollectorFlatPlatePhotovoltaicThermal.*/
24 class MODEL_API SolarCollectorFlatPlatePhotovoltaicThermal_Impl : public StraightComponent_Impl
25 {
26
27 public:
28 /** @name Constructors and Destructors */
29 //@{
30
31 SolarCollectorFlatPlatePhotovoltaicThermal_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
32
33 SolarCollectorFlatPlatePhotovoltaicThermal_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
34
35 SolarCollectorFlatPlatePhotovoltaicThermal_Impl(const SolarCollectorFlatPlatePhotovoltaicThermal_Impl& other, Model_Impl* model,
36 bool keepHandle);
37
38 19 virtual ~SolarCollectorFlatPlatePhotovoltaicThermal_Impl() override = default;
39
40 //@}
41 /** @name Virtual Methods */
42 //@{
43
44 virtual ModelObject clone(Model model) const override;
45
46 virtual std::vector<IdfObject> remove() override;
47
48 virtual const std::vector<std::string>& outputVariableNames() const override;
49
50 virtual IddObjectType iddObjectType() const override;
51
52 virtual std::vector<ModelObject> children() const override;
53
54 virtual unsigned inletPort() const override;
55
56 virtual unsigned outletPort() const override;
57
58 virtual bool addToNode(Node& node) override;
59
60 virtual ComponentType componentType() const override;
61 virtual std::vector<FuelType> coolingFuelTypes() const override;
62 virtual std::vector<FuelType> heatingFuelTypes() const override;
63 virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override;
64
65 //@}
66 /** @name Getters */
67 //@{
68
69 boost::optional<PlanarSurface> surface() const;
70
71 boost::optional<GeneratorPhotovoltaic> generatorPhotovoltaic() const;
72
73 ModelObject solarCollectorPerformance() const;
74
75 boost::optional<double> designFlowRate() const;
76
77 bool isDesignFlowRateAutosized() const;
78
79 boost::optional<double> autosizedDesignFlowRate() const;
80
81 virtual void autosize() override;
82
83 virtual void applySizingValues() override;
84
85 //@}
86 /** @name Setters */
87 //@{
88
89 bool setSolarCollectorPerformance(const SolarCollectorPerformancePhotovoltaicThermalBIPVT& performance);
90 bool setSolarCollectorPerformance(const SolarCollectorPerformancePhotovoltaicThermalSimple& performance);
91
92 void resetSolarCollectorPerformance();
93
94 bool setSurface(const PlanarSurface& surface);
95
96 void resetSurface();
97
98 bool setGeneratorPhotovoltaic(const GeneratorPhotovoltaic& generatorPhotovoltaic);
99
100 void resetGeneratorPhotovoltaic();
101
102 bool setDesignFlowRate(double designFlowRate);
103
104 void resetDesignFlowRate();
105
106 void autosizeDesignFlowRate();
107
108 //@}
109 /** @name Other */
110 //@{
111
112 //@}
113 protected:
114 private:
115 − REGISTER_LOGGER("openstudio.model.SolarCollectorFlatPlatePhotovoltaicThermal");
116
117 bool setSolarCollectorPerformanceNoClone(const ModelObject& performance);
118
119 friend class openstudio::model::SolarCollectorFlatPlatePhotovoltaicThermal;
120 };
121
122 } // namespace detail
123
124 } // namespace model
125 } // namespace openstudio
126
127 #endif // MODEL_SOLARCOLLECTORFLATPLATEPHOTOVOLTAICTHERMAL_IMPL_HPP
128