|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sdt.ga.Fitness
Different GA's need to return different types of values. The variables to be returned are unique for every GA. Therefore for every new GA implementation , the user must write a class that extend Fitness.
Constructor Summary | |
Fitness()
Create an instance of the Fitness. |
Method Summary | |
java.lang.Object |
clone()
Implementation of the clone method. |
protected void |
finalize()
For garbage collection |
abstract double |
getFitnessValue()
Returns the fitness value. |
boolean |
isFitnessEvaluated()
returns if the fitness has been evaluated. |
static Fitness |
newInstance(GeneticAlgorithm ga)
creates a newInstace of a sub class from the super class |
void |
setFitnessEvaluated(boolean fitnessEvaluated)
sets the variable indicating the status of the fitness evaluation. |
abstract java.lang.String |
toString()
Returns a string representation of the fitness class. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public Fitness()
Method Detail |
public static Fitness newInstance(GeneticAlgorithm ga)
public void setFitnessEvaluated(boolean fitnessEvaluated)
public boolean isFitnessEvaluated()
public abstract double getFitnessValue()
public abstract java.lang.String toString()
public java.lang.Object clone()
protected void finalize() throws java.lang.Throwable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |