Show / Hide Table of Contents

Class WorkBuilder

The default IExecutableWorkBuilder for the built-in library of IComputationalWork.

Inheritance
object
WorkBuilder
Implements
IExecutableWorkBuilder
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: DNVGL.One.Compute.WorkExecution.ExecutionModel
Assembly: DNVGL.One.Compute.WorkExecution.dll
Syntax
public class WorkBuilder : IExecutableWorkBuilder

Constructors

View Source

WorkBuilder(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.

See Also
IExecutableWorkBuilder

Properties

View Source

DefaultWorkBuilder

Gets the work builder.

Declaration
public static IExecutableWorkBuilder DefaultWorkBuilder { get; }
Property Value
Type Description
IExecutableWorkBuilder

The work builder.

See Also
IExecutableWorkBuilder

Methods

View Source

AddBuilder(IExecutableWorkBuilder)

Adds the builder to the builder chain.

Declaration
public void AddBuilder(IExecutableWorkBuilder builder)
Parameters
Type Name Description
IExecutableWorkBuilder builder

The builder.

See Also
IExecutableWorkBuilder
View Source

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.

Exceptions
Type Condition
ArgumentException

Unable to find a way to execute work items of type {workItem.GetType()}.

See Also
IExecutableWorkBuilder
View Source

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
bool

true if this builder can build executable work from the specified work item; otherwise, false.

See Also
IExecutableWorkBuilder

Implements

IExecutableWorkBuilder

See Also

IExecutableWorkBuilder
  • View Source
In this article
Back to top Copyright © DNV AS. All rights reserved.