ch.tatool.core.executable
Class BlockingAWTExecutable
java.lang.Object
ch.tatool.core.element.AbstractPropertyHolder
ch.tatool.core.element.NodeImpl
ch.tatool.core.executable.BlockingExecutable
ch.tatool.core.executable.BlockingAWTExecutable
- All Implemented Interfaces:
- PropertyHolder, Executable, Node, KeyEventDispatcher
- Direct Known Subclasses:
- AbstractHTMLExecutable, AbstractInstructionExecutable, ConfidenceRatingExecutable, GenericContentExecutable, QuestionnaireExecutable
public abstract class BlockingAWTExecutable
- extends BlockingExecutable
- implements Executable
Blocking executable element implementation
This implementation blocks the executable thread until finishExecution is called.
Prior to calling finishExecution, a lock needs to be acquired. This way each thread
finishing can first check whether it is "the first" or simply abort its operation in
case it is not.
- Author:
- Michael Ruflin
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BlockingAWTExecutable
public BlockingAWTExecutable()
BlockingAWTExecutable
public BlockingAWTExecutable(String defaultId)
startExecution
protected final void startExecution()
- Calls startExecutionAWT on the awt thread.
- Specified by:
startExecution in class BlockingExecutable
startExecutionAWT
protected abstract void startExecutionAWT()
- To be implemented. Called at the start of the executable execution.
cancelExecution
protected final void cancelExecution()
- Calls cancelExecutionAWT on the awt thread.
- Overrides:
cancelExecution in class BlockingExecutable
cancelExecutionAWT
protected void cancelExecutionAWT()
- cancelExecution called in the awt thread.
Copyright © 2012. All Rights Reserved.