Package ptolemy.domains.modal.kernel
Class StateEvent
- java.lang.Object
-
- ptolemy.domains.modal.kernel.StateEvent
-
- All Implemented Interfaces:
DebugEvent
- Direct Known Subclasses:
EventDebugEvent
public class StateEvent extends java.lang.Object implements DebugEvent
An event indicating a state change. This event can be used for debugging.- Since:
- Ptolemy II 8.0
- Version:
- $Id$
- Author:
- Edward A. Lee
- Pt.AcceptedRating:
- Red (nobody)
- Pt.ProposedRating:
- Yellow (eal)
-
-
Constructor Summary
Constructors Constructor Description StateEvent(FSMActor source, State state)Construct an event with the specified source and destination state.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NamedObjgetSource()Return the source of the event, which is an instance of FSMActor.StategetState()Return the state to which this event refers.java.lang.StringtoString()Return a string representation of this event, which is the string "New state: name of state".
-
-
-
Method Detail
-
getSource
public NamedObj getSource()
Return the source of the event, which is an instance of FSMActor.- Specified by:
getSourcein interfaceDebugEvent- Returns:
- The ptolemy object that published this event.
-
getState
public State getState()
Return the state to which this event refers.- Returns:
- The state to which this event refers.
-
toString
public java.lang.String toString()
Return a string representation of this event, which is the string "New state: name of state".- Specified by:
toStringin interfaceDebugEvent- Overrides:
toStringin classjava.lang.Object- Returns:
- A string describing the event.
-
-