|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.cilib.entity.AbstractEntity
net.sourceforge.cilib.pso.particle.AbstractParticle
net.sourceforge.cilib.pso.particle.ParticleDecorator
net.sourceforge.cilib.pso.particle.DeviationDecorator
public class DeviationDecorator
| Field Summary |
|---|
| Fields inherited from class net.sourceforge.cilib.pso.particle.AbstractParticle |
|---|
neighbourhoodBestUpdateStrategy, personalBestUpdateStrategy, positionInitialisationStrategy, positionUpdateStrategy, velocityInitialisationStrategy, velocityUpdateStrategy |
| Constructor Summary | |
|---|---|
DeviationDecorator(Particle target,
int observations)
|
|
| Method Summary | |
|---|---|
void |
calculateFitness()
Calculate the fitness of the Entity incrementing the
number of fitness evaluations for the algorithm. |
int |
compareTo(Entity o)
|
boolean |
equals(Object object)
It doesn;t make sense to compare the meta data of the entity. |
static DeviationDecorator |
extract(Particle particle)
Deprecated. |
DeviationDecorator |
getClone()
Make a clone of the Entity the exact semantics of the clone method will be defined by the classes that implements this interface. |
double |
getFitnessDeviation()
|
double |
getPositionDeviation()
|
int |
hashCode()
|
void |
initialise(OptimisationProblem problem)
The initialise method overrides the parent class initialise method. |
void |
reset()
|
void |
updatePosition()
Update the position of the Particle. |
| Methods inherited from class net.sourceforge.cilib.pso.particle.ParticleDecorator |
|---|
calculateFitness, getBehaviouralParameters, getBestFitness, getBestPosition, getCandidateSolution, getDimension, getFitness, getId, getNeighbourhoodBest, getPosition, getTarget, getVelocity, getVelocityUpdateStrategy, reinitialise, setBehaviouralParameters, setCandidateSolution, setDimension, setNeighbourhoodBest, setTarget, setVelocityUpdateStrategy, updateControlParameters, updateVelocity |
| Methods inherited from class net.sourceforge.cilib.entity.AbstractEntity |
|---|
getFitnessCalculator, getProperties, setFitnessCalculator, setProperties |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sourceforge.cilib.entity.Entity |
|---|
getFitnessCalculator, getProperties, setProperties |
| Constructor Detail |
|---|
public DeviationDecorator(Particle target,
int observations)
| Method Detail |
|---|
public DeviationDecorator getClone()
getClone in interface EntitygetClone in interface ParticlegetClone in interface CloneablegetClone in class ParticleDecoratorObject.clone()public boolean equals(Object object)
AbstractParticle
equals in class ParticleDecoratorobject - The object to compare equality.public int hashCode()
AbstractParticle
hashCode in class ParticleDecoratorpublic void initialise(OptimisationProblem problem)
initialise in interface Entityinitialise in class ParticleDecoratorproblem - i - public void updatePosition()
updatePosition in interface ParticleupdatePosition in class ParticleDecoratorpublic double getFitnessDeviation()
public double getPositionDeviation()
public void reset()
@Deprecated public static DeviationDecorator extract(Particle particle)
public int compareTo(Entity o)
AbstractParticle
compareTo in interface Comparable<Entity>compareTo in interface EntitycompareTo in class ParticleDecoratorpublic void calculateFitness()
AbstractParticleEntity incrementing the
number of fitness evaluations for the algorithm.
calculateFitness in interface EntitycalculateFitness in class AbstractParticle
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||