gpsys.lawnmower
Class ADF1

java.lang.Object
  |
  +--gpsys.Primitive
        |
        +--gpsys.Terminal
              |
              +--gpsys.ADTerminal
                    |
                    +--gpsys.lawnmower.ADF1

public class ADF1
extends ADTerminal

	Vector2Mod8 ADF1
 
ADF1 is an automatically defined Terminal. This is just a wraparound that allows the ADF to be added to the terminal set of other ADFs. The actual body of ADF1 is in Chromosome 1 (adf[1]) of an Individual.

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, ADTerminal, Serialized Form

Fields inherited from class gpsys.ADTerminal
adfIndex
 
Fields inherited from class gpsys.Primitive
type
 
Constructor Summary
ADF1()
          Construct an ADF1 terminal assigning its type to Vector2Mod8.
 
Method Summary
 java.lang.Object evaluateObject(Individual i)
          Evaluate the evolved terminal as primitive that returns an Object reference.
 Primitive instance()
          Create another instance of this ADTerminal.
 java.lang.String toString()
          Returns a String representation of this ADTerminal.
 
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
 

Constructor Detail

ADF1

public ADF1()
Construct an ADF1 terminal assigning its type to Vector2Mod8.
Method Detail

evaluateObject

public java.lang.Object evaluateObject(Individual i)
                                throws EvaluationException
Evaluate the evolved terminal as primitive that returns an Object reference.
Parameters:
i - The individual containing the evolved body for this ADF
Returns:
An Object reference representing the result of the evaluation.
Throws:
EvaluationException - If there is an evaluation failure.
Overrides:
evaluateObject in class Terminal

instance

public Primitive instance()
Create another instance of this ADTerminal.
Returns:
Since all the instance variable are to be the same, we just return a reference to the same object.
Overrides:
instance in class Primitive

toString

public java.lang.String toString()
Returns a String representation of this ADTerminal.
Returns:
A String containing the name of the ADTerminal.
Overrides:
toString in class Primitive