|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sat4j.minisat.constraints.cnf.Lits
public final class Lits
Field Summary |
---|
Fields inherited from interface org.sat4j.minisat.core.ILits |
---|
UNDEFINED |
Constructor Summary | |
---|---|
Lits()
|
Method Summary | |
---|---|
boolean |
belongsToPool(int x)
Returns true iff the variable is used in the set of constraints. |
protected int |
capacity()
To get the capacity of the current vocabulary. |
void |
ensurePool(int howmany)
|
int |
getFromPool(int x)
Translates a Dimacs literal into an internal representation literal. |
int |
getLevel(int lit)
|
Constr |
getReason(int lit)
|
void |
init(int nvar)
|
boolean |
isFalsified(int lit)
|
boolean |
isImplied(int lit)
|
boolean |
isSatisfied(int lit)
|
boolean |
isUnassigned(int lit)
|
int |
nextFreeVarId(boolean reserve)
Ask the solver for a free variable identifier, in Dimacs format (i.e. a positive number). |
int |
not(int lit)
|
int |
nVars()
to obtain the max id of the variable |
int |
realnVars()
to obtain the real number of variables appearing in the formula |
void |
reset(int lit)
|
void |
resetPool()
|
void |
satisfies(int lit)
|
void |
setLevel(int lit,
int l)
|
void |
setReason(int lit,
Constr r)
|
static String |
toString(int lit)
|
void |
unassign(int lit)
|
IVec<Undoable> |
undos(int lit)
|
String |
valueToString(int lit)
|
void |
watch(int lit,
Propagatable c)
|
IVec<Propagatable> |
watches(int lit)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Lits()
Method Detail |
---|
public final void init(int nvar)
init
in interface ILits
public int getFromPool(int x)
ILits
getFromPool
in interface ILits
x
- the Dimacs literal (a non null integer).
public boolean belongsToPool(int x)
ILits
belongsToPool
in interface ILits
public void resetPool()
resetPool
in interface ILits
public void ensurePool(int howmany)
ensurePool
in interface ILits
public void unassign(int lit)
unassign
in interface ILits
public void satisfies(int lit)
satisfies
in interface ILits
public boolean isSatisfied(int lit)
isSatisfied
in interface ILits
public final boolean isFalsified(int lit)
isFalsified
in interface ILits
public boolean isUnassigned(int lit)
isUnassigned
in interface ILits
public String valueToString(int lit)
valueToString
in interface ILits
public int nVars()
ILits
nVars
in interface ILits
public int not(int lit)
not
in interface ILits
public static String toString(int lit)
public void reset(int lit)
reset
in interface ILits
public int getLevel(int lit)
getLevel
in interface ILits
public void setLevel(int lit, int l)
setLevel
in interface ILits
public Constr getReason(int lit)
getReason
in interface ILits
public void setReason(int lit, Constr r)
setReason
in interface ILits
public IVec<Undoable> undos(int lit)
undos
in interface ILits
public void watch(int lit, Propagatable c)
watch
in interface ILits
public IVec<Propagatable> watches(int lit)
watches
in interface ILits
lit
- a literal
public boolean isImplied(int lit)
isImplied
in interface ILits
public int realnVars()
ILits
realnVars
in interface ILits
protected int capacity()
public int nextFreeVarId(boolean reserve)
ILits
nextFreeVarId
in interface ILits
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |