Figure Pr.31 - Modeling matrix values : Class diagram
Created: 3/28/2022 3:51:09 PM
Modified: 4/12/2022 5:42:20 PM
Project:
Advanced:
We can look at each value (cell) of n dimensional matrix as n+1-tupple of Characteristic Values, one describes the cell value and the other n are the indices of the dimensions (not numeric indices, but the values are themselves indices). Since each index can be either CharacteristicValue or ProductCharacteristicValue we cannot use the self-association for the CharacteristcValue class. Instead we define the class MatrixCharValueIndex which associate either CharacteristcValue or ProductCharacteristicValue. In addition we define a class which is derived from CharacteristicValue which represent a matrix value and includes associations to the matrix dimensions (defined by either CharacteristicValue or ProductCharacteristicValue) and aggregates the matrix cell values which are derived from CharValue (to include the value) and associated with the MatrixCharValueIndex for the indices of this cell value.<br/>