/** * Sets the array of values to set the custom property to. * * @param newPropArray a value of type Object which should be an array of the * appropriate values. */ @Override public void setPropertyArray(Object newPropArray) { super.setPropertyArray(newPropArray); m_baseExperiment.setPropertyArray(newPropArray); }
/** * Sets the array of values to set the custom property to. * * @param newPropArray a value of type Object which should be an array of the * appropriate values. */ @Override public void setPropertyArray(Object newPropArray) { super.setPropertyArray(newPropArray); m_baseExperiment.setPropertyArray(newPropArray); }
@Override public void propertyChange(PropertyChangeEvent e) { System.err.println("Updating experiment property iterator array"); m_Exp.setPropertyArray(m_ArrayEditor.getValue()); } });
@Override public void propertyChange(PropertyChangeEvent e) { System.err.println("Updating experiment property iterator array"); m_Exp.setPropertyArray(m_ArrayEditor.getValue()); } });
/** * updates the classifiers in the experiment */ private void updateExperiment() { Classifier[] cArray = new Classifier[m_AlgorithmListModel.size()]; for (int i = 0; i < cArray.length; i++) { cArray[i] = (Classifier) m_AlgorithmListModel.elementAt(i); } m_Exp.setPropertyArray(cArray); }
/** * updates the classifiers in the experiment */ private void updateExperiment() { Classifier[] cArray = new Classifier[m_AlgorithmListModel.size()]; for (int i = 0; i < cArray.length; i++) { cArray[i] = (Classifier) m_AlgorithmListModel.elementAt(i); } m_Exp.setPropertyArray(cArray); }
/** * Gets the user to select a property of the current resultproducer. * * @return APPROVE_OPTION if the selection went OK, otherwise the selection * was cancelled. */ protected int selectProperty() { final PropertySelectorDialog jd = new PropertySelectorDialog(null, m_Exp.getResultProducer()); jd.setLocationRelativeTo(this); int result = jd.showDialog(); if (result == PropertySelectorDialog.APPROVE_OPTION) { System.err.println("Property Selected"); PropertyNode[] path = jd.getPath(); Object value = path[path.length - 1].value; PropertyDescriptor property = path[path.length - 1].property; // Make an array containing the propertyValue Class<?> propertyClass = property.getPropertyType(); m_Exp.setPropertyPath(path); m_Exp.setPropertyArray(Array.newInstance(propertyClass, 1)); Array.set(m_Exp.getPropertyArray(), 0, value); // Pass it to the arrayeditor m_ArrayEditor.setValue(m_Exp.getPropertyArray()); m_ArrayEditor.getCustomEditor().repaint(); System.err.println("Set new array to array editor"); } else { System.err.println("Cancelled"); } return result; }
/** * Gets the user to select a property of the current resultproducer. * * @return APPROVE_OPTION if the selection went OK, otherwise the selection * was cancelled. */ protected int selectProperty() { final PropertySelectorDialog jd = new PropertySelectorDialog(null, m_Exp.getResultProducer()); jd.setLocationRelativeTo(this); int result = jd.showDialog(); if (result == PropertySelectorDialog.APPROVE_OPTION) { System.err.println("Property Selected"); PropertyNode[] path = jd.getPath(); Object value = path[path.length - 1].value; PropertyDescriptor property = path[path.length - 1].property; // Make an array containing the propertyValue Class<?> propertyClass = property.getPropertyType(); m_Exp.setPropertyPath(path); m_Exp.setPropertyArray(Array.newInstance(propertyClass, 1)); Array.set(m_Exp.getPropertyArray(), 0, value); // Pass it to the arrayeditor m_ArrayEditor.setValue(m_Exp.getPropertyArray()); m_ArrayEditor.getCustomEditor().repaint(); System.err.println("Set new array to array editor"); } else { System.err.println("Cancelled"); } return result; }
@Override public void propertyChange(PropertyChangeEvent e) { m_Exp.setResultProducer((ResultProducer) m_RPEditor.getValue()); m_Exp.setUsePropertyIterator(false); m_Exp.setPropertyArray(null); m_Exp.setPropertyPath(null); m_GeneratorPropertyPanel.setExperiment(m_Exp); repaint(); } });
@Override public void propertyChange(PropertyChangeEvent e) { m_Exp.setResultProducer((ResultProducer) m_RPEditor.getValue()); m_Exp.setUsePropertyIterator(false); m_Exp.setPropertyArray(null); m_Exp.setPropertyPath(null); m_GeneratorPropertyPanel.setExperiment(m_Exp); repaint(); } });
exp.setPropertyArray(new Classifier[0]); exp.setUsePropertyIterator(true); } else {
exp.setPropertyArray(new Classifier[0]); exp.setUsePropertyIterator(true); } else {
cvrp.setSplitEvaluator(new ClassifierSplitEvaluator()); newExp.setResultProducer(cvrp); newExp.setPropertyArray(new Classifier[0]); newExp.setUsePropertyIterator(true); setExperiment(newExp);
cvrp.setSplitEvaluator(new ClassifierSplitEvaluator()); newExp.setResultProducer(cvrp); newExp.setPropertyArray(new Classifier[0]); newExp.setUsePropertyIterator(true); setExperiment(newExp);
exp.setPropertyArray(propArray); exp.setUsePropertyIterator(iteratorOn);
exp.setPropertyArray(propArray); exp.setUsePropertyIterator(iteratorOn);
Object[] a = new Object[1]; a[0] = m_baseExperiment.getPropertyArrayValue(i); m_subExperiments[i].setPropertyArray(a); m_subExpQueue.push(new Integer(i));
Object[] a = new Object[1]; a[0] = m_baseExperiment.getPropertyArrayValue(i); m_subExperiments[i].setPropertyArray(a); m_subExpQueue.push(new Integer(i));