net.sourceforge.cilib.pso.dynamic.detectionstrategies
Class EnvironmentChangeDetectionStrategy<E extends PopulationBasedAlgorithm>
java.lang.Object
net.sourceforge.cilib.pso.dynamic.detectionstrategies.EnvironmentChangeDetectionStrategy<E>
- All Implemented Interfaces:
- Serializable, Cloneable
- Direct Known Subclasses:
- NeighbourhoodBestSentriesDetectionStrategy, PeriodicDetectionStrategy, RandomSentriesDetectionStrategy, RandomSentryDetectionStrategy, TopologyBestSentryDetectionStrategy
public abstract class EnvironmentChangeDetectionStrategy<E extends PopulationBasedAlgorithm>
- extends Object
- implements Cloneable, Serializable
This abstract class defines the interface that detection strategies have to adhere to.
Detection strategies are used within the scope of a DynamicIterationStrategy
to
detect whether the environment has change during the course of an
algorithm's
execution.
- Author:
- Anna Rakatianskaia, Gary Pampara, Theuns Cloete
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
epsilon
protected double epsilon
interval
protected int interval
EnvironmentChangeDetectionStrategy
public EnvironmentChangeDetectionStrategy()
EnvironmentChangeDetectionStrategy
public EnvironmentChangeDetectionStrategy(EnvironmentChangeDetectionStrategy<E> rhs)
getClone
public abstract EnvironmentChangeDetectionStrategy<E> getClone()
- Clone the EnvironmentChangeDetectionStrategy object.
- Specified by:
getClone
in interface Cloneable
- Returns:
- A cloned EnvironmentChangeDetectionStrategy
- See Also:
Object.clone()
detect
public abstract boolean detect(E algorithm)
- Check the environment in which the specified PSO algorithm is running for changes.
- Parameters:
algorithm
- The PSO that runs in a dynamic environment.
- Returns:
- true if any changes are detected, false otherwise
setEpsilon
public void setEpsilon(double e)
getEpsilon
public double getEpsilon()
setIterationsModulus
public void setIterationsModulus(int im)
getIterationsModulus
public int getIterationsModulus()
Copyright © 2009 CIRG. All Rights Reserved.