|
||||||||||
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.ec.Individual
public class Individual
Field Summary | |
---|---|
protected int |
dimension
|
Constructor Summary | |
---|---|
Individual()
Create an instance of Individual. |
|
Individual(Individual copy)
Copy constructor. |
Method Summary | |
---|---|
void |
calculateFitness()
Calculate the fitness of the Entity incrementing the
number of fitness evaluations for the algorithm. |
void |
calculateFitness(boolean count)
Calculate the fitness of the Entity . |
int |
compareTo(Entity o)
|
boolean |
equals(Object object)
It doesn;t make sense to compare the meta data of the entity. |
Type |
getBehaviouralParameters()
Return the Entity associated behavioural parameters. |
Individual |
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. |
int |
hashCode()
|
void |
initialise(OptimisationProblem problem)
Intialise the Entity to something meaningful and within the problem space. |
void |
reinitialise()
Re-initialise the given Entity within the defined domain. |
void |
resetFitness()
Resets the fitness to InferiorFitness . |
void |
setBehaviouralParameters(Type type)
Set the behavioural parameters for the Entity. |
void |
setCandidateSolution(StructuredType type)
Set the Type maintained by this Entitys CandidateSolution. |
void |
setDimension(int dim)
Set the current dimension value for the current Individual. |
String |
toString()
Create a textual representation of the current Individual. |
Methods inherited from class net.sourceforge.cilib.entity.AbstractEntity |
---|
getBestFitness, getCandidateSolution, getFitness, getFitnessCalculator, getId, getProperties, setFitnessCalculator, setProperties |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int dimension
Constructor Detail |
---|
public Individual()
public Individual(Individual copy)
copy
- The Individual to copy.Method Detail |
---|
public Individual getClone()
Object.clone()
public boolean equals(Object object)
equals
in class AbstractEntity
object
- The object to compare equality.public int hashCode()
hashCode
in class AbstractEntity
public void resetFitness()
InferiorFitness
.
public void initialise(OptimisationProblem problem)
problem
- The OptimisationProblem to based the initialisation on.public int compareTo(Entity o)
public void setCandidateSolution(StructuredType type)
setCandidateSolution
in interface CandidateSolution
setCandidateSolution
in interface Entity
setCandidateSolution
in class AbstractEntity
type
- The Type that will be the new value of the
Entity CandidateSolution.public void calculateFitness()
Entity
incrementing the
number of fitness evaluations for the algorithm.
public void calculateFitness(boolean count)
Entity
. This method may or may not
increment the number of fitness evaluations of the algorithm.
count
- Add or do not add this fitness evaluation to the algorithm global count.public int getDimension()
public void setDimension(int dim)
dim
- The dimension value to set.public String toString()
toString
in class Object
public Type getBehaviouralParameters()
public void setBehaviouralParameters(Type type)
type
- The behavioural parameters to set.public void reinitialise()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |