java.lang.Object
unifeat.featureSelection.wrapper.ACOBasedMethods.BasicAnt
unifeat.featureSelection.wrapper.ACOBasedMethods.OptimalACO.Ant

public class Ant extends BasicAnt
This java class is used to represent an ant in optimal ant colony optimization (Optimal ACO) method.
Author:
Sina Tabakhi
See Also:
  • Constructor Details

    • Ant

      public Ant()
      Initializes the parameters
  • Method Details

    • getCountSteps

      public int getCountSteps()
      This method returns the current count steps of the ant.
      Returns:
      the current count steps of the ant
    • setCountSteps

      public void setCountSteps(int countSteps)
      This method sets the count steps of the ant.
      Parameters:
      countSteps - the input count steps
    • increaseCountSteps

      public void increaseCountSteps()
      This method increases one step of the count steps of the ant.
    • getFeasibleFeatureSet

      public ArrayList<Integer> getFeasibleFeatureSet()
      This method returns the feasible features that can be added to the current solution of the ant.
      Specified by:
      getFeasibleFeatureSet in class BasicAnt
      Returns:
      an array list of the feasible features