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.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 class
AbstractClassifierBasedGeneticAlgorithmWizard.PerformancePlot
For plotting the performance of the genetic algorithm.
-
Field Summary
Fields Modifier and Type Field Description protected AbstractClassifierBasedGeneticAlgorithm
m_Current
the 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 void
doOptimize(adams.gui.application.ChildFrame frame, AbstractClassifierBasedGeneticAlgorithm genetic, String[] files)
Performs the optimization.String
getCategory()
Returns the category of the menu item in which it should appear, i.e., the name of the menu.AbstractClassifierBasedGeneticAlgorithm
getCurrent()
Returns the current algorithm in use.String
getIconName()
Returns the file name of the icon.protected abstract AbstractClassifierBasedGeneticAlgorithm
getSetup()
Returns the genetic algorithm setup to use.protected abstract adams.gui.wizard.StartPage
getStartPage()
Returns the start page for the wizard.adams.core.option.UserMode
getUserMode()
Returns the user mode, which determines visibility as well.boolean
isSingleton()
Whether the panel can only be displayed once.void
launch()
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:
getIconName
in 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:
launch
in 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:
isSingleton
in 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:
getUserMode
in 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:
getCategory
in classadams.gui.application.AbstractMenuItemDefinition
- Returns:
- the category/menu name
-
-