-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProject.java
More file actions
76 lines (56 loc) · 1.57 KB
/
Project.java
File metadata and controls
76 lines (56 loc) · 1.57 KB
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
public class Project {
private String name;
private String description;
private String startDate;
private String endDate;
private ITask[] tasks;
private TeamMember[] members;
private int numMembers = 0;
private int numTasks = 0;
public Project(String name, String description, String startDate, String endDate) {
this.name = name;
this.description = description;
this.startDate = startDate;
this.endDate = endDate;
this.tasks = (ITask[]) new Object[11];
this.members = (TeamMember[]) new Object[11];
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
return this.description;
}
public void setDescription(String description) {
this.description = description;
}
public String startDate() {
return this.startDate;
}
public void setStartDate(String str) {
this.startDate = str;
}
public String getEndDate() {
return this.endDate;
}
public void setEndDate(String str) {
this.endDate = str;
}
public void addMember(TeamMember m) {
this.members[numMembers] = m;
numMembers++;
}
public TeamMember removMember(TeamMember m) {
return this.members[--numMembers];
}
public void addTask(ITask t) {
this.tasks[numTasks] = t;
numTasks++;
}
public ITask removeTask(ITask t) {
return this.tasks[--numTasks];
}
}