org.sat4j.pb.constraints
Class AbstractPBDataStructureFactoryPB

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

public abstract class AbstractPBDataStructureFactoryPB
extends AbstractPBDataStructureFactory

The root of the data structures that manage all the constraints as PBConstr (that way, cutting planes can be applied).

Author:
leberre
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.sat4j.minisat.constraints.AbstractDataStructureFactory
learner, lits, solver
 
Constructor Summary
AbstractPBDataStructureFactoryPB()
           
 
Method Summary
 PBConstr createClause(IVecInt literals)
           
 PBConstr createUnregisteredClause(IVecInt literals)
           
 PBConstr createUnregisteredPseudoBooleanConstraint(IVecInt literals, IVec<java.math.BigInteger> coefs, java.math.BigInteger degree)
           
 
Methods inherited from class org.sat4j.pb.constraints.AbstractPBDataStructureFactory
constraintFactory, constraintFactory, constraintFactory, constraintFactory, constraintFactory, createCardinalityConstraint, createLits, createPseudoBooleanConstraint, 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

AbstractPBDataStructureFactoryPB

public AbstractPBDataStructureFactoryPB()
Method Detail

createUnregisteredPseudoBooleanConstraint

public PBConstr createUnregisteredPseudoBooleanConstraint(IVecInt literals,
                                                          IVec<java.math.BigInteger> coefs,
                                                          java.math.BigInteger degree)
Specified by:
createUnregisteredPseudoBooleanConstraint in interface IInternalPBConstraintCreator
Specified by:
createUnregisteredPseudoBooleanConstraint in interface PBDataStructureFactory<ILits>
Overrides:
createUnregisteredPseudoBooleanConstraint in class AbstractPBDataStructureFactory

createClause

public PBConstr createClause(IVecInt literals)
                      throws ContradictionException
Specified by:
createClause in interface DataStructureFactory<ILits>
Overrides:
createClause in class AbstractPBDataStructureFactory
Throws:
ContradictionException

createUnregisteredClause

public PBConstr createUnregisteredClause(IVecInt literals)
Specified by:
createUnregisteredClause in interface DataStructureFactory<ILits>
Overrides:
createUnregisteredClause in class AbstractPBDataStructureFactory


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