org.sat4j.pb.constraints.pb
Class OriginalHTClausePB

java.lang.Object
  extended by org.sat4j.minisat.constraints.cnf.HTClause
      extended by org.sat4j.minisat.constraints.cnf.OriginalHTClause
          extended by 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

Field Summary
 
Fields inherited from class org.sat4j.minisat.constraints.cnf.HTClause
activity, head, middleLits, tail, voc
 
Constructor Summary
OriginalHTClausePB(IVecInt ps, ILits voc)
           
 
Method Summary
static OriginalHTClausePB brandNewClause(UnitPropagationListener s, ILits voc, IVecInt literals)
          Creates a brand new clause, presumably from external data.
 IVecInt computeAnImpliedClause()
           
 BigInteger getCoef(int literal)
           
 BigInteger[] getCoefs()
           
 BigInteger getDegree()
           
 
Methods inherited from class org.sat4j.minisat.constraints.cnf.OriginalHTClause
forwardActivity, incActivity, learnt, register, setActivity, setLearnt
 
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, toConstraint, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.sat4j.pb.constraints.pb.PBConstr
getLits, getVocabulary
 
Methods inherited from interface org.sat4j.minisat.core.Constr
assertConstraint, calcReason, forwardActivity, incActivity, locked, register, remove, rescaleBy, setActivity, setLearnt, simplify
 
Methods inherited from interface org.sat4j.specs.IConstr
canBePropagatedMultipleTimes, get, getActivity, learnt, size
 

Constructor Detail

OriginalHTClausePB

public OriginalHTClausePB(IVecInt ps,
                          ILits voc)
Method Detail

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 propagation
voc - the vocabulary
literals - the literals to store in the clause
Returns:
the created clause or null if the clause should be ignored (tautology for example)


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