Example #1
0
        public RunningConfig AddScenario([NotNull] Scenario scenario)
        {
            RunningConfig rc = DeepClone();

            rc.LimitToScenarios.Add(scenario);
            return(rc);
        }
Example #2
0
        public RunningConfig SetYear(int year)
        {
            RunningConfig rc = DeepClone();

            rc.LimitToYears.Clear();
            rc.LimitToYears.Add(year);
            return(rc);
        }
Example #3
0
        public static RunningConfig Load([NotNull] string path)
        {
            Console.WriteLine("Reading setttings from " + path);
            string        s        = File.ReadAllText(path);
            RunningConfig settings = JsonConvert.DeserializeObject <RunningConfig>(s);

            return(settings);
        }
Example #4
0
        public static RunningConfig MakeDefaults()
        {
            var myOptions = new List <Options> {
                Options.ReadFromExcel
            };
            var stagesToExecute = new List <Stage> {
                Stage.ScenarioCreation, Stage.ScenarioVisualisation
            };
            string flaprofiledir = @"c:\work\Fla\CalcserverFake";

            if (Environment.MachineName == "JLCO-LAB48")
            {
                flaprofiledir = @"x:\ds";
            }

            DirectoryConfig dc = new DirectoryConfig("v:\\BurgdorfStatistics\\Processing",
                                                     @"U:\SimZukunft\RawDataForMerging",
                                                     "v:\\dropbox\\FlaSettings",
                                                     flaprofiledir,
                                                     @"V:\Dropbox\LPGReleases\releases9.0.0",
                                                     @"V:\Dropbox\BurgdorfStatistics\Sam",
                                                     @"v:\burgdorfstatistics\ResultArchive",
                                                     @"V:\BurgdorfStatistics\Processing\unittests",
                                                     @"c:\work\fla\HouseJobsLabsurface");
            List <Scenario> limitToScenarios = new List <Scenario> {
                Scenario.FromEnum(ScenarioEnum.Utopia)
            };
            RunningConfig cs = new RunningConfig(myOptions, stagesToExecute, true, -1, dc, null, limitToScenarios);

            if (Environment.MachineName == "JLCO-LAB48")
            {
                cs.MakeStageEntries = true;
            }

            return(cs);
        }