Пример #1
0
 public static void populateResults(List <ProcessOutput> res,
                                    ProcessArgumentList gameParams,
                                    ParallelOptions parallelArgValues,
                                    ParallelOptions parallelSimRuns,
                                    AGameGraph graph)
 {
     Parallel.For(0, gameParams.ValuesCount, parallelArgValues, valIdx =>
     {
         Dictionary <string, string> processArgs = gameParams[valIdx];
         res[valIdx] =
             processParams(parallelSimRuns, processArgs, graph);
     });
 }
Пример #2
0
        private void init(Dictionary <string, string> argFileData)
        {
            ProcessArgumentList additionalValues = null;
            string filePath = AppArgumentKeys.PARAM_FILE_PATH.tryRead(argFileData);

            if (filePath != "")
            {
                additionalValues = new ProcessArgumentList(filePath);
            }

            processParams = new ProcessArgumentList(ArgEntry.fromDictionary(argFileData));

            if (additionalValues != null)
            {
                processParams.add(additionalValues, false);
            }
        }