-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathMoodleQuestionDomainModel.txt
95 lines (76 loc) · 1.6 KB
/
MoodleQuestionDomainModel.txt
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
90
91
92
93
94
95
@startuml
skinparam style strictuml
hide methods
hide empty members
title Domain (Data) Model for Moodle Quiz questions (XML)
class "Quiz" as Q {
}
class "Category" as C {
name : Text
}
class "Non-Hierarchical\nCategory" as NHC {
tagName : Text
}
note left: a.k.a. "Tag"
abstract class "Question" as AQ {
name : Text
questionText : RichText
generalFeedback : RichText
}
class "MultipleChoiceQuestion" as MCQ extends AQ {
isShuffled : boolean
onlyOneAnswerAllowed : boolean
}
class "MultipleChoiceAnswer" as MCA {
isCorrect : boolean
answer : RichText
feedback : Text
}
MCQ "1" -- "*" MCA : Has >
class "TrueFalseQuestion" as TFQ extends AQ {
}
class "TrueFalseAnswer" as TFA {
isTrue : boolean
percentWeight : integer
feedback : Text
}
note bottom
percentWeight indicates
correctness e.g.(100=correct,
0=incorrect)
end note
TFQ "1" -- "2" TFA : Has >
class "MatchingQuestion" as MQ extends AQ {
isShuffled : boolean
}
class "MatchedPair" as SQ {
question : Text
answer : Text
}
MQ "1" -- "*" SQ : Has >
class "ShortAnswerQuestion" as SAQ extends AQ {
}
class "ShortAnswer" as SA {
text : Text
percentWeight : integer
feedback : Text
}
SAQ "1" -- "*" SA : Has >
class "Numerical" as NQ extends AQ {
}
class "NumericalAnswer" as NA {
percentWeight : integer
numericalAnswer : Text
feedback : Text
}
NQ "1" -- "*" NA : Has >
class "Essay" as EQ extends AQ {
}
Q "1" -- "*" AQ : Asks >
AQ "*" - "1" C : Belongs-to >
AQ "*" -left- "*" NHC : Belongs-to >
legend center
To synchronize with [[http://docs.moodle.org/en/Moodle_XML_format]]
TODO: Add missing-word questions to model
endlegend
@enduml