edu.ucla.util
Interface Interruptable.Veto
- Enclosing class:
- Interruptable
public static interface Interruptable.Veto
Implement this interface to define a callback for deciding whether
or not to go ahead with an interruption.
- Since:
- 20060328
- Author:
- keith cascio
vetoInterruption
boolean vetoInterruption(Interruptable interruptable)
- Decide whether or not to veto the interruption.
The implementation of this method may need to spawn
a yes/no confirm dialog to ask the user.
It will help the user if this Interruptable is
identified meaningfully, so call setName( "meaningful name" )
when configuring the task.
- Returns:
- true means VETO THE INTERRUPTION, DO NOT START A NEW COMPUTATION, FINISH THE CURRENT COMPUTATION INSTEAD
Copyright 2010 UCLA Automated Reasoning Group