net.sourceforge.cilib.pso.positionupdatestrategies
Interface NeighbourhoodBestUpdateStrategy

All Superinterfaces:
Cloneable, Serializable
All Known Implementing Classes:
IterationNeighbourhoodBestUpdateStrategy, MemoryNeighbourhoodBestUpdateStrategy

public interface NeighbourhoodBestUpdateStrategy
extends Serializable, Cloneable

Interface specifying the manner in which the neighbourhood best of the Entity is obtained.

Author:
Gary Pampara

Method Summary
 NeighbourhoodBestUpdateStrategy 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.
 

Method Detail

getClone

NeighbourhoodBestUpdateStrategy 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 Cloneable
Returns:
An exact clone of the current object instance.
See Also:
Object.clone()

getSocialBestFitness

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

Parameters:
entity - The Entity to determine the social best fitness from.
Returns:
The social best (neighbourhood best) Fitness.


Copyright © 2009 CIRG. All Rights Reserved.