Class FlowGraph
Represents a directed graph of WorkUnit.
Implements
Inherited Members
Namespace: DNVGL.One.Compute.Core.FlowModel
Assembly: DNVGL.One.Compute.Core.dll
Syntax
public class FlowGraph : WorkItem, IFlowModelItem
  Constructors
View SourceFlowGraph()
Initializes a new instance of the FlowGraph class.
Declaration
public FlowGraph()
  FlowGraph(WorkUnit[])
Initializes a new instance of the FlowGraph class.
Declaration
public FlowGraph(params WorkUnit[] graphUnits)
  Parameters
| Type | Name | Description | 
|---|---|---|
| WorkUnit[] | graphUnits | The graph units.  | 
      
Properties
View SourceWorkItems
Gets or sets the work items of this graph.
Declaration
public List<WorkUnit> WorkItems { get; set; }
  Property Value
| Type | Description | 
|---|---|
| List<WorkUnit> | The compute tasks.  | 
      
Methods
View SourceGetDependents(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   | 
      
GetDescendants()
Gets the descendants.
Declaration
public override IEnumerable<WorkItem> GetDescendants()
  Returns
| Type | Description | 
|---|---|
| IEnumerable<WorkItem> | Descendant items  | 
      
Overrides
View SourceGetInitialWorkUnits()
Gets the initial work units.
Declaration
public IEnumerable<WorkUnit> GetInitialWorkUnits()
  Returns
| Type | Description | 
|---|---|
| IEnumerable<WorkUnit> | The work units that have dependencies  | 
      
GetWorkUnit(String)
Gets the work unit with the specified id.
Declaration
public WorkUnit GetWorkUnit(string workUnitId)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | workUnitId | The work unit identifier.  | 
      
Returns
| Type | Description | 
|---|---|
| WorkUnit | The work unit with the specified id  | 
      
Initialize()
Initializes this instance.
Declaration
public void Initialize()
  OnInitialize(Job)
Called when the Job is initialized.
Declaration
public override void OnInitialize(Job job)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Job | job | The job.  |