/** * Gets the current settings of the filter. * * @return an array of strings suitable for passing to setOptions */ @Override public String[] getOptions() { Vector<String> result; File file; result = new Vector<String>(); file = getSerializedClustererFile(); if ((file != null) && (!file.isDirectory())) { result.add("-serialized"); result.add(file.getAbsolutePath()); } else { result.add("-W"); result.add(getClustererSpec()); } if (!getIgnoredAttributeIndices().equals("")) { result.add("-I"); result.add(getIgnoredAttributeIndices()); } return result.toArray(new String[result.size()]); }
/** * Gets the current settings of the filter. * * @return an array of strings suitable for passing to setOptions */ @Override public String[] getOptions() { Vector<String> result; File file; result = new Vector<String>(); file = getSerializedClustererFile(); if ((file != null) && (!file.isDirectory())) { result.add("-serialized"); result.add(file.getAbsolutePath()); } else { result.add("-W"); result.add(getClustererSpec()); } if (!getIgnoredAttributeIndices().equals("")) { result.add("-I"); result.add(getIgnoredAttributeIndices()); } return result.toArray(new String[result.size()]); }