net.sourceforge.cilib.pso.dynamic.detectionstrategies
Class NeighbourhoodBestSentriesDetectionStrategy<E extends PopulationBasedAlgorithm>
java.lang.Object
net.sourceforge.cilib.pso.dynamic.detectionstrategies.EnvironmentChangeDetectionStrategy<E>
net.sourceforge.cilib.pso.dynamic.detectionstrategies.NeighbourhoodBestSentriesDetectionStrategy<E>
- All Implemented Interfaces:
- Serializable, Cloneable
public class NeighbourhoodBestSentriesDetectionStrategy<E extends PopulationBasedAlgorithm>
- extends EnvironmentChangeDetectionStrategy<E>
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NeighbourhoodBestSentriesDetectionStrategy
public NeighbourhoodBestSentriesDetectionStrategy()
NeighbourhoodBestSentriesDetectionStrategy
public NeighbourhoodBestSentriesDetectionStrategy(NeighbourhoodBestSentriesDetectionStrategy<E> rhs)
getClone
public NeighbourhoodBestSentriesDetectionStrategy<E> getClone()
- Description copied from class:
EnvironmentChangeDetectionStrategy
- Clone the EnvironmentChangeDetectionStrategy object.
- Specified by:
getClone
in interface Cloneable
- Specified by:
getClone
in class EnvironmentChangeDetectionStrategy<E extends PopulationBasedAlgorithm>
- Returns:
- A cloned EnvironmentChangeDetectionStrategy
- See Also:
Object.clone()
detect
public boolean detect(PopulationBasedAlgorithm algorithm)
- Description copied from class:
EnvironmentChangeDetectionStrategy
- Check the environment in which the specified PSO algorithm is running for changes.
- Specified by:
detect
in class EnvironmentChangeDetectionStrategy<E extends PopulationBasedAlgorithm>
- Parameters:
algorithm
- The PSO that runs in a dynamic environment.
- Returns:
- true if any changes are detected, false otherwise
Copyright © 2009 CIRG. All Rights Reserved.