Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/fixings/FixRealizingCalculationExtended.java @ 8883:a536e1aacf0f
Further work on SINFO-FlowDepth
author | gernotbelger |
---|---|
date | Fri, 09 Feb 2018 18:07:22 +0100 |
parents | |
children | d9f2ce1d6bef |
comparison
equal
deleted
inserted
replaced
8882:f762fadc5313 | 8883:a536e1aacf0f |
---|---|
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 | |
38 final List<Column> columns = getEventColumns(overview, cc); | |
39 for (final Column column : columns) { | |
40 final Date date = column.getDate(); | |
41 } | |
42 | |
43 return 1999; | |
44 } | |
45 } |