Class: OpenStudio::Model::HVACComponent
- Inherits:
-
Object
- Object
- OpenStudio::Model::HVACComponent
- Defined in:
- lib/openstudio-standards/hvac_sizing/Siz.HVACComponent.rb
Overview
IMPORTANT NOTE ###### These methods should be done via extension to OS model objects directly in the C++ SDK. IMPORTANT NOTE ######
Instance Method Summary collapse
-
#component_quantity ⇒ Integer
Returns the number of individual pieces of equipment represented by a particular HVAC component.
-
#set_component_quantity(comp_qty) ⇒ Bool
Sets the number of individual pieces of equipment represented by a particular HVAC component.
Instance Method Details
#component_quantity ⇒ Integer
Returns the number of individual pieces of equipment represented by a particular HVAC component. Pulls from the additionalProperties object attached to the component. This can be used during the application of efficiency levels that are based on component capacities, flowrates, etc.
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/openstudio-standards/hvac_sizing/Siz.HVACComponent.rb', line 14 def component_quantity addl_props = self.additionalProperties if addl_props.getFeatureAsInteger('component_quantity').is_initialized comp_qty = addl_props.getFeatureAsInteger('component_quantity').get else comp_qty = 1 end return comp_qty end |
#set_component_quantity(comp_qty) ⇒ Bool
Sets the number of individual pieces of equipment represented by a particular HVAC component. Uses the additionalProperties object attached to the component. This can be used during the application of efficiency levels that are based on component capacities, flowrates, etc. represented by this HVAC component
33 34 35 |
# File 'lib/openstudio-standards/hvac_sizing/Siz.HVACComponent.rb', line 33 def set_component_quantity(comp_qty) return self.additionalProperties.setFeature('component_quantity', comp_qty) end |