All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class gpsys.primitives.Not

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

public class Not
extends Function
	BOOLEAN not(BOOLEAN value)
 
Not is a boolean function that returns the logical "negation" of its one argument.

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 Not()
Construct an instance of the Not Function.

Method Index

 o evaluateBoolean(Individual, Gene[])
Perform the logical Not of the one argument and return the result.
 o instance()
Creates an instance of this And Function.
 o toString()
Returns a String representation of this Function.

Constructors

 o Not
 public Not()
Construct an instance of the Not Function. The Not Function is of BOOLEAN Type and is hence typed accordingly.

Methods

 o evaluateBoolean
 public final boolean evaluateBoolean(Individual i,
                                      Gene arguments[]) throws EvaluationException
Perform the logical Not of the one argument and return the result.

Parameters:
i - The individual being evaluated.
arguments - The Gene tree representing the argument to be Noted.
Returns:
A boolean representing the logical Not of the argument.
Throws: EvaluationException
If there is an evaluation failure.
Overrides:
evaluateBoolean in class Function
 o instance
 public final Primitive instance()
Creates an instance of this And Function.

Returns:
A reference to this object.
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