C# 클래스 TopologicalSorting.Resource

A class of resource which may be used by a single concurrent process
파일 보기 프로젝트 열기: martindevans/TopologicalSorting 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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