-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspecialization.js
52 lines (52 loc) · 1.46 KB
/
specialization.js
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
var App;
(function (App) {
/**
* Holds a group of courses.
* @class
*/
var courseGroup = (function () {
function courseGroup() {
}
return courseGroup;
})();
App.courseGroup = courseGroup;
/**
* Holds groups of courses. Serves as a master group for core and elective courses that can hold additional sub-groups
* @class
*/
var masterGroup = (function () {
function masterGroup() {
}
Object.defineProperty(masterGroup.prototype, "numCourses", {
get: function () {
var num = 0;
this.groups.forEach(function (item) {
num += item.courseList.length;
});
return num;
},
enumerable: true,
configurable: true
});
return masterGroup;
})();
App.masterGroup = masterGroup;
/**
* Class that represents a single specialization
* @class
*/
var Specialization = (function () {
function Specialization() {
}
Object.defineProperty(Specialization.prototype, "numCourses", {
get: function () {
return this.core.numCourses + this.electives.numCourses;
},
enumerable: true,
configurable: true
});
return Specialization;
})();
App.Specialization = Specialization;
})(App || (App = {}));
//# sourceMappingURL=specialization.js.map