Class OrderingSemanticsReasoner
java.lang.Object
org.tweetyproject.arg.dung.reasoner.OrderingSemanticsReasoner
Reasoner for ordering semantics
- Author:
- Lars Bengel
-
Constructor Summary
ConstructorsConstructorDescriptionOrderingSemanticsReasoner
(OrderingSemantics semantics) create a reasoner for the given ordering semanticsOrderingSemanticsReasoner
(OrderingSemantics semantics1, OrderingSemantics semantics2) create a reasoner for the given combination of 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 extgetEmpty
(Extension ext, DungTheory theory) dummy method used if only one ordering semantics is specifiedgetModels
(DungTheory theory) compute the ordering over all subsets of theory wrt.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 attackersboolean
this method always returns true because the solver is nativevoid
show
(DungTheory theory) print out table showing the sets according to the given ordering semantics
-
Constructor Details
-
OrderingSemanticsReasoner
create a reasoner for the given ordering semantics- Parameters:
semantics
- an ordering semantics- Throws:
NoSuchMethodException
- if an error occurs
-
OrderingSemanticsReasoner
public OrderingSemanticsReasoner(OrderingSemantics semantics1, OrderingSemantics semantics2) throws NoSuchMethodException create a reasoner for the given combination of ordering semantics- Parameters:
semantics1
- an ordering semanticssemantics2
- an ordering semantics- Throws:
NoSuchMethodException
- if an error occurs
-
-
Method Details
-
getModels
public List<Collection<Collection<Argument>>> getModels(DungTheory theory) throws InvocationTargetException, IllegalAccessException compute the ordering over all subsets of theory wrt. to the ordering semantics this is done by counting the attacks in a theoretical meta graph, where directed edges represent subset relations over the semantics compare sets.- 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
-
getEmpty
dummy method used if only one ordering semantics is specified- Parameters:
ext
- an extensiontheory
- a dung theory- Returns:
- always return empty set
-
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
-
show
print out table showing the sets according to the given ordering semantics- Parameters:
theory
- a dung theory- Throws:
InvocationTargetException
- should never happenIllegalAccessException
- should never happen
-
isInstalled
public boolean isInstalled()this method always returns true because the solver is native
-