-
Notifications
You must be signed in to change notification settings - Fork 2
/
data_template.json
44 lines (41 loc) · 1.85 KB
/
data_template.json
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
// each value is described by "<JSON TYPE>:<DESCRIPTION>"
{
// array of strings which denote to classes
"courseNames":["string: indices correspond to 'courses' arrays"],
// array of tutor objects
"tutors":
[
{
"tid":"int:tutor uid",
"name":"string:tutor first and last name",
// 0=disprefer (often cannot make), 1=ambivalent, 2=prefer
"timeSlots":["int: [0,2] describing preference level of each slot"],
// 0 = disprefer (cannot make)
// -1 = weakly prefers other office, -2 = strongly prefers other office
// 1 = weakly prefers this office, 2 = strongly prefers this office
"officePrefs":["int: [-2,2] describing preference level of each slot"],
// -1=have not taken, 0=currently taking, 1=taken, 2=prefer
"courses":["int: [-1,2] describing preference level per course"],
// -1 = does not want adjacent, 0 = indifferent, 1 = prefers adjacent
"adjacentPref":"int in [-1,1] describing preference level",
"numAssignments":"int in [1,2]; number of tutoring slots to assign this tutor"
}
],
// array of slot objects
"slots":
[
{
// 0 - 29 correspond to Cory office, Monday 11am to Friday 4pm
// 30 - 59 correspond to Soda office slots
"sid":"int:corresponds exactly to index in the tutor 'slots' array",
"name":"string:name describing the slot; useless",
"adjacentSlotIDs":["int: sids of slots adjacent to this one"],
// currently: 1 if CS/MATH course in Soda or EE/PHYS course in Cory
// otherwise, 0
"courses":["int: [0,1] describing preference level per course"],
"day":"string:day of the week",
"hour":"int: [11, 16] for hours 11am to 4pm",
"office":"string:SODA or CORY"
}
]
}