net.sourceforge.cilib.pso.positionupdatestrategies
Class DEPositionUpdateStrategy

java.lang.Object
  extended by net.sourceforge.cilib.pso.positionupdatestrategies.DEPositionUpdateStrategy
All Implemented Interfaces:
Serializable, PositionUpdateStrategy, Cloneable

public class DEPositionUpdateStrategy
extends Object
implements PositionUpdateStrategy

Implementation of the DE PSO of Hendtlass. TODO: can the DE strategies be incorporated somehow?

Author:
Andries Engelbrecht
See Also:
Serialized Form

Constructor Summary
DEPositionUpdateStrategy()
           
DEPositionUpdateStrategy(DEPositionUpdateStrategy copy)
           
 
Method Summary
 DEPositionUpdateStrategy getClone()
          Clone the stategy by creating a new object with the same contents and values as the current object.
 void updatePosition(Particle particle)
          Update the position of the Particle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DEPositionUpdateStrategy

public DEPositionUpdateStrategy()

DEPositionUpdateStrategy

public DEPositionUpdateStrategy(DEPositionUpdateStrategy copy)
Method Detail

getClone

public DEPositionUpdateStrategy getClone()
Clone the stategy by creating a new object with the same contents and values as the current object.

Specified by:
getClone in interface PositionUpdateStrategy
Specified by:
getClone in interface Cloneable
Returns:
A clone of the current PositionUpdateStrategy
See Also:
Object.clone()

updatePosition

public void updatePosition(Particle particle)
Description copied from interface: PositionUpdateStrategy
Update the position of the Particle.

Specified by:
updatePosition in interface PositionUpdateStrategy
Parameters:
particle - The Particle to perform the position update on.


Copyright © 2009 CIRG. All Rights Reserved.