src/model/ExteriorWaterEquipment_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_EXTERIORWATEREQUIPMENT_IMPL_HPP | ||
| 7 | #define MODEL_EXTERIORWATEREQUIPMENT_IMPL_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "ExteriorLoadInstance_Impl.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | namespace model { | ||
| 14 | |||
| 15 | class ExteriorWaterEquipmentDefinition; | ||
| 16 | class Schedule; | ||
| 17 | class Facility; | ||
| 18 | |||
| 19 | namespace detail { | ||
| 20 | |||
| 21 | /** ExteriorWaterEquipment_Impl is a ExteriorLoadInstance_Impl that is the implementation class for ExteriorWaterEquipment.*/ | ||
| 22 | class MODEL_API ExteriorWaterEquipment_Impl : public ExteriorLoadInstance_Impl | ||
| 23 | { | ||
| 24 | |||
| 25 | public: | ||
| 26 | /** @name Constructors and Destructors */ | ||
| 27 | //@{ | ||
| 28 | |||
| 29 | ExteriorWaterEquipment_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 30 | |||
| 31 | ExteriorWaterEquipment_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 32 | |||
| 33 | ExteriorWaterEquipment_Impl(const ExteriorWaterEquipment_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 34 | |||
| 35 | 14 | virtual ~ExteriorWaterEquipment_Impl() override = default; | |
| 36 | |||
| 37 | //@} | ||
| 38 | /** @name Virtual Methods */ | ||
| 39 | //@{ | ||
| 40 | |||
| 41 | virtual boost::optional<ParentObject> parent() const override; | ||
| 42 | |||
| 43 | virtual const std::vector<std::string>& outputVariableNames() const override; | ||
| 44 | |||
| 45 | virtual IddObjectType iddObjectType() const override; | ||
| 46 | |||
| 47 | virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override; | ||
| 48 | |||
| 49 | virtual double multiplier() const override; | ||
| 50 | |||
| 51 | virtual bool isMultiplierDefaulted() const override; | ||
| 52 | |||
| 53 | virtual bool setDefinition(const ExteriorLoadDefinition& definition) override; | ||
| 54 | |||
| 55 | //@} | ||
| 56 | /** @name Getters */ | ||
| 57 | //@{ | ||
| 58 | |||
| 59 | ExteriorWaterEquipmentDefinition exteriorWaterEquipmentDefinition() const; | ||
| 60 | |||
| 61 | Schedule schedule() const; | ||
| 62 | |||
| 63 | std::string endUseSubcategory() const; | ||
| 64 | |||
| 65 | bool isEndUseSubcategoryDefaulted() const; | ||
| 66 | |||
| 67 | //@} | ||
| 68 | /** @name Setters */ | ||
| 69 | //@{ | ||
| 70 | |||
| 71 | bool setExteriorWaterEquipmentDefinition(const ExteriorWaterEquipmentDefinition& exteriorWaterEquipmentDefinition); | ||
| 72 | |||
| 73 | bool setSchedule(Schedule& schedule); | ||
| 74 | |||
| 75 | void resetSchedule(); | ||
| 76 | |||
| 77 | bool setMultiplier(double multiplier); | ||
| 78 | |||
| 79 | void resetMultiplier(); | ||
| 80 | |||
| 81 | bool setEndUseSubcategory(const std::string& endUseSubcategory); | ||
| 82 | |||
| 83 | void resetEndUseSubcategory(); | ||
| 84 | |||
| 85 | //@} | ||
| 86 | /** @name Other */ | ||
| 87 | //@{ | ||
| 88 | |||
| 89 | Facility facility() const; | ||
| 90 | |||
| 91 | //@} | ||
| 92 | protected: | ||
| 93 | // index of the definition name | ||
| 94 | virtual int definitionIndex() const override; | ||
| 95 | |||
| 96 | private: | ||
| 97 | REGISTER_LOGGER("openstudio.model.ExteriorWaterEquipment"); | ||
| 98 | |||
| 99 | boost::optional<ModelObject> exteriorWaterEquipmentDefinitionAsModelObject() const; | ||
| 100 | boost::optional<ModelObject> scheduleAsModelObject() const; | ||
| 101 | boost::optional<ModelObject> facilityAsModelObject() const; | ||
| 102 | |||
| 103 | bool setExteriorWaterEquipmentDefinitionAsModelObject(const boost::optional<ModelObject>& modelObject); | ||
| 104 | bool setScheduleAsModelObject(const boost::optional<ModelObject>& modelObject); | ||
| 105 | }; | ||
| 106 | |||
| 107 | } // namespace detail | ||
| 108 | |||
| 109 | } // namespace model | ||
| 110 | } // namespace openstudio | ||
| 111 | |||
| 112 | #endif // MODEL_EXTERIORWATEREQUIPMENT_IMPL_HPP | ||
| 113 |