|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Particle
Definition of a particle.
Method Summary | |
---|---|
Fitness |
getBestFitness()
Get the best Fitness for the particle. |
StructuredType |
getBestPosition()
Get the best position of the Particle. |
Particle |
getClone()
Make a clone of the Entity the exact semantics of the clone method will be defined by the classes that implements this interface. |
int |
getDimension()
Returns the dimension of the Entity. |
Fitness |
getFitness()
Returns the Entity fitness. |
Particle |
getNeighbourhoodBest()
Get the current best particle within the Particles neighbourhood. |
PersonalBestUpdateStrategy |
getPersonalBestUpdateStrategy()
Get the current strategy to perform personal best updates. |
StructuredType |
getPosition()
Get the current position of the Particle. |
PositionUpdateStrategy |
getPositionUpdateStrategy()
Get the current PositionUpdateStrategy of the Particle. |
StructuredType |
getVelocity()
Get the current velocity of the Particle. |
VelocityInitialisationStrategy |
getVelocityInitialisationStrategy()
Get the strategy for the intialisation of the velocity. |
VelocityUpdateStrategy |
getVelocityUpdateStrategy()
Get the strategy that will be used to update the velocity. |
void |
setNeighbourhoodBest(Particle particle)
Set the current neighbourhood best particle within the current neighbourhood. |
void |
setPersonalBestUpdateStrategy(PersonalBestUpdateStrategy personalBestUpdateStrategy)
Set the strategy to perform personal best updates. |
void |
setPositionUpdateStrategy(PositionUpdateStrategy positionUpdateStrategy)
Set the PositionUpdateStrategy to use for particle position updates. |
void |
setVelocityInitialisationStrategy(VelocityInitialisationStrategy velocityInitialisationStrategy)
Set the initialisation strategy for the Particles velocity. |
void |
setVelocityUpdateStrategy(VelocityUpdateStrategy velocityUpdateStrategy)
Set the VelocityUpdateStrategy to be used during velocity updates. |
void |
updateControlParameters()
Update all the ControlParameters that are maintained within the Particle. |
void |
updatePosition()
Update the current position of the Particle. |
void |
updateVelocity()
Update the velocity of the Particle. |
Methods inherited from interface net.sourceforge.cilib.entity.SocialEntity |
---|
getNeighbourhoodBestUpdateStrategy, getSocialBestFitness, setNeighbourhoodBestUpdateStrategy |
Methods inherited from interface net.sourceforge.cilib.entity.Entity |
---|
calculateFitness, calculateFitness, compareTo, getCandidateSolution, getFitnessCalculator, getId, getProperties, initialise, reinitialise, setCandidateSolution, setProperties |
Method Detail |
---|
Particle getClone()
getClone
in interface Cloneable
getClone
in interface Entity
Object.clone()
StructuredType getPosition()
StructuredType getBestPosition()
StructuredType getVelocity()
Particle getNeighbourhoodBest()
void setNeighbourhoodBest(Particle particle)
particle
- The particle to set as the neighbourhood best.int getDimension()
getDimension
in interface Entity
Fitness getFitness()
getFitness
in interface Entity
Fitness getBestFitness()
getBestFitness
in interface Entity
void updatePosition()
void updateVelocity()
void updateControlParameters()
VelocityUpdateStrategy getVelocityUpdateStrategy()
void setVelocityUpdateStrategy(VelocityUpdateStrategy velocityUpdateStrategy)
velocityUpdateStrategy
- the VelocityUpdateStrategy to use.VelocityInitialisationStrategy getVelocityInitialisationStrategy()
void setVelocityInitialisationStrategy(VelocityInitialisationStrategy velocityInitialisationStrategy)
velocityInitialisationStrategy
- The velocity initialisation strategy to set.PositionUpdateStrategy getPositionUpdateStrategy()
void setPositionUpdateStrategy(PositionUpdateStrategy positionUpdateStrategy)
positionUpdateStrategy
- The PositionUpdateStrategy to set.PersonalBestUpdateStrategy getPersonalBestUpdateStrategy()
PersonalBestUpdateStrategy
.void setPersonalBestUpdateStrategy(PersonalBestUpdateStrategy personalBestUpdateStrategy)
personalBestUpdateStrategy
- The instance to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |