Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/statistics/VerticalProfileStatistics.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 | 05bf8534a35a |
children | f953c9a559d8 |
comparison
equal
deleted
inserted
replaced
722:bb3ffe7d719e | 875:5e9efdda6894 |
---|---|
1 package de.intevation.gnv.statistics; | |
2 | |
3 import de.intevation.gnv.geobackend.base.Result; | |
4 | |
5 import de.intevation.gnv.state.describedata.KeyValueDescibeData; | |
6 | |
7 import java.sql.SQLException; | |
8 | |
9 import java.util.Collection; | |
10 | |
11 /** | |
12 * This class is used to create a statistic in 'Vertikalprofil' products. | |
13 * | |
14 * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a> | |
15 */ | |
16 public class VerticalProfileStatistics extends TimeseriesStatistics { | |
17 | |
18 /** | |
19 * Constructor | |
20 */ | |
21 public VerticalProfileStatistics() { | |
22 super(); | |
23 } | |
24 | |
25 @Override | |
26 protected double calculateXOrdinateValue(Result previousRow, Result row) throws SQLException { | |
27 return row.getDouble("XORDINATE"); | |
28 } | |
29 | |
30 @Override | |
31 protected String generateStatisticsName( | |
32 String break1, | |
33 String break2, | |
34 String break3, | |
35 Collection<KeyValueDescibeData> parameters, | |
36 Collection<KeyValueDescibeData> measurements, | |
37 Collection<KeyValueDescibeData> dates) { | |
38 | |
39 return (this.findValueTitle(parameters, break1)+ " "+ | |
40 this.findValueTitle(measurements,break2)).trim(); | |
41 } | |
42 } | |
43 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |