net.sourceforge.cilib.pso.dynamic
Class StandardChargedParticleInitialisationStrategy
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StandardChargedParticleInitialisationStrategy
public StandardChargedParticleInitialisationStrategy()
StandardChargedParticleInitialisationStrategy
public StandardChargedParticleInitialisationStrategy(StandardChargedParticleInitialisationStrategy copy)
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.