org.sat4j.reader
Class Reader
java.lang.Object
org.sat4j.reader.Reader
- Direct Known Subclasses:
- AAGReader, AIGReader, DimacsReader, InstanceReader, LecteurDimacs
public abstract class Reader
- extends java.lang.Object
A reader is responsible to feed an ISolver from a text file and to convert
the model found by the solver to a textual representation.
- Author:
- leberre
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Reader
public Reader()
parseInstance
public IProblem parseInstance(java.lang.String filename)
throws java.io.FileNotFoundException,
ParseFormatException,
java.io.IOException,
ContradictionException
- Throws:
java.io.FileNotFoundException
ParseFormatException
java.io.IOException
ContradictionException
parseInstance
public IProblem parseInstance(java.io.InputStream in)
throws ParseFormatException,
ContradictionException,
java.io.IOException
- Throws:
ParseFormatException
ContradictionException
java.io.IOException
parseInstance
public abstract IProblem parseInstance(java.io.Reader in)
throws ParseFormatException,
ContradictionException,
java.io.IOException
- Throws:
ParseFormatException
ContradictionException
java.io.IOException
decode
@Deprecated
public abstract java.lang.String decode(int[] model)
- Deprecated.
- Produce a model using the reader format.
- Parameters:
model
- a model using the Dimacs format.
- Returns:
- a human readable view of the model.
decode
public abstract void decode(int[] model,
java.io.PrintWriter out)
- Produce a model using the reader format on a provided printwriter.
- Parameters:
model
- a model using the Dimacs format.out
- the place where to display the model
isVerbose
public boolean isVerbose()
setVerbosity
public void setVerbosity(boolean b)
Copyright © 2009 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.