|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--gpsys.Primitive
|
+--gpsys.Terminal
|
+--gpsys.lawnmower.Mow
Vector2Mod8 MowA Terminal that instructs the lawnmower to move forward by one square, cutting any grass on that square.
Primitive,
Terminal, Serialized Form| Field Summary | |
private Mower |
mower
The lawnmower being controlled. |
| Fields inherited from class gpsys.Primitive |
type |
| Constructor Summary | |
Mow(Mower mower)
Create a new Mow terminal which controls the specified lawn mower. |
|
| Method Summary | |
java.lang.Object |
evaluateObject(Individual i)
Evaluates this Terminal, causing the mower to move forward one sqaure, cutting the grass on that square. |
Primitive |
instance()
Creates a new instance of this Object. |
java.lang.String |
toString()
Returns a String representation of this Terminal. |
| Methods inherited from class gpsys.Terminal |
evaluateBoolean,
evaluateByte,
evaluateChar,
evaluateDouble,
evaluateFloat,
evaluateInt,
evaluateLong,
evaluateShort |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private Mower mower
| Constructor Detail |
public Mow(Mower mower)
mower - The mower to be controlled.| Method Detail |
public final java.lang.Object evaluateObject(Individual i)
throws EvaluationException
i - The individual being evaluated.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 | ||||||||