public abstract class Reader
extends java.lang.Object
| Constructor and Description |
|---|
Reader() |
| Modifier and Type | Method and Description |
|---|---|
abstract java.lang.String |
decode(int[] model)
Deprecated.
|
abstract void |
decode(int[] model,
java.io.PrintWriter out)
Produce a model using the reader format on a provided printwriter.
|
boolean |
isVerbose() |
abstract IProblem |
parseInstance(java.io.InputStream in)
Read a file from a stream.
|
IProblem |
parseInstance(java.io.Reader in)
Deprecated.
|
IProblem |
parseInstance(java.lang.String filename)
This is the usual method to feed a solver with a benchmark.
|
void |
setVerbosity(boolean b) |
public IProblem parseInstance(java.lang.String filename) throws ParseFormatException, java.io.IOException, ContradictionException
filename - 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.java.io.IOException - if an I/O error occurs.ContradictionException - if the problem is found trivially inconsistent.public abstract IProblem parseInstance(java.io.InputStream in) throws ParseFormatException, ContradictionException, java.io.IOException
in - a stream containing the benchmark.ParseFormatException - if an error occurs during parsing.java.io.IOException - if an I/O error occurs.ContradictionException - if the problem is found trivially inconsistent.@Deprecated public IProblem parseInstance(java.io.Reader in) throws ParseFormatException, ContradictionException, java.io.IOException
in - a stream containing the benchmark.ParseFormatException - if an error occurs during parsing.java.io.IOException - if an I/O error occurs.ContradictionException - if the problem is found trivially inconsistent.parseInstance(InputStream)@Deprecated public abstract java.lang.String decode(int[] model)
model - a model using the Dimacs format.public abstract void decode(int[] model,
java.io.PrintWriter out)
model - a model using the Dimacs format.out - the place where to display the modelpublic boolean isVerbose()
public void setVerbosity(boolean b)