| Modifier and Type | Class and Description |
|---|---|
class |
DFAImplEdgeList.EdgeIterableOutgoing
Iterator to iterate over the outgoing edges of a state.
|
| Constructor and Description |
|---|
DFAImplEdgeList() |
| Modifier and Type | Method and Description |
|---|---|
int |
addEdge(int source,
short activity)
Adds an edge to the graph.
|
void |
addEdge(int source,
short activity,
int target)
Add an edge to the graph.
|
java.util.BitSet |
getAcceptingStates() |
gnu.trove.list.TShortList |
getActivities() |
int |
getInitialState() |
int |
getNumberOfStates() |
DFAImplEdgeList.EdgeIterableOutgoing |
getOutgoingEdgesIterator(int state)
Get an iterator over the outgoing edges of a state.
|
gnu.trove.list.TIntList |
getSources() |
gnu.trove.list.TIntList |
getTargets() |
boolean |
isAccepting(int state) |
void |
removeOutgoingEdgesOf(int state)
Remove all the outgoing edges of a state.
|
void |
removeStateAndRedirectEdgesTo(int oldTarget,
int newTarget)
Replace all incoming edges of oldTarget and redirect them to newTarget,
and delete all outgoing edges of oldTarget.
|
void |
removeStatesExcept(java.util.BitSet keepStates) |
void |
setAccepting(int state,
boolean accepting) |
int |
step(int state,
short activity) |
java.lang.String |
toDot()
Returns a dot representation of the automaton.
|
java.lang.String |
toString() |
public int getInitialState()
getInitialState in interface DFApublic void setAccepting(int state,
boolean accepting)
setAccepting in interface DFApublic boolean isAccepting(int state)
isAccepting in interface DFApublic java.util.BitSet getAcceptingStates()
getAcceptingStates in interface DFApublic void addEdge(int source,
short activity,
int target)
DFApublic int addEdge(int source,
short activity)
DFApublic void removeStateAndRedirectEdgesTo(int oldTarget,
int newTarget)
DFAremoveStateAndRedirectEdgesTo in interface DFApublic void removeOutgoingEdgesOf(int state)
DFAremoveOutgoingEdgesOf in interface DFApublic void removeStatesExcept(java.util.BitSet keepStates)
removeStatesExcept in interface DFApublic java.lang.String toString()
public java.lang.String toDot()
DFApublic DFAImplEdgeList.EdgeIterableOutgoing getOutgoingEdgesIterator(int state)
DFAgetOutgoingEdgesIterator in interface DFApublic int getNumberOfStates()
getNumberOfStates in interface DFApublic gnu.trove.list.TIntList getTargets()
getTargets in interface DFApublic gnu.trove.list.TIntList getSources()
getSources in interface DFApublic gnu.trove.list.TShortList getActivities()
getActivities in interface DFA