Class IncompleteTheory
java.lang.Object
org.tweetyproject.commons.BeliefSet<Argument,DungSignature>
org.tweetyproject.arg.dung.syntax.DungTheory
org.tweetyproject.arg.dung.syntax.IncompleteTheory
- All Implemented Interfaces:
Comparable<DungTheory>
,Iterable<Argument>
,Collection<Argument>
,ArgumentationFramework<Argument>
,BeliefBase
,GeneralGraph<Argument>
,Graph<Argument>
implementation of incomplete argumentation frameworks
- Author:
- Sebastian Franke, Lars Bengel
-
Field Summary
Modifier and TypeFieldDescriptiondefinite argumentsdefinite attacksuncertain argumentsuncertain attacksFields inherited from class org.tweetyproject.commons.BeliefSet
EQUALS_USES_SIGNATURE
Fields inherited from interface org.tweetyproject.graphs.Graph
IGNORE_SELFLOOPS, INVERT_SELFLOOPS, REMOVE_SELFLOOPS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
adds definite argumentvoid
addDefiniteAttack
(Argument arg1, Argument arg2) adds definite attackvoid
adds possible argumentvoid
addPossibleAttack
(Argument arg1, Argument arg2) adds uncertain argumentGenerates all possible completions of the current Dung theory based on uncertain arguments and attacks.void
instantiate
(Collection<Argument> usedPossibleArguments, Collection<Attack> usedPossibleAttacks) instantiates some possible arguments and attacksvoid
merge
(HashSet<DungTheory> theories) merges DungTheories to one incomplete theoryvoid
constructs optimistic completion (all attacks from and to set s are instantiated and no other possible attacks)void
constructs pessimistic completion (all attacks but the ones from and to set s are instantiated and no other possible attacks)<T> Collection
<Collection<T>> powerSet
(Collection<T> originalSet) constructs powerset of generic typeMethods inherited from class org.tweetyproject.arg.dung.syntax.DungTheory
add, add, add, add, add, addAllAttacks, addAttack, areAdjacent, clone, compareTo, contains, containsAll, containsAttack, containsCycle, containsOddCycle, equals, equalsIn, existsDirectedPath, faf, getAdjacencyMatrix, getAttacked, getAttacked, getAttackers, getAttackers, getAttacks, getBidirectionalAttacks, getChildren, getComplementGraph, getComponents, getEdge, getEdges, getInducedSubgraphs, getMinimalSignature, getNeighbors, getNodes, getNumberOfEdges, getNumberOfNodes, getParents, getReduct, getRestriction, getStronglyConnectedComponents, getSubgraphs, getUnattackedAttackers, getUndefendedAttacks, hasAttackBranch, hasDefenseBranch, hashCode, hasSelfLoops, isAcceptable, isAdmissible, isAttackBranch, isAttacked, isAttacked, isAttackedBy, isAttackedBy, isAttackingAllOtherArguments, isCoherent, isComplete, isConflictFree, isConflictFree, isDefenseBranch, isIndirectAttack, isRelativelyCoherent, isStable, isStronglyDefendedBy, isSupport, isWeightedGraph, isWellFounded, prettyPrint, remove, remove, removeAll, toString
Methods inherited from class org.tweetyproject.commons.BeliefSet
add, addAll, clear, getSignature, isEmpty, iterator, remove, retainAll, setSignature, size, toArray, toArray, toString
Methods inherited from interface java.util.Collection
parallelStream, removeIf, spliterator, stream, toArray
-
Field Details
-
definiteArguments
definite arguments -
definiteAttacks
definite attacks -
uncertainArgument
uncertain arguments -
uncertainAttacks
uncertain attacks
-
-
Constructor Details
-
IncompleteTheory
public IncompleteTheory()constructor
-
-
Method Details
-
addDefiniteArgument
-
addPossibleArgument
-
addPossibleAttack
-
addDefiniteAttack
-
instantiate
public void instantiate(Collection<Argument> usedPossibleArguments, Collection<Attack> usedPossibleAttacks) instantiates some possible arguments and attacks- Parameters:
usedPossibleArguments
- arguments from this.possibleArgumentsusedPossibleAttacks
- attacks from this.possibleAttacks
-
merge
merges DungTheories to one incomplete theory- Parameters:
theories
- the theories to merge
-
powerSet
constructs powerset of generic type- Type Parameters:
T
- generic types (i.e. arguments)- Parameters:
originalSet
- the set to build power set- Returns:
- power set
-
optimisticCompletion
constructs optimistic completion (all attacks from and to set s are instantiated and no other possible attacks)- Parameters:
s
- a set of arguments
-
pessimisticCompletion
constructs pessimistic completion (all attacks but the ones from and to set s are instantiated and no other possible attacks)- Parameters:
s
- a set of arguments
-
getAllCompletions
Generates all possible completions of the current Dung theory based on uncertain arguments and attacks.- Returns:
- A collection of
DungTheory
objects representing all possible completions of the current theory.
-