|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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. |
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 |
void |
parseInstance(java.io.LineNumberReader in)
|
IProblem |
parseInstance(java.lang.String filename)
|
void |
readInteger(java.lang.StringBuffer s)
read a integer from file |
java.lang.String |
readWord()
read a word from file |
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 IProblem parseInstance(java.lang.String filename) throws java.io.FileNotFoundException, ParseFormatException, java.io.IOException, ContradictionException
parseInstance
in interface Reader
java.io.FileNotFoundException
ParseFormatException
java.io.IOException
ContradictionException
public void parseInstance(java.io.LineNumberReader in) throws ParseFormatException, ContradictionException
ParseFormatException
ContradictionException
public java.lang.String decode(int[] model)
Reader
decode
in interface Reader
model
- a model using the Dimacs format.
public ObjectiveFunction getObjectiveFunction()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |