|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--gpsys.Primitive
|
+--gpsys.Terminal
|
+--gpsys.lawnmower.ConstantVector2Mod8
Vector2Mod8 ConstantVector2Mod8Creates a Terminal representing an ephemeral random constant of Type Vector2Mod8.
Type,
Primitive,
Terminal, Serialized Form| Field Summary | |
private java.util.Random |
rng
The random number generator. |
Vector2Mod8 |
v
The value of this constant. |
| Fields inherited from class gpsys.Primitive |
type |
| Constructor Summary | |
ConstantVector2Mod8(java.util.Random rng)
Create a new ephemeral random Vector2Mod8 constant in the range (0,0) to (8,8). |
|
| Method Summary | |
java.lang.Object |
evaluateObject(Individual i)
Evaluate this Terminal. |
Primitive |
instance()
Creates a new Vector2Mod8 constant in exactly the same range as this constant, and using the same random number generator. |
java.lang.String |
toString()
Returns the value of the constant as a String. |
| Methods inherited from class gpsys.Terminal |
evaluateBoolean,
evaluateByte,
evaluateChar,
evaluateDouble,
evaluateFloat,
evaluateInt,
evaluateLong,
evaluateShort |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
public Vector2Mod8 v
private java.util.Random rng
| Constructor Detail |
public ConstantVector2Mod8(java.util.Random rng)
rng - The random number generator to be used.| Method Detail |
public final java.lang.Object evaluateObject(Individual i)
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 | ||||||||