|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.uacalc.util.IntArray
org.uacalc.alg.sublat.BasicSet
public class BasicSet
This class implement the basic set operations on the set {0, 1, ..., n-1}.
| Field Summary | |
|---|---|
static BasicSet |
EMPTY_SET
|
| Fields inherited from class org.uacalc.util.IntArray |
|---|
array, size |
| Constructor Summary | |
|---|---|
BasicSet(int[] set)
|
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object o)
The order of a linear extension respecting rank. |
boolean |
contains(int i)
|
boolean |
leq(BasicSet set2)
Is this a subset of set2. |
static boolean |
leq(int[] u,
int[] v)
Is u a subset of v. |
void |
normalize()
Put the array in ascending order. |
BasicSet |
setDifference(BasicSet set2)
Set difference of this and set2. |
java.lang.String |
toString(SmallAlgebra alg)
Print this subset using alg's elements. |
| Methods inherited from class org.uacalc.util.IntArray |
|---|
clone, equalIntArrays, equals, get, getArray, hashCode, intArrayToString, isIdempotent, lexicographicComparitor, satisfiesConstraint, satisfiesConstraint, set, setIntArray, toArray, toString, universeSize |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final BasicSet EMPTY_SET
| Constructor Detail |
|---|
public BasicSet(int[] set)
| Method Detail |
|---|
public void normalize()
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparablepublic boolean leq(BasicSet set2)
public static boolean leq(int[] u,
int[] v)
public boolean contains(int i)
public BasicSet setDifference(BasicSet set2)
public java.lang.String toString(SmallAlgebra alg)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||