public abstract class State extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static Integer |
TRANSITION_DEFINED_DEFAULT
Two (2) means the transition is defined in the default
state.
|
static Integer |
TRANSITION_DEFINED_LOCALLY
One (1) means the transition is defined in the current
state.
|
static Integer |
TRANSITION_UNDEFINED
Zero (0) means the transition is undefined.
|
| Modifier | Constructor and Description |
|---|---|
protected |
State(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.
|
String |
getName()
Returns the state name.
|
String |
toString()
Returns the state name.
|
public static final Integer TRANSITION_UNDEFINED
public static final Integer TRANSITION_DEFINED_LOCALLY
public static final Integer TRANSITION_DEFINED_DEFAULT
protected State(String name, int id)
name - The state name.id - The state unique identifier.public String getName()
public int getId()
Copyright © 2020. All rights reserved.