Class FlowGraph
Represents a directed graph of WorkUnit.
Implements
Inherited Members
Namespace: DNVGL.One.Compute.Core.FlowModel
Assembly: DNVGL.One.Compute.Core.dll
Syntax
[DataContract]
public class FlowGraph : WorkItem, IFlowModelItem
  Constructors
View SourceFlowGraph()
Initializes a new instance of the FlowGraph class.
Declaration
public FlowGraph()
  See Also
View SourceFlowGraph(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
Properties
View SourceWorkItems
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
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   | 
      
See Also
View SourceGetDescendants()
Gets the descendants.
Declaration
public override IEnumerable<WorkItem> GetDescendants()
  Returns
| Type | Description | 
|---|---|
| IEnumerable<WorkItem> | Descendant items.  | 
      
Overrides
See Also
View SourceGetInitialWorkUnits()
Gets the initial work units.
Declaration
public IEnumerable<WorkUnit> GetInitialWorkUnits()
  Returns
| Type | Description | 
|---|---|
| IEnumerable<WorkUnit> | The work units that have dependencies.  | 
      
See Also
View SourceGetWorkUnit(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
View SourceInitialize()
Initializes this instance.
Declaration
public void Initialize()
  See Also
View SourceOnInitialize(Job)
Called when the Job is initialized.
Declaration
public override void OnInitialize(Job job)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Job | job | The job.  |