public class SimpleSetupPanel extends AbstractSetupPanel
If KOML is in the classpath the experiments can also be serialized to XML instead of a binary format.
javax.swing.JPanel.AccessibleJPaneljavax.swing.JComponent.AccessibleJComponent| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
DEST_ARFF_TEXT |
protected static java.lang.String |
DEST_CSV_TEXT |
protected static java.lang.String |
DEST_DATABASE_TEXT
The strings used to identify the combo box choices
|
protected AlgorithmListPanel |
m_AlgorithmListPanel
The panel for configuring selected algorithms
|
protected ExtensionFileFilter |
m_arffFileFilter
FIlter for choosing ARFF files
|
protected javax.swing.JButton |
m_BrowseDestinationButton
Button for browsing destination files
|
protected ExtensionFileFilter |
m_csvFileFilter
Filter for choosing CSV files
|
protected DatasetListPanel |
m_DatasetListPanel
The panel for configuring selected datasets
|
protected javax.swing.JFileChooser |
m_DestFileChooser
The file chooser for selecting result destinations
|
protected java.lang.String |
m_destinationDatabaseURL
The database destination URL to store results into
|
protected java.lang.String |
m_destinationFilename
The filename to store results into
|
protected Experiment |
m_Exp
The experiment being configured
|
protected javax.swing.JRadioButton |
m_ExpClassificationRBut
Radio button for choosing classification experiment
|
protected javax.swing.JLabel |
m_ExperimentParameterLabel
Label for parameter field
|
protected javax.swing.JTextField |
m_ExperimentParameterTField
Input field for experiment parameter
|
protected javax.swing.JComboBox |
m_ExperimentTypeCBox
Combo box for choosing experiment type
|
protected javax.swing.filechooser.FileFilter |
m_ExpFilter
A filter to ensure only experiment files get shown in the chooser
|
protected javax.swing.JRadioButton |
m_ExpRegressionRBut
Radio button for choosing regression experiment
|
protected javax.swing.JFileChooser |
m_FileChooser
The file chooser for selecting experiments
|
protected javax.swing.filechooser.FileFilter |
m_KOMLFilter
A filter to ensure only experiment (in KOML format) files get shown in the chooser
|
protected SetupModePanel |
m_modePanel
The panel which switched between simple and advanced setup modes
|
protected javax.swing.JButton |
m_NewBut
Click to create a new experiment with default settings
|
protected javax.swing.JButton |
m_NotesButton
A button for bringing up the notes
|
protected javax.swing.JFrame |
m_NotesFrame
Frame for the notes
|
protected javax.swing.JTextArea |
m_NotesText
Area for user notes Default of 10 rows
|
protected javax.swing.JTextField |
m_NumberOfRepetitionsTField
Input field for number of repetitions
|
protected int |
m_numFolds
The number of folds for a cross-validation experiment
|
protected int |
m_numRepetitions
The number of times to repeat the sub-experiment
|
protected javax.swing.JButton |
m_OpenBut
Click to load an experiment
|
protected javax.swing.JRadioButton |
m_OrderAlgorithmsFirstRBut
Radio button for choosing algorithms first in order of execution
|
protected javax.swing.JRadioButton |
m_OrderDatasetsFirstRBut
Radio button for choosing datasets first in order of execution
|
protected javax.swing.JComboBox |
m_ResultsDestinationCBox
Combo box for choosing experiment destination type
|
protected javax.swing.JLabel |
m_ResultsDestinationPathLabel
Label for destination field
|
protected javax.swing.JTextField |
m_ResultsDestinationPathTField
Input field for result destination path
|
protected javax.swing.JButton |
m_SaveBut
Click to save an experiment
|
protected java.beans.PropertyChangeSupport |
m_Support
Manages sending notifications to people when we change the experiment,
at this stage, only the resultlistener so the resultpanel can update.
|
protected double |
m_trainPercent
The training percentage for a train/test split experiment
|
protected boolean |
m_userHasBeenAskedAboutConversion
Whether or not the user has consented for the experiment to be simplified
|
protected javax.swing.filechooser.FileFilter |
m_XMLFilter
A filter to ensure only experiment (in XML format) files get shown in the chooser
|
protected static java.lang.String |
TYPE_CROSSVALIDATION_TEXT |
protected static java.lang.String |
TYPE_FIXEDSPLIT_TEXT |
protected static java.lang.String |
TYPE_RANDOMSPLIT_TEXT |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| Constructor and Description |
|---|
SimpleSetupPanel()
Creates the setup panel with no initial experiment.
|
SimpleSetupPanel(Experiment exp)
Creates the setup panel with the supplied initial experiment.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Adds a PropertyChangeListener who will be notified of value changes.
|
void |
cleanUpAfterSwitch()
Hook method for cleaning up the interface after a switch.
|
Experiment |
getExperiment()
Gets the currently configured experiment.
|
java.lang.String |
getName()
Returns the name of the panel.
|
protected void |
removeNotesFrame()
Deletes the notes frame.
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Removes a PropertyChangeListener.
|
boolean |
setExperiment(Experiment exp)
Sets the experiment to configure.
|
void |
setModePanel(SetupModePanel modePanel)
Sets the panel used to switch between simple and advanced modes.
|
protected void |
setSelectedItem(javax.swing.JComboBox cb,
java.lang.String item)
Sets the selected item of an combobox, since using setSelectedItem(...)
|
compareTo, getPanels, toStringgetAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateadd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, transferFocus, transferFocusBackward, transferFocusUpCycleprotected Experiment m_Exp
protected SetupModePanel m_modePanel
protected java.lang.String m_destinationDatabaseURL
protected java.lang.String m_destinationFilename
protected int m_numFolds
protected double m_trainPercent
protected int m_numRepetitions
protected boolean m_userHasBeenAskedAboutConversion
protected ExtensionFileFilter m_csvFileFilter
protected ExtensionFileFilter m_arffFileFilter
protected javax.swing.JButton m_OpenBut
protected javax.swing.JButton m_SaveBut
protected javax.swing.JButton m_NewBut
protected javax.swing.filechooser.FileFilter m_ExpFilter
protected javax.swing.filechooser.FileFilter m_KOMLFilter
protected javax.swing.filechooser.FileFilter m_XMLFilter
protected javax.swing.JFileChooser m_FileChooser
protected javax.swing.JFileChooser m_DestFileChooser
protected javax.swing.JComboBox m_ResultsDestinationCBox
protected javax.swing.JLabel m_ResultsDestinationPathLabel
protected javax.swing.JTextField m_ResultsDestinationPathTField
protected javax.swing.JButton m_BrowseDestinationButton
protected javax.swing.JComboBox m_ExperimentTypeCBox
protected javax.swing.JLabel m_ExperimentParameterLabel
protected javax.swing.JTextField m_ExperimentParameterTField
protected javax.swing.JRadioButton m_ExpClassificationRBut
protected javax.swing.JRadioButton m_ExpRegressionRBut
protected javax.swing.JTextField m_NumberOfRepetitionsTField
protected javax.swing.JRadioButton m_OrderDatasetsFirstRBut
protected javax.swing.JRadioButton m_OrderAlgorithmsFirstRBut
protected static java.lang.String DEST_DATABASE_TEXT
protected static java.lang.String DEST_ARFF_TEXT
protected static java.lang.String DEST_CSV_TEXT
protected static java.lang.String TYPE_CROSSVALIDATION_TEXT
protected static java.lang.String TYPE_RANDOMSPLIT_TEXT
protected static java.lang.String TYPE_FIXEDSPLIT_TEXT
protected DatasetListPanel m_DatasetListPanel
protected AlgorithmListPanel m_AlgorithmListPanel
protected javax.swing.JButton m_NotesButton
protected javax.swing.JFrame m_NotesFrame
protected javax.swing.JTextArea m_NotesText
protected java.beans.PropertyChangeSupport m_Support
public SimpleSetupPanel(Experiment exp)
exp - a value of type 'Experiment'public SimpleSetupPanel()
public java.lang.String getName()
getName in class AbstractSetupPanelprotected void setSelectedItem(javax.swing.JComboBox cb,
java.lang.String item)
cb - the combobox to set the item foritem - the item to set activeprotected void removeNotesFrame()
public void setModePanel(SetupModePanel modePanel)
setModePanel in class AbstractSetupPanelmodePanel - the panelpublic boolean setExperiment(Experiment exp)
setExperiment in class AbstractSetupPanelexp - a value of type 'Experiment'public Experiment getExperiment()
getExperiment in class AbstractSetupPanelpublic void addPropertyChangeListener(java.beans.PropertyChangeListener l)
addPropertyChangeListener in class AbstractSetupPanell - a value of type 'PropertyChangeListener'public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
removePropertyChangeListener in class AbstractSetupPanell - a value of type 'PropertyChangeListener'public void cleanUpAfterSwitch()
cleanUpAfterSwitch in class AbstractSetupPanel