コード例 #1
0
 public void ResetArgumentProvider(string satellite, string sensor, params string[] args)
 {
     if (_argumentProvider == null)
     {
         _argumentProvider = GetDefaultArgProvider(satellite, sensor, args);
     }
     else
     {
         Dictionary <string, object> algShare = ReadAlgShareArg();
         _argumentProvider.Reset();
         IArgumentProvider prd = GetDefaultArgProvider(satellite, sensor, args);
         if (prd != null)
         {
             string[] argNames = prd.ArgNames;
             if (argNames != null)
             {
                 foreach (string name in argNames)
                 {
                     _argumentProvider.SetArg(name, prd.GetArg(name));
                 }
             }
         }
         CopyAlgShareArg(algShare);
     }
 }
コード例 #2
0
 public void ResetArgumentProvider(string satellite, string sensor, params string[] args)
 {
     if (_argumentProvider == null)
     {
         _argumentProvider = GetDefaultArgProvider(satellite, sensor, args);
     }
     else
     {
         _argumentProvider.Reset();
         IArgumentProvider prd = GetDefaultArgProvider(satellite, sensor, args);
         if (prd != null)
         {
             string[] argNames = prd.ArgNames;
             if (argNames != null)
             {
                 foreach (string name in argNames)
                 {
                     _argumentProvider.SetArg(name, prd.GetArg(name));
                 }
             }
         }
     }
 }
コード例 #3
0
 public static void FillDefaultArguments(IArgumentProvider argumentProvider, AlgorithmDef alg, string satellite, string sensor)
 {
     argumentProvider.Reset();
     SetBands(argumentProvider, alg.Bands, BandRefTableHelper.GetBandRefTable(satellite, sensor));
     SetArguments(argumentProvider, alg.Arguments);
 }