src/model/WaterHeaterSizing_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_WATERHEATERSIZING_IMPL_HPP | ||
| 7 | #define MODEL_WATERHEATERSIZING_IMPL_HPP | ||
| 8 | |||
| 9 | #include <model/ModelAPI.hpp> | ||
| 10 | #include "ModelObject_Impl.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | namespace model { | ||
| 14 | |||
| 15 | class WaterToWaterComponent; | ||
| 16 | |||
| 17 | namespace detail { | ||
| 18 | |||
| 19 | /** WaterHeaterSizing_Impl is a ModelObject_Impl that is the implementation class for WaterHeaterSizing.*/ | ||
| 20 | class MODEL_API WaterHeaterSizing_Impl : public ModelObject_Impl | ||
| 21 | { | ||
| 22 | public: | ||
| 23 | /** @name Constructors and Destructors */ | ||
| 24 | //@{ | ||
| 25 | |||
| 26 | WaterHeaterSizing_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 27 | |||
| 28 | WaterHeaterSizing_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 29 | |||
| 30 | WaterHeaterSizing_Impl(const WaterHeaterSizing_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 31 | |||
| 32 | 208 | virtual ~WaterHeaterSizing_Impl() override = default; | |
| 33 | |||
| 34 | //@} | ||
| 35 | /** @name Virtual Methods */ | ||
| 36 | //@{ | ||
| 37 | |||
| 38 | virtual const std::vector<std::string>& outputVariableNames() const override; | ||
| 39 | |||
| 40 | virtual IddObjectType iddObjectType() const override; | ||
| 41 | |||
| 42 | //@} | ||
| 43 | /** @name Getters */ | ||
| 44 | //@{ | ||
| 45 | |||
| 46 | WaterToWaterComponent waterHeater() const; | ||
| 47 | |||
| 48 | boost::optional<std::string> designMode() const; | ||
| 49 | |||
| 50 | boost::optional<double> timeStorageCanMeetPeakDraw() const; | ||
| 51 | |||
| 52 | boost::optional<double> timeforTankRecovery() const; | ||
| 53 | |||
| 54 | boost::optional<double> nominalTankVolumeforAutosizingPlantConnections() const; | ||
| 55 | |||
| 56 | boost::optional<int> numberofBedrooms() const; | ||
| 57 | |||
| 58 | boost::optional<int> numberofBathrooms() const; | ||
| 59 | |||
| 60 | boost::optional<double> storageCapacityperPerson() const; | ||
| 61 | |||
| 62 | boost::optional<double> recoveryCapacityperPerson() const; | ||
| 63 | |||
| 64 | boost::optional<double> storageCapacityperFloorArea() const; | ||
| 65 | |||
| 66 | boost::optional<double> recoveryCapacityperFloorArea() const; | ||
| 67 | |||
| 68 | boost::optional<double> numberofUnits() const; | ||
| 69 | |||
| 70 | boost::optional<double> storageCapacityperUnit() const; | ||
| 71 | |||
| 72 | boost::optional<double> recoveryCapacityPerUnit() const; | ||
| 73 | |||
| 74 | boost::optional<double> storageCapacityperCollectorArea() const; | ||
| 75 | |||
| 76 | boost::optional<double> heightAspectRatio() const; | ||
| 77 | |||
| 78 | //@} | ||
| 79 | /** @name Setters */ | ||
| 80 | //@{ | ||
| 81 | |||
| 82 | bool setWaterHeater(const WaterToWaterComponent& waterHeater); | ||
| 83 | |||
| 84 | bool setDesignMode(const std::string& designMode); | ||
| 85 | |||
| 86 | void resetDesignMode(); | ||
| 87 | |||
| 88 | bool setTimeStorageCanMeetPeakDraw(double timeStorageCanMeetPeakDraw); | ||
| 89 | |||
| 90 | void resetTimeStorageCanMeetPeakDraw(); | ||
| 91 | |||
| 92 | bool setTimeforTankRecovery(double timeforTankRecovery); | ||
| 93 | |||
| 94 | void resetTimeforTankRecovery(); | ||
| 95 | |||
| 96 | bool setNominalTankVolumeforAutosizingPlantConnections(double nominalTankVolumeforAutosizingPlantConnections); | ||
| 97 | |||
| 98 | void resetNominalTankVolumeforAutosizingPlantConnections(); | ||
| 99 | |||
| 100 | bool setNumberofBedrooms(int numberofBedrooms); | ||
| 101 | |||
| 102 | void resetNumberofBedrooms(); | ||
| 103 | |||
| 104 | bool setNumberofBathrooms(int numberofBathrooms); | ||
| 105 | |||
| 106 | void resetNumberofBathrooms(); | ||
| 107 | |||
| 108 | bool setStorageCapacityperPerson(double storageCapacityperPerson); | ||
| 109 | |||
| 110 | void resetStorageCapacityperPerson(); | ||
| 111 | |||
| 112 | bool setRecoveryCapacityperPerson(double recoveryCapacityperPerson); | ||
| 113 | |||
| 114 | void resetRecoveryCapacityperPerson(); | ||
| 115 | |||
| 116 | bool setStorageCapacityperFloorArea(double storageCapacityperFloorArea); | ||
| 117 | |||
| 118 | void resetStorageCapacityperFloorArea(); | ||
| 119 | |||
| 120 | bool setRecoveryCapacityperFloorArea(double recoveryCapacityperFloorArea); | ||
| 121 | |||
| 122 | void resetRecoveryCapacityperFloorArea(); | ||
| 123 | |||
| 124 | bool setNumberofUnits(double numberofUnits); | ||
| 125 | |||
| 126 | void resetNumberofUnits(); | ||
| 127 | |||
| 128 | bool setStorageCapacityperUnit(double storageCapacityperUnit); | ||
| 129 | |||
| 130 | void resetStorageCapacityperUnit(); | ||
| 131 | |||
| 132 | bool setRecoveryCapacityPerUnit(double recoveryCapacityPerUnit); | ||
| 133 | |||
| 134 | void resetRecoveryCapacityPerUnit(); | ||
| 135 | |||
| 136 | bool setStorageCapacityperCollectorArea(double storageCapacityperCollectorArea); | ||
| 137 | |||
| 138 | void resetStorageCapacityperCollectorArea(); | ||
| 139 | |||
| 140 | bool setHeightAspectRatio(double heightAspectRatio); | ||
| 141 | |||
| 142 | void resetHeightAspectRatio(); | ||
| 143 | |||
| 144 | //@} | ||
| 145 | /** @name Other */ | ||
| 146 | //@{ | ||
| 147 | |||
| 148 | //@} | ||
| 149 | protected: | ||
| 150 | private: | ||
| 151 | − | REGISTER_LOGGER("openstudio.model.WaterHeaterSizing"); | |
| 152 | |||
| 153 | // Optional getters for use by methods like children() so can remove() if the constructor fails. | ||
| 154 | // There are other ways for the public versions of these getters to fail--perhaps all required | ||
| 155 | // objects should be returned as boost::optionals | ||
| 156 | boost::optional<WaterToWaterComponent> optionalWaterHeater() const; | ||
| 157 | }; | ||
| 158 | |||
| 159 | } // namespace detail | ||
| 160 | |||
| 161 | } // namespace model | ||
| 162 | } // namespace openstudio | ||
| 163 | |||
| 164 | #endif // MODEL_WATERHEATERSIZING_IMPL_HPP | ||
| 165 |