|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--gpsys.Fitness
Represents the fitness of an individual. This class must be subclassed to define the fitness measure for your application.
| Constructor Summary | |
Fitness()
|
|
| Method Summary | |
abstract void |
add(Fitness f)
Add a fitness value to this fitness value. |
abstract void |
divide(int divisor)
Divide the fitness by the specified integer. |
abstract boolean |
equals(Fitness f)
Tests if this fitness is equal to another fitness. |
abstract boolean |
greaterThan(Fitness f)
Tests if this fitness value is greater than another fitness value. |
abstract Fitness |
instance()
Creates a new instance of the Fitness object with a default fitness. |
abstract Fitness |
instance(GPParameters gpParameters,
Individual i)
Creates a new instance of the Fitness object which represents the fitness of the specified individual. |
abstract boolean |
lessThan(Fitness f)
Tests if this fitness is less than another fitness. |
abstract boolean |
terminationCondition()
Tests whether this fitness meets the termination criteria. |
abstract java.lang.String |
toString()
Converts the fitness into a String suitable for printing. |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public Fitness()
| Method Detail |
public abstract void add(Fitness f)
f - the fitness value to be added.public abstract void divide(int divisor)
divisor - the integer to divide the fitness by.public abstract boolean equals(Fitness f)
f - the fitness with which to compare.public abstract boolean lessThan(Fitness f)
f - the fitness with which to compare.public abstract boolean greaterThan(Fitness f)
f - the fitness with which to compare.public abstract Fitness instance()
public abstract Fitness instance(GPParameters gpParameters,
Individual i)
gpParameters - the parameters for this GP run.i - the individual to be evaluated.public abstract boolean terminationCondition()
public abstract java.lang.String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||