All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class gpsys.Type

java.lang.Object
   |
   +----gpsys.Type

public class Type
extends Object
implements Serializable
Types are used to define return types of Primitives and Chromosomes. They are also used to define the argument types of Functions. A type has a string which defines the name of the type, name, and a unique integer which is used to identify the type (the typeID). This class has many predefined Types which are implemented as constants of this class. If a new type is required, make sure that a unique typeID is used. Note that to facilitate their use in java switch statements, Type constants for the predefined types also have their typeIDs duplicately defined as integer contants.

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

Variable Index

 o BOOLEAN
The java boolean type.
 o BOOLEAN_typeID
The type ID for java byte type.
 o BYTE
The java byte type.
 o BYTE_typeID
The type ID for java byte type.
 o CHAR
The java char type.
 o CHAR_typeID
The type ID for java byte type.
 o DOUBLE
The java double type.
 o DOUBLE_typeID
The type ID for java byte type.
 o FLOAT
The java float type.
 o FLOAT_typeID
The type ID for java byte type.
 o INT
The java int type.
 o INT_typeID
The type ID for java byte type.
 o LONG
The java long type.
 o LONG_typeID
The type ID for java byte type.
 o MEM_BOOLEAN
Indexed memory of java boolean type.
 o MEM_BOOLEAN_typeID
The type ID for java byte type.
 o MEM_BYTE
Indexed memory of java byte type.
 o MEM_BYTE_typeID
The type ID for java byte type.
 o MEM_CHAR
Indexed memory of java char type.
 o MEM_CHAR_typeID
The type ID for java byte type.
 o MEM_DOUBLE
Indexed memory of java double type.
 o MEM_DOUBLE_typeID
The type ID for java byte type.
 o MEM_FLOAT
Indexed memory of java float type.
 o MEM_FLOAT_typeID
The type ID for java byte type.
 o MEM_INT
Indexed memory of java int type.
 o MEM_INT_typeID
The type ID for java byte type.
 o MEM_LONG
Indexed memory of java long type.
 o MEM_LONG_typeID
The type ID for java byte type.
 o MEM_OBJECT
Indexed memory of references to java Object types.
 o MEM_OBJECT_typeID
The type ID for java byte type.
 o MEM_SHORT
Indexed memory of java short type.
 o MEM_SHORT_typeID
The type ID for java byte type.
 o OBJECT
The a reference to the java Object type.
 o OBJECT_typeID
The type ID for java byte type.
 o SHORT
The java short type.
 o SHORT_typeID
The type ID for java byte type.
 o typeID
The typeID uniquely identifies the Type.
 o typeName
The name given to the type.

Constructor Index

 o Type()
Default constructor, should never be used.
 o Type(int, String)
Construct a new type with the specified typeID and name.

Method Index

 o toString()
Get a string representation of the type (the name of the type).

Variables

 o typeID
 public int typeID
The typeID uniquely identifies the Type.

 o typeName
 public String typeName
The name given to the type.

 o BYTE
 public static final Type BYTE
The java byte type.

 o BYTE_typeID
 public static final int BYTE_typeID
The type ID for java byte type.

 o SHORT
 public static final Type SHORT
The java short type.

 o SHORT_typeID
 public static final int SHORT_typeID
The type ID for java byte type.

 o INT
 public static final Type INT
The java int type.

 o INT_typeID
 public static final int INT_typeID
The type ID for java byte type.

 o LONG
 public static final Type LONG
The java long type.

 o LONG_typeID
 public static final int LONG_typeID
The type ID for java byte type.

 o FLOAT
 public static final Type FLOAT
The java float type.

 o FLOAT_typeID
 public static final int FLOAT_typeID
The type ID for java byte type.

 o DOUBLE
 public static final Type DOUBLE
The java double type.

 o DOUBLE_typeID
 public static final int DOUBLE_typeID
The type ID for java byte type.

 o CHAR
 public static final Type CHAR
The java char type.

 o CHAR_typeID
 public static final int CHAR_typeID
The type ID for java byte type.

 o BOOLEAN
 public static final Type BOOLEAN
The java boolean type.

 o BOOLEAN_typeID
 public static final int BOOLEAN_typeID
The type ID for java byte type.

 o OBJECT
 public static final Type OBJECT
The a reference to the java Object type.

 o OBJECT_typeID
 public static final int OBJECT_typeID
The type ID for java byte type.

 o MEM_BYTE
 public static final Type MEM_BYTE
Indexed memory of java byte type.

 o MEM_BYTE_typeID
 public static final int MEM_BYTE_typeID
The type ID for java byte type.

 o MEM_SHORT
 public static final Type MEM_SHORT
Indexed memory of java short type.

 o MEM_SHORT_typeID
 public static final int MEM_SHORT_typeID
The type ID for java byte type.

 o MEM_INT
 public static final Type MEM_INT
Indexed memory of java int type.

 o MEM_INT_typeID
 public static final int MEM_INT_typeID
The type ID for java byte type.

 o MEM_LONG
 public static final Type MEM_LONG
Indexed memory of java long type.

 o MEM_LONG_typeID
 public static final int MEM_LONG_typeID
The type ID for java byte type.

 o MEM_FLOAT
 public static final Type MEM_FLOAT
Indexed memory of java float type.

 o MEM_FLOAT_typeID
 public static final int MEM_FLOAT_typeID
The type ID for java byte type.

 o MEM_DOUBLE
 public static final Type MEM_DOUBLE
Indexed memory of java double type.

 o MEM_DOUBLE_typeID
 public static final int MEM_DOUBLE_typeID
The type ID for java byte type.

 o MEM_CHAR
 public static final Type MEM_CHAR
Indexed memory of java char type.

 o MEM_CHAR_typeID
 public static final int MEM_CHAR_typeID
The type ID for java byte type.

 o MEM_BOOLEAN
 public static final Type MEM_BOOLEAN
Indexed memory of java boolean type.

 o MEM_BOOLEAN_typeID
 public static final int MEM_BOOLEAN_typeID
The type ID for java byte type.

 o MEM_OBJECT
 public static final Type MEM_OBJECT
Indexed memory of references to java Object types.

 o MEM_OBJECT_typeID
 public static final int MEM_OBJECT_typeID
The type ID for java byte type.

Constructors

 o Type
 public Type()
Default constructor, should never be used.

 o Type
 public Type(int typeID,
             String typeName)
Construct a new type with the specified typeID and name.

Parameters:
typeID - A unique integer indentifying the type.
typeName - Your name for the type.

Methods

 o toString
 public String toString()
Get a string representation of the type (the name of the type).

Returns:
The name of the type.
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index