Package net.sf.tweety.arg.delp.semantics
Class DialecticalTree
- java.lang.Object
- 
- net.sf.tweety.arg.delp.semantics.DialecticalTree
 
- 
 public class DialecticalTree extends java.lang.ObjectThis class implements a node of a dialectical tree from DeLP.- Author:
- Matthias Thimm
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classDialecticalTree.Mark
 - 
Field SummaryFields Modifier and Type Field Description private DelpArgumentargumentThe argument in this nodeprivate java.util.Set<DialecticalTree>childrenThe children of this node; size=0 indicates a leafprivate DialecticalTreeparentThe parent node;null if this node is a root
 - 
Constructor SummaryConstructors Modifier Constructor Description privateDialecticalTree(DialecticalTree parent, DelpArgument argument)DialecticalTree(DelpArgument argument)constructor; initializes this dialectical tree node as a root with given argument
 - 
Method SummaryModifier and Type Method Description java.util.stream.Stream<DelpArgument>getArgumentationLine()Returns the argumentation line which is generated by the path from this node to the root (in reverse)java.util.Set<DialecticalTree>getDefeaters(DefeasibleLogicProgram delp, ComparisonCriterion comparisonCriterion)Computes the set of arguments which are defeaters for the argument in this tree node and returns the corresponding dialectical tree nodes with these defeaters.DialecticalTree.MarkgetMarking()Computes the marking of this node by considering the marking of all child nodesbooleanisAcceptable(DelpArgument argument, DefeasibleLogicProgram delp, ComparisonCriterion comparisonCriterion)Checks whether the argumentation line composed of the ancestors of this node and the parameterargumentis acceptable given the parameterdelpjava.lang.StringtoString()
 
- 
- 
- 
Field Detail- 
argumentprivate final DelpArgument argument The argument in this node
 - 
parentprivate final DialecticalTree parent The parent node;null if this node is a root
 - 
childrenprivate final java.util.Set<DialecticalTree> children The children of this node; size=0 indicates a leaf
 
- 
 - 
Constructor Detail- 
DialecticalTreepublic DialecticalTree(DelpArgument argument) constructor; initializes this dialectical tree node as a root with given argument- Parameters:
- argument- a DeLP argument
 
 - 
DialecticalTreeprivate DialecticalTree(DialecticalTree parent, DelpArgument argument) 
 
- 
 - 
Method Detail- 
getDefeaterspublic java.util.Set<DialecticalTree> getDefeaters(DefeasibleLogicProgram delp, ComparisonCriterion comparisonCriterion) Computes the set of arguments which are defeaters for the argument in this tree node and returns the corresponding dialectical tree nodes with these defeaters. For the computation of the defeaters the whole argumentation line to this tree node is considered. As a side effect the computed tree nodes are added as children of this node- Parameters:
- delp- a defeasible logic program
- comparisonCriterion- a comparison criterion.
- Returns:
- the set of defeater nodes of the argument in this node
 
 - 
isAcceptablepublic boolean isAcceptable(DelpArgument argument, DefeasibleLogicProgram delp, ComparisonCriterion comparisonCriterion) Checks whether the argumentation line composed of the ancestors of this node and the parameterargumentis acceptable given the parameterdelp- Parameters:
- argument- a DeLP argument
- delp- a defeasible logic program
- comparisonCriterion- a comparison criterion.
- Returns:
- trueif the corresponding argumentation line is acceptable
 
 - 
getArgumentationLinepublic java.util.stream.Stream<DelpArgument> getArgumentationLine() Returns the argumentation line which is generated by the path from this node to the root (in reverse)- Returns:
- a stream of arguments denoting the argumentation line
 
 - 
getMarkingpublic DialecticalTree.Mark getMarking() Computes the marking of this node by considering the marking of all child nodes- Returns:
- one of DialecticalTree.MARK_DEFEATED and DialecticalTree.MARK_UNDEFEATED
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-