I - input symbol typepublic final class Node<I> extends Object implements Serializable
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.
|
@Nullable 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_KNOWpublic Node(Acceptance acceptance)
acceptance - the acceptance value for the nodepublic Acceptance getAcceptance()
public void setAcceptance(Acceptance acceptance)
acceptance - the new acceptance value for this nodepublic @Nullable 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 © 2020. All rights reserved.