|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjdrew.oo.util.Types
This class represents the types that are defined within OO jDREW's built-in term typing system. While a set of unary predicates can be used to represent type sorts using a built-in system is considerably more efficient and allows for the easier creation of generalized built-in relations.
Title: OO jDREW
Description: Reasoning Engine for the Semantic Web - Supporting OO RuleML 0.88
Copyright: Copyright (c) 2005
| Field Summary | |
static java.lang.String |
FLOAT
The name for the floating point number type in the type lattice. |
static int |
IFLOAT
The integer code for the floating point number type. |
static int |
IINTEGER
The integer code for the integer type. |
static int |
INOTHING
The integer code for the bottom of the type lattice (Nothing). |
static java.lang.String |
INTEGER
The name for the integer type in the type lattice. |
static int |
INUMERIC
The integer code for the numeric base type. |
static int |
IOBJECT
The integer code for the base type of the type system (Thing) - this value should not be used; ITHING should be used instead. |
static int |
ISTRING
The integer code for the String base type. |
static int |
ITHING
The integer code for the base type of the type system (Thing). |
static java.lang.String |
NOTHING
The name for the bottom of the type lattice (Nothing). |
static java.lang.String |
NUMERIC
The name for the base type for all numeric types in the type lattice. |
static java.lang.String |
OBJECT
The type name for the base type of the type system (Thing). |
static java.lang.String |
STRING
The name for the string type in the type lattice. |
static java.util.Vector |
types
A vector that contains all of the type names. |
| Constructor Summary | |
Types()
|
|
| Method Summary | |
static int |
createType(java.lang.String name,
java.lang.String[] parents)
Define a new type in the type system. |
static int |
greatestLowerBound(int[] classes)
Find the greatest lower bound of a list of types, identified by integer codes. |
static int |
greatestLowerBound(int class1,
int class2)
Find the greatest lower bound of two types. |
static java.lang.String |
greatestLowerBound(java.lang.String[] classes)
Find the lower bound of a group of type. |
static java.lang.String |
greatestLowerBound(java.lang.String class1,
java.lang.String class2)
Find the greatest lower bound of type types. |
static boolean |
isa(int subClass,
int superClass)
This method is a synonyom for the isSubClass(int subClass, int superClass) method. |
static boolean |
isSubClass(int subClass,
int superClass)
Check to see if the type identified by subClass is is a subclass of the type identified by superClass. |
static boolean |
isSubClass(java.lang.String subClass,
java.lang.String superClass)
Check to see if type subClass is a sub-type of type superClass. |
static boolean |
isSuperClass(int superClass,
int subClass)
Check to see if one type is the super-type of another. |
static boolean |
isSuperClass(java.lang.String superClass,
java.lang.String subClass)
Check to see if one type is the super-type of another type. |
static boolean |
isTypeDefined(int id)
Check to see if a type is defined for the identification integer passed. |
static boolean |
isTypeDefined(java.lang.String name)
Check to see if there is a type with a specified name already defined. |
static void |
reset()
A method to reset the type system. |
static int |
typeID(java.lang.String name)
Get the type identification integer associated with a type name. |
static java.lang.String |
typeName(int id)
Get the type name for a specified type identification number. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int IOBJECT
public static final int ITHING
public static final java.lang.String OBJECT
public static final int INOTHING
public static final java.lang.String NOTHING
public static final java.lang.String NUMERIC
public static final java.lang.String INTEGER
public static final java.lang.String FLOAT
public static final java.lang.String STRING
public static int IINTEGER
public static int IFLOAT
public static int INUMERIC
public static int ISTRING
public static java.util.Vector types
| Constructor Detail |
public Types()
| Method Detail |
public static void reset()
public static int createType(java.lang.String name,
java.lang.String[] parents)
name - String The name of the new type to be defined.parents - String[] An array containing the name of all direct
superclasses of the type.
public static java.lang.String typeName(int id)
id - int The integer typy identification number of the type.
public static int typeID(java.lang.String name)
name - String The name of the type to get the identification number
for.
public static boolean isTypeDefined(int id)
id - int The type identification integer.
public static boolean isTypeDefined(java.lang.String name)
name - String The type name to check.
public static boolean isa(int subClass,
int superClass)
subClass - int The integer identification number of the sub-type to
test.superClass - int The integer identification number of the super-type
to test.
public static boolean isSubClass(int subClass,
int superClass)
subClass - int The integer identification number of the sub-type to
test.superClass - int The integer identification number of the super-type
to test.
public static boolean isSubClass(java.lang.String subClass,
java.lang.String superClass)
subClass - String The sub-type to check.superClass - String The super-type to check.
public static boolean isSuperClass(int superClass,
int subClass)
superClass - int The integer identification of the super-type.subClass - int The integer identification of the sub-type
public static boolean isSuperClass(java.lang.String superClass,
java.lang.String subClass)
superClass - String The super-type to check.subClass - String The sub-type to check.
public static int greatestLowerBound(int class1,
int class2)
class1 - int The integer code for type 1.class2 - int The integer code for type 2.
public static java.lang.String greatestLowerBound(java.lang.String class1,
java.lang.String class2)
class1 - String The first type.class2 - String The second type.
public static int greatestLowerBound(int[] classes)
classes - int[] An array containing the integer codes of the types
to find the greatest lower bound for.
public static java.lang.String greatestLowerBound(java.lang.String[] classes)
classes - String[] An array containing the types to find the
greatest lower bound of.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||