IPostProcessor biasScaleFactorPP; IPostProcessor AllanVariancePP; private void LaunchPostProcessor(double[,] twoDArray, string postProcessorName) { if (postProcessorName == BiasScaleFactorString && !closing) { if (biasScaleFactorPP == null) { biasScaleFactorPP = PostProcFactory.CreatePostProcessor<BiasScaleFactor>(); biasScaleFactorPP.Initialize(serialNumbers, dataId, populatedLocations); } bsfDelegate = new DelegateToMethod(biasScaleFactorPP.CrunchNumbers); bsfDelegate(twoDArray, PostProcParams); } else if (postProcessorName == AllanVarianceString && !closing) { if (AllanVariancePP == null) { AllanVariancePP = PostProcFactory.CreatePostProcessor<AllanVariance>(); AllanVariancePP.Initialize(serialNumbers, dataId, populatedLocations); } avDelegate = new DelegateToMethod(AllanVariancePP.CrunchNumbers); avDelegate(twoDArray, PostProcParams); } else if (!closing) { throw new Exception(string.Concat(postProcessorName, " is not recognized as a valid post processor")); } }
System.Reflection.ConstructorInfo
Type
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)