org.jaitools.jiffle.runtime
Class JiffleExecutorResult

java.lang.Object
  extended by org.jaitools.jiffle.runtime.JiffleExecutorResult

public class JiffleExecutorResult
extends java.lang.Object

Used by JiffleExecutor to send the results of a task to JiffleEventListeners.

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

Constructor Summary
JiffleExecutorResult(int taskID, JiffleDirectRuntime runtime, boolean completed)
          Creates a new result object.
 
Method Summary
 java.util.Map<java.lang.String,java.awt.image.RenderedImage> getImages()
          Gets source and/or destination images that were used.
 JiffleDirectRuntime getRuntime()
          Gets the Jiffle object
 int getTaskID()
          Gets the task ID assigned by the executor.
 boolean isCompleted()
          Gets the completion status of the task.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JiffleExecutorResult

public JiffleExecutorResult(int taskID,
                            JiffleDirectRuntime runtime,
                            boolean completed)
Creates a new result object.

Parameters:
taskID - the task ID assigned by the executor
runtime - the run-time instance
completed - whether the task was completed successfully
Method Detail

getImages

public java.util.Map<java.lang.String,java.awt.image.RenderedImage> getImages()
Gets source and/or destination images that were used.

Returns:
the images keyed by script variable name

getRuntime

public JiffleDirectRuntime getRuntime()
Gets the Jiffle object

Returns:
the Jiffle object

getTaskID

public int getTaskID()
Gets the task ID assigned by the executor.

Returns:
task ID

isCompleted

public boolean isCompleted()
Gets the completion status of the task.

Returns:
true if the task was completed; false otherwise


Copyright © 2011. All Rights Reserved.