summaryrefslogtreecommitdiff
path: root/src/com/p4square/grow/model/TextQuestion.java
blob: 88c2a34d9cf500e3271c08ad3d39dd2f25931137 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
 * Copyright 2013 Jesse Morgan
 */

package com.p4square.grow.model;

/**
 * Text Question.
 *
 * @author Jesse Morgan <jesse@jesterpm.net>
 */
public class TextQuestion extends Question {
    private static final ScoringEngine ENGINE = new SimpleScoringEngine();

    @Override
    public boolean scoreAnswer(Score score, RecordedAnswer answer) {
        return ENGINE.scoreAnswer(score, this, answer);
    }

    @Override
    public QuestionType getType() {
        return QuestionType.TEXT;
    }
}