Class StratifiedLabelingReasoner
java.lang.Object
org.tweetyproject.arg.dung.reasoner.AbstractDungReasoner
org.tweetyproject.arg.dung.reasoner.StratifiedLabelingReasoner
- All Implemented Interfaces:
ModelProvider<Argument,
,DungTheory, StratifiedLabeling> QualitativeReasoner<DungTheory,
,Argument> Reasoner<Boolean,
DungTheory, Argument>
public class StratifiedLabelingReasoner
extends AbstractDungReasoner
implements ModelProvider<Argument,DungTheory,StratifiedLabeling>
This class implements a stratified labeling reasoner.
- Author:
- Matthias Thimm
-
Constructor Summary
ConstructorDescriptionCreates a new reasoner using sceptical inference and grounded semantics.StratifiedLabelingReasoner
(Semantics semantics) Creates a new reasoner for the given semantics. -
Method Summary
Modifier and TypeMethodDescriptiongetModel
(DungTheory bbase) Returns a single (dedicated) model of the given belief base.getModels
(DungTheory bbase) Returns a characterizing model of the given belief baseboolean
the solver is natively installed and is therefore always installedquery
(DungTheory beliefbase, Argument formula) Queries the given belief base for the given formula.query
(DungTheory beliefbase, Argument formula, InferenceMode inferenceMode) Queries the given AAF for the given argument using the given inference type.
-
Constructor Details
-
StratifiedLabelingReasoner
Creates a new reasoner for the given semantics.- Parameters:
semantics
- a semantics
-
StratifiedLabelingReasoner
public StratifiedLabelingReasoner()Creates a new reasoner using sceptical inference and grounded semantics.
-
-
Method Details
-
getModels
Description copied from interface:ModelProvider
Returns a characterizing model of the given belief base- Specified by:
getModels
in interfaceModelProvider<Argument,
DungTheory, StratifiedLabeling> - Parameters:
bbase
- some belief base- Returns:
- the (selected) models of the belief base
-
getModel
Description copied from interface:ModelProvider
Returns a single (dedicated) model of the given belief base. If the implemented method allows for more than one dedicated model, the selection may be non-deterministic.- Specified by:
getModel
in interfaceModelProvider<Argument,
DungTheory, StratifiedLabeling> - Parameters:
bbase
- some belief base- Returns:
- a selected model of the belief base.
-
query
Description copied from interface:Reasoner
Queries the given belief base for the given formula.- Specified by:
query
in interfaceQualitativeReasoner<DungTheory,
Argument> - Specified by:
query
in interfaceReasoner<Boolean,
DungTheory, Argument> - Specified by:
query
in classAbstractDungReasoner
- Parameters:
beliefbase
- a belief baseformula
- a formula- Returns:
- the answer to the query
-
query
Queries the given AAF for the given argument using the given inference type.- Parameters:
beliefbase
- an AAFformula
- a single argumentinferenceMode
- either InferenceMode.SKEPTICAL or InferenceMode.CREDULOUS- Returns:
- "true" if the argument is accepted
-
isInstalled
public boolean isInstalled()the solver is natively installed and is therefore always installed- Specified by:
isInstalled
in interfaceQualitativeReasoner<DungTheory,
Argument> - Returns:
- if the solver is installed
-