| 2074 | } |
| 2075 | |
| 2076 | bool AirLoopHVACUnitarySystem::setMaximumCyclingRate(double maximumCyclingRate) { |
| 2077 | DEPRECATED_AT_MSG(3, 7, 0, |
| 2078 | "As of EnergyPlus 23.2.0, this property is on the child cooling coil. Use coolingCoil()->setMaximumCyclingRate() instead."); |
| 2079 | bool result = false; |
| 2080 | if (auto c_ = coolingCoil()) { |
| 2081 | if (auto c_eq_ = c_->optionalCast<CoilCoolingWaterToAirHeatPumpEquationFit>()) { |
| 2082 | result = c_eq_->setMaximumCyclingRate(maximumCyclingRate); |
| 2083 | } else if (auto c_vs_ = c_->optionalCast<CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFit>()) { |
| 2084 | result = c_vs_->setMaximumCyclingRate(maximumCyclingRate); |
| 2085 | } else if (auto c_dx_ = c_->optionalCast<CoilCoolingDXVariableSpeed>()) { |
| 2086 | result = c_dx_->setMaximumCyclingRate(maximumCyclingRate); |
| 2087 | } |
| 2088 | } |
| 2089 | return result; |
| 2090 | } |
| 2091 | |
| 2092 | void AirLoopHVACUnitarySystem::resetMaximumCyclingRate() { |
| 2093 | DEPRECATED_AT_MSG(3, 7, 0, "As of EnergyPlus 23.2.0, this property is on the child cooling coil and it's a required-field"); |
no outgoing calls