Class IssReasoner
- java.lang.Object
-
- net.sf.tweety.arg.social.reasoner.IssReasoner
-
- All Implemented Interfaces:
ModelProvider<Argument,SocialAbstractArgumentationFramework,SocialMapping<java.lang.Double>>,QuantitativeReasoner<SocialAbstractArgumentationFramework,Argument>,Reasoner<java.lang.Double,SocialAbstractArgumentationFramework,Argument>
public class IssReasoner extends java.lang.Object implements QuantitativeReasoner<SocialAbstractArgumentationFramework,Argument>, ModelProvider<Argument,SocialAbstractArgumentationFramework,SocialMapping<java.lang.Double>>
This reasoner provides is an implementation of the "Iterative Successive Subsitution Algorithm" from [Marco Correia and Jorge Cruz and João Leite. On the Efficient Implementation of Social Abstract Argumentation. ECAI2014] for determining a model of a social abstract argumentation framework according to the simple product semantics.- Author:
- Matthias Thimm
-
-
Field Summary
Fields Modifier and Type Field Description private SimpleProductSemanticssemanticsThe semantics used by this reasoner.private doubletoleranceThe tolerance of the ISS algorithm.
-
Constructor Summary
Constructors Constructor Description IssReasoner(SimpleProductSemantics semantics, double tolerance)Creates a new reasoner.
-
Method Summary
Modifier and Type Method Description private doubledist(SocialMapping<java.lang.Double> sm1, SocialMapping<java.lang.Double> sm2, java.util.Collection<Argument> args)Returns the maximum-norm distance between the two social mappingsSocialMapping<java.lang.Double>getModel(SocialAbstractArgumentationFramework bbase)Returns a single (dedicated) model of the given belief base.java.util.Collection<SocialMapping<java.lang.Double>>getModels(SocialAbstractArgumentationFramework bbase)Returns a characterizing model of the given belief basejava.lang.Doublequery(SocialAbstractArgumentationFramework beliefbase, Argument formula)Queries the given belief base for the given formula.
-
-
-
Field Detail
-
semantics
private SimpleProductSemantics semantics
The semantics used by this reasoner.
-
tolerance
private double tolerance
The tolerance of the ISS algorithm.
-
-
Constructor Detail
-
IssReasoner
public IssReasoner(SimpleProductSemantics semantics, double tolerance)
Creates a new reasoner.- Parameters:
semantics- the simple product semantics usedtolerance- the tolerance of the ISS algorithm.
-
-
Method Detail
-
dist
private double dist(SocialMapping<java.lang.Double> sm1, SocialMapping<java.lang.Double> sm2, java.util.Collection<Argument> args)
Returns the maximum-norm distance between the two social mappings- Parameters:
sm1- some social mappingsm2- some social mappingargs- some arguments- Returns:
- the maximum-norm distance between the two social mappings
-
query
public java.lang.Double query(SocialAbstractArgumentationFramework beliefbase, Argument formula)
Description copied from interface:ReasonerQueries the given belief base for the given formula.- Specified by:
queryin interfaceReasoner<java.lang.Double,SocialAbstractArgumentationFramework,Argument>- Parameters:
beliefbase- a belief baseformula- a formula- Returns:
- the answer to the query
-
getModels
public java.util.Collection<SocialMapping<java.lang.Double>> getModels(SocialAbstractArgumentationFramework bbase)
Description copied from interface:ModelProviderReturns a characterizing model of the given belief base- Specified by:
getModelsin interfaceModelProvider<Argument,SocialAbstractArgumentationFramework,SocialMapping<java.lang.Double>>- Parameters:
bbase- some belief base- Returns:
- the (selected) models of the belief base
-
getModel
public SocialMapping<java.lang.Double> getModel(SocialAbstractArgumentationFramework 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,SocialAbstractArgumentationFramework,SocialMapping<java.lang.Double>>- Parameters:
bbase- some belief base- Returns:
- a selected model of the belief base.
-
-