|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.computing.automaton.State
public class State
Automaton state.
| Constructor Summary | |
|---|---|
State()
Constructs new state. |
|
| Method Summary | |
|---|---|
void |
addTransition(Transition t)
Adds outgoing transition. |
int |
compareTo(java.lang.Object o)
Compares this object with the specified object for order. |
java.util.Set<Transition> |
getTransitions()
Returns 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. |
java.lang.String |
toString()
Returns string describing this state. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public State()
| Method Detail |
|---|
public java.util.Set<Transition> getTransitions()
public void addTransition(Transition t)
t - transitionpublic void setAccept(boolean accept)
accept - if true, this state is an accept statepublic boolean isAccept()
public State step(char c)
c - character to look up
public java.lang.String toString()
Automaton.toString().
toString in class java.lang.Objectpublic int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparableo - DOCUMENT ME!
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||