public class OPBReader2010 extends OPBReader2007
Modifier and Type | Field and Description |
---|---|
static BigInteger |
SAT4J_MAX_BIG_INTEGER |
nbNewSymbols
coeffs, d, hasObjFunc, hasVariablesExplanation, lits, nbConstr, nbConstraintsRead, nbVars, operator, solver
Constructor and Description |
---|
OPBReader2010(IPBSolver solver) |
Modifier and Type | Method and Description |
---|---|
protected void |
beginConstraint()
callback called before we read a constraint
|
protected void |
endConstraint() |
IProblem |
parseInstance(Reader input) |
protected void |
readMetaData()
read the first comment line to get the number of variables and the number
of constraints in the file calls metaData with the data that was read
|
protected void |
readObjective()
read the objective line (if any) calls beginObjective, objectiveTerm and
endObjective
|
checkId, decode, decode, isGoodFirstCharacter, literalInAProduct, negateLiteralInAProduct, readTerm, translateVarToId
beginObjective, constraintRelOp, constraintRightTerm, endObjective, eof, eol, get, getCoeffs, getListOfVariables, getObjectiveFunction, getVars, isGoodFollowingCharacter, metaData, parse, parseInstance, parseInstance, putback, readConstraint, readIdentifier, readInteger, readVariablesExplanation, readWord, skipSpaces
isVerbose, parseInstance, setVerbosity
public static final BigInteger SAT4J_MAX_BIG_INTEGER
public OPBReader2010(IPBSolver solver)
protected void readMetaData() throws IOException, ParseFormatException
readMetaData
in class OPBReader2007
IOException
ParseFormatException
protected void readObjective() throws IOException, ParseFormatException
OPBReader2005
readObjective
in class OPBReader2005
IOException
ParseFormatException
protected void beginConstraint()
OPBReader2005
beginConstraint
in class OPBReader2005
protected void endConstraint() throws ContradictionException
endConstraint
in class OPBReader2005
ContradictionException
public IProblem parseInstance(Reader input) throws ParseFormatException, ContradictionException
parseInstance
in class OPBReader2005
ParseFormatException
ContradictionException
Copyright © 2013 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.