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 NamedObj getSource()
getSource
in interface DebugEvent
public State getState()
public java.lang.String toString()
toString
in interface DebugEvent
toString
in class java.lang.Object