-
Notifications
You must be signed in to change notification settings - Fork 2
/
Job.py
58 lines (41 loc) · 1.36 KB
/
Job.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
49
50
51
52
53
54
55
56
57
58
class Job(object):
def __init__(self, jobCreator, jobName, numOfSeekers):
self.JobCreator = jobCreator
self.JobName = jobName
self.NumOfSeekers = numOfSeekers
self.FullJob = jobCreator+" "+" "+jobName+" "+" "+numOfSeekers
self.JobSeekerList = []
def __iter__(self):
yield self.JobCreator
yield self.JobName
yield self.NumOfSeekers
def addSeekerList(self, SeekerName):
self.JobSeekerList.append(SeekerName)
'''
Getter Functions
'''
def getJobCreator(self):
return self.JobCreator
def getJobName(self):
return self.JobName
def getNumOfSeekers(self):
return self.NumOfSeekers
def getFullJob(self):
return self.FullJob
def getJobSeekerList(self):
return self.JobSeekerList
def getJobSeekerListSize(self):
return len(self.JobSeekerList)
'''
Setter Functions
'''
def setJobCreator(self, JobCreator):
self.JobCreator = JobCreator
def setJobName(self, JobName):
self.JobName = JobName
def setNumOfSeekers(self, NumOfSeekers):
self.NumOfSeekers = NumOfSeekers
def setFullJob(self, FullJob):
self.FullJob = FullJob
def setJobSeekerList(self, JobSeekerList):
self.JobSeekerList = JobSeekerList