/** * Gets the current settings of Vote. * * @return an array of strings suitable for passing to setOptions() */ @Override public String[] getOptions() { int i; Vector<String> result = new Vector<String>(); String[] options; options = super.getOptions(); for (i = 0; i < options.length; i++) { result.add(options[i]); } result.add("-R"); result.add("" + getCombinationRule()); for (i = 0; i < m_classifiersToLoad.size(); i++) { result.add("-P"); result.add(m_classifiersToLoad.get(i)); } if (m_dontPrintModels) { result.add("-do-not-print"); } return result.toArray(new String[result.size()]); }
/** * Gets the current settings of Vote. * * @return an array of strings suitable for passing to setOptions() */ @Override public String[] getOptions() { int i; Vector<String> result = new Vector<String>(); String[] options; options = super.getOptions(); for (i = 0; i < options.length; i++) { result.add(options[i]); } result.add("-R"); result.add("" + getCombinationRule()); for (i = 0; i < m_classifiersToLoad.size(); i++) { result.add("-P"); result.add(m_classifiersToLoad.get(i)); } if (m_dontPrintModels) { result.add("-do-not-print"); } return result.toArray(new String[result.size()]); }