libraries/AssociationManagement.rb
# Adds an association for the data with the key, for
# a specific row, column coordinate within a collection
# If the data_matrix for the collection has not been created yet, it is initialized
#
# @requires  current object is a Collection, and r,c corresponds to a valid location in the object
# @param r [Integer]  the row of the part within the collection to associate to
# @param c [Integer]  the column of the part within the collection to associate to
# @param key [String]  the key for the association
# @param data [serializable object]  the data for the association
# @param data_matrix [String/Symbol]  optionally specify a data matrix to access besides the default one,
#                         for example, you might have the default part data, alongside a routing matrix
Adds an association for the data with the key, for
a specific row, column coordinate within a collection
If the data_matrix for the collection has not been created yet, it is initialized
Adds an association for the data with the key for a specific row column coordinate within a collection If the data_matrix for the collection has not been created yet it is initialized
def putrc(row, column, key, data, data_matrix = DATAMATRIX_KEY)
      initialize_part_data(data_matrix)
      @map[data_matrix][row][column][key] = data
    end
def putrc ( row , column , key , data , data_matrix = DATAMATRIX_KEY ) initialize_part_data ( data_matrix ) @map [ data_matrix ] [ row ] [ column ] [ key ] = data end
Adds an association for the data with the key, for
a specific row, column coordinate within a collection
If the data_matrix for the collection has not been created yet, it is initialized
Adds an association for the data with the key for a specific row column coordinate within a collection If the data_matrix for the collection has not been created yet it is initialized
# if the data_matrix for this collection does not exist yet, initialize it.
row
column
key
the key for the association
the key for the association
data
the data for the association
the data for the association
data_matrix
optionally specify a data matrix to access besides the default one, for example, you might have the default part data, alongside a routing matrix
optionally specify a data matrix to access besides the default one for example you might have the default part data alongside a routing matrix
r
the row of the part within the collection to associate to
the row of the part within the collection to associate to
c
the column of the part within the collection to associate to
the column of the part within the collection to associate to
requires
current object is a Collection, and r,c corresponds to a valid location in the object
current object is a Collection and r c corresponds to a valid location in the object