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); } }
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)); } } } } }
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); }