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.

Version:
1.1, 30th June '97
Author:
Adil Qureshi
Department of Computer Science,
University College London,
Gower St,
London WC1E 6BT,
UK.
See Also:
Primitive, Terminal, ADFunction

Constructor Index

 o ADF2Arg0()
Create a new ADF2Arg0 object, setting the type to Vector2Mod8.

Method Index

 o evaluateObject(Individual)
Evaluates the Terminal as an Object, since a Vector2Mod8 is not one of the java primitive types.
 o instance()
Creates an instance of this Terminal.
 o set(Vector2Mod8)
Set the value of this terminal to the specified value.
 o toString()
Returns a String representation of this Terminal.

Constructors

 o ADF2Arg0
 public ADF2Arg0()
Create a new ADF2Arg0 object, setting the type to Vector2Mod8.

Methods

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