Class CompositeWork
Batch of WorkItem. CompositeWork is a composite WorkItem that can represent both sequential and parallel workflow.
Implements
Inherited Members
Namespace: DNVGL.One.Compute.Core.FlowModel
Assembly: DNVGL.One.Compute.Core.dll
Syntax
public abstract class CompositeWork : WorkItem, IFlowModelItem
Constructors
View SourceCompositeWork(Boolean)
Initializes a new instance of the CompositeWork class.
Declaration
protected CompositeWork(bool parallel)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | parallel | if set to |
CompositeWork(Boolean, IEnumerable<WorkItem>)
Initializes a new instance of the CompositeWork class.
Declaration
protected CompositeWork(bool parallel, IEnumerable<WorkItem> workItems)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | parallel | if set to |
IEnumerable<WorkItem> | workItems | The work items. |
Properties
View SourceBatches
Gets the WorkItems that are of type CompositeWork.
Declaration
public CompositeWork[] Batches { get; }
Property Value
Type | Description |
---|---|
CompositeWork[] | The CompositeWork WorkItems. |
Parallel
Gets a value indicating whether this CompositeWork can be executed in parallel.
Declaration
public bool Parallel { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
WorkItems
Gets or sets the compute tasks of this group.
Declaration
public List<WorkItem> WorkItems { get; set; }
Property Value
Type | Description |
---|---|
List<WorkItem> | The compute tasks. |
WorkUnits
Declaration
public WorkUnit[] WorkUnits { get; }
Property Value
Type | Description |
---|---|
WorkUnit[] |
Methods
View SourceGetDescendants()
Gets the descendants.
Declaration
public override IEnumerable<WorkItem> GetDescendants()
Returns
Type | Description |
---|---|
IEnumerable<WorkItem> | Descendant items. |