public class LecteurDimacs extends Reader implements Serializable
| Constructor and Description |
|---|
LecteurDimacs(ISolver s) |
| Modifier and Type | Method and Description |
|---|---|
String |
decode(int[] model)
Produce a model using the reader format.
|
void |
decode(int[] model,
PrintWriter out)
Produce a model using the reader format on a provided printwriter.
|
IProblem |
parseInstance(InputStream input)
Read a file from a stream.
|
isVerbose, parseInstance, parseInstance, setVerbositypublic LecteurDimacs(ISolver s)
public final IProblem parseInstance(InputStream input) throws ParseFormatException, ContradictionException, IOException
ReaderparseInstance in class Readerinput - a stream containing the benchmark.ParseFormatException - if an error occurs during parsing.ContradictionException - if the problem is found trivially inconsistent.IOException - if an I/O error occurs.public String decode(int[] model)
Readerpublic void decode(int[] model,
PrintWriter out)
ReaderCopyright © 2013 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.