src/model/ScheduleConstant_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_SCHEDULECONSTANT_IMPL_HPP | ||
| 7 | #define MODEL_SCHEDULECONSTANT_IMPL_HPP | ||
| 8 | |||
| 9 | #include "Schedule_Impl.hpp" | ||
| 10 | |||
| 11 | namespace openstudio { | ||
| 12 | namespace model { | ||
| 13 | |||
| 14 | class ScheduleConstant; | ||
| 15 | |||
| 16 | namespace detail { | ||
| 17 | |||
| 18 | class MODEL_API ScheduleConstant_Impl : public Schedule_Impl | ||
| 19 | { | ||
| 20 | |||
| 21 | public: | ||
| 22 | /** @name Constructors and Destructors */ | ||
| 23 | //@{ | ||
| 24 | |||
| 25 | // constructor | ||
| 26 | ScheduleConstant_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 27 | |||
| 28 | // construct from workspace | ||
| 29 | ScheduleConstant_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 30 | |||
| 31 | ScheduleConstant_Impl(const ScheduleConstant_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 32 | |||
| 33 | // virtual destructor | ||
| 34 | 5787 | virtual ~ScheduleConstant_Impl() override = default; | |
| 35 | |||
| 36 | //@} | ||
| 37 | /** @name Virtual Methods */ | ||
| 38 | //@{ | ||
| 39 | |||
| 40 | // return the parent object in the hierarchy | ||
| 41 | virtual boost::optional<ParentObject> parent() const override; | ||
| 42 | |||
| 43 | // return any children objects in the hierarchy | ||
| 44 | virtual std::vector<ModelObject> children() const override; | ||
| 45 | |||
| 46 | // Get all output variable names that could be associated with this object. | ||
| 47 | virtual const std::vector<std::string>& outputVariableNames() const override; | ||
| 48 | |||
| 49 | virtual IddObjectType iddObjectType() const override; | ||
| 50 | |||
| 51 | virtual boost::optional<ScheduleTypeLimits> scheduleTypeLimits() const override; | ||
| 52 | |||
| 53 | virtual std::vector<double> values() const override; | ||
| 54 | |||
| 55 | //@} | ||
| 56 | /** @name Getters */ | ||
| 57 | //@{ | ||
| 58 | |||
| 59 | double value() const; | ||
| 60 | |||
| 61 | virtual std::vector<EMSActuatorNames> emsActuatorNames() const override; | ||
| 62 | |||
| 63 | virtual std::vector<std::string> emsInternalVariableNames() const override; | ||
| 64 | |||
| 65 | //@} | ||
| 66 | /** @name Setters */ | ||
| 67 | //@{ | ||
| 68 | |||
| 69 | virtual bool setScheduleTypeLimits(const ScheduleTypeLimits& scheduleTypeLimits) override; | ||
| 70 | |||
| 71 | virtual bool resetScheduleTypeLimits() override; | ||
| 72 | |||
| 73 | bool setValue(double value); | ||
| 74 | |||
| 75 | // ensure that this object does not contain the date 2/29 | ||
| 76 | virtual void ensureNoLeapDays() override; | ||
| 77 | |||
| 78 | //@} | ||
| 79 | private: | ||
| 80 | REGISTER_LOGGER("openstudio.model.ScheduleConstant"); | ||
| 81 | }; | ||
| 82 | |||
| 83 | } // namespace detail | ||
| 84 | |||
| 85 | } // namespace model | ||
| 86 | } // namespace openstudio | ||
| 87 | |||
| 88 | #endif // MODEL_SCHEDULECONSTANT_IMPL_HPP | ||
| 89 |