src/model/GeneratorFuelCell.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_HPP | ||
| 7 | #define MODEL_GENERATORFUELCELL_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "Generator.hpp" | ||
| 11 | |||
| 12 | #include "GeneratorFuelCellPowerModule.hpp" | ||
| 13 | #include "GeneratorFuelCellPowerModule_Impl.hpp" | ||
| 14 | #include "GeneratorFuelCellAirSupply.hpp" | ||
| 15 | #include "GeneratorFuelCellAirSupply_Impl.hpp" | ||
| 16 | #include "GeneratorFuelCellWaterSupply.hpp" | ||
| 17 | #include "GeneratorFuelCellWaterSupply_Impl.hpp" | ||
| 18 | #include "GeneratorFuelCellAuxiliaryHeater.hpp" | ||
| 19 | #include "GeneratorFuelCellAuxiliaryHeater_Impl.hpp" | ||
| 20 | #include "GeneratorFuelCellExhaustGasToWaterHeatExchanger.hpp" | ||
| 21 | #include "GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl.hpp" | ||
| 22 | #include "GeneratorFuelCellElectricalStorage.hpp" | ||
| 23 | #include "GeneratorFuelCellElectricalStorage_Impl.hpp" | ||
| 24 | #include "GeneratorFuelCellInverter.hpp" | ||
| 25 | #include "GeneratorFuelCellInverter_Impl.hpp" | ||
| 26 | #include "GeneratorFuelCellStackCooler.hpp" | ||
| 27 | #include "GeneratorFuelCellStackCooler_Impl.hpp" | ||
| 28 | #include "GeneratorFuelSupply.hpp" | ||
| 29 | #include "GeneratorFuelSupply_Impl.hpp" | ||
| 30 | |||
| 31 | namespace openstudio { | ||
| 32 | namespace model { | ||
| 33 | |||
| 34 | class GeneratorFuelCellPowerModule; | ||
| 35 | class GeneratorFuelCellAirSupply; | ||
| 36 | class GeneratorFuelSupply; | ||
| 37 | class GeneratorFuelCellWaterSupply; | ||
| 38 | class GeneratorFuelCellAuxiliaryHeater; | ||
| 39 | class GeneratorFuelCellExhaustGasToWaterHeatExchanger; | ||
| 40 | class GeneratorFuelCellElectricalStorage; | ||
| 41 | class GeneratorFuelCellInverter; | ||
| 42 | class GeneratorFuelCellStackCooler; | ||
| 43 | |||
| 44 | namespace detail { | ||
| 45 | |||
| 46 | class GeneratorFuelCell_Impl; | ||
| 47 | |||
| 48 | } // namespace detail | ||
| 49 | |||
| 50 | /** GeneratorFuelCell is a Generator that wraps the OpenStudio IDD object 'OS:Generator:FuelCell'. */ | ||
| 51 | class MODEL_API GeneratorFuelCell : public Generator | ||
| 52 | { | ||
| 53 | public: | ||
| 54 | /** @name Constructors and Destructors */ | ||
| 55 | //@{ | ||
| 56 | |||
| 57 | explicit GeneratorFuelCell(const Model& model, const GeneratorFuelCellPowerModule& fCPM, const GeneratorFuelCellAirSupply& fCAS, | ||
| 58 | const GeneratorFuelCellWaterSupply& fCWS, const GeneratorFuelCellAuxiliaryHeater& fCAH, | ||
| 59 | const GeneratorFuelCellExhaustGasToWaterHeatExchanger& fCExhaustHX, const GeneratorFuelCellElectricalStorage& fCES, | ||
| 60 | const GeneratorFuelCellInverter& fCInverter, const GeneratorFuelSupply& fS); | ||
| 61 | |||
| 62 | explicit GeneratorFuelCell(const Model& model); | ||
| 63 | |||
| 64 | 21 | virtual ~GeneratorFuelCell() override = default; | |
| 65 | // Default the copy and move operators because the virtual dtor is explicit | ||
| 66 | 3 | GeneratorFuelCell(const GeneratorFuelCell& other) = default; | |
| 67 | 3 | GeneratorFuelCell(GeneratorFuelCell&& other) = default; | |
| 68 | ✗ | GeneratorFuelCell& operator=(const GeneratorFuelCell&) = default; | |
| 69 | ✗ | GeneratorFuelCell& operator=(GeneratorFuelCell&&) = default; | |
| 70 | |||
| 71 | //@} | ||
| 72 | |||
| 73 | static IddObjectType iddObjectType(); | ||
| 74 | |||
| 75 | /** @name Getters */ | ||
| 76 | //@{ | ||
| 77 | |||
| 78 | GeneratorFuelCellPowerModule powerModule() const; | ||
| 79 | |||
| 80 | GeneratorFuelCellAirSupply airSupply() const; | ||
| 81 | |||
| 82 | GeneratorFuelSupply fuelSupply() const; | ||
| 83 | |||
| 84 | GeneratorFuelCellWaterSupply waterSupply() const; | ||
| 85 | |||
| 86 | GeneratorFuelCellAuxiliaryHeater auxiliaryHeater() const; | ||
| 87 | |||
| 88 | GeneratorFuelCellExhaustGasToWaterHeatExchanger heatExchanger() const; | ||
| 89 | |||
| 90 | GeneratorFuelCellElectricalStorage electricalStorage() const; | ||
| 91 | |||
| 92 | GeneratorFuelCellInverter inverter() const; | ||
| 93 | |||
| 94 | boost::optional<GeneratorFuelCellStackCooler> stackCooler() const; | ||
| 95 | |||
| 96 | //@} | ||
| 97 | /** @name Setters */ | ||
| 98 | //@{ | ||
| 99 | |||
| 100 | bool setPowerModule(const GeneratorFuelCellPowerModule& fCPM); | ||
| 101 | |||
| 102 | bool setAirSupply(const GeneratorFuelCellAirSupply& fCAirSup); | ||
| 103 | |||
| 104 | bool setFuelSupply(const GeneratorFuelSupply& genFuelSup); | ||
| 105 | |||
| 106 | bool setWaterSupply(const GeneratorFuelCellWaterSupply& fCWaterSup); | ||
| 107 | |||
| 108 | bool setAuxiliaryHeater(const GeneratorFuelCellAuxiliaryHeater& fCAuxHeat); | ||
| 109 | |||
| 110 | bool setHeatExchanger(const GeneratorFuelCellExhaustGasToWaterHeatExchanger& fCExhaustHX); | ||
| 111 | |||
| 112 | bool setElectricalStorage(const GeneratorFuelCellElectricalStorage& fCStorage); | ||
| 113 | |||
| 114 | bool setInverter(const GeneratorFuelCellInverter& fCInverter); | ||
| 115 | |||
| 116 | bool setStackCooler(const GeneratorFuelCellStackCooler& fCStackCooler); | ||
| 117 | |||
| 118 | void resetStackCooler(); | ||
| 119 | |||
| 120 | //@} | ||
| 121 | /** @name Other */ | ||
| 122 | //@{ | ||
| 123 | |||
| 124 | //@} | ||
| 125 | protected: | ||
| 126 | /// @cond | ||
| 127 | using ImplType = detail::GeneratorFuelCell_Impl; | ||
| 128 | |||
| 129 | explicit GeneratorFuelCell(std::shared_ptr<detail::GeneratorFuelCell_Impl> impl); | ||
| 130 | |||
| 131 | friend class detail::GeneratorFuelCell_Impl; | ||
| 132 | friend class Model; | ||
| 133 | friend class IdfObject; | ||
| 134 | friend class openstudio::detail::IdfObject_Impl; | ||
| 135 | /// @endcond | ||
| 136 | private: | ||
| 137 | − | REGISTER_LOGGER("openstudio.model.GeneratorFuelCell"); | |
| 138 | }; | ||
| 139 | |||
| 140 | /** \relates GeneratorFuelCell*/ | ||
| 141 | using OptionalGeneratorFuelCell = boost::optional<GeneratorFuelCell>; | ||
| 142 | |||
| 143 | /** \relates GeneratorFuelCell*/ | ||
| 144 | using GeneratorFuelCellVector = std::vector<GeneratorFuelCell>; | ||
| 145 | |||
| 146 | } // namespace model | ||
| 147 | } // namespace openstudio | ||
| 148 | |||
| 149 | #endif // MODEL_GENERATORFUELCELL_HPP | ||
| 150 |