C# Класс TopologicalSorting.DependencyGraph

A graph of processes and resources from which a topological sort can be extracted
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
CalculateSort ( ) : TopologicalSort

Calculates the sort which results from this dependency network

CalculateSort ( TopologicalSort instance ) : TopologicalSort

Append the result of this dependency graph to the end of the given sorting solution

Приватные методы

Метод Описание
Add ( OrderedProcess orderedProcess ) : bool
Add ( Resource resourceClass ) : bool
CheckGraph ( OrderedProcess a, OrderedProcess b ) : void
CheckGraph ( Resource a, OrderedProcess b ) : void
SolveResourceDependencies ( ISet processes ) : IEnumerable>

Given a set of processes which are not interdependent, split up into multiple sets which do not use the same resource concurrently

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

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

Calculates the sort which results from this dependency network
Thrown if no sort exists for the given set of constraints
public CalculateSort ( ) : TopologicalSort
Результат TopologicalSort

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

Append the result of this dependency graph to the end of the given sorting solution
public CalculateSort ( TopologicalSort instance ) : TopologicalSort
instance TopologicalSort The instance.
Результат TopologicalSort