|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--gpsys.Type
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.
Primitive,
Function,
Chromosome, Serialized Form| Field Summary | |
static Type |
BOOLEAN
The java boolean type. |
static int |
BOOLEAN_typeID
The type ID for java byte type. |
static Type |
BYTE
The java byte type. |
static int |
BYTE_typeID
The type ID for java byte type. |
static Type |
CHAR
The java char type. |
static int |
CHAR_typeID
The type ID for java byte type. |
static Type |
DOUBLE
The java double type. |
static int |
DOUBLE_typeID
The type ID for java byte type. |
static Type |
FLOAT
The java float type. |
static int |
FLOAT_typeID
The type ID for java byte type. |
static Type |
INT
The java int type. |
static int |
INT_typeID
The type ID for java byte type. |
static Type |
LONG
The java long type. |
static int |
LONG_typeID
The type ID for java byte type. |
static Type |
MEM_BOOLEAN
Indexed memory of java boolean type. |
static int |
MEM_BOOLEAN_typeID
The type ID for java byte type. |
static Type |
MEM_BYTE
Indexed memory of java byte type. |
static int |
MEM_BYTE_typeID
The type ID for java byte type. |
static Type |
MEM_CHAR
Indexed memory of java char type. |
static int |
MEM_CHAR_typeID
The type ID for java byte type. |
static Type |
MEM_DOUBLE
Indexed memory of java double type. |
static int |
MEM_DOUBLE_typeID
The type ID for java byte type. |
static Type |
MEM_FLOAT
Indexed memory of java float type. |
static int |
MEM_FLOAT_typeID
The type ID for java byte type. |
static Type |
MEM_INT
Indexed memory of java int type. |
static int |
MEM_INT_typeID
The type ID for java byte type. |
static Type |
MEM_LONG
Indexed memory of java long type. |
static int |
MEM_LONG_typeID
The type ID for java byte type. |
static Type |
MEM_OBJECT
Indexed memory of references to java Object types. |
static int |
MEM_OBJECT_typeID
The type ID for java byte type. |
static Type |
MEM_SHORT
Indexed memory of java short type. |
static int |
MEM_SHORT_typeID
The type ID for java byte type. |
static Type |
OBJECT
The a reference to the java Object type. |
static int |
OBJECT_typeID
The type ID for java byte type. |
static Type |
SHORT
The java short type. |
static int |
SHORT_typeID
The type ID for java byte type. |
int |
typeID
The typeID uniquely identifies the Type. |
java.lang.String |
typeName
The name given to the type. |
| Constructor Summary | |
Type()
Default constructor, should never be used. |
|
Type(int typeID,
java.lang.String typeName)
Construct a new type with the specified typeID and name. |
|
| Method Summary | |
java.lang.String |
toString()
Get a string representation of the type (the name of the type). |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
public int typeID
public java.lang.String typeName
public static final Type BYTE
public static final int BYTE_typeID
public static final Type SHORT
public static final int SHORT_typeID
public static final Type INT
public static final int INT_typeID
public static final Type LONG
public static final int LONG_typeID
public static final Type FLOAT
public static final int FLOAT_typeID
public static final Type DOUBLE
public static final int DOUBLE_typeID
public static final Type CHAR
public static final int CHAR_typeID
public static final Type BOOLEAN
public static final int BOOLEAN_typeID
public static final Type OBJECT
public static final int OBJECT_typeID
public static final Type MEM_BYTE
public static final int MEM_BYTE_typeID
public static final Type MEM_SHORT
public static final int MEM_SHORT_typeID
public static final Type MEM_INT
public static final int MEM_INT_typeID
public static final Type MEM_LONG
public static final int MEM_LONG_typeID
public static final Type MEM_FLOAT
public static final int MEM_FLOAT_typeID
public static final Type MEM_DOUBLE
public static final int MEM_DOUBLE_typeID
public static final Type MEM_CHAR
public static final int MEM_CHAR_typeID
public static final Type MEM_BOOLEAN
public static final int MEM_BOOLEAN_typeID
public static final Type MEM_OBJECT
public static final int MEM_OBJECT_typeID
| Constructor Detail |
public Type()
public Type(int typeID,
java.lang.String typeName)
typeID - A unique integer indentifying the type.typeName - Your name for the type.| Method Detail |
public java.lang.String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||