public class Experiments extends javax.swing.JFrame implements java.awt.event.ItemListener, IEducationalRunListener
javax.swing.JFrame.AccessibleJFrame
java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
Modifier and Type | Field and Description |
---|---|
javax.swing.JScrollPane |
checksDatasetsScrollPane |
boolean |
closedEducationalExecWindow
EDUCATIONAL KEEL ***************************
|
javax.swing.JButton |
cursorFlux |
protected int |
cvType |
javax.swing.JPanel |
datasetsChecksPanel |
javax.swing.JButton |
deleteItem |
DinamicDataset |
dinDatasets |
javax.swing.JPanel |
dinDatasetsPanel |
javax.swing.JScrollPane |
dinDatasetsScrollPane |
protected int |
expType |
GraphPanel |
graphDiagramINNER |
int |
heapSize |
HelpContent |
helpContent |
static int |
IMBALANCED |
javax.swing.JMenuItem |
insertDataflowItem |
static int |
INVESTIGATION |
javax.swing.JCheckBox |
invisible |
DatasetXML[] |
listData |
DatasetXML[] |
listDataC |
DatasetXML[] |
listDataC_LQD |
DatasetXML[] |
listDataLQD_C |
static int |
LQD |
javax.swing.JSplitPane |
mainSplitPane1 |
javax.swing.JTree |
methodsSelectionTree |
static int |
MULTIINSTANCE |
boolean |
notSelectedDataset |
int |
numberKFoldCross |
int |
objType |
SelectData |
panelDatasets |
javax.swing.JTree |
postprocessSelectionTree |
javax.swing.JTree |
preprocessTree |
boolean |
question |
int |
RamaLqd |
java.lang.String |
root |
javax.swing.JButton |
runButton |
javax.swing.JMenuItem |
runExpItem |
javax.swing.JMenuItem |
saveAsExpItem |
javax.swing.JButton |
saveButton |
javax.swing.JMenuItem |
saveExpItem |
javax.swing.JButton |
selecDatasets |
javax.swing.JPanel |
selectionPanel1 |
javax.swing.JButton |
selectMethods |
javax.swing.JButton |
selectPostprocessMethods |
javax.swing.JButton |
selectPreprocessMethods |
javax.swing.JButton |
selectTestMethods |
javax.swing.JButton |
selectVisualizeMethods |
javax.swing.JButton |
showAlgButton |
static int |
SSL |
javax.swing.JLabel |
status |
javax.swing.JCheckBoxMenuItem |
statusBarItem |
static int |
SUBGROUPDISCOVERY |
boolean |
summary |
static int |
TEACHING |
javax.swing.JTree |
testSelectionTree |
javax.swing.JTextArea |
useCaseTextArea |
javax.swing.JTree |
visualizeSelectionTree |
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor and Description |
---|
Experiments()
Builder
|
Experiments(Frame parent,
int type)
Creates a new form, assigning a parent frame (so the experiment windows
can be disposed, and the father set visible again on closing)
|
Modifier and Type | Method and Description |
---|---|
void |
activateUpperMenu_principals()
Activates main elements of upper menu
|
void |
arbol_valueChanged(javax.swing.event.TreeSelectionEvent e)
Tree changed method
|
void |
closedEducationalExec(EducationalRunEvent event)
EDUCATIONAL KEEL **********************
|
void |
continueExperimentGeneration()
Continues the experiment generation, once the used has selected
the initial data sets and clicked on the panel, by doing the following tasks:
- Create the data set node
- Loads all the trees with the methods
- Sets visible the dinamicDataset panel
|
void |
createDatasetDirs(DataSet ds,
java.lang.String path)
creates directories for dataset and copy training-test files selected
|
void |
createDatasetDirsLQD(Joint ds,
java.lang.String path)
creates directories for dataset and copy training-test files selected
|
void |
createNodes(javax.swing.tree.DefaultMutableTreeNode top)
Creates the trees (deprecated)
|
void |
deleteExecDocentWindow()
EDUCATIONAL KEEL **********************
|
int |
experimentType()
EDUCATIONAL KEEL **********************
|
void |
forceUndo()
Forces the undo action
|
boolean |
getExecDocentWindowState()
EDUCATIONAL KEEL **********************
|
void |
insertDirectoryData(java.net.URL listing,
java.lang.String rootInsert)
Read XML files
|
java.util.Vector |
isolatedNodes()
checks if are nodes not connected to a dataset
|
java.util.Vector |
isolatedNodesLQD()
checks if are nodes LQD not connected to a dataset
|
void |
itemStateChanged(java.awt.event.ItemEvent event)
Change state
|
void |
load_data(ExternalObjectDescription dsctmp,
java.util.Vector check,
java.util.Vector List)
Load dat sets
|
static void |
main(java.lang.String[] args) |
int |
partitionType()
Gets the partition type of the experiment
|
protected void |
processWindowEvent(java.awt.event.WindowEvent evt)
Overridden so we can exit when window is closed, or cancel the process
|
UseCase |
readXMLUseCase(java.lang.String fileName)
Reads a XML use case
|
void |
redimAllNodes(javax.swing.tree.DefaultMutableTreeNode node)
Resizes the ExternalObjectDescription of all nodes.
|
void |
reload_algorithms()
Reload the algorithms trees (all kinds)
|
int |
saveExperiment(int option)
Stores the experiment to disk
|
void |
setNumDatasets(java.lang.String[] values)
Sets the size of the extenal description objects, and the
number of data sets
|
void |
writeConfig(Algorithm al,
java.lang.String path,
java.lang.String path_summary,
java.lang.String path_summary_crisp,
java.lang.String baseName,
java.lang.String methodName,
boolean pre,
Joint destin,
int position,
java.lang.String type_lqd,
int type_algorithm,
java.util.Vector sentencias,
java.lang.String problema,
boolean crisp_version,
java.lang.String r_jar)
Write a configuration script for the method, employing its parameters
|
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecorated
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, toFront
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public DatasetXML[] listData
public DatasetXML[] listDataLQD_C
public DatasetXML[] listDataC_LQD
public DatasetXML[] listDataC
public static final int INVESTIGATION
public static final int LQD
public static final int TEACHING
public static final int IMBALANCED
public static final int MULTIINSTANCE
public static final int SUBGROUPDISCOVERY
public static final int SSL
public int heapSize
public int numberKFoldCross
public boolean notSelectedDataset
public java.lang.String root
public int objType
public int RamaLqd
public boolean summary
protected int expType
protected int cvType
public boolean question
public boolean closedEducationalExecWindow
public javax.swing.JScrollPane checksDatasetsScrollPane
public javax.swing.JButton cursorFlux
public javax.swing.JPanel datasetsChecksPanel
public javax.swing.JButton deleteItem
public DinamicDataset dinDatasets
public javax.swing.JPanel dinDatasetsPanel
public javax.swing.JScrollPane dinDatasetsScrollPane
public GraphPanel graphDiagramINNER
public HelpContent helpContent
public javax.swing.JMenuItem insertDataflowItem
public javax.swing.JSplitPane mainSplitPane1
public javax.swing.JTree methodsSelectionTree
public SelectData panelDatasets
public javax.swing.JTree postprocessSelectionTree
public javax.swing.JTree preprocessTree
public javax.swing.JButton runButton
public javax.swing.JMenuItem runExpItem
public javax.swing.JMenuItem saveAsExpItem
public javax.swing.JButton saveButton
public javax.swing.JMenuItem saveExpItem
public javax.swing.JButton selecDatasets
public javax.swing.JButton selectMethods
public javax.swing.JButton selectPostprocessMethods
public javax.swing.JButton selectPreprocessMethods
public javax.swing.JButton selectTestMethods
public javax.swing.JButton selectVisualizeMethods
public javax.swing.JPanel selectionPanel1
public javax.swing.JButton showAlgButton
public javax.swing.JLabel status
public javax.swing.JCheckBoxMenuItem statusBarItem
public javax.swing.JTree testSelectionTree
public javax.swing.JTextArea useCaseTextArea
public javax.swing.JTree visualizeSelectionTree
public javax.swing.JCheckBox invisible
public Experiments()
public Experiments(Frame parent, int type)
parent
- the frame that will be shown when the Experiments frame is closedtype
- Type of experimentpublic static void main(java.lang.String[] args)
args
- the command line argumentspublic void activateUpperMenu_principals()
public void itemStateChanged(java.awt.event.ItemEvent event)
itemStateChanged
in interface java.awt.event.ItemListener
event
- Eventpublic int saveExperiment(int option)
public void insertDirectoryData(java.net.URL listing, java.lang.String rootInsert)
listing
- FilerootInsert
- Root nodepublic void createNodes(javax.swing.tree.DefaultMutableTreeNode top)
top
- root of the treepublic UseCase readXMLUseCase(java.lang.String fileName)
fileName
- the path to the XML use case filepublic void arbol_valueChanged(javax.swing.event.TreeSelectionEvent e)
e
- Eventpublic void redimAllNodes(javax.swing.tree.DefaultMutableTreeNode node)
node
- the node of the tree from which the search beginspublic void setNumDatasets(java.lang.String[] values)
values
- An array with the names of all the data sets (one in each position of the array)public int partitionType()
public void reload_algorithms()
public java.util.Vector isolatedNodes()
public java.util.Vector isolatedNodesLQD()
public void createDatasetDirs(DataSet ds, java.lang.String path)
ds
- the data set node with the selected data setspath
- the destination pathpublic void createDatasetDirsLQD(Joint ds, java.lang.String path)
ds
- the data set node with the selected data setspath
- the destination pathpublic void writeConfig(Algorithm al, java.lang.String path, java.lang.String path_summary, java.lang.String path_summary_crisp, java.lang.String baseName, java.lang.String methodName, boolean pre, Joint destin, int position, java.lang.String type_lqd, int type_algorithm, java.util.Vector sentencias, java.lang.String problema, boolean crisp_version, java.lang.String r_jar)
al
- path
- path_summary
- path_summary_crisp
- baseName
- methodName
- pre
- destin
- position
- type_lqd
- type_algorithm
- sentencias
- problema
- crisp_version
- r_jar
- public void closedEducationalExec(EducationalRunEvent event)
closedEducationalExec
in interface IEducationalRunListener
event
- Eventpublic int experimentType()
public void forceUndo()
public boolean getExecDocentWindowState()
public void deleteExecDocentWindow()
public void load_data(ExternalObjectDescription dsctmp, java.util.Vector check, java.util.Vector List)
dsctmp
- New dsccheck
- Check listList
- List of data setspublic void continueExperimentGeneration()
protected void processWindowEvent(java.awt.event.WindowEvent evt)
processWindowEvent
in class javax.swing.JFrame