src/model/SetpointManagerScheduledDualSetpoint.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_SETPOINTMANAGERSCHEDULEDDUALSETPOINT_HPP | ||
| 7 | #define MODEL_SETPOINTMANAGERSCHEDULEDDUALSETPOINT_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "SetpointManager.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | namespace model { | ||
| 14 | |||
| 15 | class Schedule; | ||
| 16 | class Node; | ||
| 17 | |||
| 18 | namespace detail { | ||
| 19 | |||
| 20 | class SetpointManagerScheduledDualSetpoint_Impl; | ||
| 21 | |||
| 22 | } // namespace detail | ||
| 23 | |||
| 24 | /** SetpointManagerScheduledDualSetpoint is a SetpointManager that wraps the OpenStudio IDD object 'OS:SetpointManager:Scheduled:DualSetpoint'. */ | ||
| 25 | class MODEL_API SetpointManagerScheduledDualSetpoint : public SetpointManager | ||
| 26 | { | ||
| 27 | public: | ||
| 28 | /** @name Constructors and Destructors */ | ||
| 29 | //@{ | ||
| 30 | |||
| 31 | explicit SetpointManagerScheduledDualSetpoint(const Model& model); | ||
| 32 | |||
| 33 | 18 | virtual ~SetpointManagerScheduledDualSetpoint() override = default; | |
| 34 | // Default the copy and move operators because the virtual dtor is explicit | ||
| 35 | ✗ | SetpointManagerScheduledDualSetpoint(const SetpointManagerScheduledDualSetpoint& other) = default; | |
| 36 | 6 | SetpointManagerScheduledDualSetpoint(SetpointManagerScheduledDualSetpoint&& other) = default; | |
| 37 | ✗ | SetpointManagerScheduledDualSetpoint& operator=(const SetpointManagerScheduledDualSetpoint&) = default; | |
| 38 | ✗ | SetpointManagerScheduledDualSetpoint& operator=(SetpointManagerScheduledDualSetpoint&&) = default; | |
| 39 | |||
| 40 | //@} | ||
| 41 | |||
| 42 | static IddObjectType iddObjectType(); | ||
| 43 | |||
| 44 | static std::vector<std::string> controlVariableValues(); | ||
| 45 | |||
| 46 | /** @name Getters */ | ||
| 47 | //@{ | ||
| 48 | |||
| 49 | boost::optional<Schedule> highSetpointSchedule() const; | ||
| 50 | |||
| 51 | boost::optional<Schedule> lowSetpointSchedule() const; | ||
| 52 | |||
| 53 | //@} | ||
| 54 | /** @name Setters */ | ||
| 55 | //@{ | ||
| 56 | |||
| 57 | bool setHighSetpointSchedule(Schedule& schedule); | ||
| 58 | |||
| 59 | void resetHighSetpointSchedule(); | ||
| 60 | |||
| 61 | bool setLowSetpointSchedule(Schedule& schedule); | ||
| 62 | |||
| 63 | void resetLowSetpointSchedule(); | ||
| 64 | |||
| 65 | //@} | ||
| 66 | /** @name Other */ | ||
| 67 | //@{ | ||
| 68 | |||
| 69 | //@} | ||
| 70 | protected: | ||
| 71 | /// @cond | ||
| 72 | using ImplType = detail::SetpointManagerScheduledDualSetpoint_Impl; | ||
| 73 | |||
| 74 | explicit SetpointManagerScheduledDualSetpoint(std::shared_ptr<detail::SetpointManagerScheduledDualSetpoint_Impl> impl); | ||
| 75 | |||
| 76 | friend class detail::SetpointManagerScheduledDualSetpoint_Impl; | ||
| 77 | friend class Model; | ||
| 78 | friend class IdfObject; | ||
| 79 | friend class openstudio::detail::IdfObject_Impl; | ||
| 80 | /// @endcond | ||
| 81 | private: | ||
| 82 | REGISTER_LOGGER("openstudio.model.SetpointManagerScheduledDualSetpoint"); | ||
| 83 | }; | ||
| 84 | |||
| 85 | /** \relates SetpointManagerScheduledDualSetpoint*/ | ||
| 86 | using OptionalSetpointManagerScheduledDualSetpoint = boost::optional<SetpointManagerScheduledDualSetpoint>; | ||
| 87 | |||
| 88 | /** \relates SetpointManagerScheduledDualSetpoint*/ | ||
| 89 | using SetpointManagerScheduledDualSetpointVector = std::vector<SetpointManagerScheduledDualSetpoint>; | ||
| 90 | |||
| 91 | } // namespace model | ||
| 92 | } // namespace openstudio | ||
| 93 | |||
| 94 | #endif // MODEL_SETPOINTMANAGERSCHEDULEDDUALSETPOINT_HPP | ||
| 95 |