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