org.sat4j.pb.constraints.pb
Class BinaryClausePB
java.lang.Object
org.sat4j.minisat.constraints.cnf.BinaryClause
org.sat4j.pb.constraints.pb.BinaryClausePB
- All Implemented Interfaces:
- java.io.Serializable, Constr, Propagatable, PBConstr, IConstr
public class BinaryClausePB
- extends BinaryClause
- implements PBConstr
- See Also:
- Serialized Form
Methods inherited from class org.sat4j.minisat.constraints.cnf.BinaryClause |
assertConstraint, calcReason, equals, get, getActivity, getLits, getVocabulary, hashCode, incActivity, locked, propagate, register, remove, rescaleBy, simplify, size, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
BinaryClausePB
public BinaryClausePB(IVecInt ps,
ILits voc)
computeAnImpliedClause
public IVecInt computeAnImpliedClause()
- Specified by:
computeAnImpliedClause
in interface PBConstr
getCoef
public java.math.BigInteger getCoef(int literal)
- Specified by:
getCoef
in interface PBConstr
getCoefs
public java.math.BigInteger[] getCoefs()
- Specified by:
getCoefs
in interface PBConstr
getDegree
public java.math.BigInteger getDegree()
- Specified by:
getDegree
in interface PBConstr
setLearnt
public void setLearnt()
- Specified by:
setLearnt
in interface Constr
learnt
public boolean learnt()
- Specified by:
learnt
in interface IConstr
brandNewClause
public static BinaryClausePB 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 (size should be two)
- Returns:
- the created clause or null if the clause should be ignored
(tautology for example)
Copyright © 2009 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.