All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class gpsys.cos.Forward

java.lang.Object
   |
   +----gpsys.Primitive
           |
           +----gpsys.Terminal
                   |
                   +----gpsys.cos.Forward

public class Forward
extends Terminal
	Vector2Mod10 Forward
 
A Terminal that instructs the terrain robot to move by one square.

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

Constructor Index

 o Forward(Robot)
Create a new Forward terminal which controls the specified terrain robot.

Method Index

 o evaluateObject(Individual)
Evaluates this Terminal, causing the robot nothing but live longer !
 o instance()
Creates a new instance of this Object.
 o toString()
Returns a String representation of this Terminal.

Constructors

 o Forward
 public Forward(Robot robot)
Create a new Forward terminal which controls the specified terrain robot.

Parameters:
robot - The robot to be controlled.

Methods

 o evaluateObject
 public final Object evaluateObject(Individual i)
Evaluates this Terminal, causing the robot nothing but live longer !

Parameters:
i - The individual being evaluated.
Returns:
An Object (actually a Vector2Mod10) representing the Zero Vector2Mod10.
Overrides:
evaluateObject in class Terminal
 o instance
 public final Primitive instance()
Creates a new instance of this Object.

Returns:
A reference to this same Object since none of the instance variables are to be changed.
Overrides:
instance in class Primitive
 o toString
 public String toString()
Returns a String representation of this Terminal.

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

All Packages  Class Hierarchy  This Package  Previous  Next  Index