예제 #1
0
 /// <summary>
 /// For each element in this <see cref="IntersectionMatrix" />, changes the
 /// element to the corresponding minimum dimension symbol if the element is
 /// less.
 /// </summary>
 /// <param name="minimumDimensionSymbols">
 /// Nine dimension symbols with which to
 /// compare the elements of this <see cref="IntersectionMatrix" />. The
 /// order of dimension values from least to greatest is <c>Dontcare, True, False, 0, 1, 2</c>.
 /// </param>
 public void SetAtLeast(string minimumDimensionSymbols)
 {
     for (int i = 0; i < minimumDimensionSymbols.Length; i++)
     {
         int row = i / 3;
         int col = i % 3;
         SetAtLeast((Locations)row, (Locations)col, Dimension.ToDimensionValue(minimumDimensionSymbols[i]));
     }
 }
예제 #2
0
 /// <summary>
 /// Changes the elements of this <see cref="IntersectionMatrix" /> to the
 /// dimension symbols in <c>dimensionSymbols</c>.
 /// </summary>
 /// <param name="dimensionSymbols">
 /// Nine dimension symbols to which to set this <see cref="IntersectionMatrix" />
 /// s elements. Possible values are <c>{T, F, * , 0, 1, 2}</c>
 /// </param>
 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[i]);
     }
 }