gpsys
Class Primitive

java.lang.Object
  |
  +--gpsys.Primitive
Direct Known Subclasses:
Function, Terminal

public abstract class Primitive
extends java.lang.Object
implements java.io.Serializable

A Primitive is unit of an evolved program. Users should never try to extend this class directly to create their own primitives. Instead they should extend the derived classes Function, Terminal, ADFunction or ADTerminal.

Version:
$Revision: 1.1 $, $Date: 2000/07/05 16:21:25 $
Author:
Adil Qureshi
Department of Computer Science,
University College London,
Gower St,
London WC1E 6BT,
UK.
See Also:
Terminal, Function, ADTerminal, ADFunction, Serialized Form

Field Summary
 Type type
          The type returned by this primitive.
 
Constructor Summary
Primitive()
           
 
Method Summary
abstract  Primitive instance()
          Creates a new instance of this primitive.
abstract  java.lang.String toString()
          Creates a String representation of this primitive.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

type

public Type type
The type returned by this primitive.
Constructor Detail

Primitive

public Primitive()
Method Detail

instance

public abstract Primitive instance()
Creates a new instance of this primitive.
Returns:
returns a new instance of this primitive.

toString

public abstract java.lang.String toString()
Creates a String representation of this primitive.
Returns:
The String representation of this primitive.
Overrides:
toString in class java.lang.Object