src/model/ZoneMRTCalculation_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_ZONEMRTCALCULATION_IMPL_HPP | ||
| 7 | #define MODEL_ZONEMRTCALCULATION_IMPL_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "ModelObject_Impl.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | namespace model { | ||
| 14 | |||
| 15 | class MRTWeightingFactor; | ||
| 16 | class People; | ||
| 17 | class ThermalZone; | ||
| 18 | |||
| 19 | namespace detail { | ||
| 20 | |||
| 21 | /** ZoneMRTCalculation_Impl is a ModelObject_Impl that is the implementation class for ZoneMRTCalculation.*/ | ||
| 22 | class MODEL_API ZoneMRTCalculation_Impl : public ModelObject_Impl | ||
| 23 | { | ||
| 24 | |||
| 25 | public: | ||
| 26 | /** @name Constructors and Destructors */ | ||
| 27 | //@{ | ||
| 28 | |||
| 29 | ZoneMRTCalculation_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 30 | |||
| 31 | ZoneMRTCalculation_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 32 | |||
| 33 | ZoneMRTCalculation_Impl(const ZoneMRTCalculation_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 34 | |||
| 35 | 12 | virtual ~ZoneMRTCalculation_Impl() override = default; | |
| 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 ModelObject clone(Model model) const override; | ||
| 46 | |||
| 47 | //@} | ||
| 48 | /** @name Getters */ | ||
| 49 | //@{ | ||
| 50 | |||
| 51 | ThermalZone thermalZone() const; | ||
| 52 | |||
| 53 | //@} | ||
| 54 | /** @name Setters */ | ||
| 55 | //@{ | ||
| 56 | |||
| 57 | //@} | ||
| 58 | /** @name Other */ | ||
| 59 | //@{ | ||
| 60 | |||
| 61 | std::vector<MRTWeightingFactor> mRTWeightingFactors() const; | ||
| 62 | |||
| 63 | unsigned int numberofMRTWeightingFactors() const; | ||
| 64 | |||
| 65 | boost::optional<unsigned> mRTWeightingFactorIndex(const People& people) const; | ||
| 66 | |||
| 67 | boost::optional<MRTWeightingFactor> getMRTWeightingFactor(unsigned groupIndex) const; | ||
| 68 | |||
| 69 | bool addMRTWeightingFactor(const MRTWeightingFactor& mRTWeightingFactor); | ||
| 70 | |||
| 71 | bool addMRTWeightingFactor(const People& people, double mRTWeightingFactor); | ||
| 72 | |||
| 73 | bool addMRTWeightingFactors(const std::vector<MRTWeightingFactor>& mRTWeightingFactors); | ||
| 74 | |||
| 75 | bool removeMRTWeightingFactor(unsigned groupIndex); | ||
| 76 | |||
| 77 | void removeAllMRTWeightingFactors(); | ||
| 78 | |||
| 79 | //@} | ||
| 80 | protected: | ||
| 81 | private: | ||
| 82 | − | REGISTER_LOGGER("openstudio.model.ZoneMRTCalculation"); | |
| 83 | |||
| 84 | boost::optional<People> getPeople(unsigned groupIndex) const; | ||
| 85 | |||
| 86 | boost::optional<double> getMRTWeightingFactorValue(unsigned groupIndex) const; | ||
| 87 | }; | ||
| 88 | |||
| 89 | } // namespace detail | ||
| 90 | |||
| 91 | } // namespace model | ||
| 92 | } // namespace openstudio | ||
| 93 | |||
| 94 | #endif // MODEL_ZONEMRTCALCULATION_IMPL_HPP | ||
| 95 |