Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/statistics/VerticalProfileStatistics.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 | e964a3d8f7bc |
children | 9a828e5a2390 |
comparison
equal
deleted
inserted
replaced
590:5f5f273c8566 | 657:af3f56758f59 |
---|---|
1 /** | |
2 * | |
3 */ | |
4 package de.intevation.gnv.statistics; | |
5 | |
6 import java.sql.SQLException; | |
7 import java.util.Collection; | |
8 | |
9 import de.intevation.gnv.geobackend.base.Result; | |
10 import de.intevation.gnv.state.describedata.KeyValueDescibeData; | |
11 | |
12 /** | |
13 * @author Tim Englich <tim.englich@intevation.de> | |
14 * | |
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 | |
44 | |
45 } |