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.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
`JobUnitContext()`

Method Summary
`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.

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.