Esempio n. 1
0
        static void Main(string[] args)
        {
            //variable set up
            settings = new NetworkSettings();
            topologies = new Dictionary<string, NetworkTopology>();

            objectFactory = new Dictionary<string, IUserObjectFactory>();
            objectFactory.Add("standard", new StandLibFactory());

            loadTool = new LoadTool(ref settings, ref topologies, ref objectFactory);
            updateTool = new UpdateTool(ref settings, ref topologies);
            saveTool = new SaveTool(ref settings, ref topologies);

            //start up display information
            Console.WriteLine("ENN  Copyright (C) 2012  Tim Eck II");
            Console.WriteLine("This program comes with ABSOLUTELY NO WARRANTY.");
            Console.WriteLine("This is free software, and you are welcome to redistribute it");
            Console.WriteLine(
                "under certain conditions; which can be found in the COPYING.LESSER.txt file");
            Console.WriteLine("that was provided with the program.\n");
            Console.WriteLine(
                "The ENN runtime has been succesfully started. You may now enter commands");
            Console.WriteLine("If you are not sure where to start enter -h.");

            //command line processing loop
            Command command = RetrieveCommand(Console.ReadLine());
            while (command.BaseType != CommandType.Exit)
            {
                ProcessCommand(command);
                command = RetrieveCommand(Console.ReadLine());
            }
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            //variable set up
            settings   = new NetworkSettings();
            topologies = new Dictionary <string, NetworkTopology>();

            objectFactory = new Dictionary <string, IUserObjectFactory>();
            objectFactory.Add("standard", new StandLibFactory());

            loadTool   = new LoadTool(ref settings, ref topologies, ref objectFactory);
            updateTool = new UpdateTool(ref settings, ref topologies);
            saveTool   = new SaveTool(ref settings, ref topologies);

            //start up display information
            Console.WriteLine("ENN  Copyright (C) 2012  Tim Eck II");
            Console.WriteLine("This program comes with ABSOLUTELY NO WARRANTY.");
            Console.WriteLine("This is free software, and you are welcome to redistribute it");
            Console.WriteLine(
                "under certain conditions; which can be found in the COPYING.LESSER.txt file");
            Console.WriteLine("that was provided with the program.\n");
            Console.WriteLine(
                "The ENN runtime has been succesfully started. You may now enter commands");
            Console.WriteLine("If you are not sure where to start enter -h.");

            //command line processing loop
            Command command = RetrieveCommand(Console.ReadLine());

            while (command.BaseType != CommandType.Exit)
            {
                ProcessCommand(command);
                command = RetrieveCommand(Console.ReadLine());
            }
        }