Show / Hide Table of Contents

Class FlowGraph

Represents a directed graph of WorkUnit.

Inheritance
object
FlowModelObject
WorkItem
FlowGraph
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.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 class FlowGraph : WorkItem, IFlowModelItem

Constructors

View Source

FlowGraph()

Initializes a new instance of the FlowGraph class.

Declaration
public FlowGraph()
See Also
WorkItem
View Source

FlowGraph(params WorkUnit[])

Initializes a new instance of the FlowGraph class.

Declaration
public FlowGraph(params WorkUnit[] graphUnits)
Parameters
Type Name Description
WorkUnit[] graphUnits

The graph units.

See Also
WorkItem

Properties

View Source

WorkItems

Gets or sets the work items of this graph.

Declaration
[DataMember]
public List<WorkUnit> WorkItems { get; set; }
Property Value
Type Description
List<WorkUnit>

The compute tasks.

See Also
WorkItem

Methods

View Source

GetDependents(WorkUnit)

Gets the dependents of the given workUnit.

Declaration
public IEnumerable<WorkUnit> GetDependents(WorkUnit workUnit)
Parameters
Type Name Description
WorkUnit workUnit

The work unit.

Returns
Type Description
IEnumerable<WorkUnit>

The work units depending on the given workUnit.

See Also
WorkItem
View Source

GetDescendants()

Gets the descendants.

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

Descendant items.

Overrides
WorkItem.GetDescendants()
See Also
WorkItem
View Source

GetInitialWorkUnits()

Gets the initial work units.

Declaration
public IEnumerable<WorkUnit> GetInitialWorkUnits()
Returns
Type Description
IEnumerable<WorkUnit>

The work units that have dependencies.

See Also
WorkItem
View Source

GetWorkUnit(string)

Gets the work unit with the specified id.

Declaration
public WorkUnit GetWorkUnit(string workUnitId)
Parameters
Type Name Description
string workUnitId

The work unit identifier.

Returns
Type Description
WorkUnit

The work unit with the specified identifier.

See Also
WorkItem
View Source

Initialize()

Initializes this instance.

Declaration
public void Initialize()
See Also
WorkItem
View Source

OnInitialize(Job)

Called when the Job is initialized.

Declaration
public override void OnInitialize(Job job)
Parameters
Type Name Description
Job job

The job.

Overrides
WorkItem.OnInitialize(Job)
See Also
WorkItem

Implements

IFlowModelItem

Extension Methods

FlowModelExtensions.GetTopologicalSorting(FlowGraph)
WorkItemExtensions.GetAncestors(WorkItem, WorkItem)
WorkItemExtensions.GetRelativeWeight(WorkItem, WorkItem)
WorkItemExtensions.BuildExecutableWork(WorkItem)

See Also

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