|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--gpsys.Primitive
|
+--gpsys.Terminal
|
+--gpsys.primitives.Zero
<typeX> ZeroZero is a generic Terminal which which represents the constant value zero. Zero needs to be instantiated to return values for a particular type. Valid types include BYTE, SHORT, INT, LONG, FLOAT and DOUBLE.
Type,
Primitive,
Terminal, Serialized Form| Fields inherited from class gpsys.Primitive |
type |
| Constructor Summary | |
Zero(Type type)
Constructs a constant of value zero for the specified type. |
|
| Method Summary | |
byte |
evaluateByte(Individual i)
Used to get a BYTE value of the constant zero. |
double |
evaluateDouble(Individual i)
Used to get a DOUBLE value of the constant zero. |
float |
evaluateFloat(Individual i)
Used to get a FLOAT value of the constant zero. |
int |
evaluateInt(Individual i)
Used to get a INT value of the constant zero. |
long |
evaluateLong(Individual i)
Used to get a LONG value of the constant zero. |
short |
evaluateShort(Individual i)
Used to get a SHORT value of the constant zero. |
Primitive |
instance()
Creates an instance of this Zero object. |
java.lang.String |
toString()
Returns a String representation of this Terminal. |
| Methods inherited from class gpsys.Terminal |
evaluateBoolean,
evaluateChar,
evaluateObject |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public Zero(Type type)
type - The required type of the Zero's value.| Method Detail |
public final byte evaluateByte(Individual i)
throws EvaluationException
i - The individual being evaluated.
public final short evaluateShort(Individual i)
throws EvaluationException
i - The individual being evaluated.
public final int evaluateInt(Individual i)
throws EvaluationException
i - The individual being evaluated.
public final long evaluateLong(Individual i)
throws EvaluationException
i - The individual being evaluated.
public final float evaluateFloat(Individual i)
throws EvaluationException
i - The individual being evaluated.
public final double evaluateDouble(Individual i)
throws EvaluationException
i - The individual being evaluated.public final Primitive instance()
public java.lang.String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||