public class GrossiModgilRankingReasoner extends Reasoner
Constructor and Description |
---|
GrossiModgilRankingReasoner(DungTheory theory)
Creates a new reasoner for the given Dung theory
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<Extension> |
getAllMNCompleteExtensions(int m,
int n)
Returns all mn-complete extensions.
|
java.util.Collection<Extension> |
getAllMNGroundedExtensions(int m,
int n)
Returns all mn-grounded extensions.
|
java.util.Collection<Extension> |
getAllMNPreferredExtensions(int m,
int n)
Returns all mn-preferred extensions.
|
java.util.Collection<Extension> |
getAllMStableExtensions(int m)
Returns all m-stable extensions.
|
ArgumentRanking |
getCompleteRanking()
Returns the ranking wrt.
|
java.util.Collection<Argument> |
gradedDefense(java.util.Collection<Argument> args,
int m,
int n)
Implements the graded defense function from Def.
|
java.util.Collection<Argument> |
gradedNeutrality(java.util.Collection<Argument> args,
int m)
Implements the graded neutrality function from Def.
|
private boolean |
isContainedInAll(Argument y,
java.util.Collection<Extension> exts)
Checks whether the given argument "y" is contained in all sets of arguments
in "args".
|
boolean |
isMConflictFree(java.util.Collection<Argument> args,
int m)
Checks whether the given set of arguments is m-conflict-free, cf.
|
boolean |
isMNAdmissible(java.util.Collection<Argument> args,
int m,
int n)
Checks whether the given set of arguments is mn-admissible, cf.
|
boolean |
isMNComplete(java.util.Collection<Argument> args,
int m,
int n)
Checks whether the given set of arguments is mn-complete, cf.
|
boolean |
isMNGrounded(java.util.Collection<Argument> args,
int m,
int n)
Checks whether the given set of arguments is mn-grounded, cf.
|
boolean |
isMNPreferred(java.util.Collection<Argument> args,
int m,
int n)
Checks whether the given set of arguments is mn-preferred, cf.
|
boolean |
isMStable(java.util.Collection<Argument> args,
int m)
Checks whether the given set of arguments is m-stable, cf.
|
private int |
numOfAttackers(Argument y,
java.util.Collection<Argument> x)
Determines the number of attackers from x to y.
|
Answer |
query(Formula query)
This method determines the answer of the given query
wrt.
|
getKnowledgeBase
public GrossiModgilRankingReasoner(DungTheory theory)
theory
- private int numOfAttackers(Argument y, java.util.Collection<Argument> x)
y
- some argumentx
- some set of argumentspublic java.util.Collection<Argument> gradedDefense(java.util.Collection<Argument> args, int m, int n)
args
- some set of argumentsm
- some integer (indicating the number of attackers)n
- some integer (indicating the number of attackers of attackers)public java.util.Collection<Argument> gradedNeutrality(java.util.Collection<Argument> args, int m)
args
- some set of argumentsm
- some integer (the number of attackers)public boolean isMConflictFree(java.util.Collection<Argument> args, int m)
args
- some set of argumentsm
- some integerpublic boolean isMNAdmissible(java.util.Collection<Argument> args, int m, int n)
args
- some set of argumentsm
- some integern
- some integerpublic boolean isMNComplete(java.util.Collection<Argument> args, int m, int n)
args
- some set of argumentsm
- some integern
- some integerpublic boolean isMStable(java.util.Collection<Argument> args, int m)
args
- some set of argumentsm
- some integerpublic boolean isMNGrounded(java.util.Collection<Argument> args, int m, int n)
args
- some set of argumentsm
- some integern
- some integerpublic boolean isMNPreferred(java.util.Collection<Argument> args, int m, int n)
args
- some set of argumentsm
- some integern
- some integerpublic java.util.Collection<Extension> getAllMNCompleteExtensions(int m, int n)
m
- some integern
- some integerpublic java.util.Collection<Extension> getAllMNPreferredExtensions(int m, int n)
m
- some integern
- some integerpublic java.util.Collection<Extension> getAllMNGroundedExtensions(int m, int n)
m
- some integern
- some integerpublic java.util.Collection<Extension> getAllMStableExtensions(int m)
m
- some integern
- some integerprivate boolean isContainedInAll(Argument y, java.util.Collection<Extension> exts)
y
- some argumentexts
- some set of sets of argumentspublic ArgumentRanking getCompleteRanking()