C# Class Encog.Util.Concurrency.Job.ConcurrentJob

A concurrent JOB, works well for multicore machines. Provides the low-level tools to create a concurrent job.
Inheritance: IMultiThreadable
Mostra file Open project: encog/encog-silverlight-core

Public Methods

Method Description
LoadWorkload ( ) : int

Load the workload that this job must process.

PerformJobUnit ( JobUnitContext context ) : void

Perform the actual workload.

Process ( ) : void

Start the job, block until its done.

ReportStatus ( JobUnitContext context, String status ) : void

Recieve status reports.

RequestNextTask ( ) : Object

Called by a thread to get the next task.

Protected Methods

Method Description
ConcurrentJob ( IStatusReportable report ) : System

Method Details

ConcurrentJob() protected method

protected ConcurrentJob ( IStatusReportable report ) : System
report IStatusReportable
return System

LoadWorkload() public abstract method

Load the workload that this job must process.
public abstract LoadWorkload ( ) : int
return int

PerformJobUnit() public abstract method

Perform the actual workload.
public abstract PerformJobUnit ( JobUnitContext context ) : void
context JobUnitContext The workload to execute.
return void

Process() public method

Start the job, block until its done.
public Process ( ) : void
return void

ReportStatus() public method

Recieve status reports.
public ReportStatus ( JobUnitContext context, String status ) : void
context JobUnitContext The context for this job.
status String The current status for this job.
return void

RequestNextTask() public abstract method

Called by a thread to get the next task.
public abstract RequestNextTask ( ) : Object
return Object