src/model/LoadingIndex_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_LOADINGINDEX_IMPL_HPP | ||
| 7 | #define MODEL_LOADINGINDEX_IMPL_HPP | ||
| 8 | |||
| 9 | #include <model/ModelAPI.hpp> | ||
| 10 | #include "ParentObject_Impl.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | namespace model { | ||
| 14 | |||
| 15 | class Curve; | ||
| 16 | |||
| 17 | namespace detail { | ||
| 18 | |||
| 19 | /** LoadingIndex_Impl is a ParentObject_Impl that is the implementation class for LoadingIndex.*/ | ||
| 20 | class MODEL_API LoadingIndex_Impl : public ParentObject_Impl | ||
| 21 | { | ||
| 22 | public: | ||
| 23 | /** @name Constructors and Destructors */ | ||
| 24 | //@{ | ||
| 25 | |||
| 26 | LoadingIndex_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 27 | |||
| 28 | LoadingIndex_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 29 | |||
| 30 | LoadingIndex_Impl(const LoadingIndex_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 31 | |||
| 32 | 122 | virtual ~LoadingIndex_Impl() override = default; | |
| 33 | |||
| 34 | //@} | ||
| 35 | /** @name Virtual Methods */ | ||
| 36 | //@{ | ||
| 37 | |||
| 38 | virtual const std::vector<std::string>& outputVariableNames() const override; | ||
| 39 | |||
| 40 | virtual IddObjectType iddObjectType() const override; | ||
| 41 | |||
| 42 | // Overriding clone and children here because we want to try to remove the Curves (if they aren't used by something else) | ||
| 43 | // So we list them as children. But ParentObject_Impl::clone would also clone them, so we override clone to call ModelObject_Impl::clone | ||
| 44 | virtual ModelObject clone(Model model) const override; | ||
| 45 | |||
| 46 | virtual std::vector<ModelObject> children() const override; | ||
| 47 | |||
| 48 | // No need to override, it bears only ResourceObjects | ||
| 49 | // virtual std::vector<IddObjectType> allowableChildTypes() const override; | ||
| 50 | |||
| 51 | //@} | ||
| 52 | /** @name Getters */ | ||
| 53 | //@{ | ||
| 54 | |||
| 55 | double compressorSpeed() const; | ||
| 56 | |||
| 57 | Curve evaporativeCapacityMultiplierFunctionofTemperatureCurve() const; | ||
| 58 | |||
| 59 | Curve compressorPowerMultiplierFunctionofTemperatureCurve() const; | ||
| 60 | |||
| 61 | //@} | ||
| 62 | /** @name Setters */ | ||
| 63 | //@{ | ||
| 64 | |||
| 65 | bool setCompressorSpeed(double compressorSpeed); | ||
| 66 | |||
| 67 | bool setEvaporativeCapacityMultiplierFunctionofTemperatureCurve(const Curve& curve); | ||
| 68 | |||
| 69 | bool setCompressorPowerMultiplierFunctionofTemperatureCurve(const Curve& curve); | ||
| 70 | |||
| 71 | //@} | ||
| 72 | /** @name Other */ | ||
| 73 | //@{ | ||
| 74 | |||
| 75 | //@} | ||
| 76 | protected: | ||
| 77 | private: | ||
| 78 | − | REGISTER_LOGGER("openstudio.model.LoadingIndex"); | |
| 79 | |||
| 80 | boost::optional<Curve> optionalEvaporativeCapacityMultiplierFunctionofTemperatureCurve() const; | ||
| 81 | boost::optional<Curve> optionalCompressorPowerMultiplierFunctionofTemperatureCurve() const; | ||
| 82 | }; | ||
| 83 | |||
| 84 | } // namespace detail | ||
| 85 | |||
| 86 | } // namespace model | ||
| 87 | } // namespace openstudio | ||
| 88 | |||
| 89 | #endif // MODEL_LOADINGINDEX_IMPL_HPP | ||
| 90 |