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/PhotovoltaicPerformanceSimple_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_PHOTOVOLTAICPERFORMANCESIMPLE_IMPL_HPP
7 #define MODEL_PHOTOVOLTAICPERFORMANCESIMPLE_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "PhotovoltaicPerformance_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class Schedule;
16
17 namespace detail {
18
19 /** PhotovoltaicPerformanceSimple_Impl is a PhotovoltaicPerformance_Impl that is the implementation class for PhotovoltaicPerformanceSimple.*/
20 class MODEL_API PhotovoltaicPerformanceSimple_Impl : public PhotovoltaicPerformance_Impl
21 {
22 public:
23 /** @name Constructors and Destructors */
24 //@{
25
26 PhotovoltaicPerformanceSimple_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
27
28 PhotovoltaicPerformanceSimple_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
29
30 PhotovoltaicPerformanceSimple_Impl(const PhotovoltaicPerformanceSimple_Impl& other, Model_Impl* model, bool keepHandle);
31
32 20 virtual ~PhotovoltaicPerformanceSimple_Impl() override = default;
33
34 //@}
35 /** @name Virtual Methods */
36 //@{
37
38 virtual const std::vector<std::string>& outputVariableNames() const override;
39
40 virtual IddObjectType iddObjectType() const override;
41
42 virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override;
43
44 //@}
45 /** @name Getters */
46 //@{
47
48 double fractionOfSurfaceAreaWithActiveSolarCells() const;
49
50 bool isfractionOfSurfaceAreaWithActiveSolarCellsDefaulted() const;
51
52 std::string conversionEfficiencyInputMode() const;
53
54 boost::optional<double> fixedEfficiency() const;
55
56 boost::optional<Schedule> efficiencySchedule() const;
57
58 //@}
59 /** @name Setters */
60 //@{
61
62 bool setFractionOfSurfaceAreaWithActiveSolarCells(double fractionOfSurfaceAreaWithActiveSolarCells);
63
64 void resetFractionOfSurfaceAreaWithActiveSolarCells();
65
66 bool setConversionEfficiencyInputMode(const std::string& conversionEfficiencyInputMode);
67
68 bool setFixedEfficiency(double fixedEfficiency);
69
70 void resetFixedEfficiency();
71
72 bool setEfficiencySchedule(Schedule& schedule);
73
74 void resetEfficiencySchedule();
75
76 bool setDefaultFixedEfficiency();
77
78 //@}
79 /** @name Other */
80 //@{
81
82 //@}
83 protected:
84 private:
85 REGISTER_LOGGER("openstudio.model.PhotovoltaicPerformanceSimple");
86 };
87
88 } // namespace detail
89
90 } // namespace model
91 } // namespace openstudio
92
93 #endif // MODEL_PHOTOVOLTAICPERFORMANCESIMPLE_IMPL_HPP
94