felix.society
Class TaskList

java.lang.Object
  extended by felix.society.Task
      extended by felix.society.TaskList

public class TaskList
extends Task

TaskList -- Subtasks in it must be executed in order, and the downstream tasks can be executed only if the upstream tasks are joined.

Author:
czhang

Nested Class Summary
 class TaskList.TaskListExecutionWorker
          Worker for running this TaskList.
 
Nested classes/interfaces inherited from class felix.society.Task
Task.TaskType
 
Field Summary
 
Fields inherited from class felix.society.Task
currentFuture, currentWorker, softpool
 
Constructor Summary
TaskList()
           
TaskList(int _nRuns)
           
 
Method Summary
 Worker generateWorker()
          Generate worker for TASK (threads).
 Worker generateWorker(java.util.concurrent.ExecutorService pool)
          Generate worker for TASKLIST, TASKSET (threads).
 
Methods inherited from class felix.society.Task
addSubTask, execute, getType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskList

public TaskList()

TaskList

public TaskList(int _nRuns)
Method Detail

generateWorker

public Worker generateWorker()
Description copied from class: Task
Generate worker for TASK (threads).

Specified by:
generateWorker in class Task
Returns:

generateWorker

public Worker generateWorker(java.util.concurrent.ExecutorService pool)
Description copied from class: Task
Generate worker for TASKLIST, TASKSET (threads).

Specified by:
generateWorker in class Task
Parameters:
pool - The thread pool in which subtasks will run.
Returns: