|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sat4j.reader.Reader
org.sat4j.reader.OPBReader2005
public class OPBReader2005
"Official" reader for the Pseudo Boolean evaluation 2005.
Constructor Summary | |
---|---|
OPBReader2005(ISolver solver)
|
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. |
IVec<java.math.BigInteger> |
getCoeffs()
|
ObjectiveFunction |
getObjectiveFunction()
|
IVecInt |
getVars()
|
void |
parse()
parses the file and uses the callbacks to send to send the data back to the program |
IProblem |
parseInstance(java.io.Reader in)
|
void |
readInteger(java.lang.StringBuffer s)
read a integer from file |
java.lang.String |
readWord()
read a word from file |
Methods inherited from class org.sat4j.reader.Reader |
---|
isVerbose, parseInstance, parseInstance, setVerbosity |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OPBReader2005(ISolver solver)
Method Detail |
---|
public IVecInt getVars()
public IVec<java.math.BigInteger> getCoeffs()
public java.lang.String readWord() throws java.io.IOException
java.io.IOException
public void readInteger(java.lang.StringBuffer s) throws java.io.IOException
s
- a StringBuffer to store the integer that was read
java.io.IOException
public void parse() throws java.io.IOException, ParseFormatException, ContradictionException
java.io.IOException
ParseException
ContradictionException
ParseFormatException
public final IProblem parseInstance(java.io.Reader in) throws ParseFormatException, ContradictionException
parseInstance
in class Reader
ParseFormatException
ContradictionException
public java.lang.String decode(int[] model)
Reader
decode
in class Reader
model
- a model using the Dimacs format.
public void decode(int[] model, java.io.PrintWriter out)
Reader
decode
in class Reader
model
- a model using the Dimacs format.out
- the place where to display the modelpublic ObjectiveFunction getObjectiveFunction()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |