src/model/GasEquipmentDefinition_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_GASEQUIPMENTDEFINITION_IMPL_HPP | ||
| 7 | #define MODEL_GASEQUIPMENTDEFINITION_IMPL_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "SpaceLoadDefinition_Impl.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | namespace model { | ||
| 14 | |||
| 15 | class GasEquipmentDefinition; | ||
| 16 | |||
| 17 | namespace detail { | ||
| 18 | |||
| 19 | /** GasEquipmentDefinition_Impl is a SpaceLoadDefinition_Impl that is the implementation class for GasEquipmentDefinition.*/ | ||
| 20 | class MODEL_API GasEquipmentDefinition_Impl : public SpaceLoadDefinition_Impl | ||
| 21 | { | ||
| 22 | |||
| 23 | public: | ||
| 24 | /** @name Constructors and Destructors */ | ||
| 25 | //@{ | ||
| 26 | |||
| 27 | GasEquipmentDefinition_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 28 | |||
| 29 | GasEquipmentDefinition_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 30 | |||
| 31 | GasEquipmentDefinition_Impl(const GasEquipmentDefinition_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 32 | |||
| 33 | 52 | virtual ~GasEquipmentDefinition_Impl() override = default; | |
| 34 | |||
| 35 | //@} | ||
| 36 | |||
| 37 | virtual const std::vector<std::string>& outputVariableNames() const override; | ||
| 38 | |||
| 39 | virtual IddObjectType iddObjectType() const override; | ||
| 40 | |||
| 41 | /** @name Getters */ | ||
| 42 | //@{ | ||
| 43 | |||
| 44 | std::string designLevelCalculationMethod() const; | ||
| 45 | boost::optional<double> designLevel() const; | ||
| 46 | boost::optional<double> wattsperSpaceFloorArea() const; | ||
| 47 | boost::optional<double> wattsperPerson() const; | ||
| 48 | |||
| 49 | double fractionLatent() const; | ||
| 50 | bool isFractionLatentDefaulted() const; | ||
| 51 | |||
| 52 | double fractionRadiant() const; | ||
| 53 | bool isFractionRadiantDefaulted() const; | ||
| 54 | |||
| 55 | double fractionLost() const; | ||
| 56 | bool isFractionLostDefaulted() const; | ||
| 57 | |||
| 58 | double carbonDioxideGenerationRate() const; | ||
| 59 | bool isCarbonDioxideGenerationRateDefaulted() const; | ||
| 60 | |||
| 61 | //@} | ||
| 62 | /** @name Setters */ | ||
| 63 | //@{ | ||
| 64 | |||
| 65 | bool setDesignLevel(boost::optional<double> designLevel); | ||
| 66 | |||
| 67 | bool setWattsperSpaceFloorArea(boost::optional<double> wattsperSpaceFloorArea); | ||
| 68 | |||
| 69 | bool setWattsperPerson(boost::optional<double> wattsperPerson); | ||
| 70 | |||
| 71 | bool setFractionLatent(double fractionLatent); | ||
| 72 | void resetFractionLatent(); | ||
| 73 | |||
| 74 | bool setFractionRadiant(double fractionRadiant); | ||
| 75 | void resetFractionRadiant(); | ||
| 76 | |||
| 77 | bool setFractionLost(double fractionLost); | ||
| 78 | void resetFractionLost(); | ||
| 79 | |||
| 80 | bool setCarbonDioxideGenerationRate(double carbonDioxideGenerationRate); | ||
| 81 | void resetCarbonDioxideGenerationRate(); | ||
| 82 | |||
| 83 | //@} | ||
| 84 | /** @name Other */ | ||
| 85 | //@{ | ||
| 86 | |||
| 87 | /** Returns the design level represented by this definition, assuming floorArea (m^2) and | ||
| 88 | * numPeople. */ | ||
| 89 | double getDesignLevel(double floorArea, double numPeople) const; | ||
| 90 | |||
| 91 | /** Returns the watts/m^2 represented by this definition, assuming floorArea (m^2) and | ||
| 92 | * numPeople. */ | ||
| 93 | double getPowerPerFloorArea(double floorArea, double numPeople) const; | ||
| 94 | |||
| 95 | /** Returns the watts/person represented by this definition, assuming floorArea (m^2) and | ||
| 96 | * numPeople. */ | ||
| 97 | double getPowerPerPerson(double floorArea, double numPeople) const; | ||
| 98 | |||
| 99 | /** If method is a \link validDesignLevelCalculationMethodValues valid design level | ||
| 100 | * calculation method \endlink, changes this definition to an equivalent power level, under | ||
| 101 | * the assumptions of floorArea (m^2) and numPeople. */ | ||
| 102 | bool setDesignLevelCalculationMethod(const std::string& method, double floorArea, double numPeople); | ||
| 103 | |||
| 104 | virtual std::vector<EMSActuatorNames> emsActuatorNames() const override; | ||
| 105 | |||
| 106 | virtual std::vector<std::string> emsInternalVariableNames() const override; | ||
| 107 | |||
| 108 | //@} | ||
| 109 | protected: | ||
| 110 | private: | ||
| 111 | − | REGISTER_LOGGER("openstudio.model.GasEquipmentDefinition"); | |
| 112 | }; | ||
| 113 | |||
| 114 | } // namespace detail | ||
| 115 | |||
| 116 | } // namespace model | ||
| 117 | } // namespace openstudio | ||
| 118 | |||
| 119 | #endif // MODEL_GASEQUIPMENTDEFINITION_IMPL_HPP | ||
| 120 |