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

java.lang.Object
  extended by net.sourceforge.cilib.pso.dynamic.detectionstrategies.EnvironmentChangeDetectionStrategy<E>
      extended by net.sourceforge.cilib.pso.dynamic.detectionstrategies.TopologyBestSentryDetectionStrategy<E>
Type Parameters:
E - some population based algorithm
All Implemented Interfaces:
Serializable, Cloneable

public class TopologyBestSentryDetectionStrategy<E extends PopulationBasedAlgorithm>
extends EnvironmentChangeDetectionStrategy<E>

Author:
Theuns Cloete
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sourceforge.cilib.pso.dynamic.detectionstrategies.EnvironmentChangeDetectionStrategy
epsilon, interval
 
Constructor Summary
TopologyBestSentryDetectionStrategy()
           
TopologyBestSentryDetectionStrategy(EnvironmentChangeDetectionStrategy<E> rhs)
           
 
Method Summary
 boolean detect(PopulationBasedAlgorithm algorithm)
          Check the environment in which the specified PSO algorithm is running for changes.
 EnvironmentChangeDetectionStrategy<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

TopologyBestSentryDetectionStrategy

public TopologyBestSentryDetectionStrategy()

TopologyBestSentryDetectionStrategy

public TopologyBestSentryDetectionStrategy(EnvironmentChangeDetectionStrategy<E> rhs)
Method Detail

getClone

public EnvironmentChangeDetectionStrategy<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.