net.sourceforge.jswarm_pso.example_2
Class MyParticle

java.lang.Object
  extended by net.sourceforge.jswarm_pso.Particle
      extended by net.sourceforge.jswarm_pso.example_2.MyParticle

public class MyParticle
extends Particle

Simple particle example

Author:
Pablo Cingolani

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

NUMBER_OF_DIMENTIONS

public static int NUMBER_OF_DIMENTIONS
Number of dimentions for this particle


particleData

double particleData
Totally useless, just to see how an example with local data works

Constructor Detail

MyParticle

public MyParticle()
Default constructor

Method Detail

toString

public java.lang.String toString()
Convert to string()

Overrides:
toString in class Particle