ptolemy.domains.tm.kernel
Interface ScheduleListener

All Known Implementing Classes:
SchedulePlotter

public interface ScheduleListener

Interface for listeners that receive schedule messages.

Since:
Ptolemy II 2.0
Version:
$Id: ScheduleListener.java 57040 2010-01-27 20:52:32Z cxh $
Author:
Johan Eker
See Also:
NamedObj
Accepted Rating:
Red (johane)
Proposed Rating:
Red (johane)

Field Summary
static int RESET_DISPLAY
          Reset display message.
static int TASK_BLOCKED
          Task blocked message.
static int TASK_RUNNING
          Task running message.
static int TASK_SLEEPING
          Task sleeping message.
 
Method Summary
 void event(java.lang.String actorName, double time, int scheduleEvent)
          React to the given scheduling event.
 

Field Detail

RESET_DISPLAY

static final int RESET_DISPLAY
Reset display message.

See Also:
Constant Field Values

TASK_SLEEPING

static final int TASK_SLEEPING
Task sleeping message.

See Also:
Constant Field Values

TASK_BLOCKED

static final int TASK_BLOCKED
Task blocked message.

See Also:
Constant Field Values

TASK_RUNNING

static final int TASK_RUNNING
Task running message.

See Also:
Constant Field Values
Method Detail

event

void event(java.lang.String actorName,
           double time,
           int scheduleEvent)
React to the given scheduling event.

Parameters:
actorName - The name of the actor involved in the event.
time - The time of the event.
scheduleEvent - One of RESET_DISPLAY, TASK_SLEEPING, TASK_BLOCKED or TASK_RUNNING.