/** * If row >= 0 and column >= 0, changes the specified element to <code>minimumDimensionValue</code> * if the element is less. Does nothing if row <0 or column < 0. * *@param row the row of this <code>IntersectionMatrix</code> * , indicating the interior, boundary or exterior of the first <code>Geometry</code> *@param column the column of this <code>IntersectionMatrix</code> * , indicating the interior, boundary or exterior of the second <code>Geometry</code> *@param minimumDimensionValue the dimension value with which to compare the * element. The order of dimension values from least to greatest is * <code>{DONTCARE, TRUE, FALSE, 0, 1, 2}</code>. */ public void setAtLeastIfValid(int row, int column, int minimumDimensionValue) { if (row >= 0 && column >= 0) { setAtLeast(row, column, minimumDimensionValue); } }
/** * Adds one matrix to another. * Addition is defined by taking the maximum dimension value of each position * in the summand matrices. * * @param im the matrix to add */ public void add(IntersectionMatrix im) { for (int i = 0; i < 3; i++) { for (int j = 0; j < 3; j++) { setAtLeast(i, j, im.get(i, j)); } } }
/** * 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))); } }
if (hasProper) im.setAtLeast("212101212"); if (hasProper) im.setAtLeast("FFF0FFFF2"); if (hasProperInterior) im.setAtLeast("1FFFFF1FF"); if (hasProper) im.setAtLeast("F0FFFFFF2"); if (hasProperInterior) im.setAtLeast("1F1FFFFFF"); if (hasProperInterior) im.setAtLeast("0FFFFFFFF");
/** * If row >= 0 and column >= 0, changes the specified element to <code>minimumDimensionValue</code> * if the element is less. Does nothing if row <0 or column < 0. * *@param row the row of this <code>IntersectionMatrix</code> * , indicating the interior, boundary or exterior of the first <code>Geometry</code> *@param column the column of this <code>IntersectionMatrix</code> * , indicating the interior, boundary or exterior of the second <code>Geometry</code> *@param minimumDimensionValue the dimension value with which to compare the * element. The order of dimension values from least to greatest is * <code>{DONTCARE, TRUE, FALSE, 0, 1, 2}</code>. */ public void setAtLeastIfValid(int row, int column, int minimumDimensionValue) { if (row >= 0 && column >= 0) { setAtLeast(row, column, minimumDimensionValue); } }
/** * Adds one matrix to another. * Addition is defined by taking the maximum dimension value of each position * in the summand matrices. * * @param im the matrix to add */ public void add(IntersectionMatrix im) { for (int i = 0; i < 3; i++) { for (int j = 0; j < 3; j++) { setAtLeast(i, j, im.get(i, j)); } } }
/** * 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))); } }
if (hasProper) im.setAtLeast("212101212"); if (hasProper) im.setAtLeast("FFF0FFFF2"); if (hasProperInterior) im.setAtLeast("1FFFFF1FF"); if (hasProper) im.setAtLeast("F0FFFFFF2"); if (hasProperInterior) im.setAtLeast("1F1FFFFFF"); if (hasProperInterior) im.setAtLeast("0FFFFFFFF");