Class WorkBuilder
The default IExecutableWorkBuilder for the built-in library of IComputationalWork.
Inheritance
System.Object
WorkBuilder
Implements
Namespace: DNVGL.One.Compute.WorkExecution.ExecutionModel
Assembly: DNVGL.One.Compute.WorkExecution.dll
Syntax
public class WorkBuilder : object, IExecutableWorkBuilder
Constructors
View SourceWorkBuilder(IEnumerable<IExecutableWorkBuilder>)
Initializes a new instance of the WorkBuilder class.
Declaration
public WorkBuilder(IEnumerable<IExecutableWorkBuilder> builderChain = null)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<IExecutableWorkBuilder> | builderChain | The builder chain. |
Properties
View SourceDefaultWorkBuilder
Gets the work builder.
Declaration
public static IExecutableWorkBuilder DefaultWorkBuilder { get; }
Property Value
Type | Description |
---|---|
IExecutableWorkBuilder | The work builder. |
Methods
View SourceAddBuilder(IExecutableWorkBuilder)
Adds the builder to the builder chain.
Declaration
public void AddBuilder(IExecutableWorkBuilder builder)
Parameters
Type | Name | Description |
---|---|---|
IExecutableWorkBuilder | builder | The builder. |
BuildExecutableWork(WorkItem)
Builds the executable work from the given work item.
Declaration
public IComputationalWork BuildExecutableWork(WorkItem workItem)
Parameters
Type | Name | Description |
---|---|---|
WorkItem | workItem | The work item. |
Returns
Type | Description |
---|---|
IComputationalWork | The executable work. |
CanBuild(WorkItem)
Determines whether this build is able to build executable work from the given work item.
Declaration
public bool CanBuild(WorkItem workItem)
Parameters
Type | Name | Description |
---|---|---|
WorkItem | workItem | The work item. |
Returns
Type | Description |
---|---|
System.Boolean |
|