Repository navigation
Expand file tree
/
Copy pathCase.java
More file actions
179 lines (174 loc) · 5 KB
/
Copy pathCase.java
File metadata and controls
179 lines (174 loc) · 5 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
import java.util.ArrayList;
import java.util.UUID;
/**
* Case database information and details
*/
public class Case {
private UUID caseID;
private boolean closedCase;
private String caseName;
private boolean updateCase;
private boolean federalCase;
private boolean misdimeanor;
private Category category;
private ArrayList<User> userWorking;
private ArrayList<Suspect> suspects;
private ArrayList<Witness> witness;
private ArrayList<Evidence> evidenceList;
/**
* Case details
* @param caseID id of the case
* @param closedCase checks if case is closed
* @param caseName name of the case
* @param updateCase updates the case
* @param federalCase checks if case is federal case
* @param misdimeanor checks if case is misdomeanor
* @param category category of the case
* @param userWorking case user is working
* @param suspects suspects involved in case
* @param witness witnesses in case
* @param evidenceList case evidence
*/
public Case(UUID caseID, boolean closedCase, String caseName, boolean updateCase, boolean federalCase, boolean misdimeanor,
Category category, ArrayList<User> userWorking, ArrayList<Suspect> suspects, ArrayList<Witness> witness, ArrayList<Evidence> evidenceList) {
this.caseID = caseID;
this.closedCase = closedCase;
this.caseName = caseName;
this.updateCase = updateCase;
this.federalCase = federalCase;
this.misdimeanor = misdimeanor;
this.category = category;
this.userWorking = userWorking;
this.suspects = suspects;
this.witness = witness;
this.evidenceList = evidenceList;
}
/**
* checks if case is active
* @param closedCase if not closed then case is still active
* @return returns if case is active or not
*/
public boolean activeCase(boolean closedCase) {
if(!closedCase) {
closedCase = true;
}
else{
closedCase = false;
}
return closedCase;
}
/**
* Updates the case
* @param updateCase if updatecase is true then the case is updated
* @return return the updated case
*/
public boolean updateCase(boolean updateCase) {
if(updateCase){
updateCase = true;
}
else{
updateCase = false;
}
return updateCase;
}
/**
* checks federal stateus of case
* @param federalCase if federal case then return ture
* @return return the federal case
*/
public boolean updateFederalStatus(boolean federalCase) {
if(federalCase){
federalCase = true;
}
else{
federalCase = false;
}
return federalCase;
}
/**
* gets the case id
* @return return the id
*/
public UUID getCaseID() {
return caseID;
}
/**
* get the name of case
* @return retunr name of case
*/
public String getCaseName() {
return caseName;
}
/**
* updates the case
* @return return the case updated
*/
public boolean getUpdateCase() {
return updateCase;
}
/**
* gets the closed case
* @return retunr the cloased case
*/
public boolean getClosedCase() {
return closedCase;
}
/**
* gets the federal case
* @return retunr the federal case
*/
public boolean getFederalCase() {
return federalCase;
}
/**
* checks if case is misdomeanor
* @return return if case of misdomeanor or not
*/
public boolean getMisdimeanor() {
return misdimeanor;
}
/**
* get the category of the case
* @return returns the category of case
*/
public Category getCategory() {
return category;
}
/**
* get the list of working users on case
* @return return list of working users
*/
public ArrayList<User> getUserWorking() {
return userWorking;
}
/**
* lists the suspects of the case
* @return return list of suspects
*/
public ArrayList<Suspect> getSuspects() {
return suspects;
}
/**
* lists of witnesses of case
* @return return the witnesses
*/
public ArrayList<Witness> getWitnesses() {
return witness;
}
/**
* collects the list of evidence regarding case
* @return return list of evidence
*/
public ArrayList<Evidence> getEvidenceList() {
return evidenceList;
}
/**
* tostring that outputs information
* @return returns all the information regarding the case
*/
public String toString() {
return "Case ID: "+caseID+"\nActive Case: "+closedCase+"\nCase Name: "+caseName+"\nUpdate Case: "+updateCase+"\nUpdate Federal Case: "+federalCase+
"\nMisdimeanor: "+misdimeanor+"\nCategory: "+category+"\nUser Working: "+userWorking+"\nSuspects: "+suspects+"\nWintesses: "+witness+
"\nEvidence List: "+evidenceList+"\n";
}
}