1 package fr.ifremer.tutti.service.export.toconfirmreport;
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 import fr.ifremer.tutti.persistence.entities.data.Cruise;
28 import fr.ifremer.tutti.type.WeightUnit;
29
30 import java.util.LinkedList;
31 import java.util.List;
32
33
34
35
36
37
38
39
40
41 public class ToConfirmReportBean {
42
43 private final Cruise cruise;
44
45 private final WeightUnit speciesWeightUnit;
46
47 private final WeightUnit benthosWeightUnit;
48
49 private final List<ToConfirmReportFishingOperationBean> operations;
50
51 public ToConfirmReportBean(Cruise cruise,
52 WeightUnit speciesWeightUnit,
53 WeightUnit benthosWeightUnit) {
54 this.cruise = cruise;
55 this.speciesWeightUnit = speciesWeightUnit;
56 this.benthosWeightUnit = benthosWeightUnit;
57 this.operations = new LinkedList<>();
58 }
59
60 public Cruise getCruise() {
61 return cruise;
62 }
63
64 public WeightUnit getSpeciesWeightUnit() {
65 return speciesWeightUnit;
66 }
67
68 public WeightUnit getBenthosWeightUnit() {
69 return benthosWeightUnit;
70 }
71
72 public void addOperation(ToConfirmReportFishingOperationBean operation) {
73 operations.add(operation);
74 }
75
76 public List<ToConfirmReportFishingOperationBean> getOperations() {
77 return operations;
78 }
79 }