src/model/ElectricEquipmentITEAirCooled_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_ELECTRICEQUIPMENTITEAIRCOOLED_IMPL_HPP | ||
| 7 | #define MODEL_ELECTRICEQUIPMENTITEAIRCOOLED_IMPL_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "SpaceLoadInstance_Impl.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | namespace model { | ||
| 14 | |||
| 15 | class ElectricEquipmentITEAirCooledDefinition; | ||
| 16 | class ElectricEquipmentITEAirCooled; | ||
| 17 | class Curve; | ||
| 18 | class Schedule; | ||
| 19 | |||
| 20 | namespace detail { | ||
| 21 | |||
| 22 | /** ElectricEquipmentITEAirCooled_Impl is a SpaceLoadInstance_Impl that is the implementation class for ElectricEquipmentITEAirCooled.*/ | ||
| 23 | class MODEL_API ElectricEquipmentITEAirCooled_Impl : public SpaceLoadInstance_Impl | ||
| 24 | { | ||
| 25 | public: | ||
| 26 | /** @name Constructors and Destructors */ | ||
| 27 | //@{ | ||
| 28 | |||
| 29 | ElectricEquipmentITEAirCooled_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 30 | |||
| 31 | ElectricEquipmentITEAirCooled_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 32 | |||
| 33 | ElectricEquipmentITEAirCooled_Impl(const ElectricEquipmentITEAirCooled_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 34 | |||
| 35 | 77 | virtual ~ElectricEquipmentITEAirCooled_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 std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override; | ||
| 46 | |||
| 47 | virtual bool hardSize() override; | ||
| 48 | |||
| 49 | virtual bool hardApplySchedules() override; | ||
| 50 | |||
| 51 | virtual double multiplier() const override; | ||
| 52 | |||
| 53 | virtual bool isMultiplierDefaulted() const override; | ||
| 54 | |||
| 55 | virtual bool isAbsolute() const override; | ||
| 56 | //@} | ||
| 57 | /** @name Getters */ | ||
| 58 | //@{ | ||
| 59 | |||
| 60 | ElectricEquipmentITEAirCooledDefinition electricEquipmentITEAirCooledDefinition() const; | ||
| 61 | |||
| 62 | // Return the Design Power Input Schedule. If not specified, default to always 1. | ||
| 63 | boost::optional<Schedule> designPowerInputSchedule() const; | ||
| 64 | |||
| 65 | bool isDesignPowerInputScheduleDefaulted() const; | ||
| 66 | |||
| 67 | // Return the CPU Loading Schedule. If not specified, default to always 1. | ||
| 68 | boost::optional<Schedule> cPULoadingSchedule() const; | ||
| 69 | |||
| 70 | bool isCPULoadingScheduleDefaulted() const; | ||
| 71 | |||
| 72 | std::string cPUEndUseSubcategory() const; | ||
| 73 | |||
| 74 | bool isCPUEndUseSubcategoryDefaulted() const; | ||
| 75 | |||
| 76 | std::string fanEndUseSubcategory() const; | ||
| 77 | |||
| 78 | bool isFanEndUseSubcategoryDefaulted() const; | ||
| 79 | |||
| 80 | std::string electricPowerSupplyEndUseSubcategory() const; | ||
| 81 | |||
| 82 | bool isElectricPowerSupplyEndUseSubcategoryDefaulted() const; | ||
| 83 | |||
| 84 | //@} | ||
| 85 | /** @name Setters */ | ||
| 86 | //@{ | ||
| 87 | |||
| 88 | bool setElectricEquipmentITEAirCooledDefinition(const ElectricEquipmentITEAirCooledDefinition& electricEquipmentITEAirCooledDefinition); | ||
| 89 | |||
| 90 | /** Sets the definition of this instance. */ | ||
| 91 | virtual bool setDefinition(const SpaceLoadDefinition& definition) override; | ||
| 92 | |||
| 93 | // Note Schedules are passed by reference, not const reference. | ||
| 94 | bool setDesignPowerInputSchedule(Schedule& schedule); | ||
| 95 | |||
| 96 | void resetDesignPowerInputSchedule(); | ||
| 97 | |||
| 98 | // Note Schedules are passed by reference, not const reference. | ||
| 99 | bool setCPULoadingSchedule(Schedule& schedule); | ||
| 100 | |||
| 101 | void resetCPULoadingSchedule(); | ||
| 102 | |||
| 103 | bool setMultiplier(double multiplier); | ||
| 104 | |||
| 105 | void resetMultiplier(); | ||
| 106 | |||
| 107 | bool setCPUEndUseSubcategory(const std::string& cPUEndUseSubcategory); | ||
| 108 | |||
| 109 | void resetCPUEndUseSubcategory(); | ||
| 110 | |||
| 111 | bool setFanEndUseSubcategory(const std::string& fanEndUseSubcategory); | ||
| 112 | |||
| 113 | void resetFanEndUseSubcategory(); | ||
| 114 | |||
| 115 | bool setElectricPowerSupplyEndUseSubcategory(const std::string& electricPowerSupplyEndUseSubcategory); | ||
| 116 | |||
| 117 | void resetElectricPowerSupplyEndUseSubcategory(); | ||
| 118 | |||
| 119 | //@} | ||
| 120 | /** @name Other */ | ||
| 121 | //@{ | ||
| 122 | |||
| 123 | boost::optional<double> designLevel() const; | ||
| 124 | |||
| 125 | boost::optional<double> powerPerFloorArea() const; | ||
| 126 | |||
| 127 | double getDesignLevel(double floorArea) const; | ||
| 128 | |||
| 129 | double getPowerPerFloorArea(double floorArea) const; | ||
| 130 | |||
| 131 | //@} | ||
| 132 | protected: | ||
| 133 | // index of the space name | ||
| 134 | virtual int spaceIndex() const override; | ||
| 135 | |||
| 136 | // index of the definition name | ||
| 137 | virtual int definitionIndex() const override; | ||
| 138 | |||
| 139 | private: | ||
| 140 | REGISTER_LOGGER("openstudio.model.ElectricEquipmentITEAirCooled"); | ||
| 141 | |||
| 142 | boost::optional<ModelObject> scheduleAsModelObject() const; | ||
| 143 | boost::optional<ModelObject> electricEquipmentITEAirCooledDefinitionAsModelObject() const; | ||
| 144 | |||
| 145 | bool setScheduleAsModelObject(const boost::optional<ModelObject>& modelObject); | ||
| 146 | bool setElectricEquipmentITEAirCooledDefinitionAsModelObject(const boost::optional<ModelObject>& modelObject); | ||
| 147 | }; | ||
| 148 | |||
| 149 | } // namespace detail | ||
| 150 | |||
| 151 | } // namespace model | ||
| 152 | } // namespace openstudio | ||
| 153 | |||
| 154 | #endif // MODEL_ELECTRICEQUIPMENTITEAIRCOOLED_IMPL_HPP | ||
| 155 |