org.sat4j.pb.constraints
Class AbstractPBDataStructureFactory
java.lang.Object
org.sat4j.minisat.constraints.AbstractDataStructureFactory
org.sat4j.pb.constraints.AbstractPBDataStructureFactory
- All Implemented Interfaces:
- java.io.Serializable, DataStructureFactory, PBDataStructureFactory
- Direct Known Subclasses:
- AbstractPBClauseCardConstrDataStructure, PBMaxDataStructure, PBMinDataStructure, PuebloPBMinDataStructure
public abstract class AbstractPBDataStructureFactory
- extends AbstractDataStructureFactory
- implements PBDataStructureFactory
- 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FOR_COMPETITION
public static final org.sat4j.pb.constraints.AbstractPBDataStructureFactory.INormalizer FOR_COMPETITION
NO_COMPETITION
public static final org.sat4j.pb.constraints.AbstractPBDataStructureFactory.INormalizer NO_COMPETITION
AbstractPBDataStructureFactory
public AbstractPBDataStructureFactory()
getNormalizer
protected org.sat4j.pb.constraints.AbstractPBDataStructureFactory.INormalizer getNormalizer()
setNormalizer
public void setNormalizer(java.lang.String simp)
setNormalizer
public void setNormalizer(org.sat4j.pb.constraints.AbstractPBDataStructureFactory.INormalizer normalizer)
createClause
public Constr createClause(IVecInt literals)
throws ContradictionException
- Specified by:
createClause
in interface DataStructureFactory
- Throws:
ContradictionException
createUnregisteredClause
public Constr createUnregisteredClause(IVecInt literals)
- Specified by:
createUnregisteredClause
in interface DataStructureFactory
createCardinalityConstraint
public Constr createCardinalityConstraint(IVecInt literals,
int degree)
throws ContradictionException
- Specified by:
createCardinalityConstraint
in interface DataStructureFactory
- Overrides:
createCardinalityConstraint
in class AbstractDataStructureFactory
- Throws:
ContradictionException
createPseudoBooleanConstraint
public Constr createPseudoBooleanConstraint(IVecInt literals,
IVec<java.math.BigInteger> coefs,
boolean moreThan,
java.math.BigInteger degree)
throws ContradictionException
- Specified by:
createPseudoBooleanConstraint
in interface PBDataStructureFactory
- Throws:
ContradictionException
createUnregisteredPseudoBooleanConstraint
public Constr createUnregisteredPseudoBooleanConstraint(IDataStructurePB dspb)
- Specified by:
createUnregisteredPseudoBooleanConstraint
in interface PBDataStructureFactory
constraintFactory
protected abstract Constr constraintFactory(int[] literals,
java.math.BigInteger[] coefs,
java.math.BigInteger degree)
throws ContradictionException
- Throws:
ContradictionException
learntConstraintFactory
protected abstract Constr learntConstraintFactory(IDataStructurePB dspb)
createLits
protected ILits createLits()
- Specified by:
createLits
in class AbstractDataStructureFactory
Copyright © 2009 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.