|
||||||||||
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.entity.Harmony
public class Harmony
Entity definition for a Harmony.
Constructor Summary | |
---|---|
Harmony()
|
|
Harmony(Harmony copy)
|
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. |
Harmony |
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. |
Methods inherited from class net.sourceforge.cilib.entity.AbstractEntity |
---|
getBestFitness, getCandidateSolution, getFitness, getFitnessCalculator, getId, getProperties, setCandidateSolution, setFitnessCalculator, setProperties |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Harmony()
public Harmony(Harmony copy)
Method Detail |
---|
public Harmony getClone()
Object.clone()
public boolean equals(Object object)
equals
in class AbstractEntity
object
- The object to compare.public int hashCode()
hashCode
in class AbstractEntity
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 compareTo(Entity o)
public int getDimension()
public void initialise(OptimisationProblem problem)
problem
- The OptimisationProblem to based the initialisation on.public void reinitialise()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |