Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/fixings/FixCalculation.java @ 6875:437856cec419
FixA: Fixed reference events mapping. TODO: Same for analysis periods.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Tue, 20 Aug 2013 19:24:26 +0200 |
parents | af13ceeba52a |
children | a56fe3bc6700 |
comparison
equal
deleted
inserted
replaced
6874:d9dfa52f69eb | 6875:437856cec419 |
---|---|
110 return meta.getDescription(); | 110 return meta.getDescription(); |
111 } | 111 } |
112 | 112 |
113 public int getIndex() { | 113 public int getIndex() { |
114 return index; | 114 return index; |
115 } | |
116 | |
117 public int getId() { | |
118 return meta.getId(); | |
115 } | 119 } |
116 | 120 |
117 public boolean getQW( | 121 public boolean getQW( |
118 double km, | 122 double km, |
119 double [] qs, | 123 double [] qs, |
311 qs[i], ws[i], | 315 qs[i], ws[i], |
312 column.getDescription(), | 316 column.getDescription(), |
313 column.getDate(), | 317 column.getDate(), |
314 interpolated[i], | 318 interpolated[i], |
315 0d, | 319 0d, |
316 column.getIndex()); | 320 column.getId()); // Use database id here |
317 } | 321 } |
318 } | 322 } |
319 log.warn("cannot find column for (" + q + ", " + w + ")"); | 323 log.warn("cannot find column for (" + q + ", " + w + ")"); |
320 return new QWD(q, w); | 324 return new QWD(q, w); |
321 } | 325 } |
362 ++numFailed; | 366 ++numFailed; |
363 addProblem(km, "fix.fitting.failed"); | 367 addProblem(km, "fix.fitting.failed"); |
364 continue; | 368 continue; |
365 } | 369 } |
366 | 370 |
367 referenced.add(km, fitting.referencedToArray()); | 371 QWD [] refs = fitting.referencedToArray(); |
372 | |
373 referenced.add(km, refs); | |
368 | 374 |
369 if (fitting.hasOutliers()) { | 375 if (fitting.hasOutliers()) { |
370 outliers.add(km, fitting.outliersToArray()); | 376 outliers.add(km, fitting.outliersToArray()); |
371 } | 377 } |
372 | 378 |