Class AbstractClassifierBasedGeneticAlgorithmWizard

  • All Implemented Interfaces:
    Serializable, Comparable<adams.gui.application.AbstractMenuItemDefinition>
    Direct Known Subclasses:
    DarkLord, Hermione

    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
    • 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 class adams.gui.application.AbstractMenuItemDefinition
        Returns:
        the filename or null if no icon available
      • 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 class adams.gui.application.AbstractBasicMenuItemDefinition
      • doOptimize

        protected void doOptimize​(adams.gui.application.ChildFrame frame,
                                  AbstractClassifierBasedGeneticAlgorithm genetic,
                                  String[] files)
        Performs the optimization.
        Parameters:
        frame - the frame to close
        genetic - the genetic algorithm setup
        files - the files to process
      • isSingleton

        public boolean isSingleton()
        Whether the panel can only be displayed once.
        Specified by:
        isSingleton in class adams.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 class adams.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 class adams.gui.application.AbstractMenuItemDefinition
        Returns:
        the category/menu name