I
- input symbol type@ParametersAreNonnullByDefault public final class Node<I> extends Object
IncrementalDFATreeBuilder
.Constructor and Description |
---|
Node()
Constructor.
|
Node(Acceptance acceptance)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Acceptance |
getAcceptance()
Retrieves the acceptance value of this node.
|
Node<I> |
getChild(int idx)
Retrieves, for a given index, the respective child of this node.
|
void |
makeSink() |
void |
setAcceptance(Acceptance acceptance)
Sets the acceptance value for this node.
|
void |
setChild(int idx,
int alphabetSize,
Node<I> child)
Sets the child for a given index.
|
public Node()
Acceptance.DONT_KNOW
public Node(Acceptance acceptance)
acceptance
- the acceptance value for the nodepublic Acceptance getAcceptance()
public void setAcceptance(Acceptance acceptance)
acceptance
- the new acceptance value for this node@Nullable public Node<I> getChild(int idx)
idx
- the alphabet symbol indexnull
if there is no such childpublic void setChild(int idx, int alphabetSize, Node<I> child)
idx
- the alphabet symbol indexalphabetSize
- the overall alphabet size; this is needed if a new children array needs to be createdchild
- the new childpublic void makeSink()
Copyright © 2015. All rights reserved.