gpsys.lawnmower
Class 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:
$Revision: 1.1 $, $Date: 2000/07/05 16:26:49 $
Author:
Adil Qureshi
Department of Computer Science,
University College London,
Gower St,
London WC1E 6BT,
UK.
See Also:
Primitive, Terminal, ADFunction, Serialized Form

Field Summary
(package private)  Vector2Mod8 value
          The value of the argument.
 
Fields inherited from class gpsys.Primitive
type
 
Constructor Summary
ADF2Arg0()
          Create a new ADF2Arg0 object, setting the type to Vector2Mod8.
 
Method Summary
 java.lang.Object evaluateObject(Individual i)
          Evaluates the Terminal as an Object, since a Vector2Mod8 is not one of the java primitive types.
 Primitive instance()
          Creates an instance of this Terminal.
 void set(Vector2Mod8 value)
          Set the value of this terminal to the specified value.
 java.lang.String toString()
          Returns a String representation of this Terminal.
 
Methods inherited from class gpsys.Terminal
evaluateBoolean, evaluateByte, evaluateChar, evaluateDouble, evaluateFloat, evaluateInt, evaluateLong, evaluateShort
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

value

Vector2Mod8 value
The value of the argument.
Constructor Detail

ADF2Arg0

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

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 java.lang.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 java.lang.String toString()
Returns a String representation of this Terminal.
Returns:
A String containing the name of the Terminal.
Overrides:
toString in class Primitive