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