public class StateEvent extends java.lang.Object implements DebugEvent
| Constructor and Description |
|---|
StateEvent(FSMActor source,
State state)
Construct an event with the specified source and destination
state.
|
| Modifier and Type | Method and Description |
|---|---|
NamedObj |
getSource()
Return the source of the event, which is an instance of FSMActor.
|
State |
getState()
Return the state to which this event refers.
|
java.lang.String |
toString()
Return a string representation of this event, which is the
string "New state: name of state".
|
public StateEvent(FSMActor source, State state)
source - The source of this state event.state - The state of this event refers to.public NamedObj getSource()
getSource in interface DebugEventpublic State getState()
public java.lang.String toString()
toString in interface DebugEventtoString in class java.lang.Object