|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object tuffy.mln.Literal.VarClique
private class Literal.VarClique
Clique of variables. Here by clique, it means a set of variables, plus a constant.
Literal.mostGeneralUnification(Tuple)
Field Summary | |
---|---|
(package private) java.lang.Integer |
constant
The constant of this clique. |
(package private) java.util.HashSet<java.lang.String> |
vars
The set of variable names in this clique. |
Constructor Summary | |
---|---|
private |
Literal.VarClique()
|
Method Summary | |
---|---|
void |
addVar(java.lang.String v)
Add variable to this clique. |
boolean |
setConstant(int con)
Set the constant of this clique. |
boolean |
swallow(Literal.VarClique c)
Merge a new clique with the current one. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
java.util.HashSet<java.lang.String> vars
java.lang.Integer constant
Constructor Detail |
---|
private Literal.VarClique()
Method Detail |
---|
public void addVar(java.lang.String v)
v
- the name of added variable.public boolean setConstant(int con)
con
- the added constant.
public boolean swallow(Literal.VarClique c)
c
- the new clique
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |