All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class gpsys.lawnmower.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.

Author:
Adil Qureshi
Department of Computer Science,
University College London,
Gower St,
London WC1E 6BT,
UK.
See Also:
Primitive, Function

Constructor Index

 o AddVector2Mod8()
Create a Vector2Mod8 adder object.

Method Index

 o evaluateObject(Individual, Gene[])
Evaluate the ADF as one that return an Object (this is necessary since the evaluation actually returns a Vector2Mod8 object).
 o instance()
Creates an instance of this Function.
 o toString()
Returns a String representation of this Function.

Constructors

 o AddVector2Mod8
 public AddVector2Mod8()
Create a Vector2Mod8 adder object.

Methods

 o evaluateObject
 public final 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
 o 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
 o toString
 public String toString()
Returns a String representation of this Function.

Returns:
A String containing the name of the Function.
Overrides:
toString in class Primitive

All Packages  Class Hierarchy  This Package  Previous  Next  Index