All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class gpsys.cos.ConstantVector2Mod10

java.lang.Object
   |
   +----gpsys.Primitive
           |
           +----gpsys.Terminal
                   |
                   +----gpsys.cos.ConstantVector2Mod10

public class ConstantVector2Mod10
extends Terminal
	Vector2Mod10 ConstantVector2Mod10
 
Creates a Terminal representing an ephemeral random constant of Type Vector2Mod10.

Author:
Emmanuel PIERRE
DEA IARFA,
See Also:
Type, Primitive, Terminal

Variable Index

 o v
The value of this constant.

Constructor Index

 o ConstantVector2Mod10(Random)
Create a new ephemeral random Vector2Mod10 constant in the range (0,0) to (9,9).

Method Index

 o evaluateObject(Individual)
Evaluate this Terminal.
 o instance()
Creates a new Vector2Mod10 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 Vector2Mod10 v
The value of this constant.

Constructors

 o ConstantVector2Mod10
 public ConstantVector2Mod10(Random rng)
Create a new ephemeral random Vector2Mod10 constant in the range (0,0) to (9,9).

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 Vector2Mod10 constant in exactly the same range as this constant, and using the same random number generator.

Returns:
A new Vector2Mod10 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