src/model/PhotovoltaicPerformanceSimple.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_HPP | ||
| 7 | #define MODEL_PHOTOVOLTAICPERFORMANCESIMPLE_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "PhotovoltaicPerformance.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | |||
| 14 | namespace model { | ||
| 15 | |||
| 16 | class Schedule; | ||
| 17 | |||
| 18 | namespace detail { | ||
| 19 | |||
| 20 | class PhotovoltaicPerformanceSimple_Impl; | ||
| 21 | |||
| 22 | } // namespace detail | ||
| 23 | |||
| 24 | /** PhotovoltaicPerformanceSimple is a PhotovoltaicPerformance that wraps the OpenStudio IDD object 'OS:PhotovoltaicPerformance:Simple'. */ | ||
| 25 | class MODEL_API PhotovoltaicPerformanceSimple : public PhotovoltaicPerformance | ||
| 26 | { | ||
| 27 | public: | ||
| 28 | /** @name Constructors and Destructors */ | ||
| 29 | //@{ | ||
| 30 | |||
| 31 | explicit PhotovoltaicPerformanceSimple(const Model& model); | ||
| 32 | |||
| 33 | 18 | virtual ~PhotovoltaicPerformanceSimple() override = default; | |
| 34 | // Default the copy and move operators because the virtual dtor is explicit | ||
| 35 | ✗ | PhotovoltaicPerformanceSimple(const PhotovoltaicPerformanceSimple& other) = default; | |
| 36 | 1 | PhotovoltaicPerformanceSimple(PhotovoltaicPerformanceSimple&& other) = default; | |
| 37 | ✗ | PhotovoltaicPerformanceSimple& operator=(const PhotovoltaicPerformanceSimple&) = default; | |
| 38 | ✗ | PhotovoltaicPerformanceSimple& operator=(PhotovoltaicPerformanceSimple&&) = default; | |
| 39 | |||
| 40 | //@} | ||
| 41 | |||
| 42 | static IddObjectType iddObjectType(); | ||
| 43 | |||
| 44 | /** @name Getters */ | ||
| 45 | //@{ | ||
| 46 | |||
| 47 | double fractionOfSurfaceAreaWithActiveSolarCells() const; | ||
| 48 | |||
| 49 | bool isfractionOfSurfaceAreaWithActiveSolarCellsDefaulted() const; | ||
| 50 | |||
| 51 | std::string conversionEfficiencyInputMode() const; | ||
| 52 | |||
| 53 | boost::optional<double> fixedEfficiency() const; | ||
| 54 | |||
| 55 | boost::optional<Schedule> efficiencySchedule() const; | ||
| 56 | |||
| 57 | //@} | ||
| 58 | /** @name Setters */ | ||
| 59 | //@{ | ||
| 60 | |||
| 61 | bool setFractionOfSurfaceAreaWithActiveSolarCells(double fractionOfSurfaceAreaWithActiveSolarCells); | ||
| 62 | |||
| 63 | void resetFractionOfSurfaceAreaWithActiveSolarCells(); | ||
| 64 | |||
| 65 | bool setFixedEfficiency(double fixedEfficiency); | ||
| 66 | |||
| 67 | void resetFixedEfficiency(); | ||
| 68 | |||
| 69 | bool setEfficiencySchedule(Schedule& schedule); | ||
| 70 | |||
| 71 | void resetEfficiencySchedule(); | ||
| 72 | |||
| 73 | //@} | ||
| 74 | /** @name Other */ | ||
| 75 | //@{ | ||
| 76 | |||
| 77 | //@} | ||
| 78 | protected: | ||
| 79 | /// @cond | ||
| 80 | using ImplType = detail::PhotovoltaicPerformanceSimple_Impl; | ||
| 81 | |||
| 82 | explicit PhotovoltaicPerformanceSimple(std::shared_ptr<detail::PhotovoltaicPerformanceSimple_Impl> impl); | ||
| 83 | |||
| 84 | friend class detail::PhotovoltaicPerformanceSimple_Impl; | ||
| 85 | friend class Model; | ||
| 86 | friend class IdfObject; | ||
| 87 | friend class openstudio::detail::IdfObject_Impl; | ||
| 88 | /// @endcond | ||
| 89 | private: | ||
| 90 | REGISTER_LOGGER("openstudio.model.PhotovoltaicPerformanceSimple"); | ||
| 91 | }; | ||
| 92 | |||
| 93 | /** \relates PhotovoltaicPerformanceSimple*/ | ||
| 94 | using OptionalPhotovoltaicPerformanceSimple = boost::optional<PhotovoltaicPerformanceSimple>; | ||
| 95 | |||
| 96 | /** \relates PhotovoltaicPerformanceSimple*/ | ||
| 97 | using PhotovoltaicPerformanceSimpleVector = std::vector<PhotovoltaicPerformanceSimple>; | ||
| 98 | |||
| 99 | } // namespace model | ||
| 100 | } // namespace openstudio | ||
| 101 | |||
| 102 | #endif // MODEL_PHOTOVOLTAICPERFORMANCESIMPLE_HPP | ||
| 103 |