org.sat4j.pb.reader
Class GoodOPBReader
java.lang.Object
org.sat4j.reader.Reader
org.sat4j.pb.reader.GoodOPBReader
- All Implemented Interfaces:
- java.io.Serializable
public class GoodOPBReader
- extends Reader
- implements java.io.Serializable
This class is a quick hack to read opb formatted files. The reader skip
commented lines (beginning with COMMENT_SYMBOL) and expect constraints of the
form: [name :] [[+|-]COEF] [*] [+|-]LIT >=|<=|= DEGREE where COEF and DEGREE
are plain integer and LIT is an identifier.
- Author:
- leberre
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GoodOPBReader
public GoodOPBReader(IPBSolver solver)
parseInstance
public final IProblem parseInstance(java.io.Reader in)
throws ParseFormatException,
ContradictionException,
java.io.IOException
- Specified by:
parseInstance
in class Reader
- Throws:
ParseFormatException
ContradictionException
java.io.IOException
decode
public java.lang.String decode(int[] model)
- Specified by:
decode
in class Reader
decode
public void decode(int[] model,
java.io.PrintWriter out)
- Specified by:
decode
in class Reader
Copyright © 2009 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.