C# Class TopologicalSorting.Resource

A class of resource which may be used by a single concurrent process
Afficher le fichier Open project: martindevans/TopologicalSorting Class Usage Examples

Méthodes publiques

Свойство Type Description
Graph DependencyGraph
Name string

Méthodes publiques

Méthode Description
Resource ( DependencyGraph graph, string name ) : System.Collections.Generic

Initializes a new instance of the Resource class.

ToString ( ) : string

Returns a System.String that represents this instance.

UsedBy ( ) : void

Indicates that this resource is used by the given processes

UsedBy ( IEnumerable processes ) : void

Indicates that this resource is used by the given processes

UsedBy ( OrderedProcess process ) : void

Indicates that this resource is used by the given process

Method Details

Resource() public méthode

Initializes a new instance of the Resource class.
public Resource ( DependencyGraph graph, string name ) : System.Collections.Generic
graph DependencyGraph The graph which this ResourceClass is part of
name string The name of this resource
Résultat System.Collections.Generic

ToString() public méthode

Returns a System.String that represents this instance.
public ToString ( ) : string
Résultat string

UsedBy() public méthode

Indicates that this resource is used by the given processes
public UsedBy ( ) : void
Résultat void

UsedBy() public méthode

Indicates that this resource is used by the given processes
public UsedBy ( IEnumerable processes ) : void
processes IEnumerable The processes.
Résultat void

UsedBy() public méthode

Indicates that this resource is used by the given process
public UsedBy ( OrderedProcess process ) : void
process OrderedProcess The process.
Résultat void

Property Details

Graph public_oe property

The graph this class is part of
public DependencyGraph,TopologicalSorting Graph
Résultat DependencyGraph

Name public_oe property

The name of this resource
public string Name
Résultat string