public class GrossiModgilRankingReasoner extends AbstractDungReasoner implements ModelProvider<Argument,DungTheory,ArgumentRanking>
Constructor and Description |
---|
GrossiModgilRankingReasoner() |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<Extension> |
getAllMNCompleteExtensions(DungTheory theory,
int m,
int n)
Returns all mn-complete extensions.
|
java.util.Collection<Extension> |
getAllMNGroundedExtensions(DungTheory theory,
int m,
int n)
Returns all mn-grounded extensions.
|
java.util.Collection<Extension> |
getAllMNPreferredExtensions(DungTheory theory,
int m,
int n)
Returns all mn-preferred extensions.
|
java.util.Collection<Extension> |
getAllMStableExtensions(DungTheory theory,
int m)
Returns all m-stable extensions.
|
ArgumentRanking |
getModel(DungTheory bbase)
Returns a single (dedicated) model of the given belief base.
|
java.util.Collection<ArgumentRanking> |
getModels(DungTheory bbase)
Returns a characterizing model of the given belief base
|
java.util.Collection<Argument> |
gradedDefense(DungTheory theory,
java.util.Collection<Argument> args,
int m,
int n)
Implements the graded defense function from Def.
|
java.util.Collection<Argument> |
gradedNeutrality(DungTheory theory,
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(DungTheory theory,
java.util.Collection<Argument> args,
int m)
Checks whether the given set of arguments is m-conflict-free, cf.
|
boolean |
isMNAdmissible(DungTheory theory,
java.util.Collection<Argument> args,
int m,
int n)
Checks whether the given set of arguments is mn-admissible, cf.
|
boolean |
isMNComplete(DungTheory theory,
java.util.Collection<Argument> args,
int m,
int n)
Checks whether the given set of arguments is mn-complete, cf.
|
boolean |
isMNGrounded(DungTheory theory,
java.util.Collection<Argument> args,
int m,
int n)
Checks whether the given set of arguments is mn-grounded, cf.
|
boolean |
isMNPreferred(DungTheory theory,
java.util.Collection<Argument> args,
int m,
int n)
Checks whether the given set of arguments is mn-preferred, cf.
|
boolean |
isMStable(DungTheory theory,
java.util.Collection<Argument> args,
int m)
Checks whether the given set of arguments is m-stable, cf.
|
private int |
numOfAttackers(DungTheory theory,
Argument y,
java.util.Collection<Argument> x)
Determines the number of attackers from x to y.
|
java.lang.Boolean |
query(DungTheory beliefbase,
Argument formula)
Queries the given belief base for the given formula.
|
private int numOfAttackers(DungTheory theory, Argument y, java.util.Collection<Argument> x)
theory
- a Dung theory.y
- some argumentx
- some set of argumentspublic java.util.Collection<Argument> gradedDefense(DungTheory theory, java.util.Collection<Argument> args, int m, int n)
theory
- a Dung theoryargs
- 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(DungTheory theory, java.util.Collection<Argument> args, int m)
theory
- a Dung theoryargs
- some set of argumentsm
- some integer (the number of attackers)public boolean isMConflictFree(DungTheory theory, java.util.Collection<Argument> args, int m)
theory
- a Dung theoryargs
- some set of argumentsm
- some integerpublic boolean isMNAdmissible(DungTheory theory, java.util.Collection<Argument> args, int m, int n)
theory
- a Dung theoryargs
- some set of argumentsm
- some integern
- some integerpublic boolean isMNComplete(DungTheory theory, java.util.Collection<Argument> args, int m, int n)
theory
- a Dung theoryargs
- some set of argumentsm
- some integern
- some integerpublic boolean isMStable(DungTheory theory, java.util.Collection<Argument> args, int m)
theory
- a Dung theoryargs
- some set of argumentsm
- some integerpublic boolean isMNGrounded(DungTheory theory, java.util.Collection<Argument> args, int m, int n)
theory
- a Dung theoryargs
- some set of argumentsm
- some integern
- some integerpublic boolean isMNPreferred(DungTheory theory, java.util.Collection<Argument> args, int m, int n)
theory
- a Dung theoryargs
- some set of argumentsm
- some integern
- some integerpublic java.util.Collection<Extension> getAllMNCompleteExtensions(DungTheory theory, int m, int n)
theory
- a Dung theorym
- some integern
- some integerpublic java.util.Collection<Extension> getAllMNPreferredExtensions(DungTheory theory, int m, int n)
theory
- a Dung theorym
- some integern
- some integerpublic java.util.Collection<Extension> getAllMNGroundedExtensions(DungTheory theory, int m, int n)
theory
- a Dung theorym
- some integern
- some integerpublic java.util.Collection<Extension> getAllMStableExtensions(DungTheory theory, int m)
theory
- a Dung theorym
- some integern
- some integerprivate boolean isContainedInAll(Argument y, java.util.Collection<Extension> exts)
y
- some argumentexts
- some set of sets of argumentspublic java.util.Collection<ArgumentRanking> getModels(DungTheory bbase)
ModelProvider
getModels
in interface ModelProvider<Argument,DungTheory,ArgumentRanking>
bbase
- some belief basepublic ArgumentRanking getModel(DungTheory bbase)
ModelProvider
getModel
in interface ModelProvider<Argument,DungTheory,ArgumentRanking>
public java.lang.Boolean query(DungTheory beliefbase, Argument formula)
Reasoner
query
in interface QualitativeReasoner<DungTheory,Argument>
query
in interface Reasoner<java.lang.Boolean,DungTheory,Argument>
query
in class AbstractDungReasoner
beliefbase
- a belief baseformula
- a formula