jaitools.jiffle.runtime
Class JiffleExecutorTask

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

public class JiffleExecutorTask
extends Object
implements Callable<JiffleExecutorResult>

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

Since:
1.0
Version:
$Id: JiffleExecutorTask.java 1506 2011-03-06 06:51:07Z michael.bedward $
Author:
Michael Bedward

Constructor Summary
JiffleExecutorTask(JiffleExecutor executor, int id, Jiffle jiffle, Map<String,RenderedImage> images, 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,
                          Jiffle jiffle,
                          Map<String,RenderedImage> images,
                          JiffleProgressListener progressListener)
Creates a new task. The Jiffle object must be properly initialized with a script and image parameters although it need not be compiled. The image variable names in images must match those used in the Jiffle objects image parameters.

Parameters:
id - job ID allocated by the JiffleExecutor.
jiffle - the Jiffle object
images - a Map with image variable name as key and the corresponding source or destination image as value
Method Detail

call

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

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


Copyright © 2009-2011. All Rights Reserved.