public class DimacsArrayReader extends Object implements Serializable
| Constructor and Description | 
|---|
| DimacsArrayReader(ISolver solver) | 
| Modifier and Type | Method and Description | 
|---|---|
| String | decode(int[] model) | 
| protected ISolver | getSolver() | 
| protected boolean | handleConstr(int gateType,
            int output,
            int[] inputs) | 
| ISolver | parseInstance(int[] gateType,
             int[] outputs,
             int[][] inputs,
             int maxVar) | 
protected final ISolver solver
public DimacsArrayReader(ISolver solver)
protected boolean handleConstr(int gateType,
                   int output,
                   int[] inputs)
                        throws ContradictionException
ContradictionExceptionpublic ISolver parseInstance(int[] gateType, int[] outputs, int[][] inputs, int maxVar) throws ContradictionException
gateType - gateType[i] is the type of gate i according to the Extended
            Dimacs specs; ignored in DimacsArrayReader, but important for
            inheriting classesoutputs - outputs[i] is the number of the output; ignored in
            DimacsArrayReaderinputs - inputs[i] contains the clauses in DimacsArrayReader; an
            overriding class might have it contain the inputs of the
            current gatemaxVar - the maximum number of assigned idsContradictionException - si le probleme est trivialement inconsitantpublic String decode(int[] model)
protected ISolver getSolver()
Copyright © 2013 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.