net.sourceforge.cilib.pso.velocityupdatestrategies
Class BareBonesVelocityUpdateStrategy

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

public class BareBonesVelocityUpdateStrategy
extends Object
implements VelocityUpdateStrategy

The VelocityUpdateStrategy strategy for the Bare Bones PSO as defined by Kennedy. TODO: get the required references

Author:
Gary Pampara, Andries Engelbrecht
See Also:
Serialized Form

Constructor Summary
BareBonesVelocityUpdateStrategy()
           
BareBonesVelocityUpdateStrategy(BareBonesVelocityUpdateStrategy copy)
           
 
Method Summary
 BareBonesVelocityUpdateStrategy getClone()
          Clone the VelocityUpdateStrategy object.
 ControlParameter getCognitiveAcceleration()
           
 ControlParameter getSocialAcceleration()
           
 void setCognitiveAcceleration(ControlParameter cognitiveAcceleration)
           
 void setSocialAcceleration(ControlParameter socialAcceleration)
           
 void updateControlParameters(Particle particle)
          Update the needed control parameters for the VelocityUpdate, if needed.
 void updateVelocity(Particle particle)
          Perform the velocity update operation on the specified Particle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BareBonesVelocityUpdateStrategy

public BareBonesVelocityUpdateStrategy()

BareBonesVelocityUpdateStrategy

public BareBonesVelocityUpdateStrategy(BareBonesVelocityUpdateStrategy copy)
Method Detail

getClone

public BareBonesVelocityUpdateStrategy getClone()
Description copied from interface: VelocityUpdateStrategy
Clone the VelocityUpdateStrategy object.

Specified by:
getClone in interface VelocityUpdateStrategy
Specified by:
getClone in interface Cloneable
Returns:
A cloned VelocityUpdateStrategy
See Also:
Object.clone()

updateVelocity

public void updateVelocity(Particle particle)
Description copied from interface: VelocityUpdateStrategy
Perform the velocity update operation on the specified Particle.

Specified by:
updateVelocity in interface VelocityUpdateStrategy
Parameters:
particle - The Particle to apply the operation on.

updateControlParameters

public void updateControlParameters(Particle particle)
Description copied from interface: VelocityUpdateStrategy
Update the needed control parameters for the VelocityUpdate, if needed.

Specified by:
updateControlParameters in interface VelocityUpdateStrategy
Parameters:
particle - The particle for whom the VelocityUpdateStrategy parameters need to be updated.

getCognitiveAcceleration

public ControlParameter getCognitiveAcceleration()

setCognitiveAcceleration

public void setCognitiveAcceleration(ControlParameter cognitiveAcceleration)

getSocialAcceleration

public ControlParameter getSocialAcceleration()

setSocialAcceleration

public void setSocialAcceleration(ControlParameter socialAcceleration)


Copyright © 2009 CIRG. All Rights Reserved.