org.eclipse.emf.henshin.interpreter.impl
Class BasicApplicationMonitor

java.lang.Object
  extended by org.eclipse.emf.henshin.interpreter.impl.BasicApplicationMonitor
All Implemented Interfaces:
ApplicationMonitor
Direct Known Subclasses:
LoggingApplicationMonitor, ProfilingApplicationMonitor

public class BasicApplicationMonitor
extends Object
implements ApplicationMonitor

Basic ApplicationMonitor implementation.


Field Summary
protected  boolean canceled
           
protected  boolean undo
           
 
Constructor Summary
BasicApplicationMonitor()
           
 
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 success)
          Notify this monitor that a unit application has been undone.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

canceled

protected boolean canceled

undo

protected boolean undo
Constructor Detail

BasicApplicationMonitor

public BasicApplicationMonitor()
Method Detail

isCanceled

public boolean isCanceled()
Description copied from interface: ApplicationMonitor
Check whether this application has been canceled.

Specified by:
isCanceled in interface ApplicationMonitor
Returns:
true if it is canceled.

isUndo

public boolean isUndo()
Description copied from interface: ApplicationMonitor
Check whether this application should be undone.

Specified by:
isUndo in interface ApplicationMonitor
Returns:
true if it should be undone.

cancel

public void cancel()
Description copied from interface: ApplicationMonitor
Cancel the current application (no undo).

Specified by:
cancel in interface ApplicationMonitor

cancelAndUndo

public void cancelAndUndo()
Description copied from interface: ApplicationMonitor
Cancel and undo the current application.

Specified by:
cancelAndUndo in interface ApplicationMonitor

notifyExecute

public void notifyExecute(UnitApplication application,
                          boolean success)
Description copied from interface: ApplicationMonitor
Notify this monitor that a unit application has been executed.

Specified by:
notifyExecute in interface ApplicationMonitor
Parameters:
application - Executed unit application.
success - Whether the unit application was successful.

notifyUndo

public void notifyUndo(UnitApplication application,
                       boolean success)
Description copied from interface: ApplicationMonitor
Notify this monitor that a unit application has been undone.

Specified by:
notifyUndo in interface ApplicationMonitor
Parameters:
application - Undone unit application.

notifyRedo

public void notifyRedo(UnitApplication application,
                       boolean success)
Description copied from interface: ApplicationMonitor
Notify this monitor that a unit application has been redone.

Specified by:
notifyRedo in interface ApplicationMonitor
Parameters:
application - Redone unit application.
success - Whether the unit application was successfully redone.