net.sourceforge.cilib.pso.positionupdatestrategies
Class LinearPositionUpdateStrategy
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LinearPositionUpdateStrategy
public LinearPositionUpdateStrategy()
LinearPositionUpdateStrategy
public LinearPositionUpdateStrategy(LinearPositionUpdateStrategy copy)
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.