Esempio n. 1
0
        public static void BeginProgram()
        {
            var timer = new Timer("Starting DaySim Controller...");

            Console.WriteLine("Run initial DaySim steps locally");

            var settingsFactory = new SettingsFactory(Global.Configuration);

            Global.Settings = settingsFactory.Create();

            ParallelUtility.Init(Global.Configuration);

            Engine.InitializeDaySim();
            Engine.BeginInitialize();
            Engine.BeginRunRawConversion();
            Engine.BeginImportData();
            Engine.BeginBuildIndexes();

            BeginRunRemoteProcesses();
            BeginMerge();
            BeginLoadData();

            Engine.BeginUpdateShadowPricing();
            if (Global.Configuration.RemoteCopySPFilesToRemoteMachines)
            {
                BeginCopyFilesToRemoteMachines();
            }

            timer.Stop("Total running time");
        }
Esempio n. 2
0
        private static void BeginRunRemoteProcesses()
        {
            var timer = new Timer("Running remote batches of households using DaySim's s=, e=, i= arguments...");

            RunRemoteProcesses();

            timer.Stop();
        }
Esempio n. 3
0
        private static void BeginCopyFilesToRemoteMachines()
        {
            var timer = new Timer("Copying files to remote machines...");

            CopyFilesToRemoteMachines();

            timer.Stop();
        }
Esempio n. 4
0
        private static void BeginLoadData()
        {
            var timer = new Timer("Loading data...");

            LoadData();

            timer.Stop();
        }
Esempio n. 5
0
        private static void BeginMerge()
        {
            var timer = new Timer("Merging each remote output file into a master/local output file...");

            Merge();

            timer.Stop();
        }