|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.jswarm_pso.ParticleUpdate
public abstract class ParticleUpdate
Particle update strategy Every Swarm.evolve() itereation the following methods are called - begin(Swarm) : Once at the begining of each iteration - update(Swarm,Particle) : Once for each particle - end(Swarm) : Once at the end of each iteration
| Constructor Summary | |
|---|---|
ParticleUpdate(Particle particle)
Constructor |
|
| Method Summary | |
|---|---|
void |
begin(Swarm swarm)
This method is called at the begining of each iteration Initialize random vectors use for local and global updates (rlocal[] and rother[]) |
void |
end(Swarm swarm)
This method is called at the end of each iteration |
abstract void |
update(Swarm swarm,
Particle particle)
Update particle's velocity and position |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ParticleUpdate(Particle particle)
particle - : Sample of particles that will be updated later| Method Detail |
|---|
public void begin(Swarm swarm)
public abstract void update(Swarm swarm,
Particle particle)
public void end(Swarm swarm)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||