net.sourceforge.cilib.pso.positionupdatestrategies
Interface PersonalBestUpdateStrategy

All Superinterfaces:
Cloneable, Serializable
All Known Implementing Classes:
BoundedPersonalBestUpdateStrategy, StandardPersonalBestUpdateStrategy

public interface PersonalBestUpdateStrategy
extends Cloneable

Update the personal best of the particle. Updates are done in a variety of manners, refer to implmentations for details.

Author:
gpampara

Method Summary
 PersonalBestUpdateStrategy getClone()
          Create a cloned copy of the current object and return it.
 void updatePersonalBest(Particle particle)
          Update the personal best of the provided Particle.
 

Method Detail

getClone

PersonalBestUpdateStrategy 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()

updatePersonalBest

void updatePersonalBest(Particle particle)
Update the personal best of the provided Particle.

Parameters:
particle - The particle to update.


Copyright © 2009 CIRG. All Rights Reserved.