org.sat4j.pb.constraints
Class AbstractPBClauseCardConstrDataStructure

java.lang.Object
  extended by org.sat4j.minisat.constraints.AbstractDataStructureFactory<ILits>
      extended by org.sat4j.pb.constraints.AbstractPBDataStructureFactory
          extended by org.sat4j.pb.constraints.AbstractPBClauseCardConstrDataStructure
All Implemented Interfaces:
java.io.Serializable, DataStructureFactory<ILits>, IInternalPBConstraintCreator, PBDataStructureFactory<ILits>
Direct Known Subclasses:
PuebloPBMinClauseCardConstrDataStructure

public abstract class AbstractPBClauseCardConstrDataStructure
extends AbstractPBDataStructureFactory

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.sat4j.minisat.constraints.AbstractDataStructureFactory
learner, lits, solver
 
Constructor Summary
AbstractPBClauseCardConstrDataStructure()
           
 
Method Summary
protected  PBConstr constraintFactory(IDataStructurePB dspb)
           
protected  PBConstr constraintFactory(IVecInt literals, IVec<java.math.BigInteger> coefs, java.math.BigInteger degree)
           
protected  PBConstr constraintFactory(IVecInt literals, IVec<java.math.BigInteger> coefs, boolean moreThan, java.math.BigInteger degree)
           
protected  PBConstr constraintFactory(IVecInt literals, IVecInt coefs, boolean moreThan, int degree)
           
protected  PBConstr constraintFactory(IVecInt literals, IVecInt coefs, int degree)
           
protected abstract  PBConstr constructCard(IVecInt theLits, int degree)
           
protected abstract  PBConstr constructClause(IVecInt v)
           
protected abstract  PBConstr constructLearntCard(IDataStructurePB dspb)
           
protected abstract  PBConstr constructLearntCard(IVecInt literals, int degree)
           
protected abstract  PBConstr constructLearntClause(IDataStructurePB dspb)
           
protected abstract  PBConstr constructLearntClause(IVecInt literals)
           
protected abstract  PBConstr constructLearntPB(IDataStructurePB dspb)
           
protected abstract  PBConstr constructLearntPB(IVecInt literals, IVec<java.math.BigInteger> coefs, java.math.BigInteger degree)
           
protected abstract  PBConstr constructPB(IDataStructurePB mpb)
           
protected abstract  PBConstr constructPB(int[] theLits, java.math.BigInteger[] coefs, java.math.BigInteger degree)
           
 
Methods inherited from class org.sat4j.pb.constraints.AbstractPBDataStructureFactory
createCardinalityConstraint, createClause, createLits, createPseudoBooleanConstraint, createUnregisteredClause, createUnregisteredPseudoBooleanConstraint, createUnregisteredPseudoBooleanConstraint, createUnregisteredPseudoBooleanConstraint
 
Methods inherited from class org.sat4j.minisat.constraints.AbstractDataStructureFactory
conflictDetectedInAttachesFor, getAttachesFor, getVocabulary, 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
conflictDetectedInAttachesFor, getAttachesFor, getVocabulary, learnConstraint, reset, setLearner, setUnitPropagationListener
 

Constructor Detail

AbstractPBClauseCardConstrDataStructure

public AbstractPBClauseCardConstrDataStructure()
Method Detail

constraintFactory

protected PBConstr constraintFactory(IVecInt literals,
                                     IVecInt coefs,
                                     boolean moreThan,
                                     int degree)
                              throws ContradictionException
Specified by:
constraintFactory in class AbstractPBDataStructureFactory
Parameters:
literals - the literals
coefs - the coefficients
degree - the degree of the constraint
Returns:
a new PB constraint
Throws:
ContradictionException

constraintFactory

protected PBConstr constraintFactory(IVecInt literals,
                                     IVecInt coefs,
                                     int degree)
Specified by:
constraintFactory in class AbstractPBDataStructureFactory
Returns:
a new PB constraint

constraintFactory

protected PBConstr constraintFactory(IVecInt literals,
                                     IVec<java.math.BigInteger> coefs,
                                     boolean moreThan,
                                     java.math.BigInteger degree)
                              throws ContradictionException
Specified by:
constraintFactory in class AbstractPBDataStructureFactory
Throws:
ContradictionException

constraintFactory

protected PBConstr constraintFactory(IDataStructurePB dspb)
Specified by:
constraintFactory in class AbstractPBDataStructureFactory

constraintFactory

protected PBConstr constraintFactory(IVecInt literals,
                                     IVec<java.math.BigInteger> coefs,
                                     java.math.BigInteger degree)
Specified by:
constraintFactory in class AbstractPBDataStructureFactory

constructClause

protected abstract PBConstr constructClause(IVecInt v)
                                     throws ContradictionException
Throws:
ContradictionException

constructCard

protected abstract PBConstr constructCard(IVecInt theLits,
                                          int degree)
                                   throws ContradictionException
Throws:
ContradictionException

constructPB

protected abstract PBConstr constructPB(IDataStructurePB mpb)
                                 throws ContradictionException
Throws:
ContradictionException

constructPB

protected abstract PBConstr constructPB(int[] theLits,
                                        java.math.BigInteger[] coefs,
                                        java.math.BigInteger degree)
                                 throws ContradictionException
Throws:
ContradictionException

constructLearntClause

protected abstract PBConstr constructLearntClause(IVecInt literals)

constructLearntCard

protected abstract PBConstr constructLearntCard(IVecInt literals,
                                                int degree)

constructLearntPB

protected abstract PBConstr constructLearntPB(IVecInt literals,
                                              IVec<java.math.BigInteger> coefs,
                                              java.math.BigInteger degree)

constructLearntClause

protected abstract PBConstr constructLearntClause(IDataStructurePB dspb)

constructLearntCard

protected abstract PBConstr constructLearntCard(IDataStructurePB dspb)

constructLearntPB

protected abstract PBConstr constructLearntPB(IDataStructurePB dspb)


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