|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--gpsys.Primitive
|
+--gpsys.Function
|
+--gpsys.lawnmower.Frog
Vector2Mod8 Frog(Vector2Mod8 displacement)The Frog Function allows the lawn mower to leap frog by specified X and Y displacements on the lawn. It takes a single Vector2Mod8 argument which represents the displacement and returns the same argument.
Type,
Primitive,
Terminal, Serialized Form| Field Summary | |
(package private) Mower |
mower
|
| Fields inherited from class gpsys.Function |
argTypes |
| Fields inherited from class gpsys.Primitive |
type |
| Constructor Summary | |
Frog(Mower mower)
Create a Frog object that controls the specified lawn mower. |
|
| Method Summary | |
java.lang.Object |
evaluateObject(Individual i,
Gene[] arguments)
Evaluates this Function, causing the mower to leap frog by the specified displacement. |
Primitive |
instance()
Creates a new instance of this Object. |
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 |
Mower mower
| Constructor Detail |
public Frog(Mower mower)
mower - The Mower to move.| Method Detail |
public final java.lang.Object evaluateObject(Individual i,
Gene[] arguments)
throws EvaluationException
i - The individual being evaluated.arguments - The Gene tree representing the displacement.public final Primitive instance()
public java.lang.String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||