Evolvica Core API Version 0.6.2
Last Modified: June 29 2004

org.evolvica.core.eval
Class FloatScore

java.lang.Object
  extended byorg.evolvica.core.eval.FloatScore
All Implemented Interfaces:
IScore, java.io.Serializable

public class FloatScore
extends java.lang.Object
implements IScore

Float score.

Since:
0.4.0
Version:
$Revision: 1.6 $ $Date: 2004/05/26 11:58:01 $
Author:
Andreas Rummler
See Also:
Serialized Form

Field Summary
protected  float score
          Score value.
 
Constructor Summary
FloatScore()
          Constructor.
FloatScore(float score)
          Constructor with initial score.
 
Method Summary
 float floatValue()
          Deprecated. use getValue()
 float getValue()
          Gets the value of the score as float.
 java.lang.Object getValueAsObject()
          Gets the value of the score as a Float object.
 void setValue(float value)
          Sets the value of this score object.
 java.lang.String toString()
          Returns a string representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

score

protected float score
Score value.

Constructor Detail

FloatScore

public FloatScore()
Constructor. The score value is set to 0.0.


FloatScore

public FloatScore(float score)
Constructor with initial score.

Parameters:
score - score
Method Detail

getValue

public float getValue()
Gets the value of the score as float.

Returns:
value of score

getValueAsObject

public java.lang.Object getValueAsObject()
Gets the value of the score as a Float object.

Specified by:
getValueAsObject in interface IScore
Returns:
value of score as Float

setValue

public void setValue(float value)
Sets the value of this score object.

Parameters:
value - new score value

floatValue

public float floatValue()
Deprecated. use getValue()

Gets the value of the score as float.

Returns:
value of score

toString

public java.lang.String toString()
Returns a string representation.

Returns:
string representation

Evolvica Core API Version 0.6.2
Last Modified: June 29 2004

Copyright © 2000-2004 Technical University of Ilmenau, Department Electronic Circuits and Systems