blob: 71acc148bcec6743928c443ee77061e4fa5d1677 (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
/*
* Copyright 2013 Jesse Morgan
*/
package com.p4square.grow.model;
/**
* Circle Question.
*
* @author Jesse Morgan <jesse@jesterpm.net>
*/
public class CircleQuestion extends Question {
private static final ScoringEngine ENGINE = new QuadScoringEngine();
private String mTopLeft;
private String mTopRight;
private String mBottomLeft;
private String mBottomRight;
/**
* @return the Top Left label.
*/
public String getTopLeft() {
return mTopLeft;
}
/**
* Set the Top Left label.
* @param s The new top left label.
*/
public void setTopLeft(String s) {
mTopLeft = s;
}
/**
* @return the Top Right label.
*/
public String getTopRight() {
return mTopRight;
}
/**
* Set the Top Right label.
* @param s The new top left label.
*/
public void setTopRight(String s) {
mTopRight = s;
}
/**
* @return the Bottom Left label.
*/
public String getBottomLeft() {
return mBottomLeft;
}
/**
* Set the Bottom Left label.
* @param s The new top left label.
*/
public void setBottomLeft(String s) {
mBottomLeft = s;
}
/**
* @return the Bottom Right label.
*/
public String getBottomRight() {
return mBottomRight;
}
/**
* Set the Bottom Right label.
* @param s The new top left label.
*/
public void setBottomRight(String s) {
mBottomRight = s;
}
@Override
public boolean scoreAnswer(Score score, RecordedAnswer answer) {
return ENGINE.scoreAnswer(score, this, answer);
}
@Override
public QuestionType getType() {
return QuestionType.CIRCLE;
}
}
|