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

    Constructors
    Constructor and Description
    `TaskGroup(int id)` Create a task group with the specified id.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `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.

Copyright © 2014. All Rights Reserved.