|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--gpsys.Primitive
|
+--gpsys.Function
|
+--gpsys.ADFunction
|
+--gpsys.lawnmower.ADF2
Vector2Mod8 ADF2(Vector2Mod8 arg)ADF2 is an automatically defined Function which takes one argument. This is just a wraparound that allows the ADF to be added to the functions set of other ADFs. The actual body of ADF2 is in Chromosome 2 (adf[2]) of an Individual. Note that since the argument to ADF2 occurs in the terminal set of ADF2, it must be treated just like a Terminal, and it is hence defined elsewhere as a terminal.
Primitive,
Function,
ADFunction, Serialized Form| Field Summary | |
(package private) ADF2Arg0 |
arg0
A reference to the Terminal defining the argument to this Function. |
| Fields inherited from class gpsys.ADFunction |
adfIndex |
| Fields inherited from class gpsys.Function |
argTypes |
| Fields inherited from class gpsys.Primitive |
type |
| Constructor Summary | |
ADF2(ADF2Arg0 arg0)
Create an ADF2 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 ADF. |
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 |
|
| Field Detail |
ADF2Arg0 arg0
| Constructor Detail |
public ADF2(ADF2Arg0 arg0)
arg0 - A reference to the Terminal defining the argument to
this Function.| Method Detail |
public java.lang.Object evaluateObject(Individual i,
Gene[] arguments)
throws EvaluationException
i - The individual being evaluated.arguments - The Gene trees representing the arguments to this
Function.public Primitive instance()
public java.lang.String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||