Sha256: 839aeec7fb8e47680d545089092a32aafac9c450ba0bdb6ba0568f3082f6e5f4

Contents?: true

Size: 674 Bytes

Versions: 20

Compression:

Stored size: 674 Bytes

Contents

# OpenStudio::Analysis::Algorithm define the algorithm parameters. The module and class names start to conflict
# with OpenStudio's namespace. Be careful adding new classes without first making sure that the namespace conflict
# is clear.
module OpenStudio
  module Analysis
    class AlgorithmAttributes
      # Create a new instance of an algorithm
      #
      def initialize
        @attributes = {}
      end

      def set_attribute(attribute_name, attribute_value)
        @attributes[attribute_name] = attribute_value
      end

      def [](name)
        @attributes[name]
      end

      def to_hash(_version = 1)
        @attributes
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
openstudio-analysis-1.0.0.rc16 lib/openstudio/analysis/algorithm_attributes.rb
openstudio-analysis-1.0.0.rc15 lib/openstudio/analysis/algorithm_attributes.rb
openstudio-analysis-1.0.0.rc14 lib/openstudio/analysis/algorithm_attributes.rb
openstudio-analysis-1.0.0.rc13 lib/openstudio/analysis/algorithm_attributes.rb
openstudio-analysis-1.0.0.rc12 lib/openstudio/analysis/algorithm_attributes.rb
openstudio-analysis-1.0.0.rc11 lib/openstudio/analysis/algorithm_attributes.rb
openstudio-analysis-1.0.0.rc10 lib/openstudio/analysis/algorithm_attributes.rb
openstudio-analysis-1.0.0.rc9 lib/openstudio/analysis/algorithm_attributes.rb
openstudio-analysis-1.0.0.rc8 lib/openstudio/analysis/algorithm_attributes.rb
openstudio-analysis-1.0.0.rc7 lib/openstudio/analysis/algorithm_attributes.rb
openstudio-analysis-1.0.0.rc6 lib/openstudio/analysis/algorithm_attributes.rb
openstudio-analysis-1.0.0.pre.rc5 lib/openstudio/analysis/algorithm_attributes.rb
openstudio-analysis-1.0.0.pre.rc4 lib/openstudio/analysis/algorithm_attributes.rb
openstudio-analysis-1.0.0.pre.rc3 lib/openstudio/analysis/algorithm_attributes.rb
openstudio-analysis-1.0.0.pre.rc2 lib/openstudio/analysis/algorithm_attributes.rb
openstudio-analysis-1.0.0.pat2 lib/openstudio/analysis/algorithm_attributes.rb
openstudio-analysis-1.0.0.pat1 lib/openstudio/analysis/algorithm_attributes.rb
openstudio-analysis-0.4.5 lib/openstudio/analysis/algorithm_attributes.rb
openstudio-analysis-0.4.4 lib/openstudio/analysis/algorithm_attributes.rb
openstudio-analysis-0.4.3 lib/openstudio/analysis/algorithm_attributes.rb