8883
|
1 /** Copyright (C) 2017 by Bundesanstalt für Gewässerkunde |
|
2 * Software engineering by |
|
3 * Björnsen Beratende Ingenieure GmbH |
|
4 * Dr. Schumacher Ingenieurbüro für Wasser und Umwelt |
|
5 * |
|
6 * This file is Free Software under the GNU AGPL (>=v3) |
|
7 * and comes with ABSOLUTELY NO WARRANTY! Check out the |
|
8 * documentation coming with Dive4Elements River for details. |
|
9 */ |
|
10 package org.dive4elements.river.artifacts.model.fixings; |
|
11 |
|
12 import java.util.Date; |
|
13 import java.util.List; |
|
14 |
|
15 import org.dive4elements.river.artifacts.access.FixRealizingAccess; |
|
16 import org.dive4elements.river.artifacts.model.FixingsOverview; |
|
17 import org.dive4elements.river.artifacts.model.FixingsOverviewFactory; |
|
18 |
|
19 /** |
|
20 * REMARK: this inheritance is only needed, beause changing the orignal calculation will probably break the |
|
21 * serialization of the artifact.... |
|
22 * |
|
23 * @author Gernot Belger |
|
24 */ |
|
25 public class FixRealizingCalculationExtended extends FixRealizingCalculation { |
|
26 private static final long serialVersionUID = 1L; |
|
27 |
|
28 public FixRealizingCalculationExtended(final FixRealizingAccess fixAccess) { |
|
29 super(fixAccess); |
|
30 } |
|
31 |
|
32 // FIXME: implement |
|
33 // FIXME: check if this breaks serialization |
|
34 public int determineMeanYear() { |
|
35 final FixingsOverview overview = FixingsOverviewFactory.getOverview(this.river); |
|
36 final ColumnCache cc = new ColumnCache(); |
|
37 |
8904
|
38 // FIXME: dass die Hälfte der zeitlichen Differenz zwischen der ältesten und neusten WSPL |
|
39 |
8883
|
40 final List<Column> columns = getEventColumns(overview, cc); |
|
41 for (final Column column : columns) { |
|
42 final Date date = column.getDate(); |
|
43 } |
|
44 |
|
45 return 1999; |
|
46 } |
|
47 } |