org.eclipse.emf.henshin.interpreter
Interface ApplicationMonitor

All Known Implementing Classes:
BasicApplicationMonitor, LoggingApplicationMonitor, ProfilingApplicationMonitor

public interface ApplicationMonitor

Interface for application monitors.

See Also:
UnitApplication

Method Summary
 void cancel()
          Cancel the current application (no undo).
 void cancelAndUndo()
          Cancel and undo the current application.
 boolean isCanceled()
          Check whether this application has been canceled.
 boolean isUndo()
          Check whether this application should be undone.
 void notifyExecute(UnitApplication application, boolean success)
          Notify this monitor that a unit application has been executed.
 void notifyRedo(UnitApplication application, boolean success)
          Notify this monitor that a unit application has been redone.
 void notifyUndo(UnitApplication application, boolean succeess)
          Notify this monitor that a unit application has been undone.
 

Method Detail

isCanceled

boolean isCanceled()
Check whether this application has been canceled.

Returns:
true if it is canceled.

isUndo

boolean isUndo()
Check whether this application should be undone.

Returns:
true if it should be undone.

cancel

void cancel()
Cancel the current application (no undo).


cancelAndUndo

void cancelAndUndo()
Cancel and undo the current application.


notifyExecute

void notifyExecute(UnitApplication application,
                   boolean success)
Notify this monitor that a unit application has been executed.

Parameters:
application - Executed unit application.
success - Whether the unit application was successful.

notifyUndo

void notifyUndo(UnitApplication application,
                boolean succeess)
Notify this monitor that a unit application has been undone.

Parameters:
application - Undone unit application.
success - Whether the unit application was successfully undone.

notifyRedo

void notifyRedo(UnitApplication application,
                boolean success)
Notify this monitor that a unit application has been redone.

Parameters:
application - Redone unit application.
success - Whether the unit application was successfully redone.