Evolvica Core API Version 0.6.2
Last Modified: June 29 2004

org.evolvica.core.eval
Class IntegerScore

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

public class IntegerScore
extends java.lang.Object
implements IScore

Integer score.

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

Field Summary
protected  int score
          Score value.
 
Constructor Summary
IntegerScore()
          Constructor.
IntegerScore(int score)
          Constructor with initial score.
 
Method Summary
 int getValue()
          Gets the value of the score as int.
 java.lang.Object getValueAsObject()
          Gets the value of the score as an Integer object.
 int intValue()
          Deprecated. use getValue()
 void setValue(int 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 int score
Score value.

Constructor Detail

IntegerScore

public IntegerScore()
Constructor. The score value is set to 0.


IntegerScore

public IntegerScore(int score)
Constructor with initial score.

Parameters:
score - score
Method Detail

getValue

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

Returns:
value of score

getValueAsObject

public java.lang.Object getValueAsObject()
Gets the value of the score as an Integer object.

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

setValue

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

Parameters:
value - new score value

intValue

public int intValue()
Deprecated. use getValue()

Gets the value of the score as int.

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