net.sourceforge.cilib.pso.velocityupdatestrategies
Class CoherenceVelocityUpdate
java.lang.Object
net.sourceforge.cilib.pso.velocityupdatestrategies.StandardVelocityUpdate
net.sourceforge.cilib.pso.velocityupdatestrategies.CoherenceVelocityUpdate
- All Implemented Interfaces:
- Serializable, VelocityUpdateStrategy, Cloneable
public class CoherenceVelocityUpdate
- extends StandardVelocityUpdate
Velocity update for the Coherence PSO.
- Author:
- Daniel Lowes
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CoherenceVelocityUpdate
public CoherenceVelocityUpdate()
- Create an instance of CoherenceVelocityUpdate.
CoherenceVelocityUpdate
public CoherenceVelocityUpdate(CoherenceVelocityUpdate copy)
- Copy constructor. Create a copy of the given instance.
- Parameters:
copy
- The instance to copy.
getClone
public CoherenceVelocityUpdate getClone()
- Clone the VelocityUpdateStrategy object.
- Specified by:
getClone
in interface VelocityUpdateStrategy
- Specified by:
getClone
in interface Cloneable
- Overrides:
getClone
in class StandardVelocityUpdate
- Returns:
- A cloned VelocityUpdateStrategy
- See Also:
Object.clone()
updateVelocity
public void updateVelocity(Particle particle)
- Perform the velocity update for the given Particle.
- Specified by:
updateVelocity
in interface VelocityUpdateStrategy
- Overrides:
updateVelocity
in class StandardVelocityUpdate
- Parameters:
particle
- The Particle velocity that should be updated.
Copyright © 2009 CIRG. All Rights Reserved.