/** * Changes the elements of this <code>IntersectionMatrix</code> to the * dimension symbols in <code>dimensionSymbols</code>. * *@param dimensionSymbols nine dimension symbols to which to set this <code>IntersectionMatrix</code> * s elements. Possible values are <code>{T, F, * , 0, 1, 2}</code> */ public void set(String dimensionSymbols) { for (int i = 0; i < dimensionSymbols.length(); i++) { int row = i / 3; int col = i % 3; matrix[row][col] = Dimension.toDimensionValue(dimensionSymbols.charAt(i)); } }
/** * For each element in this <code>IntersectionMatrix</code>, changes the * element to the corresponding minimum dimension symbol if the element is * less. * *@param minimumDimensionSymbols nine dimension symbols with which to * compare the elements of this <code>IntersectionMatrix</code>. The * order of dimension values from least to greatest is <code>{DONTCARE, TRUE, FALSE, 0, 1, 2}</code> * . */ public void setAtLeast(String minimumDimensionSymbols) { for (int i = 0; i < minimumDimensionSymbols.length(); i++) { int row = i / 3; int col = i % 3; setAtLeast(row, col, Dimension.toDimensionValue(minimumDimensionSymbols.charAt(i))); } }