src/model/CoilCoolingDXCurveFitOperatingMode_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_COILCOOLINGDXCURVEFITOPERATINGMODE_IMPL_HPP | ||
| 7 | #define MODEL_COILCOOLINGDXCURVEFITOPERATINGMODE_IMPL_HPP | ||
| 8 | |||
| 9 | #include <model/ModelAPI.hpp> | ||
| 10 | #include "ResourceObject_Impl.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | namespace model { | ||
| 14 | |||
| 15 | class CoilCoolingDXCurveFitPerformance; | ||
| 16 | class CoilCoolingDXCurveFitSpeed; | ||
| 17 | |||
| 18 | namespace detail { | ||
| 19 | |||
| 20 | /** CoilCoolingDXCurveFitOperatingMode_Impl is a ResourceObject_Impl that is the implementation class for CoilCoolingDXCurveFitOperatingMode.*/ | ||
| 21 | class MODEL_API CoilCoolingDXCurveFitOperatingMode_Impl : public ResourceObject_Impl | ||
| 22 | { | ||
| 23 | public: | ||
| 24 | /** @name Constructors and Destructors */ | ||
| 25 | //@{ | ||
| 26 | |||
| 27 | CoilCoolingDXCurveFitOperatingMode_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 28 | |||
| 29 | CoilCoolingDXCurveFitOperatingMode_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 30 | |||
| 31 | CoilCoolingDXCurveFitOperatingMode_Impl(const CoilCoolingDXCurveFitOperatingMode_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 32 | |||
| 33 | 73 | virtual ~CoilCoolingDXCurveFitOperatingMode_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 ModelObject clone(Model model) const override; | ||
| 44 | |||
| 45 | virtual std::vector<ModelObject> children() const override; | ||
| 46 | |||
| 47 | // If this object is still used by at least one CoilCoolingDXCurveFitPerformance as a BaseOperatingMode, refuse to remove to avoid putting | ||
| 48 | // the CoilCoolingDXCurveFitPerformance(s) in a broken state | ||
| 49 | virtual std::vector<IdfObject> remove() override; | ||
| 50 | |||
| 51 | //@} | ||
| 52 | /** @name Getters */ | ||
| 53 | //@{ | ||
| 54 | |||
| 55 | boost::optional<double> ratedGrossTotalCoolingCapacity() const; | ||
| 56 | bool isRatedGrossTotalCoolingCapacityAutosized() const; | ||
| 57 | |||
| 58 | boost::optional<double> ratedEvaporatorAirFlowRate() const; | ||
| 59 | bool isRatedEvaporatorAirFlowRateAutosized() const; | ||
| 60 | |||
| 61 | boost::optional<double> ratedCondenserAirFlowRate() const; | ||
| 62 | bool isRatedCondenserAirFlowRateAutosized() const; | ||
| 63 | |||
| 64 | double maximumCyclingRate() const; | ||
| 65 | |||
| 66 | double ratioofInitialMoistureEvaporationRateandSteadyStateLatentCapacity() const; | ||
| 67 | |||
| 68 | double latentCapacityTimeConstant() const; | ||
| 69 | |||
| 70 | double nominalTimeforCondensateRemovaltoBegin() const; | ||
| 71 | |||
| 72 | bool applyPartLoadFractiontoSpeedsGreaterthan1() const; | ||
| 73 | |||
| 74 | bool applyLatentDegradationtoSpeedsGreaterthan1() const; | ||
| 75 | |||
| 76 | std::string condenserType() const; | ||
| 77 | |||
| 78 | boost::optional<double> nominalEvaporativeCondenserPumpPower() const; | ||
| 79 | bool isNominalEvaporativeCondenserPumpPowerAutosized() const; | ||
| 80 | |||
| 81 | unsigned nominalSpeedNumber() const; | ||
| 82 | bool isNominalSpeedNumberDefaulted() const; | ||
| 83 | |||
| 84 | std::vector<CoilCoolingDXCurveFitPerformance> coilCoolingDXCurveFitPerformances() const; | ||
| 85 | |||
| 86 | std::vector<CoilCoolingDXCurveFitSpeed> speeds() const; | ||
| 87 | |||
| 88 | // Extensible: Speeds | ||
| 89 | boost::optional<unsigned> speedIndex(const CoilCoolingDXCurveFitSpeed& speed) const; | ||
| 90 | unsigned numberOfSpeeds() const; | ||
| 91 | |||
| 92 | //@} | ||
| 93 | /** @name Setters */ | ||
| 94 | //@{ | ||
| 95 | |||
| 96 | bool setRatedGrossTotalCoolingCapacity(double ratedGrossTotalCoolingCapacity); | ||
| 97 | void autosizeRatedGrossTotalCoolingCapacity(); | ||
| 98 | |||
| 99 | bool setRatedEvaporatorAirFlowRate(double ratedEvaporatorAirFlowRate); | ||
| 100 | void autosizeRatedEvaporatorAirFlowRate(); | ||
| 101 | |||
| 102 | bool setRatedCondenserAirFlowRate(double ratedCondenserAirFlowRate); | ||
| 103 | void autosizeRatedCondenserAirFlowRate(); | ||
| 104 | |||
| 105 | bool setMaximumCyclingRate(double maximumCyclingRate); | ||
| 106 | |||
| 107 | bool setRatioofInitialMoistureEvaporationRateandSteadyStateLatentCapacity( | ||
| 108 | double ratioofInitialMoistureEvaporationRateandSteadyStateLatentCapacity); | ||
| 109 | |||
| 110 | bool setLatentCapacityTimeConstant(double latentCapacityTimeConstant); | ||
| 111 | |||
| 112 | bool setNominalTimeforCondensateRemovaltoBegin(double nominalTimeforCondensateRemovaltoBegin); | ||
| 113 | |||
| 114 | bool setApplyPartLoadFractiontoSpeedsGreaterthan1(bool applyPartLoadFractiontoSpeedsGreaterthan1); | ||
| 115 | |||
| 116 | bool setApplyLatentDegradationtoSpeedsGreaterthan1(bool applyLatentDegradationtoSpeedsGreaterthan1); | ||
| 117 | |||
| 118 | bool setCondenserType(const std::string& condenserType); | ||
| 119 | |||
| 120 | bool setNominalEvaporativeCondenserPumpPower(double nominalEvaporativeCondenserPumpPower); | ||
| 121 | |||
| 122 | void autosizeNominalEvaporativeCondenserPumpPower(); | ||
| 123 | |||
| 124 | bool setNominalSpeedNumber(unsigned nominalSpeedNumber); | ||
| 125 | void resetNominalSpeedNumber(); | ||
| 126 | |||
| 127 | // Extensible: Speeds | ||
| 128 | bool addSpeed(const CoilCoolingDXCurveFitSpeed& speed); | ||
| 129 | bool addSpeed(const CoilCoolingDXCurveFitSpeed& speed, unsigned index); | ||
| 130 | bool setSpeedIndex(const CoilCoolingDXCurveFitSpeed& speed, unsigned index); | ||
| 131 | bool setSpeeds(const std::vector<CoilCoolingDXCurveFitSpeed>& speeds); | ||
| 132 | void removeAllSpeeds(); | ||
| 133 | bool removeSpeed(const CoilCoolingDXCurveFitSpeed& speed); | ||
| 134 | bool removeSpeed(unsigned index); | ||
| 135 | |||
| 136 | //@} | ||
| 137 | /** @name Other */ | ||
| 138 | //@{ | ||
| 139 | |||
| 140 | boost::optional<double> autosizedRatedGrossTotalCoolingCapacity(); | ||
| 141 | |||
| 142 | boost::optional<double> autosizedRatedEvaporatorAirFlowRate(); | ||
| 143 | |||
| 144 | boost::optional<double> autosizedRatedCondenserAirFlowRate(); | ||
| 145 | |||
| 146 | boost::optional<double> autosizedNominalEvaporativeCondenserPumpPower(); | ||
| 147 | |||
| 148 | void autosize(); | ||
| 149 | |||
| 150 | void applySizingValues(); | ||
| 151 | |||
| 152 | //@} | ||
| 153 | protected: | ||
| 154 | private: | ||
| 155 | − | REGISTER_LOGGER("openstudio.model.CoilCoolingDXCurveFitOperatingMode"); | |
| 156 | }; | ||
| 157 | |||
| 158 | } // namespace detail | ||
| 159 | |||
| 160 | } // namespace model | ||
| 161 | } // namespace openstudio | ||
| 162 | |||
| 163 | #endif // MODEL_COILCOOLINGDXCURVEFITOPERATINGMODE_IMPL_HPP | ||
| 164 |