net.sourceforge.cilib.pso.velocityupdatestrategies
Class FIPSVelocityUpdate

java.lang.Object
  extended by net.sourceforge.cilib.pso.velocityupdatestrategies.StandardVelocityUpdate
      extended by net.sourceforge.cilib.pso.velocityupdatestrategies.FIPSVelocityUpdate
All Implemented Interfaces:
Serializable, VelocityUpdateStrategy, Cloneable

public class FIPSVelocityUpdate
extends StandardVelocityUpdate

Author:
Olusegun Olorunda
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sourceforge.cilib.pso.velocityupdatestrategies.StandardVelocityUpdate
cognitiveAcceleration, inertiaWeight, socialAcceleration, vMax
 
Constructor Summary
FIPSVelocityUpdate()
           
FIPSVelocityUpdate(FIPSVelocityUpdate copy)
           
 
Method Summary
 FIPSVelocityUpdate getClone()
          Clone the VelocityUpdateStrategy object.
 ControlParameter getRandomComponent()
           
 void setRandomComponent(ControlParameter randomComponent)
           
 void updateControlParameters(Particle particle)
          Update the associated ControlParameters for the VelocityUpdateStrategy.
 void updateVelocity(Particle particle)
          Perform the velocity update for the given Particle.
 
Methods inherited from class net.sourceforge.cilib.pso.velocityupdatestrategies.StandardVelocityUpdate
clamp, getCognitiveAcceleration, getInertiaWeight, getSocialAcceleration, getVMax, setCognitiveAcceleration, setInertiaWeight, setSocialAcceleration, setVMax
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FIPSVelocityUpdate

public FIPSVelocityUpdate()

FIPSVelocityUpdate

public FIPSVelocityUpdate(FIPSVelocityUpdate copy)
Method Detail

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.