public class State extends Object
Constructor and Description |
---|
State(String name) |
State(String name,
Map transitions) |
Modifier and Type | Method and Description |
---|---|
State |
addTransition(Transition transition)
Add a transition to the allowed transition map.
|
Object |
getData() |
String |
getName()
Get the state name.
|
Transition |
getTransition(String name)
Lookup an allowed transition given its name.
|
Map |
getTransitions()
Get the Map
|
boolean |
isAcceptState()
An accept state is indicated by no transitions
|
void |
setData(Object data) |
String |
toString() |
public String getName()
public Object getData()
public void setData(Object data)
public boolean isAcceptState()
public State addTransition(Transition transition)
transition
- public Transition getTransition(String name)
name
- - the name of a valid transition from this state.public Map getTransitions()
Copyright © 2017 JBoss by Red Hat. All rights reserved.