Add() private method

private Add ( OrderedProcess orderedProcess ) : bool
orderedProcess OrderedProcess
return bool
示例#1
0
        /// <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);
        }
示例#2
0
        /// <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);
        }
示例#3
0
        /// <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);
        }