|
||||||||||
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 org.sat4j.minisat.constraints.cnf.MarkableLits
public class MarkableLits
Field Summary |
---|
Fields inherited from class org.sat4j.minisat.constraints.cnf.Lits |
---|
watches |
Fields inherited from interface org.sat4j.minisat.core.IMarkableLits |
---|
MARKLESS |
Fields inherited from interface org.sat4j.minisat.core.ILits |
---|
UNDEFINED |
Constructor Summary | |
---|---|
MarkableLits()
|
Method Summary | |
---|---|
int |
getMark(int p)
To get the mark for a given literal. |
IVecInt |
getMarkedLiterals()
Returns the set of all marked literals. |
IVecInt |
getMarkedLiterals(int mark)
Returns that set of all the literals having a specific mark. |
IVecInt |
getMarkedVariables()
Returns the set of all marked variables. |
IVecInt |
getMarkedVariables(int mark)
Returns the set of all variables having a specific mark. |
java.util.Set<java.lang.Integer> |
getMarks()
|
void |
init(int nvar)
|
boolean |
isMarked(int p)
To know if a given literal is marked, i.e. has a mark different from MARKLESS. |
void |
resetAllMarks()
Set all the literal marks to MARKLESS |
void |
resetMark(int p)
Set the mark of a given literal to MARKLESS. |
void |
setMark(int p)
Mark a given literal. |
void |
setMark(int p,
int mark)
Mark a given literal with a given mark. |
Methods inherited from class org.sat4j.minisat.constraints.cnf.Lits |
---|
attach, attaches, belongsToPool, capacity, ensurePool, getFromPool, getLevel, getReason, isFalsified, isImplied, isSatisfied, isUnassigned, not, nVars, realnVars, reset, resetPool, satisfies, setLevel, setReason, toString, unassign, undos, valueToString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.sat4j.minisat.core.ILits |
---|
attach, attaches, belongsToPool, ensurePool, getFromPool, getLevel, getReason, isFalsified, isImplied, isSatisfied, isUnassigned, not, nVars, realnVars, reset, resetPool, satisfies, setLevel, setReason, unassign, undos, valueToString |
Constructor Detail |
---|
public MarkableLits()
Method Detail |
---|
public void init(int nvar)
init
in interface ILits
init
in class Lits
public void setMark(int p, int mark)
IMarkableLits
setMark
in interface IMarkableLits
p
- the literalmark
- an integer used to mark the literal. The specific mark
MARKLESS is used to denote that the literal is not marked. The
marks are supposed to be positive in the most common cases.public void setMark(int p)
IMarkableLits
setMark
in interface IMarkableLits
p
- a literalpublic int getMark(int p)
IMarkableLits
getMark
in interface IMarkableLits
p
- a literal
public boolean isMarked(int p)
IMarkableLits
isMarked
in interface IMarkableLits
p
- a literal
public void resetMark(int p)
IMarkableLits
resetMark
in interface IMarkableLits
p
- a literalpublic void resetAllMarks()
IMarkableLits
resetAllMarks
in interface IMarkableLits
public IVecInt getMarkedLiterals()
IMarkableLits
getMarkedLiterals
in interface IMarkableLits
public IVecInt getMarkedLiterals(int mark)
IMarkableLits
getMarkedLiterals
in interface IMarkableLits
mark
- a mark
public IVecInt getMarkedVariables()
IMarkableLits
getMarkedVariables
in interface IMarkableLits
public IVecInt getMarkedVariables(int mark)
IMarkableLits
getMarkedVariables
in interface IMarkableLits
mark
- a mark.
public java.util.Set<java.lang.Integer> getMarks()
getMarks
in interface IMarkableLits
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |