org.encog.util.concurrency.job
Class JobUnitContext
- java.lang.Object
-
- org.encog.util.concurrency.job.JobUnitContext
-
public class JobUnitContext extends java.lang.ObjectThe job unit context contains context information to be passed to a job unit. This tells the thread what to work on.
-
-
Constructor Summary
Constructors Constructor and Description JobUnitContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.ObjectgetJobUnit()ConcurrentJobgetOwner()intgetTaskNumber()voidsetJobUnit(java.lang.Object jobUnit)Set the job unit.voidsetOwner(ConcurrentJob owner)Set the job owner.voidsetTaskNumber(int taskNumber)Set the task number.
-
-
-
Method Detail
-
getJobUnit
public java.lang.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(java.lang.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.
-
-
DMelt 3.0 © DataMelt by jWork.ORG