Package ptolemy.vergil.gt
Class TransformationAttributeEditorFactory.TransformationListener
- java.lang.Object
-
- ptolemy.vergil.gt.TransformationAttributeEditorFactory.TransformationListener
-
- All Implemented Interfaces:
ExecutionListener
- Enclosing class:
- TransformationAttributeEditorFactory
public static class TransformationAttributeEditorFactory.TransformationListener extends java.lang.Object implements ExecutionListener
-
-
Field Summary
Fields Modifier and Type Field Description protected BasicGraphFrame
_frame
protected CompositeEntity
_model
protected PteraModalModel
_transformation
-
Constructor Summary
Constructors Constructor Description TransformationListener(PteraModalModel transformation, CompositeEntity model, BasicGraphFrame frame)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
executionError(Manager manager, java.lang.Throwable throwable)
Report an execution failure.void
executionFinished(Manager manager)
Report that the current execution has finished and the wrapup sequence has completed normally.void
managerStateChanged(Manager manager)
Report that the manager has changed state.
-
-
-
Field Detail
-
_frame
protected BasicGraphFrame _frame
-
_model
protected CompositeEntity _model
-
_transformation
protected PteraModalModel _transformation
-
-
Constructor Detail
-
TransformationListener
public TransformationListener(PteraModalModel transformation, CompositeEntity model, BasicGraphFrame frame)
-
-
Method Detail
-
executionError
public void executionError(Manager manager, java.lang.Throwable throwable)
Description copied from interface:ExecutionListener
Report an execution failure. This method will be called when an exception or error is caught by a manager. Exceptions are reported this way when the run() or startRun() methods of the manager are used to perform the execution. If instead the execute() method is used, then exceptions are not caught, and are instead just passed up to the caller of the execute() method. Those exceptions are not reported here (unless, of course, the caller of the execute() method does so).- Specified by:
executionError
in interfaceExecutionListener
- Parameters:
manager
- The manager controlling the execution.throwable
- The throwable to report.
-
executionFinished
public void executionFinished(Manager manager)
Description copied from interface:ExecutionListener
Report that the current execution has finished and the wrapup sequence has completed normally. The number of successfully completed iterations can be obtained by calling getIterationCount() on the manager.- Specified by:
executionFinished
in interfaceExecutionListener
- Parameters:
manager
- The manager controlling the execution.
-
managerStateChanged
public void managerStateChanged(Manager manager)
Description copied from interface:ExecutionListener
Report that the manager has changed state. To access the new state, use the getState() method of Manager.- Specified by:
managerStateChanged
in interfaceExecutionListener
- Parameters:
manager
- The manager controlling the execution.- See Also:
Manager.getState()
-
-