|
SMC 6_0_1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectstatemap.State
public abstract class State
Base class for all SMC-generated context states. This class stores the state name and unique integer identifier.
Field Summary | |
---|---|
static java.lang.Integer |
TRANSITION_DEFINED_DEFAULT
Two (2) means the transition is defined in the default state. |
static java.lang.Integer |
TRANSITION_DEFINED_LOCALLY
One (1) means the transition is defined in the current state. |
static java.lang.Integer |
TRANSITION_UNDEFINED
Zero (0) means the transition is undefined. |
Constructor Summary | |
---|---|
protected |
State(java.lang.String name,
int id)
Creates a state instance with the given name and unique integer identifier. |
Method Summary | |
---|---|
int |
getId()
Returns the unique integer identifier. |
java.lang.String |
getName()
Returns the state name. |
java.lang.String |
toString()
Returns the state name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.Integer TRANSITION_UNDEFINED
public static final java.lang.Integer TRANSITION_DEFINED_LOCALLY
public static final java.lang.Integer TRANSITION_DEFINED_DEFAULT
Constructor Detail |
---|
protected State(java.lang.String name, int id)
name
- The state name.id
- The state unique identifier.Method Detail |
---|
public java.lang.String getName()
public int getId()
public java.lang.String toString()
toString
in class java.lang.Object
|
SMC 6_0_1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |