org.sat4j.pb.constraints.pb
Class OriginalHTClausePB
java.lang.Object
org.sat4j.minisat.constraints.cnf.HTClause
org.sat4j.minisat.constraints.cnf.OriginalHTClause
org.sat4j.pb.constraints.pb.OriginalHTClausePB
- All Implemented Interfaces:
- Serializable, Constr, Propagatable, PBConstr, IConstr
public final class OriginalHTClausePB
- extends OriginalHTClause
- implements PBConstr
- See Also:
- Serialized Form
Methods inherited from class org.sat4j.minisat.constraints.cnf.HTClause |
assertConstraint, calcReason, canBePropagatedMultipleTimes, equals, get, getActivity, getLits, getVocabulary, hashCode, locked, propagate, remove, rescaleBy, simplify, size, toString |
OriginalHTClausePB
public OriginalHTClausePB(IVecInt ps,
ILits voc)
computeAnImpliedClause
public IVecInt computeAnImpliedClause()
- Specified by:
computeAnImpliedClause
in interface PBConstr
getCoef
public BigInteger getCoef(int literal)
- Specified by:
getCoef
in interface PBConstr
getCoefs
public BigInteger[] getCoefs()
- Specified by:
getCoefs
in interface PBConstr
getDegree
public BigInteger getDegree()
- Specified by:
getDegree
in interface PBConstr
brandNewClause
public static OriginalHTClausePB brandNewClause(UnitPropagationListener s,
ILits voc,
IVecInt literals)
- Creates a brand new clause, presumably from external data. Performs all
sanity checks.
- Parameters:
s
- the object responsible for unit propagationvoc
- the vocabularyliterals
- the literals to store in the clause
- Returns:
- the created clause or null if the clause should be ignored
(tautology for example)
Copyright © 2011 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.