src/model/RefrigerationCompressor_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_REFRIGERATIONCOMPRESSOR_IMPL_HPP | ||
| 7 | #define MODEL_REFRIGERATIONCOMPRESSOR_IMPL_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "ParentObject_Impl.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | namespace model { | ||
| 14 | |||
| 15 | class RefrigerationSystem; | ||
| 16 | class CurveBicubic; | ||
| 17 | |||
| 18 | namespace detail { | ||
| 19 | |||
| 20 | /** RefrigerationCompressor_Impl is a ParentObject_Impl that is the implementation class for RefrigerationCompressor.*/ | ||
| 21 | class MODEL_API RefrigerationCompressor_Impl : public ParentObject_Impl | ||
| 22 | { | ||
| 23 | public: | ||
| 24 | /** @name Constructors and Destructors */ | ||
| 25 | //@{ | ||
| 26 | |||
| 27 | RefrigerationCompressor_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 28 | |||
| 29 | RefrigerationCompressor_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 30 | |||
| 31 | RefrigerationCompressor_Impl(const RefrigerationCompressor_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 32 | |||
| 33 | 72 | virtual ~RefrigerationCompressor_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<IdfObject> remove() override; | ||
| 46 | |||
| 47 | virtual std::vector<IddObjectType> allowableChildTypes() const override; | ||
| 48 | |||
| 49 | virtual std::vector<ModelObject> children() const override; | ||
| 50 | |||
| 51 | //@} | ||
| 52 | /** @name Getters */ | ||
| 53 | //@{ | ||
| 54 | |||
| 55 | CurveBicubic refrigerationCompressorPowerCurve() const; | ||
| 56 | |||
| 57 | CurveBicubic refrigerationCompressorCapacityCurve() const; | ||
| 58 | |||
| 59 | boost::optional<double> ratedSuperheat() const; | ||
| 60 | |||
| 61 | boost::optional<double> ratedReturnGasTemperature() const; | ||
| 62 | |||
| 63 | boost::optional<double> ratedLiquidTemperature() const; | ||
| 64 | |||
| 65 | boost::optional<double> ratedSubcooling() const; | ||
| 66 | |||
| 67 | std::string endUseSubcategory() const; | ||
| 68 | |||
| 69 | bool isEndUseSubcategoryDefaulted() const; | ||
| 70 | |||
| 71 | std::string modeofOperation() const; | ||
| 72 | |||
| 73 | // bool isModeofOperationDefaulted() const; | ||
| 74 | |||
| 75 | boost::optional<CurveBicubic> transcriticalCompressorPowerCurve() const; | ||
| 76 | |||
| 77 | boost::optional<CurveBicubic> transcriticalCompressorCapacityCurve() const; | ||
| 78 | |||
| 79 | boost::optional<RefrigerationSystem> system() const; | ||
| 80 | |||
| 81 | //@} | ||
| 82 | /** @name Setters */ | ||
| 83 | //@{ | ||
| 84 | |||
| 85 | bool setRefrigerationCompressorPowerCurve(const CurveBicubic& curveBicubic); | ||
| 86 | |||
| 87 | bool setRefrigerationCompressorCapacityCurve(const CurveBicubic& curveBicubic); | ||
| 88 | |||
| 89 | bool setRatedSuperheat(boost::optional<double> ratedSuperheat); | ||
| 90 | |||
| 91 | void resetRatedSuperheat(); | ||
| 92 | |||
| 93 | bool setRatedReturnGasTemperature(boost::optional<double> ratedReturnGasTemperature); | ||
| 94 | |||
| 95 | void resetRatedReturnGasTemperature(); | ||
| 96 | |||
| 97 | bool setRatedLiquidTemperature(boost::optional<double> ratedLiquidTemperature); | ||
| 98 | |||
| 99 | void resetRatedLiquidTemperature(); | ||
| 100 | |||
| 101 | bool setRatedSubcooling(boost::optional<double> ratedSubcooling); | ||
| 102 | |||
| 103 | void resetRatedSubcooling(); | ||
| 104 | |||
| 105 | bool setEndUseSubcategory(const std::string& endUseSubcategory); | ||
| 106 | |||
| 107 | void resetEndUseSubcategory(); | ||
| 108 | |||
| 109 | // bool setModeofOperation(const std::string& modeofOperation); | ||
| 110 | |||
| 111 | // void resetModeofOperation(); | ||
| 112 | |||
| 113 | bool setTranscriticalCompressorPowerCurve(const boost::optional<CurveBicubic>& curveBicubic); | ||
| 114 | |||
| 115 | void resetTranscriticalCompressorPowerCurve(); | ||
| 116 | |||
| 117 | bool setTranscriticalCompressorCapacityCurve(const boost::optional<CurveBicubic>& curveBicubic); | ||
| 118 | |||
| 119 | void resetTranscriticalCompressorCapacityCurve(); | ||
| 120 | |||
| 121 | void removeFromSystem(); | ||
| 122 | |||
| 123 | //@} | ||
| 124 | /** @name Other */ | ||
| 125 | //@{ | ||
| 126 | |||
| 127 | //@} | ||
| 128 | protected: | ||
| 129 | private: | ||
| 130 | − | REGISTER_LOGGER("openstudio.model.RefrigerationCompressor"); | |
| 131 | |||
| 132 | // Optional getters for use by methods like children() so can remove() if the constructor fails. | ||
| 133 | // There are other ways for the public versions of these getters to fail--perhaps all required | ||
| 134 | // objects should be returned as boost::optionals | ||
| 135 | boost::optional<CurveBicubic> optionalRefrigerationCompressorPowerCurve() const; | ||
| 136 | boost::optional<CurveBicubic> optionalRefrigerationCompressorCapacityCurve() const; | ||
| 137 | }; | ||
| 138 | |||
| 139 | } // namespace detail | ||
| 140 | |||
| 141 | } // namespace model | ||
| 142 | } // namespace openstudio | ||
| 143 | |||
| 144 | #endif // MODEL_REFRIGERATIONCOMPRESSOR_IMPL_HPP | ||
| 145 |