Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/statistics/VerticalProfileStatistics.java @ 1119:7c4f81f74c47
merged gnv-artifacts
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:14:00 +0200 |
parents | f953c9a559d8 |
children |
comparison
equal
deleted
inserted
replaced
1027:fca4b5eb8d2f | 1119:7c4f81f74c47 |
---|---|
1 /* | |
2 * Copyright (c) 2010 by Intevation GmbH | |
3 * | |
4 * This program is free software under the LGPL (>=v2.1) | |
5 * Read the file LGPL.txt coming with the software for details | |
6 * or visit http://www.gnu.org/licenses/ if it does not exist. | |
7 */ | |
8 | |
9 package de.intevation.gnv.statistics; | |
10 | |
11 import de.intevation.gnv.geobackend.base.Result; | |
12 | |
13 import de.intevation.gnv.state.describedata.KeyValueDescibeData; | |
14 | |
15 import java.sql.SQLException; | |
16 | |
17 import java.util.Collection; | |
18 | |
19 /** | |
20 * This class is used to create a statistic in 'Vertikalprofil' products. | |
21 * | |
22 * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a> | |
23 */ | |
24 public class VerticalProfileStatistics extends TimeseriesStatistics { | |
25 | |
26 /** | |
27 * Constructor | |
28 */ | |
29 public VerticalProfileStatistics() { | |
30 super(); | |
31 } | |
32 | |
33 @Override | |
34 protected double calculateXOrdinateValue(Result previousRow, Result row) throws SQLException { | |
35 return row.getDouble("XORDINATE"); | |
36 } | |
37 | |
38 @Override | |
39 protected String generateStatisticsName( | |
40 String break1, | |
41 String break2, | |
42 String break3, | |
43 Collection<KeyValueDescibeData> parameters, | |
44 Collection<KeyValueDescibeData> measurements, | |
45 Collection<KeyValueDescibeData> dates) { | |
46 | |
47 return (this.findValueTitle(parameters, break1)+ " "+ | |
48 this.findValueTitle(measurements,break2)).trim(); | |
49 } | |
50 } | |
51 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |