コード例 #1
0
ファイル: CardMaintainer.cs プロジェクト: kryban/FlashLearnW
        public void ModifyNextIteration(ICard card, int answerQuality)
        {
            Iterator = new Iterator();
            EasinessFactorMaintainer = new EasinessFactorMaintainer(answerQuality, card.EasinessFactor);
            useMinimumEasinessFactor = Convert.ToBoolean(AppSettingsWrapper.GetSetting(AppSettingsKeyNames.UseMinimumEasinessFactor));

            DateTime newShowDate = Iterator.NextIteration(card.EasinessFactor, card.ShowDate, card.NumberOfIterations);

            card.ShowDate = newShowDate;
            card.EasinessFactor = new EasinessFactorMaintainer(answerQuality, card.EasinessFactor).CalculateNewEF(useMinimumEasinessFactor);
            card.NumberOfIterations++;
        }