Sha256: 5fb18149521cca132297db9941dd0fa3c1371d9d6de10c1bcc16e16bda4d11e6

Contents?: true

Size: 1.44 KB

Versions: 12

Compression:

Stored size: 1.44 KB

Contents

###### IMPORTANT NOTE ######
# These methods should be done via extension to OS model objects
# directly in the C++ SDK.
###### IMPORTANT NOTE ######

class OpenStudio::Model::HVACComponent
  # 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.
  # @return [Integer] the number of components, 1 if not set
  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

  # 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.
  # @param comp_qty [Integer] the number of individual pieces of equipment
  # represented by this HVAC component
  # @return [Bool] returns true if successful, false if not
  def set_component_quantity(comp_qty)
    return self.additionalProperties.setFeature('component_quantity', comp_qty)
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
openstudio-standards-0.4.0 lib/openstudio-standards/hvac_sizing/Siz.HVACComponent.rb
openstudio-standards-0.3.1.rc2 lib/openstudio-standards/hvac_sizing/Siz.HVACComponent.rb
openstudio-standards-0.3.1.rc1 lib/openstudio-standards/hvac_sizing/Siz.HVACComponent.rb
openstudio-standards-0.3.0 lib/openstudio-standards/hvac_sizing/Siz.HVACComponent.rb
openstudio-standards-0.2.17.rc2 lib/openstudio-standards/hvac_sizing/Siz.HVACComponent.rb
openstudio-standards-0.2.17.rc1 lib/openstudio-standards/hvac_sizing/Siz.HVACComponent.rb
openstudio-standards-0.2.16 lib/openstudio-standards/hvac_sizing/Siz.HVACComponent.rb
openstudio-standards-0.2.16.rc2 lib/openstudio-standards/hvac_sizing/Siz.HVACComponent.rb
openstudio-standards-0.2.16.rc1 lib/openstudio-standards/hvac_sizing/Siz.HVACComponent.rb
openstudio-standards-0.2.15 lib/openstudio-standards/hvac_sizing/Siz.HVACComponent.rb
openstudio-standards-0.2.15.pre.rc2 lib/openstudio-standards/hvac_sizing/Siz.HVACComponent.rb
openstudio-standards-0.2.15.pre.rc1 lib/openstudio-standards/hvac_sizing/Siz.HVACComponent.rb