src/model/ScheduleTypeLimits_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_SCHEDULETYPELIMITS_IMPL_HPP | ||
| 7 | #define MODEL_SCHEDULETYPELIMITS_IMPL_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "ResourceObject_Impl.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | namespace model { | ||
| 14 | |||
| 15 | namespace detail { | ||
| 16 | |||
| 17 | /** ScheduleTypeLimits_Impl is a ResourceObject_Impl that is the implementation class for ScheduleTypeLimits.*/ | ||
| 18 | class MODEL_API ScheduleTypeLimits_Impl : public ResourceObject_Impl | ||
| 19 | { | ||
| 20 | |||
| 21 | public: | ||
| 22 | /** @name Constructors and Destructors */ | ||
| 23 | //@{ | ||
| 24 | |||
| 25 | ScheduleTypeLimits_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 26 | |||
| 27 | ScheduleTypeLimits_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 28 | |||
| 29 | ScheduleTypeLimits_Impl(const ScheduleTypeLimits_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 30 | |||
| 31 | 10181 | virtual ~ScheduleTypeLimits_Impl() override = default; | |
| 32 | |||
| 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 | //@} | ||
| 43 | /** @name Getters */ | ||
| 44 | //@{ | ||
| 45 | |||
| 46 | boost::optional<double> lowerLimitValue() const; | ||
| 47 | |||
| 48 | boost::optional<double> upperLimitValue() const; | ||
| 49 | |||
| 50 | boost::optional<std::string> numericType() const; | ||
| 51 | |||
| 52 | std::string unitType() const; | ||
| 53 | |||
| 54 | bool isUnitTypeDefaulted() const; | ||
| 55 | |||
| 56 | boost::optional<Unit> units(bool returnIP = false) const; | ||
| 57 | |||
| 58 | //@} | ||
| 59 | /** @name Setters */ | ||
| 60 | //@{ | ||
| 61 | |||
| 62 | bool setLowerLimitValue(double lowerLimitValue); | ||
| 63 | |||
| 64 | void resetLowerLimitValue(); | ||
| 65 | |||
| 66 | bool setUpperLimitValue(double upperLimitValue); | ||
| 67 | |||
| 68 | void resetUpperLimitValue(); | ||
| 69 | |||
| 70 | bool setNumericType(const std::string& numericType); | ||
| 71 | |||
| 72 | void resetNumericType(); | ||
| 73 | |||
| 74 | bool setUnitType(const std::string& unitType); | ||
| 75 | |||
| 76 | void resetUnitType(); | ||
| 77 | |||
| 78 | //@} | ||
| 79 | /** @name Other */ | ||
| 80 | //@{ | ||
| 81 | |||
| 82 | //@} | ||
| 83 | protected: | ||
| 84 | private: | ||
| 85 | REGISTER_LOGGER("openstudio.model.ScheduleTypeLimits"); | ||
| 86 | }; | ||
| 87 | |||
| 88 | } // namespace detail | ||
| 89 | |||
| 90 | } // namespace model | ||
| 91 | } // namespace openstudio | ||
| 92 | |||
| 93 | #endif // MODEL_SCHEDULETYPELIMITS_IMPL_HPP | ||
| 94 |