net.sourceforge.cilib.pso.positionupdatestrategies
Class LinearPositionUpdateStrategy

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

public class LinearPositionUpdateStrategy
extends Object
implements PositionUpdateStrategy

This sets the position to the velocity.

Author:
Andries Engelbrecht
See Also:
Serialized Form

Constructor Summary
LinearPositionUpdateStrategy()
           
LinearPositionUpdateStrategy(LinearPositionUpdateStrategy copy)
           
 
Method Summary
 LinearPositionUpdateStrategy 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

LinearPositionUpdateStrategy

public LinearPositionUpdateStrategy()

LinearPositionUpdateStrategy

public LinearPositionUpdateStrategy(LinearPositionUpdateStrategy copy)
Method Detail

getClone

public LinearPositionUpdateStrategy getClone()
Description copied from interface: PositionUpdateStrategy
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)
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.