com.scalagent.task.composed.Parallel Class Reference

Inherits com.scalagent.task.composed.Composed.

Inheritance diagram for com.scalagent.task.composed.Parallel:

Inheritance graph
[legend]
Collaboration diagram for com.scalagent.task.composed.Parallel:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Parallel ()
 Parallel (short to, AgentId parent, AgentId child[])

Protected Member Functions

void startSubtasks () throws Exception
Object buildResult () throws Exception

Detailed Description

Composed task with a parallel order of execution of sub-tasks.

Definition at line 35 of file Parallel.java.


Constructor & Destructor Documentation

com.scalagent.task.composed.Parallel.Parallel (  ) 

Default constructor

Definition at line 39 of file Parallel.java.

com.scalagent.task.composed.Parallel.Parallel ( short  to,
AgentId  parent,
AgentId  child[] 
)

Creates an agent to be deployed remotely.

Parameters:
to agent server id where agent is to be deployed
parent agent to report status to
child children tasks ids

Definition at line 50 of file Parallel.java.

References com.scalagent.task.composed.Composed.child.


Member Function Documentation

void com.scalagent.task.composed.Parallel.startSubtasks (  )  throws Exception [protected, virtual]

Starts sub-tasks that can be started (all their dependent tasks have completed).

Implements com.scalagent.task.composed.Composed.

Definition at line 58 of file Parallel.java.

References com.scalagent.task.composed.Composed.child, com.scalagent.task.composed.Composed.parameter, and com.scalagent.task.TaskHandle.status.

Object com.scalagent.task.composed.Parallel.buildResult (  )  throws Exception [protected]

Builds the result object when this task completes.

Returns the array of sub-tasks results, or null if all results are null.

Returns:
the result object of the task

Reimplemented from com.scalagent.task.Task.

Definition at line 80 of file Parallel.java.

References com.scalagent.task.composed.Composed.child, and com.scalagent.task.TaskHandle.result.


The documentation for this class was generated from the following file:
Generated on Tue Sep 16 16:15:59 2008 for joram by  doxygen 1.5.0