public class DLVSolver extends ASPSolver
integerMaximum, maxNumOfModels, outputData| Constructor and Description |
|---|
DLVSolver(String pathToDLV)
Constructs a new instance pointing to a specific DLV solver.
|
DLVSolver(String pathToDLV,
net.sf.tweety.commons.util.Shell bash)
Constructs a new instance pointing to a specific DLV solver.
|
| Modifier and Type | Method and Description |
|---|---|
AnswerSet |
getModel(Program p) |
List<AnswerSet> |
getModels(File file)
Returns a characterizing model (answer set)
of the given belief base.
|
List<AnswerSet> |
getModels(Program p) |
List<AnswerSet> |
getModels(String p)
Returns a characterizing model (answer set)
of the given belief base.
|
protected List<AnswerSet> |
parseResult(String s)
Processes a string containing answer sets and returns an AnswerSetList.
|
Boolean |
query(Program beliefbase,
ASPLiteral formula) |
Boolean |
query(Program beliefbase,
ASPLiteral formula,
net.sf.tweety.commons.InferenceMode inferenceMode) |
void |
setOptions(String options)
Set additional command line options for DLV.
|
void |
setPathToDLV(String pathToDLV)
Sets the location of the DLV solver on the hard drive.
|
getIntegerMaximum, getMaxNumOfModels, getModel, getModels, getOutput, setIntegerMaximum, setMaxNumOfModelspublic DLVSolver(String pathToDLV)
path2dlv - binary location of DLV on the hard drivepublic DLVSolver(String pathToDLV, net.sf.tweety.commons.util.Shell bash)
path2dlv - binary location of DLV on the hard drivebash - shell to run commandspublic List<AnswerSet> getModels(String p)
ASPSolverpublic List<AnswerSet> getModels(File file)
ASPSolverprotected List<AnswerSet> parseResult(String s)
String - containing DLV outputpublic void setOptions(String options)
options - public void setPathToDLV(String pathToDLV)
pathToDLV - public Boolean query(Program beliefbase, ASPLiteral formula)
query in interface net.sf.tweety.commons.QualitativeReasoner<Program,ASPLiteral>query in interface net.sf.tweety.commons.Reasoner<Boolean,Program,ASPLiteral>query in class ASPSolverpublic Boolean query(Program beliefbase, ASPLiteral formula, net.sf.tweety.commons.InferenceMode inferenceMode)
Copyright © 2019. All rights reserved.