|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sat4j.core.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)
|
boolean |
canBePropagatedMultipleTimes()
Partition constraints into the ones that can only be found once on the trail (e.g. clauses) and the ones that can be found several times (e.g. |
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()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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
public boolean canBePropagatedMultipleTimes()
IConstr
canBePropagatedMultipleTimes
in interface IConstr
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |