|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Entity
This is the super interface which all corresponding entity implementation and extending interfaces, for use in population based algorithms, must implement/extend from.
| 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)
|
Fitness |
getBestFitness()
Return the best fitness associated with this Entity, provided a best fitness is defined on the Entity. |
StructuredType |
getCandidateSolution()
Get the candidate solution of the entity. |
Entity |
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. |
FitnessCalculator |
getFitnessCalculator()
Get the current FitnessCalculator for the current Entity. |
long |
getId()
Get the identifier associated with the Entity instance. |
Blackboard<Enum<?>,Type> |
getProperties()
Get the properties associate with the Entity. |
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 |
setCandidateSolution(StructuredType type)
Set the candidate solution of the current Entity to the provided Type. |
void |
setProperties(Blackboard<Enum<?>,Type> properties)
Set the properties for the current Entity. |
| Method Detail |
|---|
Entity getClone()
getClone in interface CloneableObject.clone()int compareTo(Entity o)
compareTo in interface Comparable<Entity>StructuredType getCandidateSolution()
void setCandidateSolution(StructuredType type)
type - the Type to be set as the contents of the Entity.void calculateFitness()
Entity incrementing the
number of fitness evaluations for the algorithm.
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.Fitness getFitness()
Fitness getBestFitness()
void initialise(OptimisationProblem problem)
problem - The OptimisationProblem to based the initialisation on.int getDimension()
void reinitialise()
Blackboard<Enum<?>,Type> getProperties()
Entity.
void setProperties(Blackboard<Enum<?>,Type> properties)
Entity.
properties - The properties to set.long getId()
Entity instance.
FitnessCalculator getFitnessCalculator()
FitnessCalculator for the current Entity.
FitnessCalculator associated with this Entity.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||