|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrevisionlogic.EquivalenceSet
EquivalenceSet represents a set of equivalences or biconditionals.
Field Summary | |
(package private) java.util.Vector |
m_Equivalences
The set of equivalences or biconditionals. |
Constructor Summary | |
(package private) |
EquivalenceSet()
Creates a new EquivalenceSet. |
Method Summary | |
(package private) void |
addEquivalences_NumberedtoPrimed(java.util.Collection v,
int n)
Creates a set of biconditionals from the strings in v with the superscript n . |
(package private) void |
addEquivalences_PrimedtoUnprimed(java.util.Vector v)
Creates a set of biconditionals from the strings in v . |
(package private) void |
clear()
Clears the set of equivalences of this EquivalenceSet. |
(package private) java.util.Vector |
getEQSet(java.util.BitSet bs)
Returns the corresponding set of equivalences for the BitSet bs . |
(package private) java.util.Vector |
getLiteralsFromEQSet(java.util.BitSet bs)
Returns the corresponding set of literals for the BitSet bs . |
(package private) int |
getNumberOfEquivalences()
Returns the number of equivalences of this EquivalenceSet. |
(package private) static java.util.Vector |
pairDownToMaximal(java.util.Vector v)
Returns all of the maximal elements (Vectors) of v . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
java.util.Vector m_Equivalences
Constructor Detail |
EquivalenceSet()
Method Detail |
void clear()
void addEquivalences_PrimedtoUnprimed(java.util.Vector v)
v
. For example, given a v
containing
{p, q}, it creates a vector of ISents {p=p', q=q'}.
v
- the Vector of strings from which to generate equivalences.void addEquivalences_NumberedtoPrimed(java.util.Collection v, int n)
v
with the superscript n
. For example,
given a v
containing {p, q} and an int i, it creates a vector of ISents {p^i=p',q^i=q'}.
v
- the Collection of strings from which to generate equivalences.n
- an int indicating the superscript for the generated equivalences.int getNumberOfEquivalences()
static java.util.Vector pairDownToMaximal(java.util.Vector v)
v
. More precisely, suppose Vectors v1 and v2 are
in v
. If v1 is a subset of v2, then the returned Vector will contain v2 but not v1.
v
- the Vector whose elements (Vectors) are to be compared to each other.
java.util.Vector getEQSet(java.util.BitSet bs)
bs
. For example, if a bit k in
bs
is set, then the returned set of equivalences will contain the biconditional indexed k.
bs
- the BitSet whose corresponding equivalences are to be returned.
bs
.java.util.Vector getLiteralsFromEQSet(java.util.BitSet bs)
bs
. For example, if a bit k in bs
is set, then the returned set of literals will contain the first literal of the equivalence indexed k.
bs
- the BitSet whose corresponding literals are to be returned.
bs
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |