Class ExecEvent
- java.lang.Object
-
- ptolemy.domains.dde.demo.LocalZeno.ExecEvent
-
- All Implemented Interfaces:
DebugEvent
public class ExecEvent extends java.lang.Object implements DebugEvent
An event that indicates that an actor is in a particular state. The event contains two pieces of information: the actor that generated the event and the (integer) state of the actor when the event was generated. A class that listens for ExecEvents must implement the ExecEventListener interface. The interpretation of state is determined by the actors and listeners that use the ExecEvent class and ExecEventListener interface. The author of code that takes advantage of these facilities should write the actors and listeners so that they utilize a common meaning for the integer states.- Since:
- Ptolemy II 1.0
- Version:
- $Id$
- Author:
- Mudit Goel, John S. Davis II
- Pt.AcceptedRating:
- Red (cxh)
- Pt.ProposedRating:
- Red (davisj)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExecEvent.ExecEventType
-
Field Summary
Fields Modifier and Type Field Description static ExecEvent.ExecEventType
ACCESSING
static ExecEvent.ExecEventType
BLOCKED
static ExecEvent.ExecEventType
WAITING
-
Constructor Summary
Constructors Constructor Description ExecEvent(NamedObj actorSource, ExecEvent.ExecEventType state)
Create an ExecEvent with the specified actor and state.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NamedObj
getSource()
Return the actor corresponding to the event.ExecEvent.ExecEventType
getState()
Return the state of the actor when the event was generated.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ptolemy.kernel.util.DebugEvent
toString
-
-
-
-
Field Detail
-
BLOCKED
public static final ExecEvent.ExecEventType BLOCKED
-
ACCESSING
public static final ExecEvent.ExecEventType ACCESSING
-
WAITING
public static final ExecEvent.ExecEventType WAITING
-
-
Constructor Detail
-
ExecEvent
public ExecEvent(NamedObj actorSource, ExecEvent.ExecEventType state)
Create an ExecEvent with the specified actor and state.- Parameters:
actorSource
- The actor that generated the event.state
- The state of the actor when the event is is generated.
-
-
Method Detail
-
getSource
public NamedObj getSource()
Return the actor corresponding to the event.- Specified by:
getSource
in interfaceDebugEvent
- Returns:
- The actor that generated this event.
-
getState
public ExecEvent.ExecEventType getState()
Return the state of the actor when the event was generated.- Returns:
- The state of the actor when the event was generated.
-
-