src/model/GeneratorFuelCellWaterSupply_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_GENERATORFUELCELLWATERSUPPLY_IMPL_HPP | ||
| 7 | #define MODEL_GENERATORFUELCELLWATERSUPPLY_IMPL_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "ModelObject_Impl.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | namespace model { | ||
| 14 | |||
| 15 | class CurveQuadratic; | ||
| 16 | class CurveCubic; | ||
| 17 | class Node; | ||
| 18 | class Schedule; | ||
| 19 | class GeneratorFuelCell; | ||
| 20 | |||
| 21 | namespace detail { | ||
| 22 | |||
| 23 | /** GeneratorFuelCellWaterSupply_Impl is a ModelObject_Impl that is the implementation class for GeneratorFuelCellWaterSupply.*/ | ||
| 24 | class MODEL_API GeneratorFuelCellWaterSupply_Impl : public ModelObject_Impl | ||
| 25 | { | ||
| 26 | public: | ||
| 27 | /** @name Constructors and Destructors */ | ||
| 28 | //@{ | ||
| 29 | |||
| 30 | GeneratorFuelCellWaterSupply_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 31 | |||
| 32 | GeneratorFuelCellWaterSupply_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 33 | |||
| 34 | GeneratorFuelCellWaterSupply_Impl(const GeneratorFuelCellWaterSupply_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 35 | |||
| 36 | 18 | virtual ~GeneratorFuelCellWaterSupply_Impl() override = default; | |
| 37 | |||
| 38 | //@} | ||
| 39 | /** @name Virtual Methods */ | ||
| 40 | //@{ | ||
| 41 | |||
| 42 | virtual const std::vector<std::string>& outputVariableNames() const override; | ||
| 43 | |||
| 44 | virtual IddObjectType iddObjectType() const override; | ||
| 45 | |||
| 46 | virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override; | ||
| 47 | |||
| 48 | virtual std::vector<IddObjectType> allowableChildTypes() const; | ||
| 49 | |||
| 50 | virtual std::vector<ModelObject> children() const; | ||
| 51 | |||
| 52 | //@} | ||
| 53 | /** @name Getters */ | ||
| 54 | //@{ | ||
| 55 | |||
| 56 | CurveQuadratic reformerWaterFlowRateFunctionofFuelRateCurve() const; | ||
| 57 | |||
| 58 | CurveCubic reformerWaterPumpPowerFunctionofFuelRateCurve() const; | ||
| 59 | |||
| 60 | double pumpHeatLossFactor() const; | ||
| 61 | |||
| 62 | std::string waterTemperatureModelingMode() const; | ||
| 63 | |||
| 64 | boost::optional<Node> waterTemperatureReferenceNode() const; | ||
| 65 | |||
| 66 | boost::optional<Schedule> waterTemperatureSchedule() const; | ||
| 67 | |||
| 68 | // Return optional parent generator | ||
| 69 | boost::optional<GeneratorFuelCell> fuelCell() const; | ||
| 70 | |||
| 71 | //@} | ||
| 72 | /** @name Setters */ | ||
| 73 | //@{ | ||
| 74 | |||
| 75 | bool setReformerWaterFlowRateFunctionofFuelRateCurve(const CurveQuadratic& quadraticCurves); | ||
| 76 | |||
| 77 | bool setReformerWaterPumpPowerFunctionofFuelRateCurve(const CurveCubic& cubicCurves); | ||
| 78 | |||
| 79 | bool setPumpHeatLossFactor(double pumpHeatLossFactor); | ||
| 80 | |||
| 81 | void resetPumpHeatLossFactor(); | ||
| 82 | |||
| 83 | bool setWaterTemperatureModelingMode(const std::string& waterTemperatureModelingMode); | ||
| 84 | |||
| 85 | void resetWaterTemperatureModelingMode(); | ||
| 86 | |||
| 87 | bool setWaterTemperatureReferenceNode(const Node& connection); | ||
| 88 | |||
| 89 | void resetWaterTemperatureReferenceNode(); | ||
| 90 | |||
| 91 | bool setWaterTemperatureSchedule(Schedule& schedule); | ||
| 92 | |||
| 93 | void resetWaterTemperatureSchedule(); | ||
| 94 | |||
| 95 | //@} | ||
| 96 | /** @name Other */ | ||
| 97 | //@{ | ||
| 98 | |||
| 99 | //@} | ||
| 100 | protected: | ||
| 101 | private: | ||
| 102 | − | REGISTER_LOGGER("openstudio.model.GeneratorFuelCellWaterSupply"); | |
| 103 | }; | ||
| 104 | |||
| 105 | } // namespace detail | ||
| 106 | |||
| 107 | } // namespace model | ||
| 108 | } // namespace openstudio | ||
| 109 | |||
| 110 | #endif // MODEL_GENERATORFUELCELLWATERSUPPLY_IMPL_HPP | ||
| 111 |