public class NfaNode extends Node
| Modifier and Type | Method and Description |
|---|---|
Set<NfaNode> |
eclosure()
ε-closure is defined as the node, plus all other nodes that are
reachable from this node with an ε transition, recursively.
|
protected void |
eclosure(Set<NfaNode> closure)
Compute the ε-closure of the node by traversing all ε transitions
|
boolean |
equals(Object o) |
int |
hashCode() |
static void |
reset()
Needed for test cases
|
addTransition, getCodeTransitions, getGraph, getId, getIndex, getTransitions, getX, getY, isAccept, isStarting, removeTransition, setAccept, setIndex, setStarting, setX, setY, toStringpublic NfaNode(Nfa graph)
graph - the NFA to which this node belongs toprotected void eclosure(Set<NfaNode> closure)
closure - a set where the ε-closures are placed.public Set<NfaNode> eclosure()
Nodepublic static void reset()
Copyright © 2017. All rights reserved.