|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sat4j.minisat.constraints.cnf.Lits
public class Lits
| Field Summary | |
|---|---|
protected IVec<Propagatable>[] |
watches
|
| 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 java.lang.String |
toString(int lit)
|
void |
unassign(int lit)
|
IVec<Undoable> |
undos(int lit)
|
java.lang.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 |
| Field Detail |
|---|
protected IVec<Propagatable>[] watches
| Constructor Detail |
|---|
public Lits()
| Method Detail |
|---|
public void init(int nvar)
init in interface ILitspublic int getFromPool(int x)
ILits
getFromPool in interface ILitsx - the Dimacs literal (a non null integer).
public boolean belongsToPool(int x)
ILits
belongsToPool in interface ILitspublic void resetPool()
resetPool in interface ILitspublic void ensurePool(int howmany)
ensurePool in interface ILitspublic void unassign(int lit)
unassign in interface ILitspublic void satisfies(int lit)
satisfies in interface ILitspublic boolean isSatisfied(int lit)
isSatisfied in interface ILitspublic final boolean isFalsified(int lit)
isFalsified in interface ILitspublic boolean isUnassigned(int lit)
isUnassigned in interface ILitspublic java.lang.String valueToString(int lit)
valueToString in interface ILitspublic int nVars()
ILits
nVars in interface ILitspublic int not(int lit)
not in interface ILitspublic static java.lang.String toString(int lit)
public void reset(int lit)
reset in interface ILitspublic int getLevel(int lit)
getLevel in interface ILits
public void setLevel(int lit,
int l)
setLevel in interface ILitspublic Constr getReason(int lit)
getReason in interface ILits
public void setReason(int lit,
Constr r)
setReason in interface ILitspublic IVec<Undoable> undos(int lit)
undos in interface ILits
public void watch(int lit,
Propagatable c)
watch in interface ILitspublic IVec<Propagatable> watches(int lit)
watches in interface ILitslit - a literal
public boolean isImplied(int lit)
isImplied in interface ILitspublic int realnVars()
ILits
realnVars in interface ILitsprotected 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 | |||||||||