net.sourceforge.cilib.pso.dynamic.detectionstrategies
Class TopologyBestSentryDetectionStrategy<E extends PopulationBasedAlgorithm>
java.lang.Object
net.sourceforge.cilib.pso.dynamic.detectionstrategies.EnvironmentChangeDetectionStrategy<E>
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TopologyBestSentryDetectionStrategy
public TopologyBestSentryDetectionStrategy()
TopologyBestSentryDetectionStrategy
public TopologyBestSentryDetectionStrategy(EnvironmentChangeDetectionStrategy<E> rhs)
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.