|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IMarkableLits
Vocabulary in which literals can be marked.
Field Summary | |
---|---|
static int |
MARKLESS
|
Fields inherited from interface org.sat4j.minisat.core.ILits |
---|
UNDEFINED |
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()
|
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 interface org.sat4j.minisat.core.ILits |
---|
attach, attaches, belongsToPool, ensurePool, getFromPool, getLevel, getReason, init, isFalsified, isImplied, isSatisfied, isUnassigned, not, nVars, realnVars, reset, resetPool, satisfies, setLevel, setReason, unassign, undos, valueToString |
Field Detail |
---|
static final int MARKLESS
Method Detail |
---|
void setMark(int p, int mark)
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.void setMark(int p)
p
- a literalint getMark(int p)
p
- a literal
boolean isMarked(int p)
p
- a literal
void resetMark(int p)
p
- a literalvoid resetAllMarks()
IVecInt getMarkedLiterals()
IVecInt getMarkedLiterals(int mark)
mark
- a mark
IVecInt getMarkedVariables()
IVecInt getMarkedVariables(int mark)
mark
- a mark.
java.util.Set<java.lang.Integer> getMarks()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |