src/model/AirTerminalSingleDuctConstantVolumeCooledBeam_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_AIRTERMINALSINGLEDUCTCONSTANTVOLUMECOOLEDBEAM_IMPL_HPP | ||
| 7 | #define MODEL_AIRTERMINALSINGLEDUCTCONSTANTVOLUMECOOLEDBEAM_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 StraightComponent; | ||
| 17 | |||
| 18 | namespace detail { | ||
| 19 | |||
| 20 | /** AirTerminalSingleDuctConstantVolumeCooledBeam_Impl is a ZoneHAVC_Impl that is the implementation class for AirTerminalSingleDuctConstantVolumeCooledBeam.*/ | ||
| 21 | class MODEL_API AirTerminalSingleDuctConstantVolumeCooledBeam_Impl : public StraightComponent_Impl | ||
| 22 | { | ||
| 23 | public: | ||
| 24 | /** @name Constructors and Destructors */ | ||
| 25 | //@{ | ||
| 26 | |||
| 27 | AirTerminalSingleDuctConstantVolumeCooledBeam_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 28 | |||
| 29 | AirTerminalSingleDuctConstantVolumeCooledBeam_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 30 | |||
| 31 | AirTerminalSingleDuctConstantVolumeCooledBeam_Impl(const AirTerminalSingleDuctConstantVolumeCooledBeam_Impl& other, Model_Impl* model, | ||
| 32 | bool keepHandle); | ||
| 33 | |||
| 34 | 12 | virtual ~AirTerminalSingleDuctConstantVolumeCooledBeam_Impl() override = default; | |
| 35 | |||
| 36 | //@} | ||
| 37 | /** @name Virtual Methods */ | ||
| 38 | //@{ | ||
| 39 | |||
| 40 | virtual ModelObject clone(Model model) const override; | ||
| 41 | |||
| 42 | virtual std::vector<IdfObject> remove() override; | ||
| 43 | |||
| 44 | virtual bool isRemovable() const override; | ||
| 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::vector<ModelObject> children() const override; | ||
| 53 | |||
| 54 | virtual bool addToNode(Node& node) override; | ||
| 55 | |||
| 56 | virtual unsigned inletPort() const override; | ||
| 57 | |||
| 58 | virtual unsigned outletPort() const override; | ||
| 59 | |||
| 60 | virtual ComponentType componentType() const override; | ||
| 61 | virtual std::vector<FuelType> coolingFuelTypes() const override; | ||
| 62 | virtual std::vector<FuelType> heatingFuelTypes() const override; | ||
| 63 | virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override; | ||
| 64 | |||
| 65 | //@} | ||
| 66 | /** @name Getters */ | ||
| 67 | //@{ | ||
| 68 | |||
| 69 | Schedule availabilitySchedule() const; | ||
| 70 | |||
| 71 | HVACComponent coilCoolingCooledBeam() const; | ||
| 72 | |||
| 73 | std::string cooledBeamType() const; | ||
| 74 | |||
| 75 | boost::optional<double> supplyAirVolumetricFlowRate() const; | ||
| 76 | |||
| 77 | bool isSupplyAirVolumetricFlowRateDefaulted() const; | ||
| 78 | |||
| 79 | bool isSupplyAirVolumetricFlowRateAutosized() const; | ||
| 80 | |||
| 81 | boost::optional<double> maximumTotalChilledWaterVolumetricFlowRate() const; | ||
| 82 | |||
| 83 | bool isMaximumTotalChilledWaterVolumetricFlowRateDefaulted() const; | ||
| 84 | |||
| 85 | bool isMaximumTotalChilledWaterVolumetricFlowRateAutosized() const; | ||
| 86 | |||
| 87 | boost::optional<int> numberofBeams() const; | ||
| 88 | |||
| 89 | bool isNumberofBeamsDefaulted() const; | ||
| 90 | |||
| 91 | bool isNumberofBeamsAutosized() const; | ||
| 92 | |||
| 93 | boost::optional<double> beamLength() const; | ||
| 94 | |||
| 95 | bool isBeamLengthDefaulted() const; | ||
| 96 | |||
| 97 | bool isBeamLengthAutosized() const; | ||
| 98 | |||
| 99 | double designInletWaterTemperature() const; | ||
| 100 | |||
| 101 | bool isDesignInletWaterTemperatureDefaulted() const; | ||
| 102 | |||
| 103 | double designOutletWaterTemperature() const; | ||
| 104 | |||
| 105 | bool isDesignOutletWaterTemperatureDefaulted() const; | ||
| 106 | |||
| 107 | boost::optional<double> coefficientofInductionKin() const; | ||
| 108 | |||
| 109 | bool isCoefficientofInductionKinDefaulted() const; | ||
| 110 | |||
| 111 | bool isCoefficientofInductionKinAutocalculated() const; | ||
| 112 | |||
| 113 | boost::optional<double> autosizedSupplyAirVolumetricFlowRate() const; | ||
| 114 | |||
| 115 | boost::optional<double> autosizedMaximumTotalChilledWaterVolumetricFlowRate() const; | ||
| 116 | |||
| 117 | boost::optional<double> autosizedNumberofBeams() const; | ||
| 118 | |||
| 119 | boost::optional<double> autosizedBeamLength() const; | ||
| 120 | |||
| 121 | boost::optional<double> autosizedCoefficientofInductionKin() const; | ||
| 122 | |||
| 123 | virtual void autosize() override; | ||
| 124 | |||
| 125 | virtual void applySizingValues() override; | ||
| 126 | |||
| 127 | //@} | ||
| 128 | /** @name Setters */ | ||
| 129 | //@{ | ||
| 130 | |||
| 131 | bool setAvailabilitySchedule(Schedule& schedule); | ||
| 132 | |||
| 133 | bool setCoolingCoil(HVACComponent& coilCoolingCooledBeam); | ||
| 134 | |||
| 135 | bool setCooledBeamType(const std::string& cooledBeamType); | ||
| 136 | |||
| 137 | bool setSupplyAirVolumetricFlowRate(boost::optional<double> supplyAirVolumetricFlowRate); | ||
| 138 | |||
| 139 | void resetSupplyAirVolumetricFlowRate(); | ||
| 140 | |||
| 141 | void autosizeSupplyAirVolumetricFlowRate(); | ||
| 142 | |||
| 143 | bool setMaximumTotalChilledWaterVolumetricFlowRate(boost::optional<double> maximumTotalChilledWaterVolumetricFlowRate); | ||
| 144 | |||
| 145 | void resetMaximumTotalChilledWaterVolumetricFlowRate(); | ||
| 146 | |||
| 147 | void autosizeMaximumTotalChilledWaterVolumetricFlowRate(); | ||
| 148 | |||
| 149 | bool setNumberofBeams(boost::optional<int> numberofBeams); | ||
| 150 | |||
| 151 | void resetNumberofBeams(); | ||
| 152 | |||
| 153 | void autosizeNumberofBeams(); | ||
| 154 | |||
| 155 | bool setBeamLength(boost::optional<double> beamLength); | ||
| 156 | |||
| 157 | void resetBeamLength(); | ||
| 158 | |||
| 159 | void autosizeBeamLength(); | ||
| 160 | |||
| 161 | bool setDesignInletWaterTemperature(double designInletWaterTemperature); | ||
| 162 | |||
| 163 | void resetDesignInletWaterTemperature(); | ||
| 164 | |||
| 165 | bool setDesignOutletWaterTemperature(double designOutletWaterTemperature); | ||
| 166 | |||
| 167 | void resetDesignOutletWaterTemperature(); | ||
| 168 | |||
| 169 | bool setCoefficientofInductionKin(boost::optional<double> coefficientofInductionKin); | ||
| 170 | |||
| 171 | void resetCoefficientofInductionKin(); | ||
| 172 | |||
| 173 | void autocalculateCoefficientofInductionKin(); | ||
| 174 | |||
| 175 | // boost::optional<ThermalZone> thermalZone(); | ||
| 176 | |||
| 177 | // bool addToThermalZone(ThermalZone & thermalZone); | ||
| 178 | |||
| 179 | // void removeFromThermalZone(); | ||
| 180 | |||
| 181 | //@} | ||
| 182 | /** @name Other */ | ||
| 183 | //@{ | ||
| 184 | |||
| 185 | //@} | ||
| 186 | protected: | ||
| 187 | private: | ||
| 188 | − | REGISTER_LOGGER("openstudio.model.AirTerminalSingleDuctConstantVolumeCooledBeam"); | |
| 189 | |||
| 190 | boost::optional<Schedule> optionalAvailabilitySchedule() const; | ||
| 191 | boost::optional<HVACComponent> optionalCoolingCoil() const; | ||
| 192 | |||
| 193 | boost::optional<ModelObject> availabilityScheduleAsModelObject() const; | ||
| 194 | boost::optional<ModelObject> coolingCoilAsModelObject() const; | ||
| 195 | |||
| 196 | bool setAvailabilityScheduleAsModelObject(const boost::optional<ModelObject>& modelObject); | ||
| 197 | bool setCoolingCoilAsModelObject(const boost::optional<ModelObject>& modelObject); | ||
| 198 | }; | ||
| 199 | |||
| 200 | } // namespace detail | ||
| 201 | |||
| 202 | } // namespace model | ||
| 203 | } // namespace openstudio | ||
| 204 | |||
| 205 | #endif // MODEL_AIRTERMINALSINGLEDUCTCONSTANTVOLUMECOOLEDBEAM_IMPL_HPP | ||
| 206 |