|
|||||||||
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
valueMethod Detail |
public long size()
size
in interface Set
long
valuepublic java.util.Iterator iterator()
iterator
in interface Set
Iterator
valuepublic long sizeSkel()
size()
.sizeSkel
in interface Set
long
valuepublic java.util.Iterator iteratorSkel()
iterator()
.iteratorSkel
in interface Set
Iterator
valuepublic boolean isElement(java.lang.Object e)
Set
isElement()
is true for all
objects generated by Set.iterator()
and false for all other
objects.isElement
in interface Set
de.rwth.domains.Set
e
- a value of type Object
true
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)
Set
equals
is reflexive,
transitive and symmetric. Furthermore, equals(e1,e2)
should
coincide with e1.equals(e2)
.equals
in interface Set
de.rwth.domains.Set
e1
- a value of type Object
e2
- a value of type Object
true
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 POSet
e1
- an Object
valuee2
- an Object
valueboolean
valuepublic boolean lt(java.lang.Object e1, java.lang.Object e2)
lt
in interface POSet
e1
- an Object
valuee2
- an Object
valueboolean
valuepublic java.lang.Object join(java.lang.Object e1, java.lang.Object e2)
join
in interface Lattice
e1
- an Object
valuee2
- an Object
valueObject
valuepublic java.lang.Object meet(java.lang.Object e1, java.lang.Object e2)
meet
in interface Lattice
e1
- an Object
valuee2
- an Object
valueObject
valuepublic java.lang.Object top()
top
in interface CompleteLattice
Object
valuepublic java.lang.Object bottom()
bottom
in interface CompleteLattice
Object
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 |