annotate artifacts/src/main/java/org/dive4elements/river/artifacts/uinfo/common/UInfoResultType.java @ 9432:d194c5b24bf8

Added bundu bzws w calculation and longitudinal sections of wspl and depth
author mschaefer
date Mon, 20 Aug 2018 09:46:02 +0200
parents bd5f5d2220fa
children
rev   line source
8996
fb9430250899 Work on uinfo
gernotbelger
parents:
diff changeset
1 /** Copyright (C) 2017 by Bundesanstalt für Gewässerkunde
fb9430250899 Work on uinfo
gernotbelger
parents:
diff changeset
2 * Software engineering by
fb9430250899 Work on uinfo
gernotbelger
parents:
diff changeset
3 * Björnsen Beratende Ingenieure GmbH
fb9430250899 Work on uinfo
gernotbelger
parents:
diff changeset
4 * Dr. Schumacher Ingenieurbüro für Wasser und Umwelt
fb9430250899 Work on uinfo
gernotbelger
parents:
diff changeset
5 *
fb9430250899 Work on uinfo
gernotbelger
parents:
diff changeset
6 * This file is Free Software under the GNU AGPL (>=v3)
fb9430250899 Work on uinfo
gernotbelger
parents:
diff changeset
7 * and comes with ABSOLUTELY NO WARRANTY! Check out the
fb9430250899 Work on uinfo
gernotbelger
parents:
diff changeset
8 * documentation coming with Dive4Elements River for details.
fb9430250899 Work on uinfo
gernotbelger
parents:
diff changeset
9 */
9328
b3d3c958a594 Renamed package name
gernotbelger
parents: 9316
diff changeset
10 package org.dive4elements.river.artifacts.uinfo.common;
8996
fb9430250899 Work on uinfo
gernotbelger
parents:
diff changeset
11
fb9430250899 Work on uinfo
gernotbelger
parents:
diff changeset
12 import java.text.NumberFormat;
fb9430250899 Work on uinfo
gernotbelger
parents:
diff changeset
13
fb9430250899 Work on uinfo
gernotbelger
parents:
diff changeset
14 import org.dive4elements.artifacts.CallContext;
fb9430250899 Work on uinfo
gernotbelger
parents:
diff changeset
15 import org.dive4elements.river.artifacts.common.AbstractResultType;
fb9430250899 Work on uinfo
gernotbelger
parents:
diff changeset
16 import org.dive4elements.river.utils.Formatter;
fb9430250899 Work on uinfo
gernotbelger
parents:
diff changeset
17
fb9430250899 Work on uinfo
gernotbelger
parents:
diff changeset
18 /**
fb9430250899 Work on uinfo
gernotbelger
parents:
diff changeset
19 * @author Domenico Nardi Tironi
fb9430250899 Work on uinfo
gernotbelger
parents:
diff changeset
20 *
fb9430250899 Work on uinfo
gernotbelger
parents:
diff changeset
21 */
fb9430250899 Work on uinfo
gernotbelger
parents:
diff changeset
22 public abstract class UInfoResultType extends AbstractResultType {
fb9430250899 Work on uinfo
gernotbelger
parents:
diff changeset
23
9006
7134a4c7d1b6 U-Info S-Info general work
gernotbelger
parents: 8996
diff changeset
24 private static final long serialVersionUID = 1L;
7134a4c7d1b6 U-Info S-Info general work
gernotbelger
parents: 8996
diff changeset
25
9429
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
26 protected UInfoResultType(final String unit, final String csvHeader) {
8996
fb9430250899 Work on uinfo
gernotbelger
parents:
diff changeset
27 super(unit, csvHeader, csvHeader);
fb9430250899 Work on uinfo
gernotbelger
parents:
diff changeset
28 }
fb9430250899 Work on uinfo
gernotbelger
parents:
diff changeset
29
9361
2aec052d4088 Refactoring on SalixLineCalculationResult etc., calculation using MQ etc., scenario (regional+supra) csv columns and meta data added
mschaefer
parents: 9328
diff changeset
30 public static final UInfoResultType customMultiRowColSalixScenarios = new UInfoResultType(null, "uinfo.export.salix_line.csv.header.scenario") {
9243
da0bdbcd6f09 salix.supraRegional+Regional results
gernotbelger
parents: 9101
diff changeset
31 private static final long serialVersionUID = 1L;
da0bdbcd6f09 salix.supraRegional+Regional results
gernotbelger
parents: 9101
diff changeset
32
da0bdbcd6f09 salix.supraRegional+Regional results
gernotbelger
parents: 9101
diff changeset
33 @Override
da0bdbcd6f09 salix.supraRegional+Regional results
gernotbelger
parents: 9101
diff changeset
34 public String exportValue(final CallContext context, final Object value) {
da0bdbcd6f09 salix.supraRegional+Regional results
gernotbelger
parents: 9101
diff changeset
35 throw new UnsupportedOperationException();
da0bdbcd6f09 salix.supraRegional+Regional results
gernotbelger
parents: 9101
diff changeset
36 }
da0bdbcd6f09 salix.supraRegional+Regional results
gernotbelger
parents: 9101
diff changeset
37
da0bdbcd6f09 salix.supraRegional+Regional results
gernotbelger
parents: 9101
diff changeset
38 @Override
da0bdbcd6f09 salix.supraRegional+Regional results
gernotbelger
parents: 9101
diff changeset
39 protected NumberFormat createFormatter(final CallContext context) {
da0bdbcd6f09 salix.supraRegional+Regional results
gernotbelger
parents: 9101
diff changeset
40 throw new UnsupportedOperationException();
da0bdbcd6f09 salix.supraRegional+Regional results
gernotbelger
parents: 9101
diff changeset
41 }
da0bdbcd6f09 salix.supraRegional+Regional results
gernotbelger
parents: 9101
diff changeset
42 };
da0bdbcd6f09 salix.supraRegional+Regional results
gernotbelger
parents: 9101
diff changeset
43
9361
2aec052d4088 Refactoring on SalixLineCalculationResult etc., calculation using MQ etc., scenario (regional+supra) csv columns and meta data added
mschaefer
parents: 9328
diff changeset
44 public static final UInfoResultType salix_mw_mnw = new UInfoResultType(null, "uinfo.export.salix_line.csv.header.mw_mnw") {
9243
da0bdbcd6f09 salix.supraRegional+Regional results
gernotbelger
parents: 9101
diff changeset
45 private static final long serialVersionUID = 1L;
da0bdbcd6f09 salix.supraRegional+Regional results
gernotbelger
parents: 9101
diff changeset
46
da0bdbcd6f09 salix.supraRegional+Regional results
gernotbelger
parents: 9101
diff changeset
47 @Override
da0bdbcd6f09 salix.supraRegional+Regional results
gernotbelger
parents: 9101
diff changeset
48 public String exportValue(final CallContext context, final Object value) {
da0bdbcd6f09 salix.supraRegional+Regional results
gernotbelger
parents: 9101
diff changeset
49 final double doubleValue = asDouble(value);
da0bdbcd6f09 salix.supraRegional+Regional results
gernotbelger
parents: 9101
diff changeset
50 return exportDoubleValue(context, doubleValue);
da0bdbcd6f09 salix.supraRegional+Regional results
gernotbelger
parents: 9101
diff changeset
51 }
da0bdbcd6f09 salix.supraRegional+Regional results
gernotbelger
parents: 9101
diff changeset
52
da0bdbcd6f09 salix.supraRegional+Regional results
gernotbelger
parents: 9101
diff changeset
53 @Override
da0bdbcd6f09 salix.supraRegional+Regional results
gernotbelger
parents: 9101
diff changeset
54 protected NumberFormat createFormatter(final CallContext context) {
da0bdbcd6f09 salix.supraRegional+Regional results
gernotbelger
parents: 9101
diff changeset
55 // REMARK: other modules use Formatter.getWaterlevelW(context) instead, but that format with a variable number of
da0bdbcd6f09 salix.supraRegional+Regional results
gernotbelger
parents: 9101
diff changeset
56 // digits.
da0bdbcd6f09 salix.supraRegional+Regional results
gernotbelger
parents: 9101
diff changeset
57 return Formatter.getSalixLine(context);
da0bdbcd6f09 salix.supraRegional+Regional results
gernotbelger
parents: 9101
diff changeset
58 }
da0bdbcd6f09 salix.supraRegional+Regional results
gernotbelger
parents: 9101
diff changeset
59 };
da0bdbcd6f09 salix.supraRegional+Regional results
gernotbelger
parents: 9101
diff changeset
60
8996
fb9430250899 Work on uinfo
gernotbelger
parents:
diff changeset
61 public static final UInfoResultType salixline = new UInfoResultType(null, "uinfo.export.salix_line.csv.header.salix_line") {
9006
7134a4c7d1b6 U-Info S-Info general work
gernotbelger
parents: 8996
diff changeset
62 private static final long serialVersionUID = 1L;
7134a4c7d1b6 U-Info S-Info general work
gernotbelger
parents: 8996
diff changeset
63
8996
fb9430250899 Work on uinfo
gernotbelger
parents:
diff changeset
64 @Override
fb9430250899 Work on uinfo
gernotbelger
parents:
diff changeset
65 public String exportValue(final CallContext context, final Object value) {
fb9430250899 Work on uinfo
gernotbelger
parents:
diff changeset
66 final double doubleValue = asDouble(value);
fb9430250899 Work on uinfo
gernotbelger
parents:
diff changeset
67 return exportDoubleValue(context, doubleValue);
fb9430250899 Work on uinfo
gernotbelger
parents:
diff changeset
68 }
fb9430250899 Work on uinfo
gernotbelger
parents:
diff changeset
69
fb9430250899 Work on uinfo
gernotbelger
parents:
diff changeset
70 @Override
fb9430250899 Work on uinfo
gernotbelger
parents:
diff changeset
71 protected NumberFormat createFormatter(final CallContext context) {
fb9430250899 Work on uinfo
gernotbelger
parents:
diff changeset
72 // REMARK: other modules use Formatter.getWaterlevelW(context) instead, but that format with a variable number of
fb9430250899 Work on uinfo
gernotbelger
parents:
diff changeset
73 // digits.
fb9430250899 Work on uinfo
gernotbelger
parents:
diff changeset
74 return Formatter.getSalixLine(context);
fb9430250899 Work on uinfo
gernotbelger
parents:
diff changeset
75 }
fb9430250899 Work on uinfo
gernotbelger
parents:
diff changeset
76 };
fb9430250899 Work on uinfo
gernotbelger
parents:
diff changeset
77
9432
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9429
diff changeset
78 public static final UInfoResultType salixw = new UInfoResultType(null, null) {
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9429
diff changeset
79 private static final long serialVersionUID = 1L;
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9429
diff changeset
80
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9429
diff changeset
81 @Override
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9429
diff changeset
82 public String exportValue(final CallContext context, final Object value) {
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9429
diff changeset
83 throw new UnsupportedOperationException();
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9429
diff changeset
84 }
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9429
diff changeset
85
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9429
diff changeset
86 @Override
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9429
diff changeset
87 protected NumberFormat createFormatter(final CallContext context) {
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9429
diff changeset
88 throw new UnsupportedOperationException();
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9429
diff changeset
89 }
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9429
diff changeset
90 };
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9429
diff changeset
91
9006
7134a4c7d1b6 U-Info S-Info general work
gernotbelger
parents: 8996
diff changeset
92 public static final UInfoResultType vegname = new UInfoResultType(null, "uinfo.export.csv.meta.header.veg.name") {
7134a4c7d1b6 U-Info S-Info general work
gernotbelger
parents: 8996
diff changeset
93 private static final long serialVersionUID = 1L;
7134a4c7d1b6 U-Info S-Info general work
gernotbelger
parents: 8996
diff changeset
94
7134a4c7d1b6 U-Info S-Info general work
gernotbelger
parents: 8996
diff changeset
95 @Override
7134a4c7d1b6 U-Info S-Info general work
gernotbelger
parents: 8996
diff changeset
96 public String exportValue(final CallContext context, final Object value) {
7134a4c7d1b6 U-Info S-Info general work
gernotbelger
parents: 8996
diff changeset
97 return exportStringValue(value);
7134a4c7d1b6 U-Info S-Info general work
gernotbelger
parents: 8996
diff changeset
98 }
7134a4c7d1b6 U-Info S-Info general work
gernotbelger
parents: 8996
diff changeset
99
7134a4c7d1b6 U-Info S-Info general work
gernotbelger
parents: 8996
diff changeset
100 @Override
7134a4c7d1b6 U-Info S-Info general work
gernotbelger
parents: 8996
diff changeset
101 protected NumberFormat createFormatter(final CallContext context) {
7134a4c7d1b6 U-Info S-Info general work
gernotbelger
parents: 8996
diff changeset
102 throw new UnsupportedOperationException();
7134a4c7d1b6 U-Info S-Info general work
gernotbelger
parents: 8996
diff changeset
103 }
7134a4c7d1b6 U-Info S-Info general work
gernotbelger
parents: 8996
diff changeset
104 };
7134a4c7d1b6 U-Info S-Info general work
gernotbelger
parents: 8996
diff changeset
105
9260
b570b6fcc052 VegetationZone color added and disabled
gernotbelger
parents: 9249
diff changeset
106 public static final UInfoResultType vegzone_color = new UInfoResultType(null, "uinfo.export.csv.meta.header.veg.color") {
b570b6fcc052 VegetationZone color added and disabled
gernotbelger
parents: 9249
diff changeset
107 private static final long serialVersionUID = 1L;
b570b6fcc052 VegetationZone color added and disabled
gernotbelger
parents: 9249
diff changeset
108
b570b6fcc052 VegetationZone color added and disabled
gernotbelger
parents: 9249
diff changeset
109 @Override
b570b6fcc052 VegetationZone color added and disabled
gernotbelger
parents: 9249
diff changeset
110 public String exportValue(final CallContext context, final Object value) {
b570b6fcc052 VegetationZone color added and disabled
gernotbelger
parents: 9249
diff changeset
111 return exportStringValue(value);
b570b6fcc052 VegetationZone color added and disabled
gernotbelger
parents: 9249
diff changeset
112 }
b570b6fcc052 VegetationZone color added and disabled
gernotbelger
parents: 9249
diff changeset
113
b570b6fcc052 VegetationZone color added and disabled
gernotbelger
parents: 9249
diff changeset
114 @Override
b570b6fcc052 VegetationZone color added and disabled
gernotbelger
parents: 9249
diff changeset
115 protected NumberFormat createFormatter(final CallContext context) {
b570b6fcc052 VegetationZone color added and disabled
gernotbelger
parents: 9249
diff changeset
116 throw new UnsupportedOperationException();
b570b6fcc052 VegetationZone color added and disabled
gernotbelger
parents: 9249
diff changeset
117 }
b570b6fcc052 VegetationZone color added and disabled
gernotbelger
parents: 9249
diff changeset
118 };
9006
7134a4c7d1b6 U-Info S-Info general work
gernotbelger
parents: 8996
diff changeset
119 public static final UInfoResultType vegdauervon = new UInfoResultType(null, "uinfo.export.csv.meta.header.veg.dauervon") {
7134a4c7d1b6 U-Info S-Info general work
gernotbelger
parents: 8996
diff changeset
120 private static final long serialVersionUID = 1L;
7134a4c7d1b6 U-Info S-Info general work
gernotbelger
parents: 8996
diff changeset
121
7134a4c7d1b6 U-Info S-Info general work
gernotbelger
parents: 8996
diff changeset
122 @Override
7134a4c7d1b6 U-Info S-Info general work
gernotbelger
parents: 8996
diff changeset
123 public String exportValue(final CallContext context, final Object value) {
9101
2c6aba003112 Mini-Bugfix Vegetationszonen-Export
gernotbelger
parents: 9069
diff changeset
124 final double doubleValue = asDouble(value);
2c6aba003112 Mini-Bugfix Vegetationszonen-Export
gernotbelger
parents: 9069
diff changeset
125 return exportDoubleValue(context, doubleValue);
9006
7134a4c7d1b6 U-Info S-Info general work
gernotbelger
parents: 8996
diff changeset
126 }
7134a4c7d1b6 U-Info S-Info general work
gernotbelger
parents: 8996
diff changeset
127
7134a4c7d1b6 U-Info S-Info general work
gernotbelger
parents: 8996
diff changeset
128 @Override
7134a4c7d1b6 U-Info S-Info general work
gernotbelger
parents: 8996
diff changeset
129 protected NumberFormat createFormatter(final CallContext context) {
7134a4c7d1b6 U-Info S-Info general work
gernotbelger
parents: 8996
diff changeset
130 // REMARK: other modules use Formatter.getWaterlevelW(context) instead, but that format with a variable number of
7134a4c7d1b6 U-Info S-Info general work
gernotbelger
parents: 8996
diff changeset
131 // digits.
7134a4c7d1b6 U-Info S-Info general work
gernotbelger
parents: 8996
diff changeset
132 return Formatter.getUeberflutungsdauer(context);
7134a4c7d1b6 U-Info S-Info general work
gernotbelger
parents: 8996
diff changeset
133 }
7134a4c7d1b6 U-Info S-Info general work
gernotbelger
parents: 8996
diff changeset
134 };
7134a4c7d1b6 U-Info S-Info general work
gernotbelger
parents: 8996
diff changeset
135
7134a4c7d1b6 U-Info S-Info general work
gernotbelger
parents: 8996
diff changeset
136 public static final UInfoResultType vegdauerbis = new UInfoResultType(null, "uinfo.export.csv.meta.header.veg.dauerbis") {
7134a4c7d1b6 U-Info S-Info general work
gernotbelger
parents: 8996
diff changeset
137 private static final long serialVersionUID = 1L;
7134a4c7d1b6 U-Info S-Info general work
gernotbelger
parents: 8996
diff changeset
138
7134a4c7d1b6 U-Info S-Info general work
gernotbelger
parents: 8996
diff changeset
139 @Override
7134a4c7d1b6 U-Info S-Info general work
gernotbelger
parents: 8996
diff changeset
140 public String exportValue(final CallContext context, final Object value) {
9260
b570b6fcc052 VegetationZone color added and disabled
gernotbelger
parents: 9249
diff changeset
141 // valix hex-Check?
b570b6fcc052 VegetationZone color added and disabled
gernotbelger
parents: 9249
diff changeset
142 return String.valueOf(value);
9006
7134a4c7d1b6 U-Info S-Info general work
gernotbelger
parents: 8996
diff changeset
143 }
7134a4c7d1b6 U-Info S-Info general work
gernotbelger
parents: 8996
diff changeset
144
7134a4c7d1b6 U-Info S-Info general work
gernotbelger
parents: 8996
diff changeset
145 @Override
7134a4c7d1b6 U-Info S-Info general work
gernotbelger
parents: 8996
diff changeset
146 protected NumberFormat createFormatter(final CallContext context) {
7134a4c7d1b6 U-Info S-Info general work
gernotbelger
parents: 8996
diff changeset
147 // REMARK: other modules use Formatter.getWaterlevelW(context) instead, but that format with a variable number of
7134a4c7d1b6 U-Info S-Info general work
gernotbelger
parents: 8996
diff changeset
148 // digits.
7134a4c7d1b6 U-Info S-Info general work
gernotbelger
parents: 8996
diff changeset
149 return Formatter.getUeberflutungsdauer(context);
7134a4c7d1b6 U-Info S-Info general work
gernotbelger
parents: 8996
diff changeset
150 }
7134a4c7d1b6 U-Info S-Info general work
gernotbelger
parents: 8996
diff changeset
151 };
9429
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
152
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
153 public static final UInfoResultType waterlevelMNW = new UInfoResultType(null, null) {
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
154 private static final long serialVersionUID = 1L;
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
155
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
156 @Override
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
157 public String exportValue(final CallContext context, final Object value) {
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
158 throw new UnsupportedOperationException();
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
159 }
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
160
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
161 @Override
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
162 protected NumberFormat createFormatter(final CallContext context) {
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
163 throw new UnsupportedOperationException();
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
164 }
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
165 };
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
166 public static final UInfoResultType waterlevelMW = new UInfoResultType(null, null) {
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
167 private static final long serialVersionUID = 1L;
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
168
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
169 @Override
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
170 public String exportValue(final CallContext context, final Object value) {
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
171 throw new UnsupportedOperationException();
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
172 }
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
173
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
174 @Override
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
175 protected NumberFormat createFormatter(final CallContext context) {
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
176 throw new UnsupportedOperationException();
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
177 }
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
178 };
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
179 public static final UInfoResultType waterlevelMHW = new UInfoResultType(null, null) {
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
180 private static final long serialVersionUID = 1L;
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
181
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
182 @Override
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
183 public String exportValue(final CallContext context, final Object value) {
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
184 throw new UnsupportedOperationException();
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
185 }
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
186
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
187 @Override
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
188 protected NumberFormat createFormatter(final CallContext context) {
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
189 throw new UnsupportedOperationException();
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
190 }
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
191 };
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
192 public static final UInfoResultType waterlevelMH5 = new UInfoResultType(null, null) {
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
193 private static final long serialVersionUID = 1L;
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
194
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
195 @Override
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
196 public String exportValue(final CallContext context, final Object value) {
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
197 throw new UnsupportedOperationException();
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
198 }
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
199
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
200 @Override
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
201 protected NumberFormat createFormatter(final CallContext context) {
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
202 throw new UnsupportedOperationException();
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
203 }
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
204 };
bd5f5d2220fa Work on salix cross sections; waterlevels work now with different colors
gernotbelger
parents: 9361
diff changeset
205 }

http://dive4elements.wald.intevation.org