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
-
robot
-
-
IFOBA(Type, Robot)
- Create a IFOBA object that controls the specified terrain robot.
-
evaluateObject(Individual, Gene[])
- Evaluation of this Function
-
instance()
- Creates a new instance of this Object.
-
toString()
- Returns a String representation of this Function.
robot
Robot robot
IFOBA
public IFOBA(Type returnType,
Robot robot)
- Create a IFOBA object that controls the specified terrain robot.
- Parameters:
- robot - The Robot to move.
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
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
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