|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--de.rwth.domains.templates.BitVectorLattice
Implements complete lattices of bit vectors.
| Inner classes inherited from class de.rwth.domains.Set |
Set.Default |
| Field Summary | |
protected int |
n
The fixed length of the bit vectors. |
| Constructor Summary | |
BitVectorLattice(int n)
Creates a new BitVectorLattice instance. |
|
| Method Summary | |
java.lang.Object |
bottom()
The bottom element is (0,...,0). |
boolean |
equals(java.lang.Object e1,
java.lang.Object e2)
Checks if two elements of this set are equal. |
boolean |
isElement(java.lang.Object e)
Checks if an element is contained in this set. |
java.util.Iterator |
iterator()
Returns an iterator over all bit vectors. |
java.util.Iterator |
iteratorSkel()
The same as iterator(). |
java.lang.Object |
join(java.lang.Object e1,
java.lang.Object e2)
The join of two bit vectors is a bit vector where all those bits are set, which are set in one of the bit vectors. |
boolean |
le(java.lang.Object e1,
java.lang.Object e2)
A bit vector is less or equal than another one iff all bits set in the first one are also set in the second one |
boolean |
lt(java.lang.Object e1,
java.lang.Object e2)
A bit vector is less than another one iff its less-than-or-equal but not equal than the second. |
static void |
main(java.lang.String[] args)
Mini test environment. |
java.lang.Object |
meet(java.lang.Object e1,
java.lang.Object e2)
The meet of two bit vectors is a bit vector where all those bits are set, which are set in both of the bit vectors. |
long |
size()
Returns the number of elements, which is 2n. |
long |
sizeSkel()
The same as size(). |
java.lang.Object |
top()
The top element is (1,...,1). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int n
| Constructor Detail |
public BitVectorLattice(int n)
BitVectorLattice instance.n - an int value| Method Detail |
public long size()
size in interface Setlong valuepublic java.util.Iterator iterator()
iterator in interface SetIterator valuepublic long sizeSkel()
size().sizeSkel in interface Setlong valuepublic java.util.Iterator iteratorSkel()
iterator().iteratorSkel in interface SetIterator valuepublic boolean isElement(java.lang.Object e)
SetisElement() is true for all
objects generated by Set.iterator() and false for all other
objects.isElement in interface Setde.rwth.domains.Sete - a value of type Objecttrue if and only if this set contains this element.Set.iterator(),
Domain.checkProperties(Set set)
public boolean equals(java.lang.Object e1,
java.lang.Object e2)
Setequals is reflexive,
transitive and symmetric. Furthermore, equals(e1,e2) should
coincide with e1.equals(e2).equals in interface Setde.rwth.domains.Sete1 - a value of type Objecte2 - a value of type Objecttrue if e1 and e2 belong to this
set and are equal, false otherwiseDomain.checkProperties(Set set)
public boolean le(java.lang.Object e1,
java.lang.Object e2)
le in interface POSete1 - an Object valuee2 - an Object valueboolean value
public boolean lt(java.lang.Object e1,
java.lang.Object e2)
lt in interface POSete1 - an Object valuee2 - an Object valueboolean value
public java.lang.Object join(java.lang.Object e1,
java.lang.Object e2)
join in interface Latticee1 - an Object valuee2 - an Object valueObject value
public java.lang.Object meet(java.lang.Object e1,
java.lang.Object e2)
meet in interface Latticee1 - an Object valuee2 - an Object valueObject valuepublic java.lang.Object top()
top in interface CompleteLatticeObject valuepublic java.lang.Object bottom()
bottom in interface CompleteLatticeObject valuepublic static void main(java.lang.String[] args)
args - a String[] value
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||