Show / Hide Table of Contents

Class CompositeWork

Batch of WorkItem. CompositeWork is a composite WorkItem that can represent both sequential and parallel workflow

Inheritance
System.Object
FlowModelObject
WorkItem
CompositeWork
ParallelWork
SequentialWork
Implements
IFlowModelItem
Inherited Members
WorkItem.Tag
WorkItem.JobId
WorkItem.ParentId
WorkItem.Id
WorkItem.GetParent()
WorkItem.Select<T>(Func<WorkItem, T>)
WorkItem.Traverse(Action<WorkItem, WorkItem>, WorkItem)
WorkItem.FindItems(Func<WorkItem, Boolean>, Boolean)
WorkItem.OnInitialize(Job)
WorkItem.ToString()
FlowModelObject.BatchNumber
FlowModelObject.Properties
FlowModelObject.PropertiesContent
FlowModelObject.Item[String]
FlowModelObject.UpdateProperties(String)
Namespace: DNVGL.One.Compute.Core.FlowModel
Assembly: DNVGL.One.Compute.Core.dll
Syntax
public abstract class CompositeWork : WorkItem, IFlowModelItem

Constructors

View Source

CompositeWork(Boolean)

Initializes a new instance of the CompositeWork class.

Declaration
protected CompositeWork(bool parallel)
Parameters
Type Name Description
System.Boolean parallel

if set to true the work will be executed in parallel.

View Source

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 true the work will be executed in parallel.

IEnumerable<WorkItem> workItems

The work items.

Properties

View Source

Batches

Gets the WorkItems that are of type CompositeWork.

Declaration
public CompositeWork[] Batches { get; }
Property Value
Type Description
CompositeWork[]
View Source

Parallel

Gets a value indicating whether this CompositeWork can be executed in parallel.

Declaration
public bool Parallel { get; }
Property Value
Type Description
System.Boolean

true if parallel; otherwise, false.

View Source

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.

View Source

WorkUnits

Gets the WorkItems that are of type CompositeWork.

Declaration
public WorkUnit[] WorkUnits { get; }
Property Value
Type Description
WorkUnit[]

Methods

View Source

GetDescendants()

Gets the descendants.

Declaration
public override IEnumerable<WorkItem> GetDescendants()
Returns
Type Description
IEnumerable<WorkItem>

Descendant items

Overrides
WorkItem.GetDescendants()

Implements

IFlowModelItem

Extension Methods

WorkItemExtensions.GetRelativeWeight(WorkItem, WorkItem)
WorkItemExtensions.GetAncestors(WorkItem, WorkItem)
  • View Source
Back to top Copyright © DNV GL AS. All rights reserved.