src/model/ElectricEquipmentDefinition_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_ELECTRICEQUIPMENTDEFINITION_IMPL_HPP | ||
| 7 | #define MODEL_ELECTRICEQUIPMENTDEFINITION_IMPL_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "SpaceLoadDefinition_Impl.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | namespace model { | ||
| 14 | |||
| 15 | class ElectricEquipmentDefinition; | ||
| 16 | |||
| 17 | namespace detail { | ||
| 18 | |||
| 19 | /** ElectricEquipmentDefinition_Impl is a SpaceLoadDefinition_Impl that is the implementation class for ElectricEquipmentDefinition.*/ | ||
| 20 | class MODEL_API ElectricEquipmentDefinition_Impl : public SpaceLoadDefinition_Impl | ||
| 21 | { | ||
| 22 | |||
| 23 | public: | ||
| 24 | /** @name Constructors and Destructors */ | ||
| 25 | //@{ | ||
| 26 | |||
| 27 | ElectricEquipmentDefinition_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 28 | |||
| 29 | ElectricEquipmentDefinition_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 30 | |||
| 31 | ElectricEquipmentDefinition_Impl(const ElectricEquipmentDefinition_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 32 | |||
| 33 | 2842 | virtual ~ElectricEquipmentDefinition_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 | //@} | ||
| 59 | /** @name Setters */ | ||
| 60 | //@{ | ||
| 61 | |||
| 62 | bool setDesignLevel(boost::optional<double> designLevel); | ||
| 63 | bool setWattsperSpaceFloorArea(boost::optional<double> wattsperSpaceFloorArea); | ||
| 64 | bool setWattsperPerson(boost::optional<double> wattsperPerson); | ||
| 65 | |||
| 66 | bool setFractionLatent(double fractionLatent); | ||
| 67 | void resetFractionLatent(); | ||
| 68 | |||
| 69 | bool setFractionRadiant(double fractionRadiant); | ||
| 70 | void resetFractionRadiant(); | ||
| 71 | |||
| 72 | bool setFractionLost(double fractionLost); | ||
| 73 | void resetFractionLost(); | ||
| 74 | |||
| 75 | //@} | ||
| 76 | /** @name Other */ | ||
| 77 | //@{ | ||
| 78 | |||
| 79 | /** Returns the design level represented by this definition, assuming floorArea (m^2) and | ||
| 80 | * numPeople. */ | ||
| 81 | double getDesignLevel(double floorArea, double numPeople) const; | ||
| 82 | |||
| 83 | /** Returns the watts/m^2 represented by this definition, assuming floorArea (m^2) and | ||
| 84 | * numPeople. */ | ||
| 85 | double getPowerPerFloorArea(double floorArea, double numPeople) const; | ||
| 86 | |||
| 87 | /** Returns the watts/person represented by this definition, assuming floorArea (m^2) and | ||
| 88 | * numPeople. */ | ||
| 89 | double getPowerPerPerson(double floorArea, double numPeople) const; | ||
| 90 | |||
| 91 | /** If method is a \link validDesignLevelCalculationMethodValues valid design level | ||
| 92 | * calculation method \endlink, changes this definition to an equivalent power level, under | ||
| 93 | * the assumptions of floorArea (m^2) and numPeople. */ | ||
| 94 | bool setDesignLevelCalculationMethod(const std::string& method, double floorArea, double numPeople); | ||
| 95 | |||
| 96 | virtual std::vector<EMSActuatorNames> emsActuatorNames() const override; | ||
| 97 | |||
| 98 | virtual std::vector<std::string> emsInternalVariableNames() const override; | ||
| 99 | |||
| 100 | //@} | ||
| 101 | protected: | ||
| 102 | private: | ||
| 103 | − | REGISTER_LOGGER("openstudio.model.ElectricEquipmentDefinition"); | |
| 104 | }; | ||
| 105 | |||
| 106 | } // namespace detail | ||
| 107 | |||
| 108 | } // namespace model | ||
| 109 | } // namespace openstudio | ||
| 110 | |||
| 111 | #endif // MODEL_ELECTRICEQUIPMENTDEFINITION_IMPL_HPP | ||
| 112 |