Class ExtensionRankingReasoner
java.lang.Object
org.tweetyproject.arg.dung.reasoner.ExtensionRankingReasoner
Reasoner using ranking semantics.
- Author:
- Lars Bengel, Daniel Letkemann
-
Constructor Summary
ConstructorsConstructorDescriptioncreate a reasoner for the given ordering semantics -
Method Summary
Modifier and TypeMethodDescriptiongetConflicts(Extension<DungTheory> ext, DungTheory theory) computes the set of conflicts occurring inside extgetDefendedNotIn(Extension<DungTheory> ext, DungTheory theory) computes the set of arguments outside of ext, which are defended by extgetModel(DungTheory theory) returns the lowest rank of the "getModels" methodgetModels(DungTheory theory) Computes the ranking of all subsets of the given theory.Returns the semantics used by this reasoner.getUnattacked(Extension<DungTheory> ext, DungTheory theory) computes the set of arguments outside of ext, which are not attacked by extgetUndefended(Extension<DungTheory> ext, DungTheory theory) computes the set of arguments in ext, which are not defended by ext against outside attackersbooleanIndicates that this reasoner is always installed.
-
Constructor Details
-
ExtensionRankingReasoner
create a reasoner for the given ordering semantics- Parameters:
semantics- an ordering semantics- Throws:
NoSuchMethodException- if an error occurs
-
-
Method Details
-
getSemantics
Returns the semantics used by this reasoner.- Returns:
- the semantics used by this reasoner
-
getModel
public List<Extension<DungTheory>> getModel(DungTheory theory) throws InvocationTargetException, IllegalAccessException returns the lowest rank of the "getModels" method- Parameters:
theory- a dung theory- Returns:
- the list of extensions in the best rank
- Throws:
InvocationTargetException- should never happenIllegalAccessException- should never happen
-
getModels
public List<List<Extension<DungTheory>>> getModels(DungTheory theory) throws InvocationTargetException, IllegalAccessException Computes the ranking of all subsets of the given theory. The ranking is built by comparing extensions lexicographically with the configured base functions.- Parameters:
theory- a dung theory- Returns:
- a list representing the ordering of all subsets of the given graph wrt. the ordering semantics
- Throws:
InvocationTargetException- should never happenIllegalAccessException- should never happen
-
getConflicts
computes the set of conflicts occurring inside ext- Parameters:
ext- an extensiontheory- a dung theory- Returns:
- set of conflict in ext
-
getUndefended
computes the set of arguments in ext, which are not defended by ext against outside attackers- Parameters:
ext- an extensiontheory- a dung theory- Returns:
- set of arguments in ext which are not defended by ext
-
getUnattacked
computes the set of arguments outside of ext, which are not attacked by ext- Parameters:
ext- an extensiontheory- a dung theory- Returns:
- set of arguments in theory \ ext which are not attacked by ext
-
getDefendedNotIn
computes the set of arguments outside of ext, which are defended by ext- Parameters:
ext- an extensiontheory- a dung theory- Returns:
- set of arguments in theory \ ext which are defended by ext
-
isInstalled
public boolean isInstalled()Indicates that this reasoner is always installed.- Returns:
- true
-