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