api
Class Result

java.lang.Object
  extended by api.Result
All Implemented Interfaces:
java.io.Serializable

public class Result
extends java.lang.Object
implements java.io.Serializable

Container for objects generated by a task's execute method. This includes Tasks, Successors, and Results.

See Also:
Serialized Form

Constructor Summary
Result(TaskId parentId, java.lang.Object[] objs)
          Constructor for Container class.
 
Method Summary
 java.lang.Object[] getObjs()
          Gets the objects stored in the container
 TaskId getParentId()
          Gets the id of the parent task
 long getRuntime()
          Gets the runtime of the task that generated the contained objects
 void setRuntime(long runtime)
          Sets the runtime of the task that generated the contained objects
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Result

public Result(TaskId parentId,
              java.lang.Object[] objs)
Constructor for Container class.

Parameters:
parentId - the id of the task that created the result
objs - Array of objects for the container to store.
Method Detail

getParentId

public TaskId getParentId()
Gets the id of the parent task

Returns:
the id of the parent task

getObjs

public java.lang.Object[] getObjs()
Gets the objects stored in the container

Returns:
the objects stored in the container

setRuntime

public void setRuntime(long runtime)
Sets the runtime of the task that generated the contained objects

Parameters:
runtime - the runtime of the task that generated the contained objects

getRuntime

public long getRuntime()
Gets the runtime of the task that generated the contained objects

Returns:
the runtime of the task that generated the contained objects