net.sourceforge.cilib.pso.moo.guideupdatestrategies
Class StandardGuideUpdateStrategy
java.lang.Object
net.sourceforge.cilib.pso.moo.guideupdatestrategies.StandardGuideUpdateStrategy
- All Implemented Interfaces:
- Serializable, GuideUpdateStrategy, Cloneable
public class StandardGuideUpdateStrategy
- extends Object
- implements GuideUpdateStrategy
This the standard GuideUpdateStrategy
in that it always updates the
given particle's guide.
- Author:
- Wiehann Matthysen
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StandardGuideUpdateStrategy
public StandardGuideUpdateStrategy()
StandardGuideUpdateStrategy
public StandardGuideUpdateStrategy(StandardGuideUpdateStrategy copy)
getClone
public StandardGuideUpdateStrategy 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 GuideUpdateStrategy
- Specified by:
getClone
in interface Cloneable
- Returns:
- An exact clone of the current object instance.
- See Also:
Object.clone()
updateGuide
public void updateGuide(Particle particle,
EntityType.Particle.Guide guideType,
Vector newGuide)
- Description copied from interface:
GuideUpdateStrategy
- Determines if
particle
's guide (either local or global depending on guideType
)
should be updated, and updates it with newGuide
.
- Specified by:
updateGuide
in interface GuideUpdateStrategy
- 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.