forked from ls1intum/Artemis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathartemis.jh
261 lines (213 loc) · 5.79 KB
/
artemis.jh
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
entity Statistic (statistic) { //abstract
released Boolean,
participantsRated Integer,
participantsUnrated Integer
}
entity QuizPointStatistic (quizPointStatistic){ //extends Statistic
}
entity QuestionStatistic (questionStatistic){ //extends Statistic, abstract
ratedCorrectCounter Integer,
unRatedCorrectCounter Integer,
}
entity MultipleChoiceQuestionStatistic (multipleChoiceQuestionStatistic){ //extends QuestionStatistic
}
entity DragAndDropQuestionStatistic (dragAndDropQuestionStatistic){ //extends QuestionStatistic
}
entity StatisticCounter(statisticCounter){ //abstract
ratedCounter Integer,
UnRatedCounter Integer
}
entity PointCounter(pointCounter){ //extends PointCounter
points Double
}
entity AnswerCounter(answerCounter){ //extends StatisticCounter
}
entity DropLocationCounter(dropLocationCounter){ //extends StatisticCounter
}
entity Course (course) {
title String,
studentGroupName String,
teachingAssistantGroupName String,
instructorGroupName String,
startDate ZonedDateTime,
endDate ZonedDateTime,
onlineCourse Boolean
}
entity Exercise (exercise) { //abstract
title String,
releaseDate ZonedDateTime,
dueDate ZonedDateTime,
maxScore Double
}
entity ProgrammingExercise { //extends Exercise
baseRepositoryUrl String,
baseBuildPlanId String,
publishBuildPlanUrl Boolean,
allowOnlineEditor Boolean
}
entity ModelingExercise { //extends Exercise
}
entity QuizExercise { //extends Exercise
description String,
explanation String,
randomizeQuestionOrder Boolean,
allowedNumberOfAttempts Integer,
isVisibleBeforeStart Boolean,
isOpenForPractice Boolean,
isPlannedToStart Boolean,
duration Integer
}
entity LtiOutcomeUrl (lti_outcome_url) {
url String,
sourcedId String
}
entity SubmittedAnswer { //abstract
scoreInPoints Double
}
entity Question { //abstract
title String,
text String,
hint String,
explanation String,
score Integer,
scoringType ScoringType,
randomizeOrder Boolean,
invalid Boolean
}
enum ScoringType {
ALL_OR_NOTHING,
PROPORTIONAL_CORRECT_OPTIONS,
TRUE_FALSE_NEUTRAL
}
entity MultipleChoiceQuestion { //extends Question
}
entity AnswerOption {
text String,
hint String,
explanation String,
isCorrect Boolean,
invalid Boolean
}
entity MultipleChoiceSubmittedAnswer { //extends SubmittedAnswer
}
entity DragAndDropQuestion { //extends Question
backgroundFilePath String
}
entity DropLocation {
posX Integer
posY Integer
width Integer
height Integer
invalid Boolean
}
entity DragItem {
pictureFilePath String
text String
invalid Boolean
}
entity Participation (participation) {
repositoryUrl String,
buildPlanId String,
initializationState ParticipationState,
initializationDate ZonedDateTime
}
entity LtiUserId (lti_user_id) {
ltiUserId String
}
entity Result (result) {
resultString String,
completionDate ZonedDateTime,
successful Boolean,
buildArtifact Boolean,
score Long,
rated Boolean,
hasFeedback Boolean,
assessmentType AssessmentType
}
enum AssessmentType {
AUTOMATIC,
MANUAL,
SEMIAUTOMATIC
}
entity Feedback(feedback) {
text String,
detailText String,
positive Boolean,
type FeedbackType
}
enum FeedbackType {
AUTOMATIC,
MANUAL
}
enum ParticipationState {
UNINITIALIZED,
REPO_COPIED,
REPO_CONFIGURED,
BUILD_PLAN_COPIED,
BUILD_PLAN_CONFIGURED,
INITIALIZED
}
enum SubmissionType {
MANUAL,
TIMEOUT
}
entity Submission { //abstract
submitted Boolean
type SubmissionType
}
entity ModelingSubmission { //extends Submission
model String
}
entity QuizSubmission { //extends Submission
scoreInPoints Double
}
entity DragAndDropSubmittedAnswer { //extends SubmittedAnswer
}
entity DragAndDropMapping {
dragItemIndex Integer
dropLocationIndex Integer
invalid Boolean
}
entity ApollonDiagram {
title String
jsonRepresentation String
}
relationship OneToMany {
QuizPointStatistic{PointCounters} to PointCounter{quizPointStatistic},
MultipleChoiceQuestionStatistic{AnswerCounters} to AnswerCounter{MultipleChoiceQuestionStatistic},
DragAndDropQuestionStatistic{DropLocationCounters} to DropLocationCounter{DragAndDropQuestionStatistic},
Course{exercises} to Exercise{course(title)},
Exercise{participations} to Participation{exercise(title)},
Participation{results} to Result{participation},
Result{feedbacks} to Feedback{result},
QuizExercise{questions} to Question{exercise},
MultipleChoiceQuestion{answerOptions} to AnswerOption{question},
DragAndDropQuestion{dropLocations} to DropLocation{question},
DragAndDropQuestion{dragItems} to DragItem{question},
QuizSubmission{submittedAnswers} to SubmittedAnswer{submission},
DragAndDropSubmittedAnswer{mappings} to DragAndDropMapping{submittedAnswer},
DragAndDropQuestion{correctMappings} to DragAndDropMapping{question}
}
relationship OneToOne {
QuizExercise{quizPointStatistic} to QuizPointStatistic{quiz},
Question{questionStatistic} to QuestionStatistic{question},
AnswerCounter{answer} to AnswerOption,
DropLocationCounter{dropLocation} to DropLocation,
Result{submission} to Submission,
LtiUserId{user} to User,
Result{assessor} to User
}
relationship ManyToOne {
Participation{student(login)} to User,
LtiOutcomeUrl{user} to User,
LtiOutcomeUrl{exercise} to Exercise,
SubmittedAnswer{question} to Question
DragAndDropMapping{dragItem} to DragItem,
DragAndDropMapping{dropLocation} to DropLocation
}
relationship ManyToMany {
MultipleChoiceSubmittedAnswer{selectedOptions} to AnswerOption
}
paginate Exercise with infinite-scroll
service Course with serviceClass
service Participation with serviceClass