Class OptimalACOPanel

All Implemented Interfaces:
ActionListener, ItemListener, KeyListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class OptimalACOPanel extends BasicACOPanel
This java class is used to create and show a panel for the parameter settings of the optimal ant colony optimization (OptimalACO) method.
Author:
Sina Tabakhi
See Also:
  • Constructor Details

    • OptimalACOPanel

      public OptimalACOPanel()
      Creates new form OptimalACOPanel. This method is called from within the constructor to initialize the form.
  • Method Details

    • keyReleased

      public void keyReleased(KeyEvent e)
      The listener method for receiving keyboard events (keystrokes). Invoked when a key has been released.
      Specified by:
      keyReleased in interface KeyListener
      Overrides:
      keyReleased in class BasicACOPanel
      Parameters:
      e - an action event
    • btn_okActionPerformed

      protected void btn_okActionPerformed(ActionEvent e)
      This method sets an action for the btn_ok button.
      Overrides:
      btn_okActionPerformed in class BasicACOPanel
      Parameters:
      e - an action event
    • getInitPheromone

      public double getInitPheromone()
      This method returns the initial pheromone value.
      Returns:
      the initPheromone parameter
    • setInitPheromone

      public void setInitPheromone(double initPheromone)
      This method sets the initial pheromone value.
      Parameters:
      initPheromone - the initial pheromone value
    • getPhi

      public double getPhi()
      This method returns the phi value.
      Returns:
      the phi parameter
    • setPhi

      public void setPhi(double phi)
      This method sets the phi value.
      Parameters:
      phi - the phi value
    • setDefaultValue

      public void setDefaultValue()
      Sets the default values of the Optimal ACO parameters
      Overrides:
      setDefaultValue in class BasicACOPanel
    • setUserValue

      public void setUserValue(ClassifierType classifierType, Object selectedClassifierPan, int numIteration, int colonySize, double alpha, double beta, double evRate, int kFolds, double initPheromone, double phi)
      Sets the last values of the Optimal ACO parameters entered by user
      Parameters:
      classifierType - the selected classifier type
      selectedClassifierPan - the selected classifier panel
      numIteration - the maximum number of allowed iterations that algorithm repeated
      colonySize - the size of colony of candidate solutions
      alpha - the alpha parameter in the state transition rule that shows the relative importance of the pheromone
      beta - the beta parameter in the state transition rule that shows the relative importance of heuristic information
      evRate - the evaporation rate of the pheromone
      kFolds - the number of equal sized subsamples that is used in k-fold cross validation
      initPheromone - the initial value of the pheromone
      phi - the phi parameter in the pheromone update rule that shows the relative importance of classifier performance