Show / Hide Table of Contents

Class CompositeWork

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

Inheritance
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, bool>, bool)
WorkItem.OnInitialize(Job)
WorkItem.ToString()
FlowModelObject.BatchNumber
FlowModelObject.Properties
FlowModelObject.PropertiesContent
FlowModelObject.this[string]
FlowModelObject.UpdateProperties(string)
FlowModelObject.UpdateProperties(FlowModelObject)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: DNVGL.One.Compute.Core.FlowModel
Assembly: DNVGL.One.Compute.Core.dll
Syntax
[DataContract]
public abstract class CompositeWork : WorkItem, IFlowModelItem

Constructors

View Source

CompositeWork(bool)

Initializes a new instance of the CompositeWork class.

Declaration
protected CompositeWork(bool parallel)
Parameters
Type Name Description
bool parallel

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

View Source

CompositeWork(bool, IEnumerable<WorkItem>)

Initializes a new instance of the CompositeWork class.

Declaration
protected CompositeWork(bool parallel, IEnumerable<WorkItem> workItems)
Parameters
Type Name Description
bool 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[]

The CompositeWork WorkItems.

View Source

Parallel

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

Declaration
[DataMember]
public bool Parallel { get; }
Property Value
Type Description
bool

true if parallel; otherwise, false.

View Source

WorkItems

Gets or sets the compute tasks of this group.

Declaration
[DataMember]
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 WorkUnit.

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

The WorkUnit WorkItems.

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.GetAncestors(WorkItem, WorkItem)
WorkItemExtensions.GetRelativeWeight(WorkItem, WorkItem)
WorkItemExtensions.BuildExecutableWork(WorkItem)
  • View Source
In this article
Back to top Copyright © DNV AS. All rights reserved.