|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.rwth.domains.Domain
This class contains methods for debugging and visualisation of implementations for the interfaces in this package.
Constructor Summary | |
Domain()
|
Method Summary | |
static void |
checkProperties(CompleteLattice cl)
Checks the properties of a complete lattice. |
static void |
checkProperties(CompleteLattice cl,
java.lang.Object[] es)
Checks the properties of a complete lattice. |
static void |
checkProperties(CompletePOSet cposet)
Checks the properties of a complete partially ordered set. |
static void |
checkProperties(CompletePOSet cposet,
java.lang.Object[] es)
Checks the properties of a complete partially ordered set. |
static void |
checkProperties(Lattice l)
Checks the properties of a lattice. |
static void |
checkProperties(Lattice l,
java.lang.Object[] es)
Checks the properties of a lattice. |
static void |
checkProperties(LowerSemiLattice lsl)
Checks the properties of a lower semi lattice. |
static void |
checkProperties(LowerSemiLattice lsl,
java.lang.Object[] es)
Checks the properties of a lower semi lattice. |
static void |
checkProperties(POSet poset)
Checks the properties of a partially ordered set. |
static void |
checkProperties(POSet poset,
java.lang.Object[] es)
Checks the properties of a partially ordered set. |
static void |
checkProperties(PreLattice l)
Checks the properties of a pre lattice. |
static void |
checkProperties(PreLattice l,
java.lang.Object[] es)
Checks the properties of a pre lattice. |
static void |
checkProperties(PreLowerSemiLattice plsl)
Checks the properties of a pre lower semi lattice. |
static void |
checkProperties(PreLowerSemiLattice plsl,
java.lang.Object[] es)
Checks the properties of a pre lower semi lattice. |
static void |
checkProperties(PreUpperSemiLattice pusl)
Checks the properties of a pre upper semi lattice. |
static void |
checkProperties(PreUpperSemiLattice pusl,
java.lang.Object[] es)
Checks the properties of a pre upper semi lattice. |
static void |
checkProperties(Set set)
Checks the properties of a set. |
static void |
checkProperties(Set set,
java.lang.Object[] es)
Checks the properties of a set. |
static void |
checkProperties(UpperSemiLattice usl)
Checks the properties of an upper semi lattice. |
static void |
checkProperties(UpperSemiLattice usl,
java.lang.Object[] es)
Checks the properties of an upper semi lattice. |
static java.lang.Object[] |
getElements(Set set)
Gets the elements of a finite set, or the elements of the skeleton subset of an infinite set with finite skeleton subset. |
static Graph |
hasseDiagram(POSet poset)
Computes the Hasse diagram of a partially ordered set. |
protected static boolean |
isCovered(POSet poset,
java.lang.Object[] es,
int i,
int j)
Computes the covered relation induced by a partial order. |
static boolean |
isMonotonic(Function f)
Checks if a function is monotonic. |
static java.lang.String |
setToString(Set set)
Creates a string representation of a set by enclosing all elements in braces. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Domain()
Method Detail |
public static java.lang.Object[] getElements(Set set) throws java.lang.Exception
set
- a Set
valueObject[]
valuejava.lang.Exception
- neither the set nor it skeleton subset is finitepublic static void checkProperties(Set set, java.lang.Object[] es) throws java.lang.Exception
set
- a Set
valuees
- an Object[]
the elements of the set.java.lang.Exception
- if an error occurspublic static void checkProperties(Set set) throws java.lang.Exception
set
- a Set
valuejava.lang.Exception
- if an error occurspublic static void checkProperties(POSet poset, java.lang.Object[] es) throws java.lang.Exception
poset
- a POSet
valuees
- an Object[]
the elements of the set.java.lang.Exception
- if an error occurspublic static void checkProperties(POSet poset) throws java.lang.Exception
poset
- a POSet
valuejava.lang.Exception
- if an error occurspublic static void checkProperties(CompletePOSet cposet, java.lang.Object[] es) throws java.lang.Exception
cposet
- a CompletePOSet
valuees
- an Object[]
the elements of the set.java.lang.Exception
- if an error occurspublic static void checkProperties(CompletePOSet cposet) throws java.lang.Exception
cposet
- a CompletePOSet
valuejava.lang.Exception
- if an error occurspublic static void checkProperties(PreUpperSemiLattice pusl, java.lang.Object[] es) throws java.lang.Exception
pusl
- a PreUpperSemiLattice
valuees
- an Object[]
the elements of the set.java.lang.Exception
- if an error occurspublic static void checkProperties(PreUpperSemiLattice pusl) throws java.lang.Exception
pusl
- a PreUpperSemiLattice
valuejava.lang.Exception
- if an error occurspublic static void checkProperties(PreLowerSemiLattice plsl, java.lang.Object[] es) throws java.lang.Exception
pusl
- a PreUpperSemiLattice
valuees
- an Object[]
the elements of the set.java.lang.Exception
- if an error occurspublic static void checkProperties(PreLowerSemiLattice plsl) throws java.lang.Exception
pusl
- a PreUpperSemiLattice
valuejava.lang.Exception
- if an error occurspublic static void checkProperties(UpperSemiLattice usl, java.lang.Object[] es) throws java.lang.Exception
usl
- an UpperSemiLattice
valuees
- an Object[]
the elements of the set.java.lang.Exception
- if an error occurspublic static void checkProperties(UpperSemiLattice usl) throws java.lang.Exception
usl
- an UpperSemiLattice
valuejava.lang.Exception
- if an error occurspublic static void checkProperties(LowerSemiLattice lsl, java.lang.Object[] es) throws java.lang.Exception
lsl
- a LowerSemiLattice
valuees
- an Object[]
the elements of the set.java.lang.Exception
- if an error occurspublic static void checkProperties(LowerSemiLattice lsl) throws java.lang.Exception
lsl
- a LowerSemiLattice
valuejava.lang.Exception
- if an error occurspublic static void checkProperties(PreLattice l, java.lang.Object[] es) throws java.lang.Exception
l
- a PreLattice
valuees
- an Object[]
the elements of the set.java.lang.Exception
- if an error occurspublic static void checkProperties(PreLattice l) throws java.lang.Exception
l
- a PreLattice
valuejava.lang.Exception
- if an error occurspublic static void checkProperties(Lattice l, java.lang.Object[] es) throws java.lang.Exception
l
- a Lattice
valuees
- an Object[]
the elements of the set.java.lang.Exception
- if an error occurspublic static void checkProperties(Lattice l) throws java.lang.Exception
l
- a Lattice
valuejava.lang.Exception
- if an error occurspublic static void checkProperties(CompleteLattice cl, java.lang.Object[] es) throws java.lang.Exception
cl
- a CompleteLattice
valuees
- an Object[]
the elements of the set.java.lang.Exception
- if an error occurspublic static void checkProperties(CompleteLattice cl) throws java.lang.Exception
cl
- a CompleteLattice
valuejava.lang.Exception
- if an error occurspublic static java.lang.String setToString(Set set)
set
- a Set
valueString
valuepublic static boolean isMonotonic(Function f) throws FunctionException
f
- a Function
valueboolean
valueFunctionException
- if either domain or range are not partially ordered.protected static boolean isCovered(POSet poset, java.lang.Object[] es, int i, int j)
poset
- a POSet
value: The underlying order.es
- an Object[]
value: The array of elements.i
- an int
value: The index of the first element.j
- an int
value: The index of the second element.boolean
value: true iff es[i] is covered by es[j]public static Graph hasseDiagram(POSet poset) throws java.lang.Exception
poset
- a POSet
valueGraph
valuejava.lang.Exception
- if an error occurs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |