eaLib API Docs
Last Modified : January 7 2002

mss.ea.core
Interface Score

All Superinterfaces:
java.lang.Comparable, java.io.Serializable
All Known Implementing Classes:
AbstractScore

public interface Score
extends java.lang.Comparable, java.io.Serializable

Interface for scores of individuals.

Since:
0.1
Version:
$Revision: 1.3 $ $Date: 2001/11/22 12:46:43 $
Author:
Andreas Rummler

Field Summary
static long serialVersionUID
          Serialization version identifier.
 
Method Summary
 boolean isBetter(Score s)
          Comparison, if this score is better than another.
 boolean isEqual(Score s)
          Test for equality.
 boolean isWorse(Score s)
          Comparison, if this score is worse than another.
 java.lang.Object value()
          Gets the value of the score as an object.
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

serialVersionUID

public static final long serialVersionUID
Serialization version identifier.
Method Detail

isBetter

public boolean isBetter(Score s)
Comparison, if this score is better than another.
Parameters:
s - score to compare with
Returns:
result of comparison

isWorse

public boolean isWorse(Score s)
Comparison, if this score is worse than another.
Parameters:
s - score to compare to
Returns:
result of comparison

isEqual

public boolean isEqual(Score s)
Test for equality.
Parameters:
s - score to compare with
Returns:
result of test

value

public java.lang.Object value()
Gets the value of the score as an object. In subclasses there can be methods like floatValue() to get the value without a cast.
Returns:
value of the score

eaLib API Docs
Last Modified : January 7 2002

Copyright © 2000-2001 Technical University of Ilmenau, Department ESS