public class State<T> extends Object
Title:
Description:
Copyright: Copyright (c) 2006
Company: Clark & Parsia, LLC.
| Constructor and Description |
|---|
State() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTransition(State<T> s)
Create an epsilon transition from this state to the given state
|
void |
addTransition(T symbol,
State<T> s)
Create a transition from this state to the given state on
given symbol
|
int |
getName() |
Set<Transition<T>> |
getTransitions()
Returns the transitions for originating from this state.
|
State<T> |
move(T symbol)
Returns a state reached from this state with the given symbol.
|
void |
setName(int i) |
String |
toString() |
public void addTransition(T symbol, State<T> s)
symbol - s - public void addTransition(State<T> s)
s - public Set<Transition<T>> getTransitions()
public State<T> move(T symbol)
null otherwisepublic int getName()
public void setName(int i)
Copyright © 2019. All rights reserved.