Ejemplo n.º 1
0
        // The function checks if the node is runnable. If it is, it sets its
        // runnable attribute to true and adds it to the runnablePoints
        // hashtable
        private static void CheckRun(HashNode hashNode, Hashtable runnablePoints)
        {
            StreamWriter runnableFile;

            if (hashNode.GetName() == "sidewalk" ||
                hashNode.GetName() == "footway")
            {
                hashNode.SetRunnable();
                runnablePoints.Add(hashNode.GetLocation(), hashNode);

                // The node is runnable, write it to the runnableFile
                runnableFile = new StreamWriter(_path + "/runable.txt", true);
                WriteNodeToFile(hashNode, runnableFile);

                runnableFile.Close();
            }
        }