All Packages Class Hierarchy This Package Previous Next Index
Class gpsys.primitives.True
java.lang.Object
|
+----gpsys.Primitive
|
+----gpsys.Terminal
|
+----gpsys.primitives.True
- public class True
- extends Terminal
BOOLEAN True
True is a Terminal of Type BOOLEAN. It represents the boolean value
true.
- Author:
- Adil Qureshi
Department of Computer Science,
University College London,
Gower St,
London WC1E 6BT,
UK.
- See Also:
- Type, Primitive, Terminal
-
True()
- Constructs a new True object.
-
evaluateBoolean(Individual)
- Evaluates the True Terminal.
-
instance()
- Creates a copy of this Terminal.
-
toString()
- Creates a String representing this Terminal.
True
public True()
- Constructs a new True object.
evaluateBoolean
public final boolean evaluateBoolean(Individual i) throws EvaluationException
- Evaluates the True Terminal. The evaluation always returns the value
true.
- Parameters:
- i - The Individual being evaluated.
- Returns:
- The value true.
- 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 String toString()
- Creates a String representing this Terminal.
- Returns:
- A String containing the name of this Terminal.
- Overrides:
- toString in class Primitive
All Packages Class Hierarchy This Package Previous Next Index