All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class gpsys.cos.Right

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

public class Right
extends Terminal
	Vector2Mod10 Right
 
A Terminal that instructs the terrainrobot to turn right by 90 degrees.

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

Constructor Index

 o Right(Robot)
Create a new Right 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 Right
 public Right(Robot robot)
Create a new Right 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