|
|||||||||
| 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.Left
Vector2Mod8 LeftA Terminal that instructs the lawnmower to turn left by 90 degrees.
Primitive,
Terminal, Serialized Form| Field Summary | |
private Mower |
mower
The lawnmower being controlled. |
| Fields inherited from class gpsys.Primitive |
type |
| Constructor Summary | |
Left(Mower mower)
Create a new Left terminal which controls the specified lawn mower. |
|
| Method Summary | |
java.lang.Object |
evaluateObject(Individual i)
Evaluates this Terminal, causing the mower to turn left by 90 degrees. |
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 Left(Mower mower)
mower - The mower to be controlled.| Method Detail |
public final java.lang.Object evaluateObject(Individual i)
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 | ||||||||