/// <summary> /// Initializes a new instance of the <see cref="Resource"/> class. /// </summary> /// <param name="graph">The graph which this ResourceClass is part of</param> /// <param name="name">The name of this resource</param> public Resource(DependencyGraph graph, string name) { Graph = graph; Name = name; Graph.Add(this); }
/// <summary> /// Initializes a new instance of the <see cref="OrderedProcess"/> class. /// </summary> /// <param name="graph">The graph which this process is part of</param> /// <param name="name">The name of this process</param> public OrderedProcess(DependencyGraph graph, string name) { Graph = graph; Name = name; Graph.Add(this); }
/// <summary> /// Initializes a new instance of the <see cref="OrderedProcess"/> class. /// </summary> /// <param value="graph">The graph which this process is part of</param> /// <param value="value">The value of this process</param> public OrderedProcess(DependencyGraph <T> graph, T value) { Graph = graph; Value = value; Graph.Add(this); }