|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sat4j.tools.ConstrGroup
public class ConstrGroup
A utility class used to manage easily group of clauses to be deleted at some point in the solver.
Constructor Summary | |
---|---|
ConstrGroup()
Create a ConstrGroup that cannot contain null constrs. |
|
ConstrGroup(boolean disallowNullConstraints)
Create a new constrGroup. |
Method Summary | |
---|---|
void |
add(IConstr constr)
|
void |
clear()
|
int |
get(int i)
returns the ith literal in the constraint |
double |
getActivity()
To obtain the activity of the constraint. |
IConstr |
getConstr(int i)
|
boolean |
learnt()
|
void |
removeFrom(ISolver solver)
|
int |
size()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConstrGroup()
public ConstrGroup(boolean disallowNullConstraints)
disallowNullConstraints
- should be set to false to allow adding null constraints to the
group.Method Detail |
---|
public void add(IConstr constr)
public void clear()
public void removeFrom(ISolver solver)
public IConstr getConstr(int i)
public int size()
size
in interface IConstr
public boolean learnt()
learnt
in interface IConstr
public double getActivity()
IConstr
getActivity
in interface IConstr
public int get(int i)
IConstr
get
in interface IConstr
i
- the index of the literal
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |