예제 #1
0
        public void AddNode(string name)
        {
            // make sure this node has not been added
            if (this.Nodes.ContainsKey(name))
            {
                return;
            }

            // create the node object giving it a name
            var node = new Node(name);

            // name is the key in the dictionary (comes from constants), node is also created with this name value
            this.Nodes.Add(name, node);
        }
예제 #2
0
 public NodeConnection(Node target, double distance, ConnectionMedium connectionMedium)
 {
     this.Target = target;
     this.Distance = distance;
     this.ConnectionMedium = connectionMedium;
 }