All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class gpsys.cos.IFOBA

java.lang.Object
   |
   +----gpsys.Primitive
           |
           +----gpsys.Function
                   |
                   +----gpsys.cos.IFOBA

public class IFOBA
extends Function
	Vector2Mod10 IFOBA(Vector2Mod10 displacement)
 
The IFOBA Function tells the terrain robot that there is an OBstacle Ahead

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

Variable Index

 o robot

Constructor Index

 o IFOBA(Type, Robot)
Create a IFOBA object that controls the specified terrain robot.

Method Index

 o evaluateObject(Individual, Gene[])
Evaluation of this Function
 o instance()
Creates a new instance of this Object.
 o toString()
Returns a String representation of this Function.

Variables

 o robot
 Robot robot

Constructors

 o IFOBA
 public IFOBA(Type returnType,
              Robot robot)
Create a IFOBA object that controls the specified terrain robot.

Parameters:
robot - The Robot to move.

Methods

 o evaluateObject
 public final Object evaluateObject(Individual i,
                                    Gene arguments[]) throws EvaluationException
Evaluation of this Function

Parameters:
i - The individual being evaluated.
arguments - The Gene tree representing the displacement.
Returns:
An Object (actually a Vector2Mod10) representing the displacement.
Throws: EvaluationException
If there is an evaluation failure.
Overrides:
evaluateObject in class Function
 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 Function.

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

All Packages  Class Hierarchy  This Package  Previous  Next  Index