org.encog.util.concurrency
Class TaskGroup
- java.lang.Object
-
- org.encog.util.concurrency.TaskGroup
-
public class TaskGroup extends java.lang.ObjectA task group is a group of tasks that you would like to execute at once. You can wait for all tasks in a task group to exit before your program continues.
-
-
Constructor Summary
Constructors Constructor and Description TaskGroup(int id)Create a task group with the specified id.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetID()booleangetNoTasks()voidtaskStarting()Notify that a task is starting.voidtaskStopping()Notify that a task is stopping.voidwaitForComplete()Wait for all tasks to complete in this group.
-
-
-
Constructor Detail
-
TaskGroup
public TaskGroup(int id)
Create a task group with the specified id.- Parameters:
id- The ID of the task group.
-
-
Method Detail
-
getID
public int getID()
- Returns:
- The ID of the task group.
-
getNoTasks
public boolean getNoTasks()
- Returns:
- Returns true if there are no more tasks.
-
taskStarting
public void taskStarting()
Notify that a task is starting.
-
taskStopping
public void taskStopping()
Notify that a task is stopping.
-
waitForComplete
public void waitForComplete()
Wait for all tasks to complete in this group.
-
-
DMelt 3.0 © DataMelt by jWork.ORG