public class DialecticalTree
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
DialecticalTree.Mark |
Modifier and Type | Field and Description |
---|---|
private DelpArgument |
argument
The argument in this node
|
private java.util.Set<DialecticalTree> |
children
The children of this node; size=0 indicates a leaf
|
private DialecticalTree |
parent
The parent node;
|
Modifier | Constructor and Description |
---|---|
|
DialecticalTree(DelpArgument argument)
constructor; initializes this dialectical tree node as a root with given argument
|
private |
DialecticalTree(DialecticalTree parent,
DelpArgument argument) |
Modifier and Type | Method and 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(java.util.Set<DelpArgument> arguments,
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.Mark |
getMarking()
Computes the marking of this node by considering the marking of all child nodes
|
boolean |
isAcceptable(DelpArgument argument,
DefeasibleLogicProgram delp,
ComparisonCriterion comparisonCriterion)
Checks whether the argumentation line composed of the ancestors of this node and the parameter
|
java.lang.String |
toString() |
private final DelpArgument argument
private final DialecticalTree parent
private final java.util.Set<DialecticalTree> children
public DialecticalTree(DelpArgument argument)
argument
- a DeLP argumentprivate DialecticalTree(DialecticalTree parent, DelpArgument argument)
public java.util.Set<DialecticalTree> getDefeaters(java.util.Set<DelpArgument> arguments, DefeasibleLogicProgram delp, ComparisonCriterion comparisonCriterion)
arguments
- a set of argumentsdelp
- a defeasible logic programcomparisonCriterion
- a comparison criterion.public boolean isAcceptable(DelpArgument argument, DefeasibleLogicProgram delp, ComparisonCriterion comparisonCriterion)
argument
- a DeLP argumentdelp
- a defeasible logic programcomparisonCriterion
- a comparison criterion.public java.util.stream.Stream<DelpArgument> getArgumentationLine()
public DialecticalTree.Mark getMarking()
public java.lang.String toString()
toString
in class java.lang.Object