C# Класс TopologicalSorting.Resource

A class of resource which may be used by a single concurrent process
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Graph DependencyGraph
Name string

Открытые методы

Метод Описание
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

Описание методов

Resource() публичный Метод

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
Результат System.Collections.Generic

ToString() публичный Метод

Returns a System.String that represents this instance.
public ToString ( ) : string
Результат string

UsedBy() публичный Метод

Indicates that this resource is used by the given processes
public UsedBy ( ) : void
Результат void

UsedBy() публичный Метод

Indicates that this resource is used by the given processes
public UsedBy ( IEnumerable processes ) : void
processes IEnumerable The processes.
Результат void

UsedBy() публичный Метод

Indicates that this resource is used by the given process
public UsedBy ( OrderedProcess process ) : void
process OrderedProcess The process.
Результат void

Описание свойств

Graph публичное свойство

The graph this class is part of
public DependencyGraph,TopologicalSorting Graph
Результат DependencyGraph

Name публичное свойство

The name of this resource
public string Name
Результат string