|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlio.search.pso.contchain.StdContParticleGenerator
public class StdContParticleGenerator
This class allows generating StdContParticles. It also provides access to configure the common properties of the particles.
StdContParticle
Constructor Summary | |
---|---|
StdContParticleGenerator()
|
Method Summary | |
---|---|
Particle[] |
generateSwarm(int nParticles)
Generates a swarm of standard real particles |
double |
getCognitive()
|
double |
getConstraint()
|
LiOResourceDefinition |
getDefinition()
Return a LiOResDescription object which holds the name and all parameters that describe the resource. |
Generator |
getGenerator()
|
double |
getInertia()
|
double |
getSocial()
|
void |
getTaskInformation(LiOTask task)
Gets the necessary information from the task |
double |
getVmax()
|
void |
setCognitive(double cognitive)
|
void |
setConstraint(double constraint)
|
void |
setGenerator(Generator generator)
|
void |
setInertia(double inertia)
|
void |
setSocial(double social)
|
void |
setVmax(double vmax)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StdContParticleGenerator()
Method Detail |
---|
public void getTaskInformation(LiOTask task)
getTaskInformation
in interface LiODependentResource
task
- Information concerning to the problem which is being solved.public Particle[] generateSwarm(int nParticles)
generateSwarm
in interface SwarmGenerator
nParticles
- Number of particles to be generated.
public LiOResourceDefinition getDefinition()
getDefinition
in interface LiOResource
public double getCognitive()
public void setCognitive(double cognitive)
cognitive
- the cognitive component of velocity updating.public double getConstraint()
public void setConstraint(double constraint)
inertia
- Constraint for velocity updatingpublic double getSocial()
public void setSocial(double social)
social
- Social component of velocity updatingpublic double getVmax()
public void setVmax(double vmax)
vmax
- Max velocity factor. If 1, it is equal to the rangepublic double getInertia()
public void setInertia(double inertia)
inertia
- Weight of the current velocity in velocity updatingpublic Generator getGenerator()
public void setGenerator(Generator generator)
Generator
- of positions
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |