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
-
AddVector2Mod8()
- Create a Vector2Mod8 adder object.
-
evaluateObject(Individual, Gene[])
- Evaluate the ADF as one that return an Object (this is necessary since
the evaluation actually returns a Vector2Mod8 object).
-
instance()
- Creates an instance of this Function.
-
toString()
- Returns a String representation of this Function.
AddVector2Mod8
public AddVector2Mod8()
- Create a Vector2Mod8 adder object.
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
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 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