Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/bundu/BunduResultType.java @ 9450:7e1fb8d0cb0d
Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
author | mschaefer |
---|---|
date | Wed, 22 Aug 2018 19:12:51 +0200 |
parents | d32b11d585cd |
children | fd6621f47a72 af163ce96eb4 |
comparison
equal
deleted
inserted
replaced
9449:ba3ad54edbae | 9450:7e1fb8d0cb0d |
---|---|
92 return exportDoubleValue(context, doubleValue); | 92 return exportDoubleValue(context, doubleValue); |
93 } | 93 } |
94 | 94 |
95 @Override | 95 @Override |
96 protected NumberFormat createFormatter(final CallContext context) { | 96 protected NumberFormat createFormatter(final CallContext context) { |
97 return Formatter.getWaterlevelQ(context); // Richtiges Format? TODO check! | 97 return Formatter.getFlowDepth(context); |
98 } | 98 } |
99 }; | 99 }; |
100 | 100 |
101 public static final BunduResultType hasMissingDepth = new BunduResultType(I18NStrings.UNIT_NONE, "bundu.export.bezugswst.csv.meta.miss.exists", | 101 public static final BunduResultType hasMissingDepth = new BunduResultType(I18NStrings.UNIT_NONE, "bundu.export.bezugswst.csv.meta.miss.exists", |
102 "bundu.export.bezugswst.pdf.meta.miss.exists") { | 102 "bundu.export.bezugswst.pdf.meta.miss.exists") { |
205 protected NumberFormat createFormatter(final CallContext context) { | 205 protected NumberFormat createFormatter(final CallContext context) { |
206 return Formatter.getDensityFormat(context); | 206 return Formatter.getDensityFormat(context); |
207 } | 207 } |
208 }; | 208 }; |
209 | 209 |
210 public static final BunduResultType missDepthMeanBed = new BunduResultType(I18NStrings.UNIT_NONE, null) { | |
211 | |
212 private static final long serialVersionUID = 1L; | |
213 | |
214 @Override | |
215 public String exportValue(final CallContext context, final Object value) { | |
216 final double doubleValue = asDouble(value); | |
217 return exportDoubleValue(context, doubleValue); | |
218 } | |
219 | |
220 @Override | |
221 protected NumberFormat createFormatter(final CallContext context) { | |
222 return Formatter.getFlowDepth(context); | |
223 } | |
224 }; | |
225 | |
226 public static final BunduResultType missAreaMeanBed = new BunduResultType(I18NStrings.UNIT_NONE, null) { | |
227 | |
228 private static final long serialVersionUID = 1L; | |
229 | |
230 @Override | |
231 public String exportValue(final CallContext context, final Object value) { | |
232 final double doubleValue = asDouble(value); | |
233 return exportDoubleValue(context, doubleValue); | |
234 } | |
235 | |
236 @Override | |
237 protected NumberFormat createFormatter(final CallContext context) { | |
238 return Formatter.getMassFormat(context); | |
239 } | |
240 }; | |
241 | |
210 public static final BunduResultType missVolumeMeanBed = new BunduResultType(I18NStrings.UNIT_NONE, "bundu.export.bezugswst.csv.meta.miss.volume.mean_bed") { | 242 public static final BunduResultType missVolumeMeanBed = new BunduResultType(I18NStrings.UNIT_NONE, "bundu.export.bezugswst.csv.meta.miss.volume.mean_bed") { |
211 | 243 |
212 private static final long serialVersionUID = 1L; | 244 private static final long serialVersionUID = 1L; |
213 | 245 |
214 @Override | 246 @Override |
217 return exportDoubleValue(context, doubleValue); | 249 return exportDoubleValue(context, doubleValue); |
218 } | 250 } |
219 | 251 |
220 @Override | 252 @Override |
221 protected NumberFormat createFormatter(final CallContext context) { | 253 protected NumberFormat createFormatter(final CallContext context) { |
222 return Formatter.getIntegerFormatter(context); | 254 return Formatter.getMassFormat(context); |
223 } | 255 } |
224 }; | 256 }; |
225 | 257 |
226 public static final BunduResultType missMassMeanBed = new BunduResultType(I18NStrings.UNIT_NONE, "bundu.export.bezugswst.csv.meta.miss.mass.mean_bed") { | 258 public static final BunduResultType missMassMeanBed = new BunduResultType(I18NStrings.UNIT_NONE, "bundu.export.bezugswst.csv.meta.miss.mass.mean_bed") { |
227 | 259 |
233 return exportDoubleValue(context, doubleValue); | 265 return exportDoubleValue(context, doubleValue); |
234 } | 266 } |
235 | 267 |
236 @Override | 268 @Override |
237 protected NumberFormat createFormatter(final CallContext context) { | 269 protected NumberFormat createFormatter(final CallContext context) { |
238 return Formatter.getIntegerFormatter(context); | 270 return Formatter.getMassFormat(context); |
239 } | 271 } |
240 }; | 272 }; |
241 | 273 |
242 /** | 274 /** |
243 * List of bed height values of the 10 fields of a cross section | 275 * List of bed height values of the 10 fields of a cross section |