|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.jswarm_pso.Particle
net.sourceforge.jswarm_pso.example_2.MyParticle
public class MyParticle
Simple particle example
| Field Summary | |
|---|---|
static int |
NUMBER_OF_DIMENTIONS
Number of dimentions for this particle |
(package private) double |
particleData
Totally useless, just to see how an example with local data works |
| Constructor Summary | |
|---|---|
MyParticle()
Default constructor |
|
| Method Summary | |
|---|---|
java.lang.String |
toString()
Convert to string() |
| Methods inherited from class net.sourceforge.jswarm_pso.Particle |
|---|
allocate, applyConstraints, copyPosition, copyPosition2Best, getBestFitness, getBestPosition, getDimention, getFitness, getPosition, getVelocity, init, selfFactory, setBestFitness, setBestPosition, setFitness, setPosition, setVelocity |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static int NUMBER_OF_DIMENTIONS
double particleData
| Constructor Detail |
|---|
public MyParticle()
| Method Detail |
|---|
public java.lang.String toString()
toString in class Particle
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||