|
eaLib API Docs Last Modified : January 7 2002 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for fitness values. The fitness of an individual is represented by a float number. A bigger float number is a better fitness. The smallest possible fitness should be 0.0.
Field Summary | |
static long |
serialVersionUID
Serialization version identifier. |
Method Summary | |
float |
getValue()
Deprecated. replaced by value() due to consistency reasons compared to Score interface |
boolean |
isBetter(Fitness fn)
Test, if fitness is better than other fitness. |
boolean |
isEqual(Fitness fn)
Test, if fitness equals with other fitness. |
boolean |
isWorse(Fitness fn)
Test, if fitness is worse than other fitness. |
void |
setValue(float value)
Sets the fitness value. |
float |
value()
Gets the fitness value. |
Methods inherited from interface java.lang.Comparable |
compareTo |
Field Detail |
public static final long serialVersionUID
Method Detail |
public void setValue(float value)
value
- new fitness valuepublic float getValue()
public float value()
public boolean isBetter(Fitness fn)
fn
- fitness, to be compared withpublic boolean isWorse(Fitness fn)
fn
- other fitness, to be compared withpublic boolean isEqual(Fitness fn)
fn
- other fitness, to be compared with
|
eaLib API Docs Last Modified : January 7 2002 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |