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

java.lang.Object
  extended by net.sourceforge.cilib.pso.dynamic.detectionstrategies.EnvironmentChangeDetectionStrategy<E>
      extended by net.sourceforge.cilib.pso.dynamic.detectionstrategies.PeriodicDetectionStrategy<E>
All Implemented Interfaces:
Serializable, Cloneable

public class PeriodicDetectionStrategy<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
PeriodicDetectionStrategy()
           
PeriodicDetectionStrategy(EnvironmentChangeDetectionStrategy<E> rhs)
           
 
Method Summary
 boolean detect(PopulationBasedAlgorithm algorithm)
          Check the environment in which the specified PSO algorithm is running for changes.
 PeriodicDetectionStrategy<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

PeriodicDetectionStrategy

public PeriodicDetectionStrategy()

PeriodicDetectionStrategy

public PeriodicDetectionStrategy(EnvironmentChangeDetectionStrategy<E> rhs)
Method Detail

getClone

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