Package net.sf.tweety.arg.dung.reasoner
Class SimpleCF2Reasoner
- java.lang.Object
-
- net.sf.tweety.arg.dung.reasoner.AbstractDungReasoner
-
- net.sf.tweety.arg.dung.reasoner.AbstractExtensionReasoner
-
- net.sf.tweety.arg.dung.reasoner.SimpleCF2Reasoner
-
- All Implemented Interfaces:
ModelProvider<Argument,DungTheory,Extension>,QualitativeReasoner<DungTheory,Argument>,Reasoner<java.lang.Boolean,DungTheory,Argument>
public class SimpleCF2Reasoner extends AbstractExtensionReasoner
This reasoner for Dung theories performs inference on the CF2 extensions.- Author:
- Matthias Thimm
-
-
Constructor Summary
Constructors Constructor Description SimpleCF2Reasoner()
-
Method Summary
Modifier and Type Method Description ExtensiongetModel(DungTheory bbase)Returns a single (dedicated) model of the given belief base.java.util.Collection<Extension>getModels(DungTheory bbase)Returns a characterizing model of the given belief baseprivate java.util.Collection<Argument>getOutparents(DungTheory af, java.util.Collection<Argument> s)Returns the set { a in A | a nicht in S und a -> S }private java.util.Set<Extension>singleAFExtensions(DungTheory theory)Computes the extensions for the single af case.-
Methods inherited from class net.sf.tweety.arg.dung.reasoner.AbstractExtensionReasoner
getSimpleReasonerForSemantics, query, query
-
-
-
-
Method Detail
-
getModels
public java.util.Collection<Extension> getModels(DungTheory bbase)
Description copied from interface:ModelProviderReturns a characterizing model of the given belief base- Specified by:
getModelsin interfaceModelProvider<Argument,DungTheory,Extension>- Specified by:
getModelsin classAbstractExtensionReasoner- Parameters:
bbase- some belief base- Returns:
- the (selected) models of the belief base
-
getModel
public Extension getModel(DungTheory bbase)
Description copied from interface:ModelProviderReturns 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:
getModelin interfaceModelProvider<Argument,DungTheory,Extension>- Specified by:
getModelin classAbstractExtensionReasoner- Parameters:
bbase- some belief base- Returns:
- a selected model of the belief base.
-
singleAFExtensions
private java.util.Set<Extension> singleAFExtensions(DungTheory theory)
Computes the extensions for the single af case.- Parameters:
theory- some Dung theory- Returns:
- the set of extensions
-
getOutparents
private java.util.Collection<Argument> getOutparents(DungTheory af, java.util.Collection<Argument> s)
Returns the set { a in A | a nicht in S und a -> S }- Parameters:
af- some Dung theorys- a set of arguments- Returns:
- a set of arguments
-
-