public class InstanceReader extends Reader
| Constructor and Description | 
|---|
InstanceReader(ISolver solver)  | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
decode(int[] model)
Deprecated.  
 | 
void | 
decode(int[] model,
      PrintWriter out)
Produce a model using the reader format on a provided printwriter. 
 | 
protected Reader | 
handleFileName(String fname,
              String prefix)  | 
IProblem | 
parseInstance(InputStream in)
Read a file from a stream. 
 | 
IProblem | 
parseInstance(String filename)
This is the usual method to feed a solver with a benchmark. 
 | 
isVerbose, parseInstance, setVerbositypublic InstanceReader(ISolver solver)
public IProblem parseInstance(String filename) throws ParseFormatException, IOException, ContradictionException
ReaderparseInstance in class Readerfilename - the fully qualified name of the benchmark. The filename
            extension may by used to detect which type of benchmarks it is
            (SAT, OPB, MAXSAT, etc).ParseFormatException - if an error occurs during parsing.IOException - if an I/O error occurs.ContradictionException - if the problem is found trivially inconsistent.@Deprecated public String decode(int[] model)
Readerpublic void decode(int[] model,
          PrintWriter out)
Readerpublic IProblem parseInstance(InputStream in) throws ParseFormatException, ContradictionException, IOException
ReaderparseInstance in class Readerin - 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.Copyright © 2013 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.