org.sat4j.csp.constraints
Class Supports
java.lang.Object
org.sat4j.csp.constraints.Supports
- All Implemented Interfaces:
- Clausifiable, Relation
- Direct Known Subclasses:
- BessiereSupports, GentSupports, WalshSupports
public abstract class Supports
- extends java.lang.Object
- implements Relation
|
Constructor Summary |
Supports(int arity,
int nbtuples)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Supports
public Supports(int arity,
int nbtuples)
addTuple
public void addTuple(int index,
int[] tuple)
- Specified by:
addTuple in interface Relation
arity
public int arity()
- Specified by:
arity in interface Relation
toClause
public void toClause(org.sat4j.specs.ISolver solver,
org.sat4j.specs.IVec<Var> scope,
org.sat4j.specs.IVec<Evaluable> vars)
throws org.sat4j.specs.ContradictionException
- Specified by:
toClause in interface Clausifiable
- Throws:
org.sat4j.specs.ContradictionException
chooseEncoding
protected abstract Encoding chooseEncoding(org.sat4j.specs.IVec<Var> scope)
Copyright © 2008 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.