All Packages Class Hierarchy This Package Previous Next Index
Class gpsys.lawnmower.ADF2Arg0
java.lang.Object
|
+----gpsys.Primitive
|
+----gpsys.Terminal
|
+----gpsys.lawnmower.ADF2Arg0
- public class ADF2Arg0
- extends Terminal
Vector2Mod8 ADF2Arg0
This Terminal represents the one and only argument of ADF2. It is needed
since an argument of an ADF occurrs in the Terminal set of the ADF.
- Author:
- Adil Qureshi
Department of Computer Science,
University College London,
Gower St,
London WC1E 6BT,
UK.
- See Also:
- Primitive, Terminal, ADFunction
-
value
- The value of the argument.
-
ADF2Arg0()
- Create a new ADF2Arg0 object, setting the type to Vector2Mod8.
-
evaluateObject(Individual)
- Evaluates the Terminal as an Object, since a Vector2Mod8 is not one of
the java primitive types.
-
instance()
- Creates an instance of this Terminal.
-
set(Vector2Mod8)
- Set the value of this terminal to the specified value.
-
toString()
- Returns a String representation of this Terminal.
value
Vector2Mod8 value
- The value of the argument.
ADF2Arg0
public ADF2Arg0()
- Create a new ADF2Arg0 object, setting the type to Vector2Mod8.
set
public void set(Vector2Mod8 value)
- Set the value of this terminal to the specified value.
- Parameters:
- value - The value to be assumed by the argument.
evaluateObject
public Object evaluateObject(Individual i)
- Evaluates the Terminal as an Object, since a Vector2Mod8 is not one of
the java primitive types.
- Parameters:
- i - The Individual being evaluated.
- Overrides:
- evaluateObject in class Terminal
instance
public Primitive instance()
- Creates an instance of this Terminal.
- Returns:
- A reference to this same Object since none of the instance
variables will ever be changed.
- Overrides:
- instance in class Primitive
toString
public String toString()
- Returns a String representation of this Terminal.
- Returns:
- A String containing the name of the Terminal.
- Overrides:
- toString in class Primitive
All Packages Class Hierarchy This Package Previous Next Index