org.sat4j.minisat.constraints
Class ClausalDataStructureCB

java.lang.Object
  extended by org.sat4j.minisat.constraints.AbstractDataStructureFactory
      extended by org.sat4j.minisat.constraints.ClausalDataStructureCB
All Implemented Interfaces:
java.io.Serializable, DataStructureFactory

public class ClausalDataStructureCB
extends AbstractDataStructureFactory

Author:
parrain To change the template for this generated type comment go to Window - Preferences - Java - Code Generation - Code and Comments
See Also:
Serialized Form

Constructor Summary
ClausalDataStructureCB()
           
 
Method Summary
 void conflictDetectedInWatchesFor(int p, int i)
           
 Constr createClause(IVecInt literals)
           
 Constr createUnregisteredClause(IVecInt literals)
           
 IVec<Propagatable> getWatchesFor(int p)
           
 
Methods inherited from class org.sat4j.minisat.constraints.AbstractDataStructureFactory
createCardinalityConstraint, createPseudoBooleanConstraint, createUnregisteredPseudoBooleanConstraint, getVocabulary, learnConstraint, reset, setLearner, setUnitPropagationListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClausalDataStructureCB

public ClausalDataStructureCB()
Method Detail

conflictDetectedInWatchesFor

public void conflictDetectedInWatchesFor(int p,
                                         int i)
Specified by:
conflictDetectedInWatchesFor in interface DataStructureFactory
Overrides:
conflictDetectedInWatchesFor in class AbstractDataStructureFactory
i - the index of the conflicting constraint

getWatchesFor

public IVec<Propagatable> getWatchesFor(int p)
Specified by:
getWatchesFor in interface DataStructureFactory
Overrides:
getWatchesFor in class AbstractDataStructureFactory
Returns:
a vector containing all the objects to be notified of the satisfaction of that literal.

createClause

public Constr createClause(IVecInt literals)
                    throws ContradictionException
Parameters:
literals - a set of literals using Dimacs format (signed non null integers).
Returns:
null if the constraint is a tautology.
Throws:
ContradictionException - the constraint is trivially unsatisfiable.

createUnregisteredClause

public Constr createUnregisteredClause(IVecInt literals)