All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class gpsys.primitives.GE

java.lang.Object
   |
   +----gpsys.Primitive
           |
           +----gpsys.Function
                   |
                   +----gpsys.primitives.GE

public class GE
extends Function
	BOOLEAN GE(<typeX> lvalue, <typeX> rvalue)
 
GE is a generic function that tests if the first argument is greater than or equal to the second argument. GE needs to be Type instantiated during construction to work with particular argument Types. The supported argument Types include BYTE, SHORT, INT, LONG, FLOAT and DOUBLE.

Version:
1.1, 30th June '97
Author:
Adil Qureshi
Department of Computer Science,
University College London,
Gower St,
London WC1E 6BT,
UK.
See Also:
Type, Primitive, Function

Constructor Index

 o GE(Type)
Constructs a GE Function that works with the specified Type.

Method Index

 o evaluateBoolean(Individual, Gene[])
Used to execute the GE test for arguments of any of the supported Types.
 o instance()
Creates an instance of this GE object.
 o toString()
Returns a String representation of this Function.

Constructors

 o GE
 public GE(Type argTypes)
Constructs a GE Function that works with the specified Type. The supported Types include BYTE, SHORT, INT, LONG, FLOAT and DOUBLE.

Parameters:
type - The Type of this GE Function.

Methods

 o evaluateBoolean
 public final boolean evaluateBoolean(Individual i,
                                      Gene arguments[]) throws EvaluationException
Used to execute the GE test for arguments of any of the supported Types.

Parameters:
i - The individual being evaluated.
arguments - The Gene trees representing the arguments to be tested.
Returns:
A boolean whose value is true if the first argument is GE to the second argument, and false otherwise.
Throws: EvaluationException
If there is an evaluation failure.
Overrides:
evaluateBoolean in class Function
 o instance
 public final Primitive instance()
Creates an instance of this GE object. The Type instantiation is preserved so that if an INT GE is being cloned, the clone will also be INT instantiated.

Returns:
A reference to this Object (yes the same object, since the type information is to be the same, there are therefore no instance variables to be modified.
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