public abstract class ASPSolver extends Object implements net.sf.tweety.commons.QualitativeReasoner<Program,ASPLiteral>, net.sf.tweety.commons.ModelProvider<ASPRule,Program,AnswerSet>
| Modifier and Type | Field and Description |
|---|---|
protected int |
integerMaximum
Represents the upper integer bound.
|
protected int |
maxNumOfModels
The maximum number of models to be generated.
|
protected String |
outputData
Stores the (latest) result of the solver as a String.
|
| Constructor and Description |
|---|
ASPSolver() |
| Modifier and Type | Method and Description |
|---|---|
int |
getIntegerMaximum()
Get the upper integer bound.
|
int |
getMaxNumOfModels()
Get the maximum number of models to be generated.
|
AnswerSet |
getModel(Program p,
int maxInt)
Returns a characterizing model (answer set)
of the given belief base using the given
upper integer limit.
|
abstract Collection<AnswerSet> |
getModels(File f)
Returns a characterizing model (answer set)
of the given belief base.
|
abstract Collection<AnswerSet> |
getModels(Program p) |
Collection<AnswerSet> |
getModels(Program p,
int maxInt)
Returns a characterizing model (answer set)
of the given belief base using the given
upper integer limit.
|
abstract Collection<AnswerSet> |
getModels(String p)
Returns a characterizing model (answer set)
of the given belief base.
|
String |
getOutput() |
abstract Boolean |
query(Program beliefbase,
ASPLiteral formula) |
void |
setIntegerMaximum(int integerMaximum)
Set the upper integer bound.
|
void |
setMaxNumOfModels(int maxNumOfModels)
Set the maximum number of models to be generated.
|
protected String outputData
protected int maxNumOfModels
protected int integerMaximum
public String getOutput()
public int getMaxNumOfModels()
public void setMaxNumOfModels(int maxNumOfModels)
public int getIntegerMaximum()
public void setIntegerMaximum(int integerMaximum)
public abstract Collection<AnswerSet> getModels(Program p)
public Collection<AnswerSet> getModels(Program p, int maxInt)
p - maxInt - public AnswerSet getModel(Program p, int maxInt)
p - maxInt - public abstract Collection<AnswerSet> getModels(String p)
string - containing belief basepublic abstract Collection<AnswerSet> getModels(File f)
file - containing belief basepublic abstract 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>Copyright © 2019. All rights reserved.