net.sourceforge.cilib.pso.moo.guideselectionstrategies
Class PBestGuideSelectionStrategy

java.lang.Object
  extended by net.sourceforge.cilib.pso.moo.guideselectionstrategies.PBestGuideSelectionStrategy
All Implemented Interfaces:
Serializable, GuideSelectionStrategy, Cloneable

public class PBestGuideSelectionStrategy
extends Object
implements GuideSelectionStrategy

A concrete implementation of GuideSelectionStrategy where the personal best position of a particle gets selected as a guide (usually local guide).

Author:
Wiehann Matthysen
See Also:
Serialized Form

Constructor Summary
PBestGuideSelectionStrategy()
           
PBestGuideSelectionStrategy(PBestGuideSelectionStrategy copy)
           
 
Method Summary
 PBestGuideSelectionStrategy getClone()
          Create a cloned copy of the current object and return it.
 Vector selectGuide(Particle particle)
          Selects a guide for particle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PBestGuideSelectionStrategy

public PBestGuideSelectionStrategy()

PBestGuideSelectionStrategy

public PBestGuideSelectionStrategy(PBestGuideSelectionStrategy copy)
Method Detail

getClone

public PBestGuideSelectionStrategy 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 GuideSelectionStrategy
Specified by:
getClone in interface Cloneable
Returns:
An exact clone of the current object instance.
See Also:
Object.clone()

selectGuide

public Vector selectGuide(Particle particle)
Description copied from interface: GuideSelectionStrategy
Selects a guide for particle.

Specified by:
selectGuide in interface GuideSelectionStrategy
Parameters:
particle - The particle who's guide will be selected.
Returns:
The selected guide.


Copyright © 2009 CIRG. All Rights Reserved.