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<AbstractMenuItemDefinition>
public abstract class AbstractClassifierBasedGeneticAlgorithmWizard extends AbstractBasicMenuItemDefinition
Ancestor 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.-
Fields inherited from class adams.gui.application.AbstractMenuItemDefinition
CATEGORY_HELP, CATEGORY_MACHINELEARNING, CATEGORY_MAINTENANCE, CATEGORY_PROGRAM, CATEGORY_TOOLS, CATEGORY_VISUALIZATION, CATEGORY_WIZARD, m_Owner
-
-
Constructor Summary
Constructors Constructor Description AbstractClassifierBasedGeneticAlgorithmWizard()Initializes the menu item with no owner.AbstractClassifierBasedGeneticAlgorithmWizard(AbstractApplicationFrame owner)Initializes the menu item.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voiddoOptimize(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 StartPagegetStartPage()Returns the start page for the wizard.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
-
Methods inherited from class adams.gui.application.AbstractMenuItemDefinition
compareTo, createChildFrame, createChildFrame, equals, forCommandLine, forName, getActualCategory, getIcon, getLogger, getOwner, getTitle, initialize, isAvailable, requiresRestartableApplication, setOwner
-
-
-
-
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(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 classAbstractMenuItemDefinition- 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 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 classAbstractBasicMenuItemDefinition
-
doOptimize
protected void doOptimize(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 classAbstractMenuItemDefinition- Returns:
- true if the panel can only be displayed once
-
getUserMode
public UserMode getUserMode()
Returns the user mode, which determines visibility as well.- Specified by:
getUserModein classAbstractMenuItemDefinition- 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 classAbstractMenuItemDefinition- Returns:
- the category/menu name
-
-