Measures/m_5_example_5_computed_schedule/resources/util.rb
# Facilitates creating and assigning an OpenStudio construction (with accompanying 
# OpenStudio Materials) from Material objects. Handles parallel paths as well.
Facilitates creating and assigning an OpenStudio construction (with accompanying
OpenStudio Materials) from Material objects. Handles parallel paths as well.
Facilitates creating and assigning an OpenStudio construction ( with accompanying OpenStudio Materials ) from Material objects . Handles parallel paths as well .
def print_construction_creation(runner, surface)
            s = ""
            num_layers = surface.construction.get.to_LayeredConstruction.get.layers.size
            if num_layers > 1
                s = "s"
            end
            mats_s = ""
            surface.construction.get.to_LayeredConstruction.get.layers.each do |layer|
                mats_s += layer.name.to_s + ", "
            end
            mats_s.chomp!(", ")
            runner.registerInfo("Construction '#{surface.construction.get.name.to_s}' was created with #{num_layers.to_s} material#{s.to_s} (#{mats_s.to_s}).")
        end
def print_construction_creation ( runner , surface ) s = "" num_layers = surface . construction . get . to_LayeredConstruction . get . layers . size if num_layers > 1 s = "s" end mats_s = "" surface . construction . get . to_LayeredConstruction . get . layers . each do | layer | mats_s += layer . name . to_s + ", " end mats_s . chomp! ( ", " ) runner . registerInfo ( "Construction '#{surface.construction.get.name.to_s}' was created with #{num_layers.to_s} material#{s.to_s} (#{mats_s.to_s})." ) end
Facilitates creating and assigning an OpenStudio construction (with accompanying
OpenStudio Materials) from Material objects.
Facilitates creating and assigning an OpenStudio construction ( with accompanying OpenStudio Materials ) from Material objects .
runner
<not_specific>
surface
<not_specific>