Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/statistics/VerticalCrossSectionStatistics.java @ 657:af3f56758f59
merged gnv-artifacts/0.5
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:13:53 +0200 |
parents | 04cfb4e3da4f |
children | b1f5f2a8840f |
comparison
equal
deleted
inserted
replaced
590:5f5f273c8566 | 657:af3f56758f59 |
---|---|
1 package de.intevation.gnv.statistics; | |
2 | |
3 import java.util.Collection; | |
4 import java.util.ArrayList; | |
5 | |
6 import org.apache.log4j.Logger; | |
7 | |
8 import de.intevation.gnv.state.describedata.KeyValueDescibeData; | |
9 | |
10 import de.intevation.gnv.statistics.exception.StatisticsException; | |
11 | |
12 import de.intevation.gnv.math.AttributedXYColumns; | |
13 | |
14 /** | |
15 * @author Sascha L. Teichmann (sascha.teichmann@intevation.de) | |
16 */ | |
17 public class VerticalCrossSectionStatistics | |
18 extends AbstractStatistics | |
19 { | |
20 private static Logger log = Logger.getLogger( | |
21 VerticalCrossSectionStatistics.class); | |
22 | |
23 public VerticalCrossSectionStatistics() { | |
24 } | |
25 | |
26 public Collection<StatisticSet> calculateStatistics( | |
27 Object result, | |
28 Collection<KeyValueDescibeData> parameters, | |
29 Collection<KeyValueDescibeData> measurements, | |
30 Collection<KeyValueDescibeData> dates | |
31 ) | |
32 throws StatisticsException { | |
33 | |
34 boolean debug = log.isDebugEnabled(); | |
35 | |
36 if (debug) { | |
37 log.debug("calculateStatistics --------------"); | |
38 } | |
39 | |
40 ArrayList<StatisticSet> statisticSet = | |
41 new ArrayList<StatisticSet>(); | |
42 | |
43 if (!(result instanceof AttributedXYColumns)) { | |
44 log.error("wrong type of result"); | |
45 return statisticSet; | |
46 } | |
47 AttributedXYColumns columns = (AttributedXYColumns)result; | |
48 | |
49 return statisticSet; | |
50 } | |
51 } | |
52 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |