net.sourceforge.cilib.pso.positionupdatestrategies
Class IterationNeighbourhoodBestUpdateStrategy

java.lang.Object
  extended by net.sourceforge.cilib.pso.positionupdatestrategies.IterationNeighbourhoodBestUpdateStrategy
All Implemented Interfaces:
Serializable, NeighbourhoodBestUpdateStrategy, Cloneable

public class IterationNeighbourhoodBestUpdateStrategy
extends Object
implements NeighbourhoodBestUpdateStrategy

Author:
Gary Pampara
See Also:
Serialized Form

Constructor Summary
IterationNeighbourhoodBestUpdateStrategy()
           
 
Method Summary
 IterationNeighbourhoodBestUpdateStrategy getClone()
          Create a cloned copy of the current object and return it.
 Fitness getSocialBestFitness(Entity entity)
          Get the social best fitness (neighbourhood best) of the given Entity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IterationNeighbourhoodBestUpdateStrategy

public IterationNeighbourhoodBestUpdateStrategy()
Method Detail

getClone

public IterationNeighbourhoodBestUpdateStrategy getClone()
Create a cloned copy of the current object and return it. In general the created copy will be a deep copy of the provided instance. As a result this operation an be quite expensive if used incorrectly.

Specified by:
getClone in interface NeighbourhoodBestUpdateStrategy
Specified by:
getClone in interface Cloneable
Returns:
An exact clone of the current object instance.
See Also:
Object.clone()

getSocialBestFitness

public Fitness getSocialBestFitness(Entity entity)
Get the social best fitness (neighbourhood best) of the given Entity.

Specified by:
getSocialBestFitness in interface NeighbourhoodBestUpdateStrategy
Parameters:
entity - The Entity to determine the social best fitness from.
Returns:
The social best (neighbourhood best) Fitness.


Copyright © 2009 CIRG. All Rights Reserved.