org.sat4j.reader
Class XMLCSPReader
java.lang.Object
org.sat4j.reader.Reader
org.sat4j.reader.XMLCSPReader
public class XMLCSPReader
- extends Reader
Method Summary |
java.lang.String |
decode(int[] model)
Produce a model using the reader format. |
void |
decode(int[] model,
java.io.PrintWriter out)
Produce a model using the reader format on a provided printwriter. |
IProblem |
parseInstance(java.io.Reader in)
|
IProblem |
parseInstance(java.lang.String filename)
|
void |
setVerbosity(boolean b)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLCSPReader
public XMLCSPReader(ISolver solver)
decode
public java.lang.String decode(int[] model)
- Description copied from class:
Reader
- Produce a model using the reader format.
- Specified by:
decode
in class Reader
- Parameters:
model
- a model using the Dimacs format.
- Returns:
- a human readable view of the model.
decode
public void decode(int[] model,
java.io.PrintWriter out)
- Description copied from class:
Reader
- Produce a model using the reader format on a provided printwriter.
- Specified by:
decode
in class Reader
- Parameters:
model
- a model using the Dimacs format.out
- the place where to display the model
parseInstance
public IProblem parseInstance(java.lang.String filename)
throws java.io.FileNotFoundException,
ParseFormatException,
java.io.IOException,
ContradictionException
- Overrides:
parseInstance
in class Reader
- Throws:
java.io.FileNotFoundException
ParseFormatException
java.io.IOException
ContradictionException
parseInstance
public IProblem parseInstance(java.io.Reader in)
throws ParseFormatException,
ContradictionException,
java.io.IOException
- Specified by:
parseInstance
in class Reader
- Throws:
ParseFormatException
ContradictionException
java.io.IOException
setVerbosity
public void setVerbosity(boolean b)
- Overrides:
setVerbosity
in class Reader
Copyright © 2007 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.