public P300DynamicSpellerStageProvider(SpellerController spellerController, SpellerExperiment.Configuration.TestConfig testConfig) : base(testConfig, false, new PipelinedStageProvider((int)(testConfig.SubTrialCount * 2), TimeSpan.FromMilliseconds(5))) { spellerController.Calibrated += (sender, e) => CalibrationCompleted(); spellerController.Stopping += (sender, e) => Provider.Break(); spellerController.CreatingTrial += (sender, e) => Provider.Offer(P300SpellerStageProviderUtils.GenerateRepeatingStages(testConfig)); }
public P300StaticSpellerStageProvider(SpellerController spellerController, SpellerExperiment.Configuration.TestConfig testConfig) : base(testConfig, false, RepeatingStageProvider.Static.Unlimited(P300SpellerStageProviderUtils.GenerateRepeatingStages(testConfig))) { spellerController.Calibrated += (sender, e) => CalibrationCompleted(); spellerController.Stopping += (sender, e) => ((RepeatingStageProvider)this[1]).Break(); }