|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ptolemy.actor.StreamExecutionListener
public class StreamExecutionListener
A default implementation of the ExecutionListener interface. This implementation prints information about each event to a stream.
Green (bart) |
Green (eal) |
Field Summary | |
---|---|
private java.io.PrintStream |
_output
|
Constructor Summary | |
---|---|
StreamExecutionListener()
Create a listener that sends messages to the standard output. |
|
StreamExecutionListener(java.io.OutputStream out)
Create a listener that sends messages to the given output stream. |
Method Summary | |
---|---|
void |
executionError(Manager manager,
java.lang.Throwable throwable)
Report an execution failure by printing a message to output stream specified to the constructor. |
void |
executionFinished(Manager manager)
Report that the current execution finished by printing a message to output stream specified to the constructor. |
void |
managerStateChanged(Manager manager)
Report that the manager has changed state by printing a message to output stream specified to the constructor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.io.PrintStream _output
Constructor Detail |
---|
public StreamExecutionListener()
public StreamExecutionListener(java.io.OutputStream out)
out
- The output stream to send the messages to.Method Detail |
---|
public void executionError(Manager manager, java.lang.Throwable throwable)
executionError
in interface ExecutionListener
manager
- The manager controlling the execution.throwable
- The throwable to report.public void executionFinished(Manager manager)
executionFinished
in interface ExecutionListener
manager
- The manager controlling the execution.public void managerStateChanged(Manager manager)
managerStateChanged
in interface ExecutionListener
manager
- The manager controlling the execution.Manager.getState()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |