Evolvica Core API Version 0.6.2
Last Modified: June 29 2004

org.evolvica.core.eval
Class LongScore

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

public class LongScore
extends java.lang.Object
implements IScore

Long 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  long score
          Score value.
 
Constructor Summary
LongScore()
          Constructor.
LongScore(long score)
          Constructor with initial score.
 
Method Summary
 long getValue()
          Gets the value of the score as long.
 java.lang.Object getValueAsObject()
          Gets the value of the score as a Long object.
 long longValue()
          Deprecated. use getValue()
 void setValue(long 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 long score
Score value.

Constructor Detail

LongScore

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


LongScore

public LongScore(long score)
Constructor with initial score.

Parameters:
score - score
Method Detail

getValue

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

Returns:
value of score

getValueAsObject

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

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

setValue

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

Parameters:
value - new score value

longValue

public long longValue()
Deprecated. use getValue()

Gets the value of the score as long.

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