Package adams.gui.menu
Class AbstractClassifierBasedGeneticAlgorithmWizard
- java.lang.Object
-
- adams.gui.application.AbstractMenuItemDefinition
-
- adams.gui.application.AbstractBasicMenuItemDefinition
-
- adams.gui.menu.AbstractClassifierBasedGeneticAlgorithmWizard
-
- All Implemented Interfaces:
Serializable,Comparable<adams.gui.application.AbstractMenuItemDefinition>
public abstract class AbstractClassifierBasedGeneticAlgorithmWizard extends adams.gui.application.AbstractBasicMenuItemDefinitionAncestor for optimizing datasets (attribute selection) using a genetic algorithm.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractClassifierBasedGeneticAlgorithmWizard.PerformancePlotFor plotting the performance of the genetic algorithm.
-
Field Summary
Fields Modifier and Type Field Description protected AbstractClassifierBasedGeneticAlgorithmm_Currentthe current algorithm.
-
Constructor Summary
Constructors Constructor Description AbstractClassifierBasedGeneticAlgorithmWizard()Initializes the menu item with no owner.AbstractClassifierBasedGeneticAlgorithmWizard(adams.gui.application.AbstractApplicationFrame owner)Initializes the menu item.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voiddoOptimize(adams.gui.application.ChildFrame frame, AbstractClassifierBasedGeneticAlgorithm genetic, String[] files)Performs the optimization.StringgetCategory()Returns the category of the menu item in which it should appear, i.e., the name of the menu.AbstractClassifierBasedGeneticAlgorithmgetCurrent()Returns the current algorithm in use.StringgetIconName()Returns the file name of the icon.protected abstract AbstractClassifierBasedGeneticAlgorithmgetSetup()Returns the genetic algorithm setup to use.protected abstract adams.gui.wizard.StartPagegetStartPage()Returns the start page for the wizard.adams.core.option.UserModegetUserMode()Returns the user mode, which determines visibility as well.booleanisSingleton()Whether the panel can only be displayed once.voidlaunch()Launches the functionality of the menu item.-
Methods inherited from class adams.gui.application.AbstractBasicMenuItemDefinition
getMenuItem, getUseThread, postLaunch, preLaunch
-
-
-
-
Field Detail
-
m_Current
protected AbstractClassifierBasedGeneticAlgorithm m_Current
the current algorithm.
-
-
Constructor Detail
-
AbstractClassifierBasedGeneticAlgorithmWizard
public AbstractClassifierBasedGeneticAlgorithmWizard()
Initializes the menu item with no owner.
-
AbstractClassifierBasedGeneticAlgorithmWizard
public AbstractClassifierBasedGeneticAlgorithmWizard(adams.gui.application.AbstractApplicationFrame owner)
Initializes the menu item.- Parameters:
owner- the owning application
-
-
Method Detail
-
getIconName
public String getIconName()
Returns the file name of the icon.- Overrides:
getIconNamein classadams.gui.application.AbstractMenuItemDefinition- Returns:
- the filename or null if no icon available
-
getSetup
protected abstract AbstractClassifierBasedGeneticAlgorithm getSetup()
Returns the genetic algorithm setup to use.- Returns:
- the setup
-
getCurrent
public AbstractClassifierBasedGeneticAlgorithm getCurrent()
Returns the current algorithm in use.- Returns:
- the algorithm, null if none in use
-
getStartPage
protected abstract adams.gui.wizard.StartPage getStartPage()
Returns the start page for the wizard.- Returns:
- the page
-
launch
public void launch()
Launches the functionality of the menu item.- Specified by:
launchin classadams.gui.application.AbstractBasicMenuItemDefinition
-
doOptimize
protected void doOptimize(adams.gui.application.ChildFrame frame, AbstractClassifierBasedGeneticAlgorithm genetic, String[] files)Performs the optimization.- Parameters:
frame- the frame to closegenetic- the genetic algorithm setupfiles- the files to process
-
isSingleton
public boolean isSingleton()
Whether the panel can only be displayed once.- Specified by:
isSingletonin classadams.gui.application.AbstractMenuItemDefinition- Returns:
- true if the panel can only be displayed once
-
getUserMode
public adams.core.option.UserMode getUserMode()
Returns the user mode, which determines visibility as well.- Specified by:
getUserModein classadams.gui.application.AbstractMenuItemDefinition- Returns:
- the user mode
-
getCategory
public String getCategory()
Returns the category of the menu item in which it should appear, i.e., the name of the menu.- Specified by:
getCategoryin classadams.gui.application.AbstractMenuItemDefinition- Returns:
- the category/menu name
-
-