Class DelpReasoner
java.lang.Object
org.tweetyproject.arg.delp.reasoner.DelpReasoner
- All Implemented Interfaces:
Reasoner<DelpAnswer.Type,
DefeasibleLogicProgram, FolFormula>
public class DelpReasoner
extends Object
implements Reasoner<DelpAnswer.Type,DefeasibleLogicProgram,FolFormula>
This reasoner performs default dialectical reasoning
on some given DeLP.
- Author:
- Matthias Thimm
-
Constructor Summary
ConstructorDescriptionDelpReasoner
(ComparisonCriterion comparisonCriterion) Creates a new DelpReasoner for the given delp. -
Method Summary
Modifier and TypeMethodDescriptionstatic Set<DelpArgument>
Returns all arguments with the given conclusion from the delp.returns the comparison criterion used in this programComputes the subset of the arguments of this program, that are warrants.boolean
query
(DefeasibleLogicProgram delp, FolFormula f) Queries the given belief base for the given formula.
-
Constructor Details
-
DelpReasoner
Creates a new DelpReasoner for the given delp. *- Parameters:
comparisonCriterion
- a comparison criterion used for inference
-
-
Method Details
-
getComparisonCriterion
returns the comparison criterion used in this program- Returns:
- the comparison criterion used in this program
-
getWarrants
Computes the subset of the arguments of this program, that are warrants.- Parameters:
delp
- a delp- Returns:
- a set of
DelpArgument
that are warrants
-
getArgumentsWithConclusion
public static Set<DelpArgument> getArgumentsWithConclusion(DefeasibleLogicProgram delp, FolFormula f) Returns all arguments with the given conclusion from the delp.- Parameters:
delp
- some delp.f
- a formula- Returns:
- all arguments with the given conclusion from the delp.
-
query
Description copied from interface:Reasoner
Queries the given belief base for the given formula.- Specified by:
query
in interfaceReasoner<DelpAnswer.Type,
DefeasibleLogicProgram, FolFormula> - Parameters:
delp
- a belief basef
- a formula- Returns:
- the answer to the query
-
isInstalled
public boolean isInstalled()
-