Class MGSACOPanel

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

public class MGSACOPanel extends ParameterPanel
This java class is used to create and show a panel for the parameter settings of the microarray gene selection based on ant colony optimization (MGSACO) method.
Author:
Shahin Salavati, Sina Tabakhi
See Also:
  • Constructor Details

    • MGSACOPanel

      public MGSACOPanel()
      Creates new form MGSACOPanel. 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
      Specified by:
      keyReleased in class ParameterPanel
      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 ParameterPanel
      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
    • getNumIteration

      public int getNumIteration()
      This method returns the number of iterations value.
      Returns:
      the numIteration parameter
    • setNumIteration

      public void setNumIteration(int numIteration)
      This method sets the number of iterations value.
      Parameters:
      numIteration - the number of iterations value
    • getNumAnts

      public int getNumAnts()
      This method returns the number of ants value.
      Returns:
      the numAnts parameter
    • setNumAnts

      public void setNumAnts(int numAnts)
      This method sets the number of ants value.
      Parameters:
      numAnts - the number of ants value
    • getEvRate

      public double getEvRate()
      This method returns the evaporation rate.
      Returns:
      the evaporation rate parameter
    • setEvRate

      public void setEvRate(double evRate)
      This method sets the evaporation rate value.
      Parameters:
      evRate - the evaporation rate value
    • getBeta

      public double getBeta()
      This method returns the beta.
      Returns:
      the beta parameter
    • setBeta

      public void setBeta(double beta)
      This method sets the beta value.
      Parameters:
      beta - the beta value
    • getQ0

      public double getQ0()
      This method returns the q0.
      Returns:
      the q0 parameter
    • setQ0

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

      public void setDefaultValue()
      Sets the default values of the MGSACO parameters
    • setUserValue

      public void setUserValue(double initPheromoneValue, int numIterations, int numberAnt, double evaporationRate, double betaParameter, double q0_Parameter)
      Sets the last values of the MGSACO parameters entered by user
      Parameters:
      initPheromoneValue - the initial value of the pheromone
      numIterations - the maximum number of iteration
      numberAnt - the number of ants
      evaporationRate - the evaporation rate of the pheromone
      betaParameter - the beta parameter in the state transition rule
      q0_Parameter - the q0 parameter in the state transition rule