Commit e92b3f6
Improve equals contract in Nucleus (#316)
* Update equals and hashCode in ActorId and corresponding tests
* Update equals and hashCode in DataManagerId and corresponding tests
* Update equals and hashCode in ReportId and corresponding tests
* Update equals and hashCode in SimplePluginId and corresponding tests
* Update equals and hashCode in SimulationState and corresponding tests
* Update equals and hashCode in AT_ActorContext
* Update equals and hashCode in TestScenarioReport and corresponding tests
* Update equals and hashCode in RunContinuityPluginData and corresponding tests
* Update equals and hashCode in ExperimentParameterData and corresponding tests
* Update equals and hashCode in FunctionalDimensionData and corresponding tests
* Update equals and hashCode in IdentifiableFunction and corresponding tests
* Update equals and hashCode in TestReportPlan and corresponding tests
* Update equals and hashCode in TestDataManagerPlan and corresponding tests
* Update equals and hashCode in TestActorPlan and corresponding tests
* Update equals and hashCode for TestDimensionData in AT_DimensionData
* Update equals and hashCode in Plugin and corresponding tests
* Update equals and hashCode in TestPluginData and corresponding tests
* Minor updates and typo corrections
---------
Co-authored-by: shawnhatch <hatchs@leidos.com>1 parent 97a1e29 commit e92b3f6
32 files changed
Lines changed: 1242 additions & 984 deletions
File tree
- simulation/src
- main/java/gov/hhs/aspr/ms/gcm/simulation/nucleus
- testsupport
- runcontinuityplugin
- testplugin
- test/java/gov/hhs/aspr/ms/gcm/simulation/nucleus
- testsupport
- runcontinuityplugin
- testplugin
Lines changed: 15 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
38 | | - | |
39 | | - | |
| 40 | + | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
| 44 | + | |
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
49 | | - | |
50 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
| 56 | + | |
56 | 57 | | |
57 | | - | |
| 58 | + | |
| 59 | + | |
58 | 60 | | |
| 61 | + | |
59 | 62 | | |
60 | | - | |
61 | | - | |
62 | | - | |
| 63 | + | |
63 | 64 | | |
64 | | - | |
65 | 65 | | |
Lines changed: 12 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
25 | | - | |
26 | | - | |
| 27 | + | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
| 31 | + | |
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
36 | | - | |
37 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
| 46 | + | |
48 | 47 | | |
49 | 48 | | |
50 | | - | |
| 49 | + | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
Lines changed: 25 additions & 41 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
173 | 176 | | |
174 | 177 | | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
| 178 | + | |
| 179 | + | |
185 | 180 | | |
186 | 181 | | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
187 | 186 | | |
188 | 187 | | |
189 | 188 | | |
190 | 189 | | |
191 | 190 | | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
| 191 | + | |
217 | 192 | | |
218 | 193 | | |
219 | | - | |
| 194 | + | |
220 | 195 | | |
221 | 196 | | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
226 | 204 | | |
227 | | - | |
228 | 205 | | |
229 | 206 | | |
230 | 207 | | |
| |||
316 | 293 | | |
317 | 294 | | |
318 | 295 | | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
319 | 299 | | |
320 | 300 | | |
321 | 301 | | |
322 | 302 | | |
323 | 303 | | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
324 | 308 | | |
325 | 309 | | |
326 | 310 | | |
| |||
Lines changed: 26 additions & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
166 | 167 | | |
167 | 168 | | |
168 | 169 | | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
169 | 173 | | |
170 | 174 | | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
| 175 | + | |
177 | 176 | | |
178 | 177 | | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
179 | 182 | | |
180 | 183 | | |
181 | 184 | | |
| |||
188 | 191 | | |
189 | 192 | | |
190 | 193 | | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
| 194 | + | |
| 195 | + | |
207 | 196 | | |
208 | 197 | | |
209 | 198 | | |
| |||
271 | 260 | | |
272 | 261 | | |
273 | 262 | | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
274 | 266 | | |
275 | 267 | | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
| 268 | + | |
280 | 269 | | |
281 | 270 | | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
282 | 275 | | |
283 | 276 | | |
284 | | - | |
| 277 | + | |
285 | 278 | | |
286 | | - | |
| 279 | + | |
| 280 | + | |
287 | 281 | | |
288 | | - | |
| 282 | + | |
| 283 | + | |
289 | 284 | | |
| 285 | + | |
290 | 286 | | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
| 287 | + | |
297 | 288 | | |
298 | 289 | | |
299 | 290 | | |
| |||
Lines changed: 13 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
29 | 33 | | |
30 | 34 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
37 | 42 | | |
38 | 43 | | |
39 | 44 | | |
40 | 45 | | |
41 | 46 | | |
42 | | - | |
| 47 | + | |
43 | 48 | | |
44 | 49 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
| 54 | + | |
54 | 55 | | |
55 | | - | |
56 | 56 | | |
0 commit comments