org.dftproject.genesis.core.research
Class PooledTaskFamily

java.lang.Object
  extended by org.dftproject.genesis.core.research.TaskFamily
      extended by org.dftproject.genesis.core.research.PooledTaskFamily

public abstract class PooledTaskFamily
extends TaskFamily

A pooled task family maintains an internal thread pool which is used to execute tasks.


Constructor Summary
PooledTaskFamily(Objective objective)
          Creates a pooled task family for the given objective.
 
Method Summary
 void cancel()
          Cancels this task family and all the tasks that comprise it.
 void execute(Task task)
          Executes the given task using the thread pool.
 java.lang.String getFullDescription()
          Returns a full description of this task family (including canceled status).
 
Methods inherited from class org.dftproject.genesis.core.research.TaskFamily
addListener, addTask, finished, getDescription, getIcon, getObjective, getTasks, isCanceled, removeListener, removeTask, taskCanceled, taskUpdated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PooledTaskFamily

public PooledTaskFamily(Objective objective)
Creates a pooled task family for the given objective.

Parameters:
objective - the objective
Method Detail

execute

public void execute(Task task)
Executes the given task using the thread pool.

Parameters:
task - a task

cancel

public void cancel()
Description copied from class: TaskFamily
Cancels this task family and all the tasks that comprise it.

Overrides:
cancel in class TaskFamily

getFullDescription

public java.lang.String getFullDescription()
Description copied from class: TaskFamily
Returns a full description of this task family (including canceled status).

Overrides:
getFullDescription in class TaskFamily
Returns:
a full description of this family