dk.brics.automaton
public class State extends Object implements Serializable, Comparable<State>
| Constructor Summary | |
|---|---|
| State()
Constructs a new state. | |
| Method Summary | |
|---|---|
| void | addTransition(Transition t)
Adds an outgoing transition. |
| int | compareTo(State s)
Compares this object with the specified object for order.
|
| List<Transition> | getSortedTransitions(boolean to_first)
Returns sorted list of outgoing transitions. |
| Set<Transition> | getTransitions()
Returns the set of outgoing transitions.
|
| boolean | isAccept()
Returns acceptance status. |
| void | setAccept(boolean accept)
Sets acceptance for this state. |
| State | step(char c)
Performs lookup in transitions, assuming determinism. |
| void | step(char c, Collection<State> dest)
Performs lookup in transitions, allowing nondeterminism. |
Parameters: t transition
Parameters: to_first if true, order by (to, min, reverse max); otherwise (min, reverse max, to)
Returns: transition list
Returns: transition set
Returns: true is this is an accept state
Parameters: accept if true, this state is an accept state
Parameters: c character to look up
Returns: destination state, null if no matching outgoing transition
See Also: State
Parameters: c character to look up dest collection where destination states are stored
See Also: State