src/model/SetpointManagerOutdoorAirReset_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_SETPOINTMANAGEROUTDOORAIRRESET_IMPL_HPP | ||
| 7 | #define MODEL_SETPOINTMANAGEROUTDOORAIRRESET_IMPL_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "SetpointManager_Impl.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | namespace model { | ||
| 14 | |||
| 15 | class Node; | ||
| 16 | class Schedule; | ||
| 17 | |||
| 18 | namespace detail { | ||
| 19 | |||
| 20 | /** SetpointManagerOutdoorAirReset_Impl is a SetpointManager_Impl that is the implementation class for SetpointManagerOutdoorAirReset.*/ | ||
| 21 | class MODEL_API SetpointManagerOutdoorAirReset_Impl : public SetpointManager_Impl | ||
| 22 | { | ||
| 23 | |||
| 24 | public: | ||
| 25 | /** @name Constructors and Destructors */ | ||
| 26 | //@{ | ||
| 27 | |||
| 28 | SetpointManagerOutdoorAirReset_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 29 | |||
| 30 | SetpointManagerOutdoorAirReset_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 31 | |||
| 32 | SetpointManagerOutdoorAirReset_Impl(const SetpointManagerOutdoorAirReset_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 33 | |||
| 34 | 17 | virtual ~SetpointManagerOutdoorAirReset_Impl() override = default; | |
| 35 | |||
| 36 | //@} | ||
| 37 | /** @name Virtual Methods */ | ||
| 38 | //@{ | ||
| 39 | |||
| 40 | virtual const std::vector<std::string>& outputVariableNames() const override; | ||
| 41 | |||
| 42 | virtual IddObjectType iddObjectType() const override; | ||
| 43 | |||
| 44 | virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override; | ||
| 45 | |||
| 46 | // virtual bool addToNode(Node & node) override; | ||
| 47 | |||
| 48 | virtual bool isAllowedOnPlantLoop() const override; | ||
| 49 | |||
| 50 | //@} | ||
| 51 | /** @name Getters */ | ||
| 52 | //@{ | ||
| 53 | |||
| 54 | virtual std::string controlVariable() const override; | ||
| 55 | |||
| 56 | bool isControlVariableDefaulted() const; | ||
| 57 | |||
| 58 | double setpointatOutdoorLowTemperature() const; | ||
| 59 | |||
| 60 | double outdoorLowTemperature() const; | ||
| 61 | |||
| 62 | double setpointatOutdoorHighTemperature() const; | ||
| 63 | |||
| 64 | double outdoorHighTemperature() const; | ||
| 65 | |||
| 66 | virtual boost::optional<Node> setpointNode() const override; | ||
| 67 | |||
| 68 | boost::optional<Schedule> schedule() const; | ||
| 69 | |||
| 70 | boost::optional<double> setpointatOutdoorLowTemperature2() const; | ||
| 71 | |||
| 72 | boost::optional<double> outdoorLowTemperature2() const; | ||
| 73 | |||
| 74 | boost::optional<double> setpointatOutdoorHighTemperature2() const; | ||
| 75 | |||
| 76 | boost::optional<double> outdoorHighTemperature2() const; | ||
| 77 | |||
| 78 | //@} | ||
| 79 | /** @name Setters */ | ||
| 80 | //@{ | ||
| 81 | |||
| 82 | virtual bool setControlVariable(const std::string& controlVariable) override; | ||
| 83 | |||
| 84 | void resetControlVariable(); | ||
| 85 | |||
| 86 | bool setSetpointatOutdoorLowTemperature(double setpointatOutdoorLowTemperature); | ||
| 87 | |||
| 88 | bool setOutdoorLowTemperature(double outdoorLowTemperature); | ||
| 89 | |||
| 90 | bool setSetpointatOutdoorHighTemperature(double setpointatOutdoorHighTemperature); | ||
| 91 | |||
| 92 | bool setOutdoorHighTemperature(double outdoorHighTemperature); | ||
| 93 | |||
| 94 | bool setSchedule(Schedule& schedule); | ||
| 95 | |||
| 96 | void resetSchedule(); | ||
| 97 | |||
| 98 | bool setSetpointatOutdoorLowTemperature2(boost::optional<double> setpointatOutdoorLowTemperature2); | ||
| 99 | |||
| 100 | void resetSetpointatOutdoorLowTemperature2(); | ||
| 101 | |||
| 102 | bool setOutdoorLowTemperature2(boost::optional<double> outdoorLowTemperature2); | ||
| 103 | |||
| 104 | void resetOutdoorLowTemperature2(); | ||
| 105 | |||
| 106 | bool setSetpointatOutdoorHighTemperature2(boost::optional<double> setpointatOutdoorHighTemperature2); | ||
| 107 | |||
| 108 | void resetSetpointatOutdoorHighTemperature2(); | ||
| 109 | |||
| 110 | bool setOutdoorHighTemperature2(boost::optional<double> outdoorHighTemperature2); | ||
| 111 | |||
| 112 | void resetOutdoorHighTemperature2(); | ||
| 113 | |||
| 114 | //@} | ||
| 115 | /** @name Other */ | ||
| 116 | //@{ | ||
| 117 | |||
| 118 | // bool addToNode(Node & node); | ||
| 119 | |||
| 120 | //@} | ||
| 121 | protected: | ||
| 122 | private: | ||
| 123 | virtual bool setSetpointNode(const Node& node) override; | ||
| 124 | |||
| 125 | virtual void resetSetpointNode() override; | ||
| 126 | |||
| 127 | REGISTER_LOGGER("openstudio.model.SetpointManagerOutdoorAirReset"); | ||
| 128 | |||
| 129 | std::vector<std::string> controlVariableValues() const; | ||
| 130 | boost::optional<ModelObject> setpointNodeAsModelObject() const; | ||
| 131 | boost::optional<ModelObject> scheduleAsModelObject() const; | ||
| 132 | |||
| 133 | bool setSetpointNodeAsModelObject(const boost::optional<ModelObject>& modelObject); | ||
| 134 | bool setScheduleAsModelObject(const boost::optional<ModelObject>& modelObject); | ||
| 135 | }; | ||
| 136 | |||
| 137 | } // namespace detail | ||
| 138 | |||
| 139 | } // namespace model | ||
| 140 | } // namespace openstudio | ||
| 141 | |||
| 142 | #endif // MODEL_SETPOINTMANAGEROUTDOORAIRRESET_IMPL_HPP | ||
| 143 |