src/model/ControllerMechanicalVentilation_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_CONTROLLERMECHANICALVENTILATION_IMPL_HPP | ||
| 7 | #define MODEL_CONTROLLERMECHANICALVENTILATION_IMPL_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "ModelObject_Impl.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | namespace model { | ||
| 14 | |||
| 15 | class Schedule; | ||
| 16 | class ControllerOutdoorAir; | ||
| 17 | |||
| 18 | namespace detail { | ||
| 19 | |||
| 20 | /** ControllerMechanicalVentilation_Impl is a ModelObject_Impl that is the implementation class for ControllerMechanicalVentilation.*/ | ||
| 21 | class MODEL_API ControllerMechanicalVentilation_Impl : public ModelObject_Impl | ||
| 22 | { | ||
| 23 | |||
| 24 | public: | ||
| 25 | /** @name Constructors and Destructors */ | ||
| 26 | //@{ | ||
| 27 | |||
| 28 | ControllerMechanicalVentilation_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 29 | |||
| 30 | ControllerMechanicalVentilation_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 31 | |||
| 32 | ControllerMechanicalVentilation_Impl(const ControllerMechanicalVentilation_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 33 | |||
| 34 | 474 | virtual ~ControllerMechanicalVentilation_Impl() override = default; | |
| 35 | |||
| 36 | //@} | ||
| 37 | |||
| 38 | /** @name Virtual Methods */ | ||
| 39 | //@{ | ||
| 40 | |||
| 41 | virtual const std::vector<std::string>& outputVariableNames() const override; | ||
| 42 | |||
| 43 | virtual IddObjectType iddObjectType() const override; | ||
| 44 | |||
| 45 | virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override; | ||
| 46 | |||
| 47 | //@} | ||
| 48 | /** @name Getters */ | ||
| 49 | //@{ | ||
| 50 | |||
| 51 | Schedule availabilitySchedule() const; | ||
| 52 | |||
| 53 | bool demandControlledVentilation() const; | ||
| 54 | |||
| 55 | bool isDemandControlledVentilationDefaulted() const; | ||
| 56 | |||
| 57 | std::string systemOutdoorAirMethod() const; | ||
| 58 | |||
| 59 | bool isSystemOutdoorAirMethodDefaulted() const; | ||
| 60 | |||
| 61 | //@} | ||
| 62 | /** @name Setters */ | ||
| 63 | //@{ | ||
| 64 | |||
| 65 | bool setAvailabilitySchedule(Schedule& schedule); | ||
| 66 | |||
| 67 | bool setDemandControlledVentilation(bool demandControlledVentilation); | ||
| 68 | |||
| 69 | void resetDemandControlledVentilation(); | ||
| 70 | |||
| 71 | bool setSystemOutdoorAirMethod(const std::string& systemOutdoorAirMethod); | ||
| 72 | |||
| 73 | void resetSystemOutdoorAirMethod(); | ||
| 74 | |||
| 75 | //@} | ||
| 76 | /** @name Other */ | ||
| 77 | //@{ | ||
| 78 | |||
| 79 | ControllerOutdoorAir controllerOutdoorAir() const; | ||
| 80 | |||
| 81 | // Convenience method to check whether it links to zones that have DesignSpecificationOutdoorAir(s) assigned | ||
| 82 | bool hasZonesWithDesignSpecificationOutdoorAir() const; | ||
| 83 | |||
| 84 | //@} | ||
| 85 | protected: | ||
| 86 | private: | ||
| 87 | − | REGISTER_LOGGER("openstudio.model.ControllerMechanicalVentilation"); | |
| 88 | |||
| 89 | // Optional getters for use by methods like children() so can remove() if the constructor fails. | ||
| 90 | boost::optional<Schedule> optionalAvailabilitySchedule() const; | ||
| 91 | |||
| 92 | std::vector<std::string> systemOutdoorAirMethodValues() const; | ||
| 93 | |||
| 94 | boost::optional<ModelObject> availabilityScheduleAsModelObject() const; | ||
| 95 | |||
| 96 | bool setAvailabilityScheduleAsModelObject(const boost::optional<ModelObject>& modelObject); | ||
| 97 | }; | ||
| 98 | |||
| 99 | } // namespace detail | ||
| 100 | |||
| 101 | } // namespace model | ||
| 102 | } // namespace openstudio | ||
| 103 | |||
| 104 | #endif // MODEL_CONTROLLERMECHANICALVENTILATION_IMPL_HPP | ||
| 105 |