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