C# Class TopologicalSorting.OrderedProcess

A process that requires execution, a process depends upon other processes being executed first, and the resources it uses not being consumed at the same time
Mostrar archivo Open project: martindevans/TopologicalSorting Class Usage Examples

Public Properties

Property Type Description
Graph DependencyGraph
Name string

Private Properties

Property Type Description

Public Methods

Method Description
After ( ) : IEnumerable

Indicates that this process must happen after all the predecessors

After ( IEnumerable predecessors ) : IEnumerable

Indicates that this process must happen after all the predecessors

After ( OrderedProcess predecessor ) : OrderedProcess

Indicates that this process should execute after another

Before ( ) : IEnumerable

Indicates that this process must happen before all the followers

Before ( IEnumerable followers ) : IEnumerable

Indicates that this process must happen before all the followers

Before ( OrderedProcess follower ) : OrderedProcess

Indicates that this process should execute before another

OrderedProcess ( DependencyGraph graph, string name ) : System.Collections.Generic

Initializes a new instance of the OrderedProcess class.

Requires ( Resource resource ) : void

Indicates that this process requires the specified resource.

ToString ( ) : string

Returns a System.String that represents this instance.

Method Details

After() public method

Indicates that this process must happen after all the predecessors
public After ( ) : IEnumerable
return IEnumerable

After() public method

Indicates that this process must happen after all the predecessors
public After ( IEnumerable predecessors ) : IEnumerable
predecessors IEnumerable The predecessors.
return IEnumerable

After() public method

Indicates that this process should execute after another
public After ( OrderedProcess predecessor ) : OrderedProcess
predecessor OrderedProcess The predecessor.
return OrderedProcess

Before() public method

Indicates that this process must happen before all the followers
public Before ( ) : IEnumerable
return IEnumerable

Before() public method

Indicates that this process must happen before all the followers
public Before ( IEnumerable followers ) : IEnumerable
followers IEnumerable The followers.
return IEnumerable

Before() public method

Indicates that this process should execute before another
public Before ( OrderedProcess follower ) : OrderedProcess
follower OrderedProcess The ancestor.
return OrderedProcess

OrderedProcess() public method

Initializes a new instance of the OrderedProcess class.
public OrderedProcess ( DependencyGraph graph, string name ) : System.Collections.Generic
graph DependencyGraph The graph which this process is part of
name string The name of this process
return System.Collections.Generic

Requires() public method

Indicates that this process requires the specified resource.
public Requires ( Resource resource ) : void
resource Resource The resource.
return void

ToString() public method

Returns a System.String that represents this instance.
public ToString ( ) : string
return string

Property Details

Graph public_oe property

The graph this process is part of
public DependencyGraph,TopologicalSorting Graph
return DependencyGraph

Name public_oe property

The name of this process
public string Name
return string