public class ClingoSolver extends ASPSolver
| Modifier and Type | Field and Description |
|---|---|
protected String |
pathToSolver
String representation of Clingo binary path, meaning the location of the
clingo, clasp and grinco executables on the hard drive.
|
integerMaximum, maxNumOfModels, outputData| Constructor and Description |
|---|
ClingoSolver(String path2clingo)
Constructs a new instance pointing to specific a Clingo solver.
|
ClingoSolver(String path2clingo,
net.sf.tweety.commons.util.Shell bash)
Constructs a new instance pointing to a specific Clingo 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 s)
Returns a characterizing model (answer set)
of the given belief base.
|
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 Clingo.
|
void |
setPathToDLV(String path)
Sets the location of the Clingo solver on the hard drive.
|
void |
toggleOutputWhitelist(boolean b)
Activates or deactivates the option to use a whitelist of predicates.
|
getIntegerMaximum, getMaxNumOfModels, getModel, getModels, getOutput, setIntegerMaximum, setMaxNumOfModelsprotected String pathToSolver
public ClingoSolver(String path2clingo, net.sf.tweety.commons.util.Shell bash)
path2clingo - binary location of Clingo on the hard drivebash - shell to run commandspublic ClingoSolver(String path2clingo)
path2clingo - binary location of Clingo on the hard drivepublic List<AnswerSet> getModels(String s)
ASPSolverpublic List<AnswerSet> getModels(File file)
ASPSolverpublic 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)
public void toggleOutputWhitelist(boolean b)
public void setOptions(String options)
options - public void setPathToDLV(String path)
pathToDLV - Copyright © 2019. All rights reserved.