-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodel.ump
78 lines (66 loc) · 1.28 KB
/
model.ump
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
namespace ca.mcgill.ecse321.TAMAS.model;
class Tamas {
}
class Person
{
name;
username;
password;
}
class Evaluation
{
0..* -- 1 Instructor;
1 -- 1 Job;
}
class Session {
Weekday { Monday{} Tuesday{} Wednesday{} Thursday{} Friday{} }
Time startTime;
Time endTime;
int sectionNumber;
String location;
boolean isLabSession; // else TutorialSession
}
class Student
{
String studentId;
isA Person;
boolean isGrad;
1 jobCandidate -- 0..3 Job offeredJob;
}
class Course
{
String courseCode;
int courseCredit;
1 <@>- 0..* Session specificSession;
}
class Instructor
{
* -- * Course courseTaught;
isA Person;
}
class EceAdmin
{
1 -- * Course courseList;
isA Person;
}
class Job
{
const int MIN_HOURS = 45;
const int MAX_HOURS = 180;
int numberOfHours;
int salary;
boolean isTaJob; // else GraderJob
boolean isAssignedToStudent;
boolean isAllocatedToStudent; // When finalized
description;
deadline;
autounique jobId;
JobState { IsPosted{} AppliedTo{} AssignedStudentTo{} AssignmentFinalized{} }
* -- 1 Course course;
}
class JobApplication {
String experience;
preference { ta{} grader{} both{} }
0..3 -- 1 Student applicant;
0..* -- 1 Job appliedJob;
}