Class AbstractDTNode<DSCR,O,D,N extends AbstractDTNode<DSCR,O,D,N>>
- java.lang.Object
-
- de.learnlib.datastructure.discriminationtree.model.AbstractDTNode<DSCR,O,D,N>
-
- Type Parameters:
DSCR
- discriminator typeO
- output symbol typeD
- data typeN
- (recursive) node type
- Direct Known Subclasses:
AbstractTemporaryIntrusiveDTNode
,AbstractWordBasedDTNode
public abstract class AbstractDTNode<DSCR,O,D,N extends AbstractDTNode<DSCR,O,D,N>> extends Object
An abstract super class (DAO) for aggregating some information stored in a node of a discrimination tree.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
AbstractDTNode.SplitResult
-
Constructor Summary
Constructors Modifier Constructor Description AbstractDTNode(D data)
protected
AbstractDTNode(N parent, O parentOutcome, D data)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected N
addChild(O outcome, D data)
N
child(O out)
N
child(O out, D defaultData)
protected abstract N
createChild(O outcome, D data)
protected abstract Map<O,N>
createChildMap()
N
getChild(O out)
Collection<Map.Entry<O,N>>
getChildEntries()
Collection<N>
getChildren()
D
getData()
int
getDepth()
DSCR
getDiscriminator()
N
getParent()
O
getParentOutcome()
boolean
isLeaf()
boolean
isRoot()
void
replaceChildren(Map<O,N> repChildren)
void
setData(D data)
void
setDiscriminator(DSCR discriminator)
N
split(DSCR discriminator, O out)
AbstractDTNode.SplitResult
split(DSCR discriminator, O oldOut, O newOut)
AbstractDTNode.SplitResult
split(DSCR discriminator, O oldOut, O newOut, D newData)
@Nullable O
subtreeLabel(N descendant)
-
-
-
Method Detail
-
isRoot
public boolean isRoot()
-
getParent
public N getParent()
-
getDiscriminator
public DSCR getDiscriminator()
-
setDiscriminator
public void setDiscriminator(DSCR discriminator)
-
split
public AbstractDTNode.SplitResult split(DSCR discriminator, O oldOut, O newOut)
-
split
public AbstractDTNode.SplitResult split(DSCR discriminator, O oldOut, O newOut, D newData)
-
isLeaf
public boolean isLeaf()
-
getChildren
public Collection<N> getChildren()
-
getChildEntries
public Collection<Map.Entry<O,N>> getChildEntries()
-
getDepth
public int getDepth()
-
getData
public D getData()
-
setData
public void setData(D data)
-
getParentOutcome
public O getParentOutcome()
-
-