-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTask.java
More file actions
120 lines (93 loc) · 3.11 KB
/
Task.java
File metadata and controls
120 lines (93 loc) · 3.11 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
package Git.MiniProject;
import java.time.LocalDate;
import java.util.ArrayList;
public class Task {
private String name;
private String id;
private int typeOfTask;
private boolean statusOfTask;
private LocalDate plannedStart;
private LocalDate plannedFinish;
private long plannedDuration;
private LocalDate actualStart;
private LocalDate actualFinish;
private long actualDuration;
private ArrayList<ManpowerAllocation> plannedManpower;
private ArrayList<TeamMemberAllocation> actualTeamMembers;
private ArrayList<Connectivity> connectivity;
public Task (String name, String id, int typeOfTask){
this.name = name;
this.id = id;
this.typeOfTask = typeOfTask;
this.plannedManpower = new ArrayList<>();
this.actualTeamMembers = new ArrayList<>();
this.connectivity = new ArrayList<>();
setStatusOfTask(false);
}
public String getName() {
return name;
}
public String getId() {
return id;
}
public int getTypeOfTask() { return typeOfTask; }
public boolean getStatusOfTask() {
return statusOfTask;
}
public ArrayList<ManpowerAllocation> getPlannedManpower() { return plannedManpower; }
public ArrayList<TeamMemberAllocation> getActualTeamMembers() { return actualTeamMembers; }
public long getPlannedDuration() {
return plannedDuration;
}
public long getActualDuration() {
return actualDuration;
}
public ArrayList<Connectivity> getConnectivity() {
return connectivity;
}
public LocalDate getPlannedStart() {
return this.plannedStart;
}
public LocalDate getPlannedFinish() {
return this.plannedFinish;
}
public LocalDate getActualStart() {
return this.actualStart;
}
public LocalDate getActualFinish() {
return this.actualFinish;
}
public void setName(String name) {
this.name = name;
}
public void setId(String id) {
this.id = id;
}
public void setTypeOfTask(int typeOfTask) {
this.typeOfTask = typeOfTask;
}
public void setStatusOfTask(boolean statusOfTask) {
this.statusOfTask = statusOfTask;
}
public void setPlannedDuration(long plannedDuration) {
this.plannedDuration = plannedDuration;
}
public void setActualDuration(long actualDuration) {
this.actualDuration = actualDuration;
}
public void setPlannedStart(LocalDate plannedStart) { this.plannedStart = plannedStart; }
public void setPlannedFinish(LocalDate plannedFinish) {
this.plannedFinish = plannedFinish;
}
public void setActualStart(LocalDate actualStart) {
this.actualStart = actualStart;
}
public void setActualFinish(LocalDate actualFinish) {
this.actualFinish = actualFinish;
}
@Override
public String toString() {
return "Task name : " + this.getName() + ", ID (" + this.getId() + "), Duration: " + this.getPlannedDuration() + " Days, Start Date: "
+ this.getPlannedStart() + ", Finish Date: " + this.getPlannedFinish();
}
}