All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class gpsys.cos.ADF1

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

public class ADF1
extends ADTerminal
	Vector2Mod10 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.

Author:
Emmanuel PIERRE
DEA IARFA,
See Also:
Primitive, Terminal, ADTerminal

Constructor Index

 o ADF1()
Construct an ADF1 terminal assigning its type to Vector2Mod10.

Method Index

 o evaluateObject(Individual)
Evaluate the evolved terminal as primitive that returns an Object reference.
 o instance()
Create another instance of this ADTerminal.
 o toString()
Returns a String representation of this ADTerminal.

Constructors

 o ADF1
 public ADF1()
Construct an ADF1 terminal assigning its type to Vector2Mod10.

Methods

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

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

All Packages  Class Hierarchy  This Package  Previous  Next  Index