Sha256: ee76edfc113b72d50e468b6e563152abd581bca42119c2a2940d576e5a8ad295

Contents?: true

Size: 1.43 KB

Versions: 18

Compression:

Stored size: 1.43 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] 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

18 entries across 18 versions & 1 rubygems

Version Path
openstudio-standards-0.2.14 lib/openstudio-standards/hvac_sizing/Siz.HVACComponent.rb
openstudio-standards-0.2.13 lib/openstudio-standards/hvac_sizing/Siz.HVACComponent.rb
openstudio-standards-0.2.13.rc3 lib/openstudio-standards/hvac_sizing/Siz.HVACComponent.rb
openstudio-standards-0.2.12 lib/openstudio-standards/hvac_sizing/Siz.HVACComponent.rb
openstudio-standards-0.2.12.rc7 lib/openstudio-standards/hvac_sizing/Siz.HVACComponent.rb
openstudio-standards-0.2.12.rc6 lib/openstudio-standards/hvac_sizing/Siz.HVACComponent.rb
openstudio-standards-0.2.12.rc5 lib/openstudio-standards/hvac_sizing/Siz.HVACComponent.rb
openstudio-standards-0.2.12.rc4 lib/openstudio-standards/hvac_sizing/Siz.HVACComponent.rb
openstudio-standards-0.2.12.rc2 lib/openstudio-standards/hvac_sizing/Siz.HVACComponent.rb
openstudio-standards-0.2.12.rc1 lib/openstudio-standards/hvac_sizing/Siz.HVACComponent.rb
openstudio-standards-0.2.11 lib/openstudio-standards/hvac_sizing/Siz.HVACComponent.rb
openstudio-standards-0.2.11.rc2 lib/openstudio-standards/hvac_sizing/Siz.HVACComponent.rb
openstudio-standards-0.2.11.rc1 lib/openstudio-standards/hvac_sizing/Siz.HVACComponent.rb
openstudio-standards-0.2.10 lib/openstudio-standards/hvac_sizing/Siz.HVACComponent.rb
openstudio-standards-0.2.10.rc3 lib/openstudio-standards/hvac_sizing/Siz.HVACComponent.rb
openstudio-standards-0.2.10.rc2 lib/openstudio-standards/hvac_sizing/Siz.HVACComponent.rb
openstudio-standards-0.2.10.rc1 lib/openstudio-standards/hvac_sizing/Siz.HVACComponent.rb
openstudio-standards-0.2.9 lib/openstudio-standards/hvac_sizing/Siz.HVACComponent.rb