Package net.sf.tweety.arg.dung.reasoner
Class ProboReasoner
- java.lang.Object
-
- net.sf.tweety.arg.dung.reasoner.AbstractDungReasoner
-
- net.sf.tweety.arg.dung.reasoner.AbstractExtensionReasoner
-
- net.sf.tweety.arg.dung.reasoner.ProboReasoner
-
- All Implemented Interfaces:
net.sf.tweety.commons.ModelProvider<Argument,DungTheory,Extension>,net.sf.tweety.commons.QualitativeReasoner<DungTheory,Argument>,net.sf.tweety.commons.Reasoner<Boolean,DungTheory,Argument>
public class ProboReasoner extends AbstractExtensionReasoner
This reasoner makes use of an external executable for solving reasoning problems in abstract argumentation. That external executable must implement the probo interface standard for argumentation solvers (see argumentationcompetition.org).- Author:
- Matthias Thimm, Nils Geilen
-
-
Constructor Summary
Constructors Constructor Description ProboReasoner(String path_to_exec, Semantics semantics)Constructs a new instance of ProboReasonerProboReasoner(String path_to_exec, Semantics semantics, net.sf.tweety.commons.util.Shell bash)Constructs a new instance of ProboReasoner
-
Method Summary
Modifier and Type Method Description ExtensiongetModel(DungTheory bbase)Collection<Extension>getModels(DungTheory bbase)Booleanquery(DungTheory beliefbase, Argument formula, net.sf.tweety.commons.InferenceMode inferenceMode)Queries the given AAF for the given argument using the given inference type.-
Methods inherited from class net.sf.tweety.arg.dung.reasoner.AbstractExtensionReasoner
getSimpleReasonerForSemantics, query
-
-
-
-
Constructor Detail
-
ProboReasoner
public ProboReasoner(String path_to_exec, Semantics semantics)
Constructs a new instance of ProboReasoner- Parameters:
path_to_exec- the path to the probo-compliant solversemantics- The semantics to be used
-
ProboReasoner
public ProboReasoner(String path_to_exec, Semantics semantics, net.sf.tweety.commons.util.Shell bash)
Constructs a new instance of ProboReasoner- Parameters:
path_to_exec- the path to the probo-compliant solversemantics- The semantics to be usedbash- the shell which should be used to run the solver
-
-
Method Detail
-
query
public Boolean query(DungTheory beliefbase, Argument formula, net.sf.tweety.commons.InferenceMode inferenceMode)
Description copied from class:AbstractExtensionReasonerQueries the given AAF for the given argument using the given inference type.- Overrides:
queryin classAbstractExtensionReasoner- Parameters:
beliefbase- an AAFformula- a single argumentinferenceMode- either InferenceMode.SKEPTICAL or InferenceMode.CREDULOUS- Returns:
- "true" if the argument is accepted
-
getModels
public Collection<Extension> getModels(DungTheory bbase)
- Specified by:
getModelsin interfacenet.sf.tweety.commons.ModelProvider<Argument,DungTheory,Extension>- Specified by:
getModelsin classAbstractExtensionReasoner
-
getModel
public Extension getModel(DungTheory bbase)
- Specified by:
getModelin interfacenet.sf.tweety.commons.ModelProvider<Argument,DungTheory,Extension>- Specified by:
getModelin classAbstractExtensionReasoner
-
-