net.sourceforge.cilib.pso.moo.guideupdatestrategies
Interface GuideUpdateStrategy

All Superinterfaces:
Cloneable, Serializable
All Known Implementing Classes:
DominantGuideUpdateStrategy, StandardGuideUpdateStrategy

public interface GuideUpdateStrategy
extends Cloneable

This class is used in combination with GuideSelectionStrategy to determine when and if a particle's guides get updated.

Author:
Wiehann Matthysen

Method Summary
 GuideUpdateStrategy getClone()
          Create a cloned copy of the current object and return it.
 void updateGuide(Particle particle, EntityType.Particle.Guide guideType, Vector newGuide)
          Determines if particle's guide (either local or global depending on guideType) should be updated, and updates it with newGuide.
 

Method Detail

getClone

GuideUpdateStrategy getClone()
Description copied from interface: Cloneable
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()

updateGuide

void updateGuide(Particle particle,
                 EntityType.Particle.Guide guideType,
                 Vector newGuide)
Determines if particle's guide (either local or global depending on guideType) should be updated, and updates it with newGuide.

Parameters:
particle - The particle who's guide is to be updated.
guideType - If the local or global guide should be updated.
newGuide - The new guide that should replace the old guide, if it is to be updated.


Copyright © 2009 CIRG. All Rights Reserved.