public class ExtendedDimacsArrayReader extends DimacsArrayReader
Modifier and Type | Field and Description |
---|---|
static int |
AND |
static int |
ATLEAST |
static int |
ATMOST |
static int |
COUNT |
static int |
FALSE |
static int |
IFF |
static int |
IFTHENELSE |
static int |
IMPLIES |
static int |
NAND |
static int |
NOR |
static int |
NOT |
static int |
OR |
static int |
TRUE |
static int |
XNOR |
static int |
XOR |
solver
Constructor and Description |
---|
ExtendedDimacsArrayReader(ISolver solver) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
handleConstr(int gateType,
int output,
int[] inputs)
Handles a single constraint (constraint == Extended Dimacs circuit gate).
|
decode, getSolver, parseInstance
public static final int FALSE
public static final int TRUE
public static final int NOT
public static final int AND
public static final int NAND
public static final int OR
public static final int NOR
public static final int XOR
public static final int XNOR
public static final int IMPLIES
public static final int IFF
public static final int IFTHENELSE
public static final int ATLEAST
public static final int ATMOST
public static final int COUNT
public ExtendedDimacsArrayReader(ISolver solver)
protected boolean handleConstr(int gateType, int output, int[] inputs) throws ContradictionException
handleConstr
in class DimacsArrayReader
gateType
- the type of the gate in questionoutput
- the number of the output of the gate in questioninputs
- the numbers of the inputs of the gates in question; the array
must have the corresponding length for the gate type unless
arbitrary lengths are allowed (i.e., 0 for TRUE and FALSE, 1
for NOT, or 3 for ITE)ContradictionException
Copyright © 2013 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.