Package net.sf.tweety.arg.dung.reasoner
Class StratifiedLabelingReasoner
- java.lang.Object
-
- net.sf.tweety.arg.dung.reasoner.AbstractDungReasoner
-
- net.sf.tweety.arg.dung.reasoner.StratifiedLabelingReasoner
-
- All Implemented Interfaces:
net.sf.tweety.commons.ModelProvider<Argument,DungTheory,StratifiedLabeling>,net.sf.tweety.commons.QualitativeReasoner<DungTheory,Argument>,net.sf.tweety.commons.Reasoner<Boolean,DungTheory,Argument>
public class StratifiedLabelingReasoner extends AbstractDungReasoner implements net.sf.tweety.commons.ModelProvider<Argument,DungTheory,StratifiedLabeling>
This class implements a stratified labeling reasoner.- Author:
- Matthias Thimm
-
-
Constructor Summary
Constructors Constructor Description StratifiedLabelingReasoner()Creates a new reasoner using sceptical inference and grounded semantics.StratifiedLabelingReasoner(Semantics semantics)Creates a new reasoner for the given semantics.
-
Method Summary
Modifier and Type Method Description StratifiedLabelinggetModel(DungTheory bbase)Collection<StratifiedLabeling>getModels(DungTheory bbase)Booleanquery(DungTheory beliefbase, Argument formula)Booleanquery(DungTheory beliefbase, Argument formula, net.sf.tweety.commons.InferenceMode inferenceMode)Queries the given AAF for the given argument using the given inference type.
-
-
-
Constructor Detail
-
StratifiedLabelingReasoner
public StratifiedLabelingReasoner(Semantics semantics)
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 Detail
-
getModels
public Collection<StratifiedLabeling> getModels(DungTheory bbase)
- Specified by:
getModelsin interfacenet.sf.tweety.commons.ModelProvider<Argument,DungTheory,StratifiedLabeling>
-
getModel
public StratifiedLabeling getModel(DungTheory bbase)
- Specified by:
getModelin interfacenet.sf.tweety.commons.ModelProvider<Argument,DungTheory,StratifiedLabeling>
-
query
public Boolean query(DungTheory beliefbase, Argument formula)
- Specified by:
queryin interfacenet.sf.tweety.commons.QualitativeReasoner<DungTheory,Argument>- Specified by:
queryin interfacenet.sf.tweety.commons.Reasoner<Boolean,DungTheory,Argument>- Specified by:
queryin classAbstractDungReasoner
-
query
public Boolean query(DungTheory beliefbase, Argument formula, net.sf.tweety.commons.InferenceMode inferenceMode)
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
-
-