src/model/HumidifierSteamGas_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_HUMIDIFIERSTEAMGAS_IMPL_HPP | ||
| 7 | #define MODEL_HUMIDIFIERSTEAMGAS_IMPL_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "StraightComponent_Impl.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | namespace model { | ||
| 14 | |||
| 15 | class Schedule; | ||
| 16 | class Curve; | ||
| 17 | |||
| 18 | namespace detail { | ||
| 19 | |||
| 20 | /** HumidifierSteamGas_Impl is a StraightComponent_Impl that is the implementation class for HumidifierSteamGas.*/ | ||
| 21 | class MODEL_API HumidifierSteamGas_Impl : public StraightComponent_Impl | ||
| 22 | { | ||
| 23 | public: | ||
| 24 | /** @name Constructors and Destructors */ | ||
| 25 | //@{ | ||
| 26 | |||
| 27 | HumidifierSteamGas_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 28 | |||
| 29 | HumidifierSteamGas_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 30 | |||
| 31 | HumidifierSteamGas_Impl(const HumidifierSteamGas_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 32 | |||
| 33 | 7 | virtual ~HumidifierSteamGas_Impl() override = default; | |
| 34 | |||
| 35 | //@} | ||
| 36 | /** @name Virtual Methods */ | ||
| 37 | //@{ | ||
| 38 | |||
| 39 | virtual const std::vector<std::string>& outputVariableNames() const override; | ||
| 40 | |||
| 41 | virtual IddObjectType iddObjectType() const override; | ||
| 42 | |||
| 43 | virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override; | ||
| 44 | |||
| 45 | virtual unsigned inletPort() const override; | ||
| 46 | |||
| 47 | virtual unsigned outletPort() const override; | ||
| 48 | |||
| 49 | virtual ComponentType componentType() const override; | ||
| 50 | virtual std::vector<FuelType> coolingFuelTypes() const override; | ||
| 51 | virtual std::vector<FuelType> heatingFuelTypes() const override; | ||
| 52 | virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override; | ||
| 53 | |||
| 54 | //@} | ||
| 55 | /** @name Getters */ | ||
| 56 | //@{ | ||
| 57 | |||
| 58 | boost::optional<Schedule> availabilitySchedule() const; | ||
| 59 | |||
| 60 | boost::optional<double> ratedCapacity() const; | ||
| 61 | |||
| 62 | bool isRatedCapacityAutosized() const; | ||
| 63 | |||
| 64 | boost::optional<double> ratedGasUseRate() const; | ||
| 65 | |||
| 66 | bool isRatedGasUseRateAutosized() const; | ||
| 67 | |||
| 68 | double thermalEfficiency() const; | ||
| 69 | |||
| 70 | bool isThermalEfficiencyDefaulted() const; | ||
| 71 | |||
| 72 | boost::optional<Curve> thermalEfficiencyModifierCurve() const; | ||
| 73 | |||
| 74 | boost::optional<double> ratedFanPower() const; | ||
| 75 | |||
| 76 | double auxiliaryElectricPower() const; | ||
| 77 | |||
| 78 | bool isAuxiliaryElectricPowerDefaulted() const; | ||
| 79 | |||
| 80 | // boost::optional<WaterStorageTank> waterStorageTank() const; | ||
| 81 | |||
| 82 | std::string inletWaterTemperatureOption() const; | ||
| 83 | |||
| 84 | bool isInletWaterTemperatureOptionDefaulted() const; | ||
| 85 | |||
| 86 | boost::optional<double> autosizedRatedCapacity() const; | ||
| 87 | |||
| 88 | boost::optional<double> autosizedRatedGasUseRate() const; | ||
| 89 | |||
| 90 | virtual void autosize() override; | ||
| 91 | |||
| 92 | virtual void applySizingValues() override; | ||
| 93 | |||
| 94 | //@} | ||
| 95 | /** @name Setters */ | ||
| 96 | //@{ | ||
| 97 | |||
| 98 | bool setAvailabilitySchedule(Schedule& schedule); | ||
| 99 | |||
| 100 | void resetAvailabilitySchedule(); | ||
| 101 | |||
| 102 | bool setRatedCapacity(boost::optional<double> ratedCapacity); | ||
| 103 | |||
| 104 | void autosizeRatedCapacity(); | ||
| 105 | |||
| 106 | bool setRatedGasUseRate(boost::optional<double> ratedGasUseRate); | ||
| 107 | |||
| 108 | void resetRatedGasUseRate(); | ||
| 109 | |||
| 110 | void autosizeRatedGasUseRate(); | ||
| 111 | |||
| 112 | bool setThermalEfficiency(boost::optional<double> thermalEfficiency); | ||
| 113 | |||
| 114 | void resetThermalEfficiency(); | ||
| 115 | |||
| 116 | bool setThermalEfficiencyModifierCurve(const boost::optional<Curve>& curve); | ||
| 117 | |||
| 118 | void resetThermalEfficiencyModifierCurve(); | ||
| 119 | |||
| 120 | bool setRatedFanPower(boost::optional<double> ratedFanPower); | ||
| 121 | |||
| 122 | void resetRatedFanPower(); | ||
| 123 | |||
| 124 | bool setAuxiliaryElectricPower(boost::optional<double> auxiliaryElectricPower); | ||
| 125 | |||
| 126 | void resetAuxiliaryElectricPower(); | ||
| 127 | |||
| 128 | // bool setWaterStorageTank(const boost::optional<WaterStorageTank>& waterStorageTank); | ||
| 129 | |||
| 130 | // void resetWaterStorageTank(); | ||
| 131 | |||
| 132 | bool setInletWaterTemperatureOption(boost::optional<std::string> inletWaterTemperatureOption); | ||
| 133 | |||
| 134 | void resetInletWaterTemperatureOption(); | ||
| 135 | |||
| 136 | //@} | ||
| 137 | /** @name Other */ | ||
| 138 | //@{ | ||
| 139 | |||
| 140 | //@} | ||
| 141 | protected: | ||
| 142 | private: | ||
| 143 | REGISTER_LOGGER("openstudio.model.HumidifierSteamGas"); | ||
| 144 | }; | ||
| 145 | |||
| 146 | } // namespace detail | ||
| 147 | |||
| 148 | } // namespace model | ||
| 149 | } // namespace openstudio | ||
| 150 | |||
| 151 | #endif // MODEL_HUMIDIFIERSTEAMGAS_IMPL_HPP | ||
| 152 |