@Override
  public String toString() {
    StringBuffer sb = new StringBuffer();
    // String nameOfClass = this.getClass().getName();

    sb.append("One dim: ");

    sb.append("num: ");
    sb.append(getNumberCells() + ", ");

    sb.append("dim: ");
    if (parameterList[DIMENSION_PARAM].value == 0) sb.append("x, ");
    else if (parameterList[DIMENSION_PARAM].value == 1) sb.append("y, ");
    else if (parameterList[DIMENSION_PARAM].value == 2) sb.append("z, ");

    sb.append("edge: ");
    if (mustBeCompletelyInsideRegion()) sb.append("1, ");
    else sb.append("0, ");

    sb.append("other overlap" + ": " + (int) parameterList[OTHER_OVERLAP_PARAM].value + "");

    return (sb.toString());
  }
Ejemplo n.º 2
0
  public String toString() {
    StringBuffer sb = new StringBuffer(this.getDescription());

    sb.append(
        " from point: ("
            + getLowestXValue()
            + ", "
            + getLowestYValue()
            + ", "
            + getLowestZValue()
            + ") to ("
            + getHighestXValue()
            + ", "
            + getHighestYValue()
            + ", "
            + getHighestZValue()
            + ")");

    return sb.toString();
  }
  @Override
  public String toNiceString() {
    StringBuffer sb = new StringBuffer();
    // String nameOfClass = this.getClass().getName();

    sb.append("Cells arranged in 1D line in ");

    if (parameterList[DIMENSION_PARAM].value == 0) sb.append("X");
    else if (parameterList[DIMENSION_PARAM].value == 1) sb.append("Y");
    else if (parameterList[DIMENSION_PARAM].value == 2) sb.append("Z");

    sb.append(" dimension, cell number: ");

    sb.append(getNumberCells() + ", ");

    sb.append(" (must be completely inside region: " + mustBeCompletelyInsideRegion());

    sb.append(", can overlap with cells in other group: " + !avoidOtherCellGroups() + ")");

    return (sb.toString());
  }