|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ptolemy.data.type.TypeLattice.TheTypeLattice
private static class TypeLattice.TheTypeLattice
Field Summary | |
---|---|
private DirectedAcyclicGraph |
_basicLattice
|
Fields inherited from interface ptolemy.graph.CPO |
---|
HIGHER, INCOMPARABLE, LOWER, SAME |
Constructor Summary | |
---|---|
private |
TypeLattice.TheTypeLattice()
|
Method Summary | |
---|---|
private Type |
_toRepresentative(Type t)
|
java.lang.Object |
bottom()
Return the bottom element of the type lattice, which is UNKNOWN. |
int |
compare(java.lang.Object t1,
java.lang.Object t2)
Compare two types in the type lattice. |
java.lang.Object[] |
downSet(java.lang.Object e)
Throw an exception. |
java.lang.Object |
greatestElement(java.lang.Object[] subset)
Return the greatest type of a set of types, or null if the greatest one does not exist. |
java.lang.Object |
greatestLowerBound(java.lang.Object[] subset)
Return the greatest lower bound of a subset. |
java.lang.Object |
greatestLowerBound(java.lang.Object t1,
java.lang.Object t2)
Return the greatest lower bound of two types. |
boolean |
isLattice()
Return true. |
java.lang.Object |
leastElement(java.lang.Object[] subset)
Return the least type of a set of types, or null if the least one does not exist. |
java.lang.Object |
leastUpperBound(java.lang.Object[] subset)
Return the least upper bound of a subset. |
java.lang.Object |
leastUpperBound(java.lang.Object t1,
java.lang.Object t2)
Return the least upper bound of two types. |
java.lang.Object |
top()
Return the top element of the type lattice, which is General. |
java.lang.Object[] |
upSet(java.lang.Object e)
Throw an exception. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private DirectedAcyclicGraph _basicLattice
Constructor Detail |
---|
private TypeLattice.TheTypeLattice()
Method Detail |
---|
public java.lang.Object bottom()
bottom
in interface CPO
public int compare(java.lang.Object t1, java.lang.Object t2)
compare
in interface CPO
t1
- an instance of Type.t2
- an instance of Type.
java.lang.IllegalArgumentException
- If one or both arguments
are not instances of Type.public java.lang.Object[] downSet(java.lang.Object e)
downSet
in interface CPO
e
- An Object representing an element in this CPO.
java.lang.UnsupportedOperationException
- Always thrown.public java.lang.Object greatestLowerBound(java.lang.Object t1, java.lang.Object t2)
greatestLowerBound
in interface CPO
t1
- an instance of Type.t2
- an instance of Type.
java.lang.IllegalArgumentException
- If one or both of the
specified arguments are not instances of Type.public java.lang.Object greatestLowerBound(java.lang.Object[] subset)
greatestLowerBound
in interface CPO
subset
- an array of Types.
public java.lang.Object greatestElement(java.lang.Object[] subset)
leastUpperBound(Object[])
.
greatestElement
in interface CPO
subset
- an array of Types.
public boolean isLattice()
isLattice
in interface CPO
public java.lang.Object leastElement(java.lang.Object[] subset)
greatestLowerBound(Object[])
.
leastElement
in interface CPO
subset
- an array of Types.
public java.lang.Object leastUpperBound(java.lang.Object t1, java.lang.Object t2)
leastUpperBound
in interface CPO
t1
- an instance of Type.t2
- an instance of Type.
public java.lang.Object leastUpperBound(java.lang.Object[] subset)
leastUpperBound
in interface CPO
subset
- an array of Types.
public java.lang.Object top()
top
in interface CPO
public java.lang.Object[] upSet(java.lang.Object e)
upSet
in interface CPO
e
- An Object representing an element in this CPO.
java.lang.UnsupportedOperationException
- Always thrown.private Type _toRepresentative(Type t)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |