gpsys.primitives
Class False

java.lang.Object
  |
  +--gpsys.Primitive
        |
        +--gpsys.Terminal
              |
              +--gpsys.primitives.False

public class False
extends Terminal

	BOOLEAN False
 
False is a Terminal of Type BOOLEAN. It represents the boolean value false.

Version:
$Revision: 1.1 $, $Date: 2000/07/05 16:24:33 $
Author:
Adil Qureshi
Department of Computer Science,
University College London,
Gower St,
London WC1E 6BT,
UK.
See Also:
Type, Primitive, Terminal, Serialized Form

Fields inherited from class gpsys.Primitive
type
 
Constructor Summary
False()
          Constructs a new False object.
 
Method Summary
 boolean evaluateBoolean(Individual i)
          Evaluates the False Terminal.
 Primitive instance()
          Creates a copy of this Terminal.
 java.lang.String toString()
          Creates a String representing this Terminal.
 
Methods inherited from class gpsys.Terminal
evaluateByte, evaluateChar, evaluateDouble, evaluateFloat, evaluateInt, evaluateLong, evaluateObject, evaluateShort
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Constructor Detail

False

public False()
Constructs a new False object.
Method Detail

evaluateBoolean

public final boolean evaluateBoolean(Individual i)
                              throws EvaluationException
Evaluates the False Terminal. The evaluation always returns the value false.
Parameters:
i - The Individual being evaluated.
Returns:
The value false.
Throws:
EvaluationException - If there is an evaluation failure.
Overrides:
evaluateBoolean in class Terminal

instance

public final Primitive instance()
Creates a copy of this Terminal.
Returns:
Actaully a reference to the same Terminal since there is no change in instance variables required.
Overrides:
instance in class Primitive

toString

public java.lang.String toString()
Creates a String representing this Terminal.
Returns:
A String containing the name of this Terminal.
Overrides:
toString in class Primitive