| ... |
... |
@@ -103,7 +103,7 @@ public class TripImpl extends TripAbstract { |
|
103
|
103
|
public boolean isLevel2Computed() {
|
|
104
|
104
|
if (level2Computed == null) {
|
|
105
|
105
|
level2Computed = false;
|
|
106
|
|
- if (!isActivityEmpty()) {
|
|
|
106
|
+ if (isActivityNotEmpty()) {
|
|
107
|
107
|
for (Activity a : getActivity()) {
|
|
108
|
108
|
Boolean b = a.getUseMeanStratumCompositionN2();
|
|
109
|
109
|
if (b != null) {
|
| ... |
... |
@@ -121,7 +121,7 @@ public class TripImpl extends TripAbstract { |
|
121
|
121
|
public boolean isLevel3Computed() {
|
|
122
|
122
|
if (level3Computed == null) {
|
|
123
|
123
|
level3Computed = false;
|
|
124
|
|
- if (!isActivityEmpty()) {
|
|
|
124
|
+ if (isActivityNotEmpty()) {
|
|
125
|
125
|
for (Activity a : getActivity()) {
|
|
126
|
126
|
Boolean b = a.getUseMeanStratumCompositionN3();
|
|
127
|
127
|
if (b != null) {
|
| ... |
... |
@@ -163,7 +163,7 @@ public class TripImpl extends TripAbstract { |
|
163
|
163
|
// @Override
|
|
164
|
164
|
// public float getTotalSetsDuration() {
|
|
165
|
165
|
// float result = 0;
|
|
166
|
|
-// if (!isActivityEmpty()) {
|
|
|
166
|
+// if (isActivityNotEmpty()) {
|
|
167
|
167
|
// for (Activity activity : getActivity()) {
|
|
168
|
168
|
//
|
|
169
|
169
|
// // get the setDuration
|
| ... |
... |
@@ -178,7 +178,7 @@ public class TripImpl extends TripAbstract { |
|
178
|
178
|
@Override
|
|
179
|
179
|
public float getElementaryCatchTotalWeight(Collection<Species> species) {
|
|
180
|
180
|
float result = 0;
|
|
181
|
|
- if (!isActivityEmpty()) {
|
|
|
181
|
+ if (isActivityNotEmpty()) {
|
|
182
|
182
|
for (Activity activity : getActivity()) {
|
|
183
|
183
|
result += activity.getElementaryCatchTotalWeight(species);
|
|
184
|
184
|
}
|
| ... |
... |
@@ -189,7 +189,7 @@ public class TripImpl extends TripAbstract { |
|
189
|
189
|
@Override
|
|
190
|
190
|
public float getElementaryCatchTotalWeightRf1(Collection<Species> species) {
|
|
191
|
191
|
float result = 0;
|
|
192
|
|
- if (getRf1() != null && !isActivityEmpty()) {
|
|
|
192
|
+ if (getRf1() != null && isActivityNotEmpty()) {
|
|
193
|
193
|
for (Activity activity : getActivity()) {
|
|
194
|
194
|
|
|
195
|
195
|
if (activity.isElementaryCatchEmpty()) {
|
| ... |
... |
@@ -211,7 +211,7 @@ public class TripImpl extends TripAbstract { |
|
211
|
211
|
@Override
|
|
212
|
212
|
public float getElementaryCatchTotalWeightRf2(Collection<Species> species) {
|
|
213
|
213
|
float result = 0;
|
|
214
|
|
- if (getRf1() != null && !isActivityEmpty()) {
|
|
|
214
|
+ if (getRf1() != null && isActivityNotEmpty()) {
|
|
215
|
215
|
for (Activity activity : getActivity()) {
|
|
216
|
216
|
|
|
217
|
217
|
if (activity.isElementaryCatchEmpty()) {
|
| ... |
... |
@@ -246,7 +246,7 @@ public class TripImpl extends TripAbstract { |
|
246
|
246
|
@Override
|
|
247
|
247
|
public float getElementaryLandingTotalWeight(Collection<Species> species) {
|
|
248
|
248
|
float result = 0;
|
|
249
|
|
- if (!isElementaryLandingEmpty()) {
|
|
|
249
|
+ if (isElementaryLandingNotEmpty()) {
|
|
250
|
250
|
for (ElementaryLanding elementaryLanding : getElementaryLanding()) {
|
|
251
|
251
|
if (species.contains(elementaryLanding.getWeightCategoryLanding().getSpecies())) {
|
|
252
|
252
|
result += elementaryLanding.getWeight();
|
| ... |
... |
@@ -260,7 +260,7 @@ public class TripImpl extends TripAbstract { |
|
260
|
260
|
@Override
|
|
261
|
261
|
public Set<Species> getElementaryCatchSpecies() {
|
|
262
|
262
|
Set<Species> result = new HashSet<>();
|
|
263
|
|
- if (!isActivityEmpty()) {
|
|
|
263
|
+ if (isActivityNotEmpty()) {
|
|
264
|
264
|
for (Activity activity : getActivity()) {
|
|
265
|
265
|
if (!activity.isElementaryCatchEmpty()) {
|
|
266
|
266
|
for (ElementaryCatch aCatch : activity.getElementaryCatch()) {
|
| ... |
... |
@@ -275,7 +275,7 @@ public class TripImpl extends TripAbstract { |
|
275
|
275
|
@Override
|
|
276
|
276
|
public Set<Species> getElementaryLandingSpecies() {
|
|
277
|
277
|
Set<Species> result = new HashSet<>();
|
|
278
|
|
- if (!isElementaryLandingEmpty()) {
|
|
|
278
|
+ if (isElementaryLandingNotEmpty()) {
|
|
279
|
279
|
for (ElementaryLanding landing : getElementaryLanding()) {
|
|
280
|
280
|
result.add(landing.getWeightCategoryLanding().getSpecies());
|
|
281
|
281
|
}
|
| ... |
... |
@@ -286,7 +286,7 @@ public class TripImpl extends TripAbstract { |
|
286
|
286
|
@Override
|
|
287
|
287
|
public Set<Ocean> getAllOceans() {
|
|
288
|
288
|
Set<Ocean> result = new HashSet<>();
|
|
289
|
|
- if (!isActivityEmpty()) {
|
|
|
289
|
+ if (isActivityNotEmpty()) {
|
|
290
|
290
|
for (Activity activity : getActivity()) {
|
|
291
|
291
|
result.add(activity.getOcean());
|
|
292
|
292
|
}
|