org.sat4j.minisat.constraints
Class ClausalDataStructureCB

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

public class ClausalDataStructureCB
extends AbstractDataStructureFactory<ILits>

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

Field Summary
 
Fields inherited from class org.sat4j.minisat.constraints.AbstractDataStructureFactory
learner, lits, solver
 
Constructor Summary
ClausalDataStructureCB()
           
 
Method Summary
 void conflictDetectedInAttachesFor(int p, int i)
           
 Constr createClause(IVecInt literals)
           
protected  ILits createLits()
           
 Constr createUnregisteredClause(IVecInt literals)
           
 IVec<Propagatable> getAttachesFor(int p)
           
 
Methods inherited from class org.sat4j.minisat.constraints.AbstractDataStructureFactory
createCardinalityConstraint, getVocabulary, learnConstraint, reset, setLearner, setUnitPropagationListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClausalDataStructureCB

public ClausalDataStructureCB()
Method Detail

conflictDetectedInAttachesFor

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

getAttachesFor

public IVec<Propagatable> getAttachesFor(int p)
Specified by:
getAttachesFor in interface DataStructureFactory<ILits>
Overrides:
getAttachesFor in class AbstractDataStructureFactory<ILits>
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)

createLits

protected ILits createLits()
Specified by:
createLits in class AbstractDataStructureFactory<ILits>


Copyright © 2009 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.