|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgate.fsm.State
public class State
This class implements a Finite State Machine state.
Field Summary | |
---|---|
protected RightHandSide |
action
The right hand side associated to the rule for which this state recognizes the lhs. |
protected int |
fileIndex
The index in the definition file of the rule that was used for creating this state. |
protected static int |
index
The class data member used for generating unique indices for State instances. |
protected boolean |
isFinal
Is this state a final one? |
protected int |
myIndex
The unique index of this state. |
protected int |
priority
The priority of the rule from which this state derived. |
Fields inherited from interface gate.jape.JapeConstants |
---|
ALL_STYLE, APPELT_STYLE, BRILL_STYLE, DEFAULT_PRIORITY, FIRST_STYLE, INDENT_PADDING, KLEENE_PLUS, KLEENE_QUERY, KLEENE_STAR, MULTI_SPAN_BINDING, NO_BINDING, NO_KLEENE_OP, ONCE_STYLE, SINGLE_SPAN_BINDING |
Constructor Summary | |
---|---|
State()
Build a new state. |
Method Summary | |
---|---|
void |
addTransition(Transition transition)
Adds a new transition to the list of outgoing transitions for this state. |
RightHandSide |
getAction()
Gets the action associated to this state. |
String |
getEdgesGML()
Returns a GML (graph modelling language) representation for the edges corresponding to transitions departing from this state in the transition graph of the FSM to which this state belongs |
protected int |
getIndex()
Gets the index of this state. |
SimpleArraySet |
getTransitions()
Gets the set of transitions for this state. |
boolean |
isFinal()
Reports if this state is a final one. |
protected void |
setAction(RightHandSide rhs)
Sets the action associated to this FINAL state. |
protected void |
setFileIndex(int i)
Sets the value for fileIndex. |
protected void |
setPriority(int i)
Sets the value for priority. |
String |
toString()
Returns a textual description of this state |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected boolean isFinal
protected RightHandSide action
protected int myIndex
protected static int index
protected int fileIndex
protected int priority
Constructor Detail |
---|
public State()
Method Detail |
---|
public boolean isFinal()
public SimpleArraySet getTransitions()
protected void setAction(RightHandSide rhs)
protected void setFileIndex(int i)
protected void setPriority(int i)
public RightHandSide getAction()
public void addTransition(Transition transition)
transition
- the transition to be addedprotected int getIndex()
public String getEdgesGML()
public String toString()
toString
in class Object
|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |