src/model/SiteGroundTemperatureFCfactorMethod_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_SITEGROUNDTEMPERATUREFCFACTORMETHOD_IMPL_HPP | ||
| 7 | #define MODEL_SITEGROUNDTEMPERATUREFCFACTORMETHOD_IMPL_HPP | ||
| 8 | |||
| 9 | #include <vector> | ||
| 10 | #include "ModelAPI.hpp" | ||
| 11 | #include "ModelObject_Impl.hpp" | ||
| 12 | #include "../utilities/time/Date.hpp" | ||
| 13 | |||
| 14 | namespace openstudio { | ||
| 15 | namespace model { | ||
| 16 | |||
| 17 | namespace detail { | ||
| 18 | |||
| 19 | /** SiteGroundTemperatureFCfactorMethod_Impl is a ModelObject_Impl that is the implementation class for SiteGroundTemperatureFCfactorMethod.*/ | ||
| 20 | class MODEL_API SiteGroundTemperatureFCfactorMethod_Impl : public ModelObject_Impl | ||
| 21 | { | ||
| 22 | |||
| 23 | public: | ||
| 24 | /** @name Constructors and Destructors */ | ||
| 25 | //@{ | ||
| 26 | |||
| 27 | SiteGroundTemperatureFCfactorMethod_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 28 | |||
| 29 | SiteGroundTemperatureFCfactorMethod_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 30 | |||
| 31 | SiteGroundTemperatureFCfactorMethod_Impl(const SiteGroundTemperatureFCfactorMethod_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 32 | |||
| 33 | 12 | virtual ~SiteGroundTemperatureFCfactorMethod_Impl() override = default; | |
| 34 | |||
| 35 | //@} | ||
| 36 | |||
| 37 | virtual boost::optional<ParentObject> parent() const override; | ||
| 38 | |||
| 39 | virtual const std::vector<std::string>& outputVariableNames() const override; | ||
| 40 | |||
| 41 | virtual IddObjectType iddObjectType() const override; | ||
| 42 | |||
| 43 | /** @name Getters */ | ||
| 44 | //@{ | ||
| 45 | |||
| 46 | double januaryGroundTemperature() const; | ||
| 47 | |||
| 48 | bool isJanuaryGroundTemperatureDefaulted() const; | ||
| 49 | |||
| 50 | double februaryGroundTemperature() const; | ||
| 51 | |||
| 52 | bool isFebruaryGroundTemperatureDefaulted() const; | ||
| 53 | |||
| 54 | double marchGroundTemperature() const; | ||
| 55 | |||
| 56 | bool isMarchGroundTemperatureDefaulted() const; | ||
| 57 | |||
| 58 | double aprilGroundTemperature() const; | ||
| 59 | |||
| 60 | bool isAprilGroundTemperatureDefaulted() const; | ||
| 61 | |||
| 62 | double mayGroundTemperature() const; | ||
| 63 | |||
| 64 | bool isMayGroundTemperatureDefaulted() const; | ||
| 65 | |||
| 66 | double juneGroundTemperature() const; | ||
| 67 | |||
| 68 | bool isJuneGroundTemperatureDefaulted() const; | ||
| 69 | |||
| 70 | double julyGroundTemperature() const; | ||
| 71 | |||
| 72 | bool isJulyGroundTemperatureDefaulted() const; | ||
| 73 | |||
| 74 | double augustGroundTemperature() const; | ||
| 75 | |||
| 76 | bool isAugustGroundTemperatureDefaulted() const; | ||
| 77 | |||
| 78 | double septemberGroundTemperature() const; | ||
| 79 | |||
| 80 | bool isSeptemberGroundTemperatureDefaulted() const; | ||
| 81 | |||
| 82 | double octoberGroundTemperature() const; | ||
| 83 | |||
| 84 | bool isOctoberGroundTemperatureDefaulted() const; | ||
| 85 | |||
| 86 | double novemberGroundTemperature() const; | ||
| 87 | |||
| 88 | bool isNovemberGroundTemperatureDefaulted() const; | ||
| 89 | |||
| 90 | double decemberGroundTemperature() const; | ||
| 91 | |||
| 92 | bool isDecemberGroundTemperatureDefaulted() const; | ||
| 93 | |||
| 94 | double getTemperatureByMonth(int month) const; | ||
| 95 | |||
| 96 | double getTemperatureByMonth(const openstudio::MonthOfYear& month) const; | ||
| 97 | |||
| 98 | bool isMonthDefaulted(int month) const; | ||
| 99 | |||
| 100 | bool isMonthDefaulted(const openstudio::MonthOfYear& month) const; | ||
| 101 | |||
| 102 | std::vector<double> getAllMonthlyTemperatures() const; | ||
| 103 | |||
| 104 | //@} | ||
| 105 | /** @name Setters */ | ||
| 106 | //@{ | ||
| 107 | |||
| 108 | bool setJanuaryGroundTemperature(double januaryGroundTemperature); | ||
| 109 | |||
| 110 | void resetJanuaryGroundTemperature(); | ||
| 111 | |||
| 112 | bool setFebruaryGroundTemperature(double februaryGroundTemperature); | ||
| 113 | |||
| 114 | void resetFebruaryGroundTemperature(); | ||
| 115 | |||
| 116 | bool setMarchGroundTemperature(double marchGroundTemperature); | ||
| 117 | |||
| 118 | void resetMarchGroundTemperature(); | ||
| 119 | |||
| 120 | bool setAprilGroundTemperature(double aprilGroundTemperature); | ||
| 121 | |||
| 122 | void resetAprilGroundTemperature(); | ||
| 123 | |||
| 124 | bool setMayGroundTemperature(double mayGroundTemperature); | ||
| 125 | |||
| 126 | void resetMayGroundTemperature(); | ||
| 127 | |||
| 128 | bool setJuneGroundTemperature(double juneGroundTemperature); | ||
| 129 | |||
| 130 | void resetJuneGroundTemperature(); | ||
| 131 | |||
| 132 | bool setJulyGroundTemperature(double julyGroundTemperature); | ||
| 133 | |||
| 134 | void resetJulyGroundTemperature(); | ||
| 135 | |||
| 136 | bool setAugustGroundTemperature(double augustGroundTemperature); | ||
| 137 | |||
| 138 | void resetAugustGroundTemperature(); | ||
| 139 | |||
| 140 | bool setSeptemberGroundTemperature(double septemberGroundTemperature); | ||
| 141 | |||
| 142 | void resetSeptemberGroundTemperature(); | ||
| 143 | |||
| 144 | bool setOctoberGroundTemperature(double octoberGroundTemperature); | ||
| 145 | |||
| 146 | void resetOctoberGroundTemperature(); | ||
| 147 | |||
| 148 | bool setNovemberGroundTemperature(double novemberGroundTemperature); | ||
| 149 | |||
| 150 | void resetNovemberGroundTemperature(); | ||
| 151 | |||
| 152 | bool setDecemberGroundTemperature(double decemberGroundTemperature); | ||
| 153 | |||
| 154 | void resetDecemberGroundTemperature(); | ||
| 155 | |||
| 156 | bool setTemperatureByMonth(int month, double temperature); | ||
| 157 | |||
| 158 | bool setTemperatureByMonth(const openstudio::MonthOfYear& month, double temperature); | ||
| 159 | |||
| 160 | void resetTemperatureByMonth(int month); | ||
| 161 | |||
| 162 | void resetTemperatureByMonth(const openstudio::MonthOfYear& month); | ||
| 163 | |||
| 164 | void resetAllMonths(); | ||
| 165 | |||
| 166 | bool setAllMonthlyTemperatures(const std::vector<double>& monthly_temperatures); | ||
| 167 | |||
| 168 | //@} | ||
| 169 | protected: | ||
| 170 | private: | ||
| 171 | − | REGISTER_LOGGER("openstudio.model.SiteGroundTemperatureFCfactorMethod"); | |
| 172 | }; | ||
| 173 | |||
| 174 | } // namespace detail | ||
| 175 | |||
| 176 | } // namespace model | ||
| 177 | } // namespace openstudio | ||
| 178 | |||
| 179 | #endif // MODEL_SITEGROUNDTEMPERATUREFCFACTORMETHOD_IMPL_HPP | ||
| 180 |