net.sourceforge.cilib.pso.dynamic.detectionstrategies
Class NeighbourhoodBestSentriesDetectionStrategy<E extends PopulationBasedAlgorithm>

java.lang.Object
  extended by net.sourceforge.cilib.pso.dynamic.detectionstrategies.EnvironmentChangeDetectionStrategy<E>
      extended by 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

Field Summary
 
Fields inherited from class net.sourceforge.cilib.pso.dynamic.detectionstrategies.EnvironmentChangeDetectionStrategy
epsilon, interval
 
Constructor Summary
NeighbourhoodBestSentriesDetectionStrategy()
           
NeighbourhoodBestSentriesDetectionStrategy(NeighbourhoodBestSentriesDetectionStrategy<E> rhs)
           
 
Method Summary
 boolean detect(PopulationBasedAlgorithm algorithm)
          Check the environment in which the specified PSO algorithm is running for changes.
 NeighbourhoodBestSentriesDetectionStrategy<E> getClone()
          Clone the EnvironmentChangeDetectionStrategy object.
 
Methods inherited from class net.sourceforge.cilib.pso.dynamic.detectionstrategies.EnvironmentChangeDetectionStrategy
getEpsilon, getIterationsModulus, setEpsilon, setIterationsModulus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NeighbourhoodBestSentriesDetectionStrategy

public NeighbourhoodBestSentriesDetectionStrategy()

NeighbourhoodBestSentriesDetectionStrategy

public NeighbourhoodBestSentriesDetectionStrategy(NeighbourhoodBestSentriesDetectionStrategy<E> rhs)
Method Detail

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.