mss.ea.eval
Class DoubleScore
java.lang.Object
|
+--mss.ea.eval.AbstractScore
|
+--mss.ea.eval.DoubleScore
- All Implemented Interfaces:
- java.lang.Comparable, Score, java.io.Serializable
- public class DoubleScore
- extends AbstractScore
Double score.
The higher the double value, the better the score.
- Since:
- 0.1
- Version:
- 0.1 (06-20-2001)
- Author:
- Andreas Rummler
- See Also:
- Serialized Form
Field Summary |
protected double |
score
Score value. |
Constructor Summary |
DoubleScore(double score)
Constructor with initial score. |
Method Summary |
int |
compareTo(java.lang.Object o)
Compares two scores.
|
double |
doubleValue()
Gets the value of the score as double. |
void |
setValue(double score)
Sets a new value. |
java.lang.String |
toString()
Returns a string representation. |
java.lang.Object |
value()
Gets the value of the score as a Double object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
score
protected double score
- Score value.
DoubleScore
public DoubleScore(double score)
- Constructor with initial score.
- Parameters:
score
- score
value
public java.lang.Object value()
- Gets the value of the score as a Double object.
- Overrides:
value
in class AbstractScore
- Returns:
- value of score as Double
setValue
public void setValue(double score)
- Sets a new value.
- Parameters:
score
- new value of score
doubleValue
public double doubleValue()
- Gets the value of the score as double.
- Returns:
- value of score
toString
public java.lang.String toString()
- Returns a string representation.
- Overrides:
toString
in class java.lang.Object
- Returns:
- string representation
compareTo
public int compareTo(java.lang.Object o)
- Compares two scores.
This method returns -1 if this score is better, 0 if both scores are equal and 1 if this score is worse.
- Overrides:
compareTo
in class AbstractScore
- Parameters:
o
- score to compare to- Returns:
- result of comparison
Copyright © 2000-2001 Technical University of Ilmenau, Department ESS