public void setup(Filter bean) throws Exception {
weka.filters.Filter filter = bean.getFilter();
String className = filter.getClass().getName();
log("Class: " + className);
if(className.equalsIgnoreCase(AddCluster.class.getName())) {
AddCluster addCluster = (AddCluster)filter;
StringBuffer buffer = new StringBuffer();
buffer.append("Options: ");
String[] options = addCluster.getOptions();
for(int i = 0; i < options.length; i++) {
buffer.append(options[i] + "; ");
}
log(buffer.toString());
Clusterer clusterer = addCluster.getClusterer();
log(addCluster.getClusterer().getClass().getName());
}
}