Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.encog.util.concurrency
Class TaskGroup

    java.lang.Object
      org.encog.util.concurrency.TaskGroup

    public class TaskGroup

extends Object

A 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
`TaskGroup(int id)` Create a task group with the specified id.

Method Summary
`int` | `getID()`
`boolean` | `getNoTasks()`
`void` | `taskStarting()` Notify that a task is starting.
`void` | `taskStopping()` Notify that a task is stopping.
`void` | `waitForComplete()` Wait for all tasks to complete in this group.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2011. All Rights Reserved.