net.sourceforge.cilib.pso.dynamic
Class StandardChargedParticleInitialisationStrategy

java.lang.Object
  extended by net.sourceforge.cilib.pso.dynamic.StandardChargedParticleInitialisationStrategy
All Implemented Interfaces:
Serializable, ChargedParticleInitialisationStrategy, Cloneable

public class StandardChargedParticleInitialisationStrategy
extends Object
implements ChargedParticleInitialisationStrategy

Author:
Anna Rakitianskaia
See Also:
Serialized Form

Constructor Summary
StandardChargedParticleInitialisationStrategy()
           
StandardChargedParticleInitialisationStrategy(StandardChargedParticleInitialisationStrategy copy)
           
 
Method Summary
 double getChargedRatio()
           
 double getChargeMagnitude()
           
 StandardChargedParticleInitialisationStrategy getClone()
          Clone the ChargedParticleInitialisationStrategy.
 void initialise(ChargedParticle particle)
          Initialise the Particle charge.
 void setChargedRatio(double chargedRatio)
           
 void setChargeMagnitude(double chargeMagnitude)
           
 void setPopulationSize(int populationSize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardChargedParticleInitialisationStrategy

public StandardChargedParticleInitialisationStrategy()

StandardChargedParticleInitialisationStrategy

public StandardChargedParticleInitialisationStrategy(StandardChargedParticleInitialisationStrategy copy)
Method Detail

getClone

public StandardChargedParticleInitialisationStrategy getClone()
Description copied from interface: ChargedParticleInitialisationStrategy
Clone the ChargedParticleInitialisationStrategy.

Specified by:
getClone in interface ChargedParticleInitialisationStrategy
Specified by:
getClone in interface Cloneable
Returns:
A copy of the ChargedParticleInitialisationStrategy.
See Also:
Object.clone()

initialise

public void initialise(ChargedParticle particle)
Description copied from interface: ChargedParticleInitialisationStrategy
Initialise the Particle charge.

Specified by:
initialise in interface ChargedParticleInitialisationStrategy
Parameters:
particle - The particle to initialise. The particle must be of type ChargedParticle.

getChargedRatio

public double getChargedRatio()
Returns:
the chargedRatio

setChargedRatio

public void setChargedRatio(double chargedRatio)
Parameters:
chargedRatio - the chargedRatio to set

getChargeMagnitude

public double getChargeMagnitude()
Returns:
the chargeMagnitude

setChargeMagnitude

public void setChargeMagnitude(double chargeMagnitude)
Parameters:
chargeMagnitude - the chargeMagnitude to set

setPopulationSize

public void setPopulationSize(int populationSize)
Parameters:
populationSize - the populationSize to set


Copyright © 2009 CIRG. All Rights Reserved.