Package isula.aco

Class AntPolicy<C,E extends Environment>

java.lang.Object
isula.aco.AntPolicy<C,E>
Type Parameters:
C - Class for components of a solution.
E - Class representing the Environment.
Direct Known Subclasses:
ConstructPartialSolution, LocalPheromoneUpdateForAcs, OnlinePheromoneUpdate, RandomNodeSelection

public abstract class AntPolicy<C,E extends Environment> extends Object
A behavior to be performed by an Ant. This class is used to implement specific behaviours required by a particular ACO algorithm.

Each ant policy class has a policyType, which will define in which stage of the construction process is executed.

Author:
Carlos G. Gavidia
  • Constructor Details

  • Method Details

    • getPolicyType

      public AntPolicyType getPolicyType()
    • setAnt

      public void setAnt(Ant<C,E> ant)
    • getAnt

      public Ant<C,E> getAnt()
    • applyPolicy

      public abstract boolean applyPolicy(E environment, ConfigurationProvider configurationProvider)