gpsys.lawnmower
Class AddVector2Mod8

java.lang.Object
  |
  +--gpsys.Primitive
        |
        +--gpsys.Function
              |
              +--gpsys.lawnmower.AddVector2Mod8

public class AddVector2Mod8
extends Function

	Vector2Mod8	AddVector2Mod8(Vector2Mod8 v1, Vector2Mod8 v2)
 
A Function that adds two Vector2Mod8 quantities and returns the result.

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

Fields inherited from class gpsys.Function
argTypes
 
Fields inherited from class gpsys.Primitive
type
 
Constructor Summary
AddVector2Mod8()
          Create a Vector2Mod8 adder object.
 
Method Summary
 java.lang.Object evaluateObject(Individual i, Gene[] arguments)
          Evaluate the ADF as one that return an Object (this is necessary since the evaluation actually returns a Vector2Mod8 object).
 Primitive instance()
          Creates an instance of this Function.
 java.lang.String toString()
          Returns a String representation of this Function.
 
Methods inherited from class gpsys.Function
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

AddVector2Mod8

public AddVector2Mod8()
Create a Vector2Mod8 adder object.
Method Detail

evaluateObject

public final java.lang.Object evaluateObject(Individual i,
                                             Gene[] arguments)
                                      throws EvaluationException
Evaluate the ADF as one that return an Object (this is necessary since the evaluation actually returns a Vector2Mod8 object).
Parameters:
i - The individual being evaluated.
arguments - The Gene trees representing the arguments to be added.
Returns:
An Object reference, which is the result of adding the two Vector2Mod8 arguments.
Throws:
EvaluationException - If there is an evaluation failure.
Overrides:
evaluateObject in class Function

instance

public final Primitive instance()
Creates an instance of this Function.
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 Function.
Returns:
A String containing the name of the Function.
Overrides:
toString in class Primitive