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.

Author:
Adil Qureshi
Department of Computer Science,
University College London,
Gower St,
London WC1E 6BT,
UK.
See Also:
Type, Primitive, Terminal

Variable Index

 o v
The value of this constant.

Constructor Index

 o ConstantVector2Mod8(Random)
Create a new ephemeral random Vector2Mod8 constant in the range (0,0) to (8,8).

Method Index

 o evaluateObject(Individual)
Evaluate this Terminal.
 o instance()
Creates a new Vector2Mod8 constant in exactly the same range as this constant, and using the same random number generator.
 o toString()
Returns the value of the constant as a String.

Variables

 o v
 public Vector2Mod8 v
The value of this constant.

Constructors

 o 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.

Methods

 o 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
 o 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
 o 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