All Packages Class Hierarchy This Package Previous Next Index
Class gpsys.lawnmower.ConstantVector2Mod8
java.lang.Object
|
+----gpsys.Primitive
|
+----gpsys.Terminal
|
+----gpsys.lawnmower.ConstantVector2Mod8
- public class ConstantVector2Mod8
- extends Terminal
Vector2Mod8 ConstantVector2Mod8
Creates a Terminal representing an ephemeral random constant of Type
Vector2Mod8.
- Version:
- 1.1, 30th June '97
- Author:
- Adil Qureshi
Department of Computer Science,
University College London,
Gower St,
London WC1E 6BT,
UK.
- See Also:
- Type, Primitive, Terminal
-
v
- The value of this constant.
-
ConstantVector2Mod8(Random)
- Create a new ephemeral random Vector2Mod8 constant in the range
(0,0) to (8,8).
-
evaluateObject(Individual)
- Evaluate this Terminal.
-
instance()
- Creates a new Vector2Mod8 constant in exactly the same range as this
constant, and using the same random number generator.
-
toString()
- Returns the value of the constant as a String.
v
public Vector2Mod8 v
- The value of this constant.
ConstantVector2Mod8
public ConstantVector2Mod8(Random rng)
- Create a new ephemeral random Vector2Mod8 constant in the range
(0,0) to (8,8).
- Parameters:
- rng - The random number generator to be used.
evaluateObject
public final Object evaluateObject(Individual i)
- Evaluate this Terminal.
- Parameters:
- i - The individual being evaluated.
- Returns:
- The value of the constant.
- Overrides:
- evaluateObject in class Terminal
instance
public final Primitive instance()
- Creates a new Vector2Mod8 constant in exactly the same range as this
constant, and using the same random number generator.
- Returns:
- A new Vector2Mod8 constant in exactly the same range.
- Overrides:
- instance in class Primitive
toString
public String toString()
- Returns the value of the constant as a String.
- Returns:
- A String representing the value of this constant.
- Overrides:
- toString in class Primitive
All Packages Class Hierarchy This Package Previous Next Index