public class DungTheory extends net.sf.tweety.commons.BeliefSet<Argument> implements net.sf.tweety.graphs.Graph<Argument>, Comparable<DungTheory>
| Constructor and Description |
|---|
DungTheory()
Default constructor; initializes empty sets of arguments and attacks
|
DungTheory(net.sf.tweety.graphs.Graph<Argument> graph)
Creates a new theory from the given graph.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Attack attack)
Adds the given attack to this dung theory.
|
boolean |
add(DungTheory theory)
Adds all arguments and attacks of the given theory to
this theory
|
boolean |
add(net.sf.tweety.graphs.Edge<Argument> edge) |
boolean |
addAllAttacks(Collection<? extends Attack> c)
Adds the set of attacks to this Dung theory.
|
boolean |
addAttack(Argument attacker,
Argument attacked)
Adds an attack from the first argument to the second to thisDdung theory.
|
boolean |
areAdjacent(Argument a,
Argument b) |
int |
compareTo(DungTheory o) |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
containsAttack(Attack att)
Checks whether this theory contains the given attack.
|
boolean |
equals(Object obj) |
boolean |
existsDirectedPath(Argument node1,
Argument node2) |
Extension |
faf(Extension extension)
The characteristic function of an abstract argumentation framework: F_AF(S) = {A|A is acceptable wrt.
|
net.sf.tweety.math.matrix.Matrix |
getAdjancyMatrix() |
Set<Argument> |
getAttacked(Argument argument)
Computes the set {A | (argument,A) in attacks}.
|
Set<Argument> |
getAttackers(Argument argument)
Computes the set {A | (A,argument) in attacks}.
|
Set<Attack> |
getAttacks()
Returns all attacks of this theory.
|
Collection<Argument> |
getChildren(net.sf.tweety.graphs.Node node) |
DungTheory |
getComplementGraph(int selfloops) |
net.sf.tweety.graphs.Edge<Argument> |
getEdge(Argument a,
Argument b) |
Collection<? extends net.sf.tweety.graphs.Edge<? extends Argument>> |
getEdges() |
Collection<Argument> |
getNeighbors(Argument node) |
Collection<Argument> |
getNodes() |
int |
getNumberOfNodes() |
Collection<Argument> |
getParents(net.sf.tweety.graphs.Node node) |
net.sf.tweety.graphs.Graph<Argument> |
getRestriction(Collection<Argument> arguments) |
net.sf.tweety.commons.Signature |
getSignature() |
Collection<Collection<Argument>> |
getStronglyConnectedComponents() |
Collection<net.sf.tweety.graphs.Graph<Argument>> |
getSubgraphs() |
int |
hashCode() |
boolean |
hasSelfLoops() |
boolean |
isAttacked(Argument argument,
Extension ext)
returns true if some argument of
|
boolean |
isAttacked(Extension ext1,
Extension ext2)
returns true if some argument of
|
boolean |
isAttackedBy(Argument arg1,
Argument arg2)
Checks whether arg1 is attacked by arg2.
|
boolean |
isAttackedBy(Argument argument,
Collection<Argument> ext)
returns true if some argument of
|
boolean |
isAttackingAllOtherArguments(Extension ext)
returns true if
|
boolean |
isCoherent()
Determines if the theory is coherent, i.e., if each preferred extension is stable
|
boolean |
isIndirectAttack(Argument arg1,
Argument arg2)
Checks whether "arg1" indirectly attacks "arg2", i.e.
|
boolean |
isRelativelyCoherent()
Determines if the theory is relatively coherent, i.e., if the grounded extension coincides with the intersection of all preferred extensions
|
boolean |
isStable(Extension e)
Checks whether the given extension is stable wrt.
|
boolean |
isSupport(Argument arg1,
Argument arg2)
Checks whether "arg1" supports "arg2", i.e.
|
boolean |
isWeightedGraph() |
boolean |
isWellFounded()
returns true iff the theory is well-founded, i.e., there is no infinite sequence A1,A2,...
|
String |
prettyPrint()
Pretty print of the theory.
|
boolean |
remove(Argument a)
Removes the argument and all its attacks
|
boolean |
remove(Attack attack)
Removes the given attack from this Dung theory.
|
boolean |
removeAll(Collection<?> c) |
String |
toString() |
add, addAll, clear, instantiateSet, isEmpty, iterator, remove, retainAll, size, toArray, toArrayclone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorparallelStream, removeIf, spliterator, streampublic DungTheory()
public DungTheory(net.sf.tweety.graphs.Graph<Argument> graph)
graph - some graphpublic net.sf.tweety.commons.Signature getSignature()
getSignature in interface net.sf.tweety.commons.BeliefBasegetSignature in class net.sf.tweety.commons.BeliefSet<Argument>public boolean isAttackingAllOtherArguments(Extension ext)
ext - An extension contains a set of arguments.public boolean isWellFounded()
public boolean isCoherent()
public boolean isRelativelyCoherent()
public Set<Argument> getAttackers(Argument argument)
argument - an argumentpublic Set<Argument> getAttacked(Argument argument)
argument - an argumentpublic boolean isAttacked(Argument argument, Extension ext)
argument - an argumentext - an extension, ie. a set of argumentspublic boolean isAttackedBy(Argument argument, Collection<Argument> ext)
argument - an argumentext - an extension, ie. a set of argumentspublic boolean isAttacked(Extension ext1, Extension ext2)
ext1 - an extension, ie. a set of argumentsext2 - an extension, ie. a set of argumentspublic boolean isStable(Extension e)
e - some extensionpublic Extension faf(Extension extension)
extension - an extension (a set of arguments).public boolean isAttackedBy(Argument arg1, Argument arg2)
arg1 - an argument.arg2 - an argument.public boolean isIndirectAttack(Argument arg1, Argument arg2)
arg1 - an AbstractArgument.arg2 - an AbstractArgument.public boolean isSupport(Argument arg1, Argument arg2)
arg1 - an AbstractArgument.arg2 - an AbstractArgument.public String prettyPrint()
public String toString()
public boolean add(Attack attack)
attack - an attackpublic boolean addAttack(Argument attacker, Argument attacked)
a1 - some argumenta2 - some argumentpublic boolean remove(Attack attack)
attack - an attackpublic boolean remove(Argument a)
a - some argumentpublic boolean removeAll(Collection<?> c)
removeAll in interface Collection<Argument>removeAll in class net.sf.tweety.commons.BeliefSet<Argument>public boolean contains(Object o)
contains in interface Collection<Argument>contains in interface net.sf.tweety.graphs.Graph<Argument>contains in class net.sf.tweety.commons.BeliefSet<Argument>public boolean containsAll(Collection<?> c)
containsAll in interface Collection<Argument>containsAll in class net.sf.tweety.commons.BeliefSet<Argument>public boolean containsAttack(Attack att)
att - some attackpublic boolean addAllAttacks(Collection<? extends Attack> c)
c - a collection of attackspublic boolean add(DungTheory theory)
theory - some Dung theorypublic Set<Attack> getAttacks()
public net.sf.tweety.graphs.Graph<Argument> getRestriction(Collection<Argument> arguments)
getRestriction in interface net.sf.tweety.graphs.Graph<Argument>public int hashCode()
hashCode in interface Collection<Argument>hashCode in class net.sf.tweety.commons.BeliefSet<Argument>public boolean equals(Object obj)
equals in interface Collection<Argument>equals in class net.sf.tweety.commons.BeliefSet<Argument>public boolean add(net.sf.tweety.graphs.Edge<Argument> edge)
add in interface net.sf.tweety.graphs.Graph<Argument>public Collection<Argument> getNodes()
getNodes in interface net.sf.tweety.graphs.Graph<Argument>public int getNumberOfNodes()
getNumberOfNodes in interface net.sf.tweety.graphs.Graph<Argument>public boolean areAdjacent(Argument a, Argument b)
areAdjacent in interface net.sf.tweety.graphs.Graph<Argument>public Collection<? extends net.sf.tweety.graphs.Edge<? extends Argument>> getEdges()
getEdges in interface net.sf.tweety.graphs.Graph<Argument>public Collection<Argument> getChildren(net.sf.tweety.graphs.Node node)
getChildren in interface net.sf.tweety.graphs.Graph<Argument>public Collection<Argument> getParents(net.sf.tweety.graphs.Node node)
getParents in interface net.sf.tweety.graphs.Graph<Argument>public boolean existsDirectedPath(Argument node1, Argument node2)
existsDirectedPath in interface net.sf.tweety.graphs.Graph<Argument>public Collection<Argument> getNeighbors(Argument node)
getNeighbors in interface net.sf.tweety.graphs.Graph<Argument>public net.sf.tweety.math.matrix.Matrix getAdjancyMatrix()
getAdjancyMatrix in interface net.sf.tweety.graphs.Graph<Argument>public DungTheory getComplementGraph(int selfloops)
getComplementGraph in interface net.sf.tweety.graphs.Graph<Argument>public boolean hasSelfLoops()
hasSelfLoops in interface net.sf.tweety.graphs.Graph<Argument>public net.sf.tweety.graphs.Edge<Argument> getEdge(Argument a, Argument b)
getEdge in interface net.sf.tweety.graphs.Graph<Argument>public boolean isWeightedGraph()
isWeightedGraph in interface net.sf.tweety.graphs.Graph<Argument>public Collection<Collection<Argument>> getStronglyConnectedComponents()
getStronglyConnectedComponents in interface net.sf.tweety.graphs.Graph<Argument>public Collection<net.sf.tweety.graphs.Graph<Argument>> getSubgraphs()
getSubgraphs in interface net.sf.tweety.graphs.Graph<Argument>public int compareTo(DungTheory o)
compareTo in interface Comparable<DungTheory>Copyright © 2018. All rights reserved.