-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProject.java
More file actions
81 lines (60 loc) · 2.08 KB
/
Project.java
File metadata and controls
81 lines (60 loc) · 2.08 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
77
78
79
80
81
package Git.MiniProject;
import java.time.LocalDate;
import java.util.ArrayList;
public class Project {
private String name;
private String projectID;
private LocalDate startDate;
private LocalDate finishDate;
private long duration;
private double budget;
private ArrayList<Risk> risks;
private ArrayList<Milestone> milestones;
private ArrayList<Task> tasks;
private ArrayList<TeamMember> teamMembers;
public Project (String name, String projectID, LocalDate startDate){
this.name = name;
this.projectID = projectID;
this.startDate = startDate;
this.milestones = new ArrayList<>();
this.tasks = new ArrayList<>();
this.teamMembers = new ArrayList<>();
this.risks = new ArrayList<>();
}
public String getName() {
return name;
}
public String getProjectID() {
return projectID;
}
public long getDuration() {
return duration;
}
public LocalDate getFinishDate() { return finishDate; }
public ArrayList<Task> getTasks() {
return tasks;
}
public LocalDate getStartDate() { return startDate; }
public ArrayList<TeamMember> getTeamMembers() { return teamMembers; }
public ArrayList<Risk> getRisks() { return risks; }
public ArrayList<Milestone> getMilestones() { return milestones; }
public double getBudget() { return budget; }
public void setName(String name) {
this.name = name;
}
public void setProjectID(String projectID) {
this.projectID = projectID;
}
public void setDuration(long duration) {
this.duration = duration;
}
public void setStartDate(LocalDate startDate) { this.startDate = startDate; }
public void setFinishDate(LocalDate finishDate) { this.finishDate = finishDate; }
public void setTasks(ArrayList<Task> tasks) {
this.tasks = tasks;
}
public void setBudget(double budget) { this.budget = budget; }
public String toString(){
return "ID: " + getProjectID() + ", Name: " + getName() + ", Budget: " + getBudget();
}
}