public void ParseConnections()
        {
            // Find all model files.
            DirectoryInfo           directory  = new DirectoryInfo(Path.Combine(@"..\..\..\", "TorXakisDotNetAdapter.Models", "Models"));
            TorXakisModelCollection collection = new TorXakisModelCollection(directory);

            Console.WriteLine(collection);

            // Parse connections from models.
            foreach (TorXakisModel model in collection.Models)
            {
                Dictionary <int, List <string> > connections = model.ParseConnections();
                foreach (KeyValuePair <int, List <string> > kvp in connections)
                {
                    string info = "Port: " + kvp.Key + " Input: " + kvp.Value[0] + " Output: " + kvp.Value[1];
                    Console.WriteLine(info);
                }
            }
        }
        public void ParseActions()
        {
            // Find all model files.
            DirectoryInfo           directory  = new DirectoryInfo(Path.Combine(@"..\..\..\", "TorXakisDotNetAdapter.Models", "Models"));
            TorXakisModelCollection collection = new TorXakisModelCollection(directory);

            Console.WriteLine(collection);

            // Parse actions from models.
            Dictionary <string, Dictionary <string, string> > actions = collection.ParseActions();

            foreach (KeyValuePair <string, Dictionary <string, string> > kvp1 in actions)
            {
                string info = kvp1.Key;
                foreach (KeyValuePair <string, string> kvp2 in kvp1.Value)
                {
                    info += "\n    " + kvp2.Key + " " + kvp2.Value;
                }
                Console.WriteLine(info);
            }
        }