|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.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 Entity
getClone
in interface Particle
getClone
in interface Cloneable
getClone
in class ParticleDecorator
Object.clone()
public boolean equals(Object object)
AbstractParticle
equals
in class ParticleDecorator
object
- The object to compare equality.public int hashCode()
AbstractParticle
hashCode
in class ParticleDecorator
public void initialise(OptimisationProblem problem)
initialise
in interface Entity
initialise
in class ParticleDecorator
problem
- i
- public void updatePosition()
updatePosition
in interface Particle
updatePosition
in class ParticleDecorator
public 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 Entity
compareTo
in class ParticleDecorator
public void calculateFitness()
AbstractParticle
Entity
incrementing the
number of fitness evaluations for the algorithm.
calculateFitness
in interface Entity
calculateFitness
in class AbstractParticle
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |