org.jaitools.jiffle.runtime
Class JiffleExecutorTask

java.lang.Object
  extended by org.jaitools.jiffle.runtime.JiffleExecutorTask
All Implemented Interfaces:
java.util.concurrent.Callable<JiffleExecutorResult>

public class JiffleExecutorTask
extends java.lang.Object
implements java.util.concurrent.Callable<JiffleExecutorResult>

Executes a runtime object in a thread provided by a JiffleExecutor.

Since:
0.1
Version:
$Id: JiffleExecutorTask.java 1653 2011-06-16 10:23:02Z michael.bedward $
Author:
Michael Bedward

Constructor Summary
JiffleExecutorTask(JiffleExecutor executor, int id, JiffleDirectRuntime runtime, JiffleProgressListener progressListener)
          Creates a new task.
 
Method Summary
 JiffleExecutorResult call()
          Called by the system to execute this task on a thread provided by the JiffleExecutor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JiffleExecutorTask

public JiffleExecutorTask(JiffleExecutor executor,
                          int id,
                          JiffleDirectRuntime runtime,
                          JiffleProgressListener progressListener)
Creates a new task. The image variable names (keys) in images must correspond to those known by the runtime object.

Parameters:
executor - the JiffleExecutor running this task
id - job ID allocated by the JiffleExecutor.
runtime - the JiffleDirectRuntime instance
progressListener -
Method Detail

call

public JiffleExecutorResult call()
Called by the system to execute this task on a thread provided by the JiffleExecutor.

Specified by:
call in interface java.util.concurrent.Callable<JiffleExecutorResult>
Returns:
a result object with references to the Jiffle object, the images, and the job completion status


Copyright © 2011. All Rights Reserved.