org.sat4j.minisat.constraints
Class AbstractCardinalityDataStructure

java.lang.Object
  extended by org.sat4j.minisat.constraints.AbstractDataStructureFactory<ILits>
      extended by org.sat4j.minisat.constraints.AbstractCardinalityDataStructure
All Implemented Interfaces:
java.io.Serializable, DataStructureFactory<ILits>
Direct Known Subclasses:
CardinalityDataStructure, CardinalityDataStructureYanMax, CardinalityDataStructureYanMin

public abstract class AbstractCardinalityDataStructure
extends AbstractDataStructureFactory<ILits>

Author:
leberre 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
AbstractCardinalityDataStructure()
           
 
Method Summary
static boolean coefficientsEqualToOne(IVec<java.math.BigInteger> v)
           
protected  ILits createLits()
           
 Constr createPseudoBooleanConstraint(IVecInt literals, IVec<java.math.BigInteger> coefs, boolean moreThan, java.math.BigInteger degree)
           
 
Methods inherited from class org.sat4j.minisat.constraints.AbstractDataStructureFactory
conflictDetectedInWatchesFor, createCardinalityConstraint, createUnregisteredPseudoBooleanConstraint, getVocabulary, getWatchesFor, learnConstraint, reset, setLearner, setUnitPropagationListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.sat4j.minisat.core.DataStructureFactory
createClause, createUnregisteredClause
 

Constructor Detail

AbstractCardinalityDataStructure

public AbstractCardinalityDataStructure()
Method Detail

createPseudoBooleanConstraint

public Constr createPseudoBooleanConstraint(IVecInt literals,
                                            IVec<java.math.BigInteger> coefs,
                                            boolean moreThan,
                                            java.math.BigInteger degree)
                                     throws ContradictionException
Specified by:
createPseudoBooleanConstraint in interface DataStructureFactory<ILits>
Overrides:
createPseudoBooleanConstraint in class AbstractDataStructureFactory<ILits>
Throws:
ContradictionException

coefficientsEqualToOne

public static boolean coefficientsEqualToOne(IVec<java.math.BigInteger> v)

createLits

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


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