All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class gpsys.cos.AddVector2Mod10

java.lang.Object
   |
   +----gpsys.Primitive
           |
           +----gpsys.Function
                   |
                   +----gpsys.cos.AddVector2Mod10

public class AddVector2Mod10
extends Function
	Vector2Mod10	AddVector2Mod10(Vector2Mod10 v1, Vector2Mod10 v2)
 
A Function that adds two Vector2Mod10 quantities and returns the result.

Author:
Emmanuel PIERRE
DEA IARFA,
See Also:
Primitive, Function

Constructor Index

 o AddVector2Mod10()
Create a Vector2Mod10 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 Vector2Mod10 object).
 o instance()
Creates an instance of this Function.
 o toString()
Returns a String representation of this Function.

Constructors

 o AddVector2Mod10
 public AddVector2Mod10()
Create a Vector2Mod10 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 Vector2Mod10 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 Vector2Mod10 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