-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcourseNode.py
48 lines (36 loc) · 1.08 KB
/
courseNode.py
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
class courseNode(object):
def __init__(self,courseName):
self.courseName=courseName
self.x = 0
self.y = 0
self.r = 30
self.prereqsFor = list()
self.prereqsNeeded = list()
self.superScore=0
self.angle=0
self.master_descrip = dict()
def setSuperScore(self,superScore):
self.superScore=superScore
def setAngle(self,angle):
self.angle=angle
def setPosition(self,x,y):
self.x = x
self.y = y
def setMasterDescrip(self,descrip):
self.master_descrip = descrip
def getMasterDescrip(self):
return self.master_descrip
def addPrereqsFor(self,L):
self.prereqsFor.extend(L)
def addPrereqsNeeded(self,L):
self.prereqsNeeded.extend(L)
def getPrereqsFor(self):
return self.prereqsFor
def getPrereqsNeeded(self):
return self.prereqsNeeded
def getSuperScore(self):
return self.superScore
def getCourseName(self):
return self.courseName
def getPosition(self):
return (self.x,self.y)