org.encog.util.concurrency.job

## Class JobUnitContext

- java.lang.Object
- - org.encog.util.concurrency.job.JobUnitContext

-     public class JobUnitContext
      extends Object

  The job unit context contains context information to be passed to a job unit. This tells the thread what to work on.
  Author:
    jheaton

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `JobUnitContext()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Object` | `getJobUnit()`
    `ConcurrentJob` | `getOwner()`
    `int` | `getTaskNumber()`
    `void` | `setJobUnit(Object jobUnit)` Set the job unit.
    `void` | `setOwner(ConcurrentJob owner)` Set the job owner.
    `void` | `setTaskNumber(int taskNumber)` Set the task number.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### JobUnitContext

          public JobUnitContext()

  - ### Method Detail

    - #### getJobUnit

          public Object getJobUnit()

      Returns:
        The job unit.

    - #### getOwner

          public ConcurrentJob getOwner()

      Returns:
        The concurrent job that owns this task.

    - #### getTaskNumber

          public int getTaskNumber()

      Returns:
        The task number.

    - #### setJobUnit

          public void setJobUnit(Object jobUnit)

      Set the job unit.
      Parameters:
        `jobUnit` - The job unit.

    - #### setOwner

          public void setOwner(ConcurrentJob owner)

      Set the job owner.
      Parameters:
        `owner` - The job owner.

    - #### setTaskNumber

          public void setTaskNumber(int taskNumber)

      Set the task number.
      Parameters:
        `taskNumber` - The task number.

Copyright © 2014. All Rights Reserved.