public abstract class State
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
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.
|
Modifier | Constructor and Description |
---|---|
protected |
State(java.lang.String name,
int id)
Creates a state instance with the given name and unique
integer identifier.
|
Modifier and Type | Method and Description |
---|---|
int |
getId()
Returns the unique integer identifier.
|
java.lang.String |
getName()
Returns the state name.
|
java.lang.String |
toString()
Returns the state name.
|
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
protected State(java.lang.String name, int id)
name
- The state name.id
- The state unique identifier.public java.lang.String getName()
public int getId()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2015. Charles W. Rapp. All Rights Reserved. Use is subject to license terms.