コード例 #1
0
ファイル: DecisionTable.java プロジェクト: alishakiba/jDenetX
  /**
   * Gets the search specification string, which contains the class name of the search method and
   * any options to it
   *
   * @return the search string.
   */
  protected String getSearchSpec() {

    ASSearch s = getSearch();
    if (s instanceof OptionHandler) {
      return s.getClass().getName() + " " + Utils.joinOptions(((OptionHandler) s).getOptions());
    }
    return s.getClass().getName();
  }
コード例 #2
0
ファイル: MultiScheme.java プロジェクト: bigbigbug/wekax
  /**
   * Gets the classifier specification string, which contains the class name of the classifier and
   * any options to the classifier
   *
   * @param index the index of the classifier string to retrieve, starting from 0.
   * @return the classifier string, or the empty string if no classifier has been assigned (or the
   *     index given is out of range).
   */
  protected String getClassifierSpec(int index) {

    if (m_Classifiers.length < index) {
      return "";
    }
    Classifier c = getClassifier(index);
    if (c instanceof OptionHandler) {
      return c.getClass().getName() + " " + Utils.joinOptions(((OptionHandler) c).getOptions());
    }
    return c.getClass().getName();
  }