net.sourceforge.cilib.pso.velocityupdatestrategies
Class FIPSVelocityUpdate
java.lang.Object
net.sourceforge.cilib.pso.velocityupdatestrategies.StandardVelocityUpdate
net.sourceforge.cilib.pso.velocityupdatestrategies.FIPSVelocityUpdate
- All Implemented Interfaces:
- Serializable, VelocityUpdateStrategy, Cloneable
public class FIPSVelocityUpdate
- extends StandardVelocityUpdate
- Author:
- Olusegun Olorunda
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FIPSVelocityUpdate
public FIPSVelocityUpdate()
FIPSVelocityUpdate
public FIPSVelocityUpdate(FIPSVelocityUpdate copy)
getClone
public FIPSVelocityUpdate getClone()
- Description copied from class:
StandardVelocityUpdate
- 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)
- Description copied from class:
StandardVelocityUpdate
- 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.
getRandomComponent
public ControlParameter getRandomComponent()
- Returns:
- the randomComponent
setRandomComponent
public void setRandomComponent(ControlParameter randomComponent)
- Parameters:
randomComponent
- the randomComponent to set
updateControlParameters
public void updateControlParameters(Particle particle)
- Description copied from class:
StandardVelocityUpdate
- Update the associated ControlParameters for the VelocityUpdateStrategy.
Update the needed control parameters for the VelocityUpdate,
if needed.
- Specified by:
updateControlParameters
in interface VelocityUpdateStrategy
- Overrides:
updateControlParameters
in class StandardVelocityUpdate
- Parameters:
particle
- The particle for whom the VelocityUpdateStrategy parameters need to be updated.
Copyright © 2009 CIRG. All Rights Reserved.