Search in sources :

Example 1 with SchedulingAlgorithmParameters

use of org.liberty.android.fantastischmemo.entity.SchedulingAlgorithmParameters in project AnyMemo by helloworld1.

the class DefaultSchedulerTest method setUp.

@Override
public void setUp() throws Exception {
    super.setUp();
    defaultScheduler = new DefaultScheduler(new SchedulingAlgorithmParameters(getContext()));
    newCardLearningData = new LearningData();
    failedCardLearningData = new LearningData();
    failedCardLearningData.setAcqReps(1);
    failedCardLearningData.setNextLearnDate(new Date(new Date().getTime() - 1000000));
    failedCardLearningData.setGrade(0);
    learnedCardLearningData = new LearningData();
    learnedCardLearningData.setAcqReps(1);
    learnedCardLearningData.setNextLearnDate(new Date(new Date().getTime() + 1000000));
    learnedCardLearningData.setGrade(5);
    forReviewCardLearningData = new LearningData();
    forReviewCardLearningData.setAcqReps(2);
    forReviewCardLearningData.setNextLearnDate(new Date(new Date().getTime() - 1000000));
    forReviewCardLearningData.setGrade(5);
}
Also used : SchedulingAlgorithmParameters(org.liberty.android.fantastischmemo.entity.SchedulingAlgorithmParameters) LearningData(org.liberty.android.fantastischmemo.entity.LearningData) DefaultScheduler(org.liberty.android.fantastischmemo.scheduler.DefaultScheduler) Date(java.util.Date)

Aggregations

Date (java.util.Date)1 LearningData (org.liberty.android.fantastischmemo.entity.LearningData)1 SchedulingAlgorithmParameters (org.liberty.android.fantastischmemo.entity.SchedulingAlgorithmParameters)1 DefaultScheduler (org.liberty.android.fantastischmemo.scheduler.DefaultScheduler)1