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

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

Deprecated. rather use RandomSentriesDetectionStrategy

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

Author:
Anna Rakitianskaia
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sourceforge.cilib.pso.dynamic.detectionstrategies.EnvironmentChangeDetectionStrategy
epsilon, interval
 
Constructor Summary
RandomSentryDetectionStrategy()
          Deprecated.  
RandomSentryDetectionStrategy(RandomSentryDetectionStrategy<E> copy)
          Deprecated.  
 
Method Summary
 boolean detect(E algorithm)
          Deprecated. Check for environment change: Pick the specified number of random particles (sentries) and evaluate their current positions.
 RandomSentryDetectionStrategy<E> getClone()
          Deprecated. Clone the EnvironmentChangeDetectionStrategy object.
 Random getRandomiser()
          Deprecated.  
 int getSentries()
          Deprecated.  
 double getTheta()
          Deprecated.  
 void setRandomiser(Random randomiser)
          Deprecated.  
 void setSentries(int sentries)
          Deprecated.  
 void setTheta(double theta)
          Deprecated.  
 
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

RandomSentryDetectionStrategy

public RandomSentryDetectionStrategy()
Deprecated. 

RandomSentryDetectionStrategy

public RandomSentryDetectionStrategy(RandomSentryDetectionStrategy<E> copy)
Deprecated. 
Method Detail

getClone

public RandomSentryDetectionStrategy<E> getClone()
Deprecated. 
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(E algorithm)
Deprecated. 
Check for environment change: Pick the specified number of random particles (sentries) and evaluate their current positions. If the difference between the old fitness and the newly generated one is significant (exceeds a predefined theta) for one or more of the sentry particles, assume that the environment has changed.

Specified by:
detect in class EnvironmentChangeDetectionStrategy<E extends PopulationBasedAlgorithm>
Parameters:
algorithm - PSO algorithm that operates in a dynamic environment
Returns:
true if any changes are detected, false otherwise

getRandomiser

public Random getRandomiser()
Deprecated. 
Returns:
the randomiser

setRandomiser

public void setRandomiser(Random randomiser)
Deprecated. 
Parameters:
randomiser - the randomiser to set

getSentries

public int getSentries()
Deprecated. 
Returns:
the sentries

setSentries

public void setSentries(int sentries)
Deprecated. 
Parameters:
sentries - the sentries to set

getTheta

public double getTheta()
Deprecated. 
Returns:
the theta

setTheta

public void setTheta(double theta)
Deprecated. 
Parameters:
theta - the theta to set


Copyright © 2009 CIRG. All Rights Reserved.