Esempio n. 1
0
 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));
 }
Esempio n. 2
0
 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();
 }