Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/bundu/BunduResultType.java @ 9446:e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
author | mschaefer |
---|---|
date | Tue, 21 Aug 2018 18:19:35 +0200 |
parents | ecadc9ed0ba0 |
children | d32b11d585cd |
comparison
equal
deleted
inserted
replaced
9445:ff0e5386de70 | 9446:e60584f2a531 |
---|---|
276 throw new UnsupportedOperationException(); | 276 throw new UnsupportedOperationException(); |
277 } | 277 } |
278 }; | 278 }; |
279 | 279 |
280 /** | 280 /** |
281 * List of missing depth values of the 10 fields of a cross section | |
282 */ | |
283 public static final BunduResultType missDepthFields = new BunduResultType(I18NStrings.UNIT_NONE, null) { | |
284 | |
285 private static final long serialVersionUID = 1L; | |
286 | |
287 @Override | |
288 public String exportValue(final CallContext context, final Object value) { | |
289 final double doubleValue = asDouble(value); | |
290 return exportDoubleValue(context, doubleValue); | |
291 } | |
292 | |
293 @Override | |
294 protected NumberFormat createFormatter(final CallContext context) { | |
295 throw new UnsupportedOperationException(); | |
296 } | |
297 }; | |
298 | |
299 /** | |
300 * List of missing width values of the 10 fields of a cross section | |
301 */ | |
302 public static final BunduResultType missWidthFields = new BunduResultType(I18NStrings.UNIT_NONE, null) { | |
303 | |
304 private static final long serialVersionUID = 1L; | |
305 | |
306 @Override | |
307 public String exportValue(final CallContext context, final Object value) { | |
308 final double doubleValue = asDouble(value); | |
309 return exportDoubleValue(context, doubleValue); | |
310 } | |
311 | |
312 @Override | |
313 protected NumberFormat createFormatter(final CallContext context) { | |
314 throw new UnsupportedOperationException(); | |
315 } | |
316 }; | |
317 | |
318 /** | |
319 * List of missing area values of the 10 fields of a cross section | |
320 */ | |
321 public static final BunduResultType missAreaFields = new BunduResultType(I18NStrings.UNIT_NONE, null) { | |
322 | |
323 private static final long serialVersionUID = 1L; | |
324 | |
325 @Override | |
326 public String exportValue(final CallContext context, final Object value) { | |
327 final double doubleValue = asDouble(value); | |
328 return exportDoubleValue(context, doubleValue); | |
329 } | |
330 | |
331 @Override | |
332 protected NumberFormat createFormatter(final CallContext context) { | |
333 throw new UnsupportedOperationException(); | |
334 } | |
335 }; | |
336 | |
337 /** | |
281 * List of volume values of the 10 fields of a cross section | 338 * List of volume values of the 10 fields of a cross section |
282 */ | 339 */ |
283 public static final BunduResultType missVolumeFields = new BunduResultType(I18NStrings.UNIT_NONE, "bundu.export.bezugswst.csv.meta.miss.volume.field") { | 340 public static final BunduResultType missVolumeFields = new BunduResultType(I18NStrings.UNIT_NONE, "bundu.export.bezugswst.csv.meta.miss.volume.field") { |
284 | 341 |
285 private static final long serialVersionUID = 1L; | 342 private static final long serialVersionUID = 1L; |