src/model/GeneratorFuelCell_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_GENERATORFUELCELL_IMPL_HPP | ||
| 7 | #define MODEL_GENERATORFUELCELL_IMPL_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "Generator_Impl.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | namespace model { | ||
| 14 | |||
| 15 | class GeneratorFuelCellPowerModule; | ||
| 16 | class GeneratorFuelCellAirSupply; | ||
| 17 | class GeneratorFuelSupply; | ||
| 18 | class GeneratorFuelCellWaterSupply; | ||
| 19 | class GeneratorFuelCellAuxiliaryHeater; | ||
| 20 | class GeneratorFuelCellExhaustGasToWaterHeatExchanger; | ||
| 21 | class GeneratorFuelCellElectricalStorage; | ||
| 22 | class GeneratorFuelCellInverter; | ||
| 23 | class GeneratorFuelCellStackCooler; | ||
| 24 | |||
| 25 | namespace detail { | ||
| 26 | |||
| 27 | /** GeneratorFuelCell_Impl is a ModelObject_Impl that is the implementation class for GeneratorFuelCell.*/ | ||
| 28 | class MODEL_API GeneratorFuelCell_Impl : public Generator_Impl | ||
| 29 | { | ||
| 30 | public: | ||
| 31 | /** @name Constructors and Destructors */ | ||
| 32 | //@{ | ||
| 33 | |||
| 34 | GeneratorFuelCell_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 35 | |||
| 36 | GeneratorFuelCell_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 37 | |||
| 38 | GeneratorFuelCell_Impl(const GeneratorFuelCell_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 39 | |||
| 40 | 13 | virtual ~GeneratorFuelCell_Impl() override = default; | |
| 41 | |||
| 42 | //@} | ||
| 43 | /** @name Virtual Methods */ | ||
| 44 | //@{ | ||
| 45 | |||
| 46 | virtual const std::vector<std::string>& outputVariableNames() const override; | ||
| 47 | |||
| 48 | virtual IddObjectType iddObjectType() const override; | ||
| 49 | |||
| 50 | virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override; | ||
| 51 | |||
| 52 | virtual std::string generatorObjectType() const override; | ||
| 53 | |||
| 54 | virtual boost::optional<double> ratedElectricPowerOutput() const override; | ||
| 55 | |||
| 56 | virtual boost::optional<Schedule> availabilitySchedule() const override; | ||
| 57 | |||
| 58 | virtual boost::optional<double> ratedThermaltoElectricalPowerRatio() const override; | ||
| 59 | |||
| 60 | //@} | ||
| 61 | /** @name Getters */ | ||
| 62 | //@{ | ||
| 63 | |||
| 64 | GeneratorFuelCellPowerModule powerModule() const; | ||
| 65 | |||
| 66 | GeneratorFuelCellAirSupply airSupply() const; | ||
| 67 | |||
| 68 | GeneratorFuelSupply fuelSupply() const; | ||
| 69 | |||
| 70 | GeneratorFuelCellWaterSupply waterSupply() const; | ||
| 71 | |||
| 72 | GeneratorFuelCellAuxiliaryHeater auxiliaryHeater() const; | ||
| 73 | |||
| 74 | GeneratorFuelCellExhaustGasToWaterHeatExchanger heatExchanger() const; | ||
| 75 | |||
| 76 | GeneratorFuelCellElectricalStorage electricalStorage() const; | ||
| 77 | |||
| 78 | GeneratorFuelCellInverter inverter() const; | ||
| 79 | |||
| 80 | boost::optional<GeneratorFuelCellStackCooler> stackCooler() const; | ||
| 81 | |||
| 82 | //@} | ||
| 83 | /** @name Setters */ | ||
| 84 | //@{ | ||
| 85 | |||
| 86 | bool setPowerModule(const GeneratorFuelCellPowerModule& fCPM); | ||
| 87 | |||
| 88 | bool setAirSupply(const GeneratorFuelCellAirSupply& fCAirSup); | ||
| 89 | |||
| 90 | bool setFuelSupply(const GeneratorFuelSupply& genFuelSup); | ||
| 91 | |||
| 92 | bool setWaterSupply(const GeneratorFuelCellWaterSupply& fCWaterSup); | ||
| 93 | |||
| 94 | bool setAuxiliaryHeater(const GeneratorFuelCellAuxiliaryHeater& fCAuxHeat); | ||
| 95 | |||
| 96 | bool setHeatExchanger(const GeneratorFuelCellExhaustGasToWaterHeatExchanger& fCExhaustHX); | ||
| 97 | |||
| 98 | bool setElectricalStorage(const GeneratorFuelCellElectricalStorage& fCStorage); | ||
| 99 | |||
| 100 | bool setInverter(const GeneratorFuelCellInverter& fCInverter); | ||
| 101 | |||
| 102 | bool setStackCooler(const GeneratorFuelCellStackCooler& fCStackCooler); | ||
| 103 | |||
| 104 | void resetStackCooler(); | ||
| 105 | |||
| 106 | //@} | ||
| 107 | /** @name Other */ | ||
| 108 | //@{ | ||
| 109 | |||
| 110 | virtual ModelObject clone(Model model) const override; | ||
| 111 | |||
| 112 | virtual std::vector<IddObjectType> allowableChildTypes() const override; | ||
| 113 | |||
| 114 | virtual std::vector<ModelObject> children() const override; | ||
| 115 | |||
| 116 | //@} | ||
| 117 | protected: | ||
| 118 | private: | ||
| 119 | − | REGISTER_LOGGER("openstudio.model.GeneratorFuelCell"); | |
| 120 | |||
| 121 | boost::optional<GeneratorFuelCellPowerModule> optionalPowerModule() const; | ||
| 122 | boost::optional<GeneratorFuelCellAirSupply> optionalAirSupply() const; | ||
| 123 | boost::optional<GeneratorFuelSupply> optionalFuelSupply() const; | ||
| 124 | boost::optional<GeneratorFuelCellWaterSupply> optionalWaterSupply() const; | ||
| 125 | boost::optional<GeneratorFuelCellAuxiliaryHeater> optionalAuxiliaryHeater() const; | ||
| 126 | boost::optional<GeneratorFuelCellExhaustGasToWaterHeatExchanger> optionalHeatExchanger() const; | ||
| 127 | boost::optional<GeneratorFuelCellElectricalStorage> optionalElectricalStorage() const; | ||
| 128 | boost::optional<GeneratorFuelCellInverter> optionalInverter() const; | ||
| 129 | }; | ||
| 130 | |||
| 131 | } // namespace detail | ||
| 132 | |||
| 133 | } // namespace model | ||
| 134 | } // namespace openstudio | ||
| 135 | |||
| 136 | #endif // MODEL_GENERATORFUELCELL_IMPL_HPP | ||
| 137 |