annotate artifacts/src/main/java/org/dive4elements/river/artifacts/bundu/BunduResultType.java @ 9573:b9c87bbff6a4

mean bed height -> mean bed LEVEL
author gernotbelger
date Tue, 06 Nov 2018 10:56:22 +0100
parents 3fa8551c3d1b
children
rev   line source
9318
7b2b086e45f0 collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff changeset
1 /** Copyright (C) 2017 by Bundesanstalt für Gewässerkunde
7b2b086e45f0 collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff changeset
2 * Software engineering by
7b2b086e45f0 collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff changeset
3 * Björnsen Beratende Ingenieure GmbH
7b2b086e45f0 collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff changeset
4 * Dr. Schumacher Ingenieurbüro für Wasser und Umwelt
7b2b086e45f0 collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff changeset
5 *
7b2b086e45f0 collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff changeset
6 * This file is Free Software under the GNU AGPL (>=v3)
7b2b086e45f0 collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff changeset
7 * and comes with ABSOLUTELY NO WARRANTY! Check out the
7b2b086e45f0 collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff changeset
8 * documentation coming with Dive4Elements River for details.
7b2b086e45f0 collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff changeset
9 */
7b2b086e45f0 collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff changeset
10 package org.dive4elements.river.artifacts.bundu;
7b2b086e45f0 collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff changeset
11
7b2b086e45f0 collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff changeset
12 import java.text.NumberFormat;
7b2b086e45f0 collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff changeset
13
7b2b086e45f0 collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff changeset
14 import org.dive4elements.artifacts.CallContext;
7b2b086e45f0 collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff changeset
15 import org.dive4elements.river.artifacts.common.AbstractResultType;
7b2b086e45f0 collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff changeset
16 import org.dive4elements.river.artifacts.common.I18NStrings;
9535
3fa8551c3d1b Fixed error in bundu bzws missing volume calculation for mean bed height;
mschaefer
parents: 9480
diff changeset
17 import org.dive4elements.river.artifacts.sinfo.common.SInfoResultType;
9318
7b2b086e45f0 collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff changeset
18 import org.dive4elements.river.utils.Formatter;
7b2b086e45f0 collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff changeset
19
7b2b086e45f0 collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff changeset
20 /**
7b2b086e45f0 collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff changeset
21 * @author Domenico Nardi Tironi
7b2b086e45f0 collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff changeset
22 *
7b2b086e45f0 collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff changeset
23 */
7b2b086e45f0 collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff changeset
24 public abstract class BunduResultType extends AbstractResultType {
7b2b086e45f0 collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff changeset
25
7b2b086e45f0 collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff changeset
26 protected BunduResultType(final String unit, final String csvHeader, final String pdfHeader) {
7b2b086e45f0 collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff changeset
27 super(unit, csvHeader, pdfHeader);
7b2b086e45f0 collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff changeset
28 }
7b2b086e45f0 collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff changeset
29
9330
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
30 protected BunduResultType(final String unit, final String csvHeader) {
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
31 super(unit, csvHeader, csvHeader);
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
32 }
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
33
9318
7b2b086e45f0 collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff changeset
34 private static final long serialVersionUID = 1L;
7b2b086e45f0 collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff changeset
35
9330
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
36 public static final BunduResultType bezugswst = new BunduResultType(I18NStrings.UNIT_NONE, "bundu.wst.export.csv.meta.header.bezugswst",
9432
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
37 "bundu.wst.export.pdf.meta.header.bezugswst") { // Unit dynamic
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
38
9318
7b2b086e45f0 collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff changeset
39 private static final long serialVersionUID = 1L;
7b2b086e45f0 collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff changeset
40
7b2b086e45f0 collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff changeset
41 @Override
7b2b086e45f0 collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff changeset
42 public String exportValue(final CallContext context, final Object value) {
7b2b086e45f0 collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff changeset
43 final double doubleValue = asDouble(value);
7b2b086e45f0 collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff changeset
44 return exportDoubleValue(context, doubleValue);
7b2b086e45f0 collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff changeset
45 }
7b2b086e45f0 collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff changeset
46
7b2b086e45f0 collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff changeset
47 @Override
7b2b086e45f0 collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff changeset
48 protected NumberFormat createFormatter(final CallContext context) {
9432
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
49 return Formatter.getFlowDepth(context); // REMARK same as SInfoResultType.waterlevel
9318
7b2b086e45f0 collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff changeset
50 }
7b2b086e45f0 collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff changeset
51 };
7b2b086e45f0 collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff changeset
52
9330
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
53 public static final BunduResultType sounding = new BunduResultType(I18NStrings.UNIT_NONE, "bundu.export.bezugswst.csv.meta.miss.sounding") {
9432
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
54
9330
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
55 private static final long serialVersionUID = 1L;
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
56
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
57 @Override
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
58 public String exportValue(final CallContext context, final Object value) {
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
59 return exportStringValue(value);
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
60 }
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
61
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
62 @Override
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
63 protected NumberFormat createFormatter(final CallContext context) {
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
64 throw new UnsupportedOperationException();
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
65 }
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
66 };
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
67
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
68 public static final BunduResultType channelLowerEdge = new BunduResultType(I18NStrings.UNIT_NONE, "bundu.export.bezugswst.csv.meta.miss.channel.lower_edge",
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
69 "bundu.export.bezugswst.pdf.meta.miss.channel.lower_edge") { // Unit dynamic
9432
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
70
9330
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
71 private static final long serialVersionUID = 1L;
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
72
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
73 @Override
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
74 public String exportValue(final CallContext context, final Object value) {
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
75 final double doubleValue = asDouble(value);
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
76 return exportDoubleValue(context, doubleValue);
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
77 }
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
78
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
79 @Override
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
80 protected NumberFormat createFormatter(final CallContext context) {
9432
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
81 return Formatter.getFlowDepth(context); // REMARK same as SInfoResultType.waterlevel
9330
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
82 }
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
83 };
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
84
9432
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
85 public static final BunduResultType channelDepth = new BunduResultType(I18NStrings.UNIT_M, "bundu.export.bezugswst.csv.meta.miss.channel.min_depth",
9330
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
86 "bundu.export.bezugswst.pdf.meta.miss.channel.min_depth") {
9432
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
87
9330
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
88 private static final long serialVersionUID = 1L;
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
89
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
90 @Override
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
91 public String exportValue(final CallContext context, final Object value) {
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
92 final double doubleValue = asDouble(value);
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
93 return exportDoubleValue(context, doubleValue);
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
94 }
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
95
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
96 @Override
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
97 protected NumberFormat createFormatter(final CallContext context) {
9450
7e1fb8d0cb0d Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents: 9448
diff changeset
98 return Formatter.getFlowDepth(context);
9330
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
99 }
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
100 };
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
101
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
102 public static final BunduResultType hasMissingDepth = new BunduResultType(I18NStrings.UNIT_NONE, "bundu.export.bezugswst.csv.meta.miss.exists",
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
103 "bundu.export.bezugswst.pdf.meta.miss.exists") {
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
104 private static final long serialVersionUID = 1L;
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
105
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
106 @Override
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
107 public String exportValue(final CallContext context, final Object value) {
9448
d32b11d585cd CSV-Export bundu.wst fehlvolumen
gernotbelger
parents: 9446
diff changeset
108 return exportBooleanValue(context, value);
9330
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
109 }
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
110
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
111 @Override
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
112 protected NumberFormat createFormatter(final CallContext context) {
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
113 throw new UnsupportedOperationException();
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
114 }
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
115 };
9480
7228bd10a8cc Fixed bundu bzws bedheightfinder todos, added types for excavation volume and costs total
mschaefer
parents: 9453
diff changeset
116
7228bd10a8cc Fixed bundu bzws bedheightfinder todos, added types for excavation volume and costs total
mschaefer
parents: 9453
diff changeset
117 // TODO missVolumeTotal und missMassTotal differenzieren in Gesamtsumme und Feld1-10-Summe
9432
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
118 public static final BunduResultType missVolumeTotal = new BunduResultType(I18NStrings.UNIT_CUBIC_M, "bundu.export.bezugswst.csv.meta.miss.volume.total") {
9330
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
119 private static final long serialVersionUID = 1L;
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
120
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
121 @Override
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
122 public String exportValue(final CallContext context, final Object value) {
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
123 final double doubleValue = asDouble(value);
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
124 return exportDoubleValue(context, doubleValue);
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
125 }
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
126
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
127 @Override
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
128 protected NumberFormat createFormatter(final CallContext context) {
9432
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
129 return Formatter.getIntegerFormatter(context);
9330
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
130 }
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
131 };
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
132
9452
af163ce96eb4 pdf export result 3 miss vol
gernotbelger
parents: 9450
diff changeset
133 public static final BunduResultType missMassTotal = new BunduResultType(I18NStrings.UNIT_TON, "bundu.export.bezugswst.csv.meta.miss.mass.total") {
9330
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
134 private static final long serialVersionUID = 1L;
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
135
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
136 @Override
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
137 public String exportValue(final CallContext context, final Object value) {
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
138 final double doubleValue = asDouble(value);
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
139 return exportDoubleValue(context, doubleValue);
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
140 }
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
141
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
142 @Override
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
143 protected NumberFormat createFormatter(final CallContext context) {
9432
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
144 return Formatter.getMassFormat(context);
9330
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
145 }
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
146 };
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
147
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
148 public static final BunduResultType excavationVolume = new BunduResultType(I18NStrings.UNIT_CUBIC_M, "bundu.export.bezugswst.csv.meta.miss.excavation",
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
149 "bundu.export.bezugswst.pdf.meta.miss.excavation") {
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
150 private static final long serialVersionUID = 1L;
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
151
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
152 @Override
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
153 public String exportValue(final CallContext context, final Object value) {
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
154 final double doubleValue = asDouble(value);
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
155 return exportDoubleValue(context, doubleValue);
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
156 }
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
157
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
158 @Override
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
159 protected NumberFormat createFormatter(final CallContext context) {
9432
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
160 return Formatter.getIntegerFormatter(context);
9330
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
161 }
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
162 };
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
163
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
164 public static final BunduResultType excavationCosts = new BunduResultType(I18NStrings.UNIT_EURO, "bundu.export.bezugswst.csv.meta.miss.costs",
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
165 "bundu.export.bezugswst.pdf.meta.miss.costs") {
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
166 private static final long serialVersionUID = 1L;
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
167
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
168 @Override
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
169 public String exportValue(final CallContext context, final Object value) {
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
170 final double doubleValue = asDouble(value);
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
171 return exportDoubleValue(context, doubleValue);
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
172 }
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
173
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
174 @Override
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
175 protected NumberFormat createFormatter(final CallContext context) {
9432
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
176 return Formatter.getCurrencyFormat(context);
9330
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
177 }
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
178 };
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
179
9480
7228bd10a8cc Fixed bundu bzws bedheightfinder todos, added types for excavation volume and costs total
mschaefer
parents: 9453
diff changeset
180 public static final BunduResultType excavationVolumeTotal = new BunduResultType(I18NStrings.UNIT_CUBIC_M,
7228bd10a8cc Fixed bundu bzws bedheightfinder todos, added types for excavation volume and costs total
mschaefer
parents: 9453
diff changeset
181 "bundu.export.bezugswst.csv.meta.miss.excavationtotal", "bundu.export.bezugswst.pdf.meta.miss.excavationtotal") {
7228bd10a8cc Fixed bundu bzws bedheightfinder todos, added types for excavation volume and costs total
mschaefer
parents: 9453
diff changeset
182 private static final long serialVersionUID = 1L;
7228bd10a8cc Fixed bundu bzws bedheightfinder todos, added types for excavation volume and costs total
mschaefer
parents: 9453
diff changeset
183
7228bd10a8cc Fixed bundu bzws bedheightfinder todos, added types for excavation volume and costs total
mschaefer
parents: 9453
diff changeset
184 @Override
7228bd10a8cc Fixed bundu bzws bedheightfinder todos, added types for excavation volume and costs total
mschaefer
parents: 9453
diff changeset
185 public String exportValue(final CallContext context, final Object value) {
7228bd10a8cc Fixed bundu bzws bedheightfinder todos, added types for excavation volume and costs total
mschaefer
parents: 9453
diff changeset
186 final double doubleValue = asDouble(value);
7228bd10a8cc Fixed bundu bzws bedheightfinder todos, added types for excavation volume and costs total
mschaefer
parents: 9453
diff changeset
187 return exportDoubleValue(context, doubleValue);
7228bd10a8cc Fixed bundu bzws bedheightfinder todos, added types for excavation volume and costs total
mschaefer
parents: 9453
diff changeset
188 }
7228bd10a8cc Fixed bundu bzws bedheightfinder todos, added types for excavation volume and costs total
mschaefer
parents: 9453
diff changeset
189
7228bd10a8cc Fixed bundu bzws bedheightfinder todos, added types for excavation volume and costs total
mschaefer
parents: 9453
diff changeset
190 @Override
7228bd10a8cc Fixed bundu bzws bedheightfinder todos, added types for excavation volume and costs total
mschaefer
parents: 9453
diff changeset
191 protected NumberFormat createFormatter(final CallContext context) {
7228bd10a8cc Fixed bundu bzws bedheightfinder todos, added types for excavation volume and costs total
mschaefer
parents: 9453
diff changeset
192 return Formatter.getIntegerFormatter(context);
7228bd10a8cc Fixed bundu bzws bedheightfinder todos, added types for excavation volume and costs total
mschaefer
parents: 9453
diff changeset
193 }
7228bd10a8cc Fixed bundu bzws bedheightfinder todos, added types for excavation volume and costs total
mschaefer
parents: 9453
diff changeset
194 };
7228bd10a8cc Fixed bundu bzws bedheightfinder todos, added types for excavation volume and costs total
mschaefer
parents: 9453
diff changeset
195
7228bd10a8cc Fixed bundu bzws bedheightfinder todos, added types for excavation volume and costs total
mschaefer
parents: 9453
diff changeset
196 public static final BunduResultType excavationCostsTotal = new BunduResultType(I18NStrings.UNIT_EURO, "bundu.export.bezugswst.csv.meta.miss.coststotal",
7228bd10a8cc Fixed bundu bzws bedheightfinder todos, added types for excavation volume and costs total
mschaefer
parents: 9453
diff changeset
197 "bundu.export.bezugswst.pdf.meta.miss.coststotal") {
7228bd10a8cc Fixed bundu bzws bedheightfinder todos, added types for excavation volume and costs total
mschaefer
parents: 9453
diff changeset
198 private static final long serialVersionUID = 1L;
7228bd10a8cc Fixed bundu bzws bedheightfinder todos, added types for excavation volume and costs total
mschaefer
parents: 9453
diff changeset
199
7228bd10a8cc Fixed bundu bzws bedheightfinder todos, added types for excavation volume and costs total
mschaefer
parents: 9453
diff changeset
200 @Override
7228bd10a8cc Fixed bundu bzws bedheightfinder todos, added types for excavation volume and costs total
mschaefer
parents: 9453
diff changeset
201 public String exportValue(final CallContext context, final Object value) {
7228bd10a8cc Fixed bundu bzws bedheightfinder todos, added types for excavation volume and costs total
mschaefer
parents: 9453
diff changeset
202 final double doubleValue = asDouble(value);
7228bd10a8cc Fixed bundu bzws bedheightfinder todos, added types for excavation volume and costs total
mschaefer
parents: 9453
diff changeset
203 return exportDoubleValue(context, doubleValue);
7228bd10a8cc Fixed bundu bzws bedheightfinder todos, added types for excavation volume and costs total
mschaefer
parents: 9453
diff changeset
204 }
7228bd10a8cc Fixed bundu bzws bedheightfinder todos, added types for excavation volume and costs total
mschaefer
parents: 9453
diff changeset
205
7228bd10a8cc Fixed bundu bzws bedheightfinder todos, added types for excavation volume and costs total
mschaefer
parents: 9453
diff changeset
206 @Override
7228bd10a8cc Fixed bundu bzws bedheightfinder todos, added types for excavation volume and costs total
mschaefer
parents: 9453
diff changeset
207 protected NumberFormat createFormatter(final CallContext context) {
7228bd10a8cc Fixed bundu bzws bedheightfinder todos, added types for excavation volume and costs total
mschaefer
parents: 9453
diff changeset
208 return Formatter.getCurrencyFormat(context);
7228bd10a8cc Fixed bundu bzws bedheightfinder todos, added types for excavation volume and costs total
mschaefer
parents: 9453
diff changeset
209 }
7228bd10a8cc Fixed bundu bzws bedheightfinder todos, added types for excavation volume and costs total
mschaefer
parents: 9453
diff changeset
210 };
7228bd10a8cc Fixed bundu bzws bedheightfinder todos, added types for excavation volume and costs total
mschaefer
parents: 9453
diff changeset
211
9330
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
212 public static final BunduResultType channelWidth = new BunduResultType(I18NStrings.UNIT_M, "bundu.export.bezugswst.csv.meta.miss.channel.width",
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
213 "bundu.export.bezugswst.pdf.meta.miss.channel.width") {
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
214 private static final long serialVersionUID = 1L;
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
215
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
216 @Override
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
217 public String exportValue(final CallContext context, final Object value) {
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
218 final double doubleValue = asDouble(value);
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
219 return exportDoubleValue(context, doubleValue);
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
220 }
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
221
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
222 @Override
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
223 protected NumberFormat createFormatter(final CallContext context) {
9432
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
224 return Formatter.getChannelWidth(context);
9330
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
225 }
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
226 };
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
227
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
228 public static final BunduResultType density = new BunduResultType(I18NStrings.UNIT_M, "bundu.export.bezugswst.csv.meta.miss.density",
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
229 "bundu.export.bezugswst.pdf.meta.miss.density") {
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
230 private static final long serialVersionUID = 1L;
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
231
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
232 @Override
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
233 public String exportValue(final CallContext context, final Object value) {
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
234 final double doubleValue = asDouble(value);
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
235 return exportDoubleValue(context, doubleValue);
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
236 }
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
237
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
238 @Override
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
239 protected NumberFormat createFormatter(final CallContext context) {
9432
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
240 return Formatter.getDensityFormat(context);
9330
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
241 }
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
242 };
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
243
9535
3fa8551c3d1b Fixed error in bundu bzws missing volume calculation for mean bed height;
mschaefer
parents: 9480
diff changeset
244 public static final SInfoResultType heightMeanBed = new SInfoResultType(null, "bundu.export.bezugswst.csv.meta.miss.height.mean_bed") {
3fa8551c3d1b Fixed error in bundu bzws missing volume calculation for mean bed height;
mschaefer
parents: 9480
diff changeset
245 private static final long serialVersionUID = 1L;
3fa8551c3d1b Fixed error in bundu bzws missing volume calculation for mean bed height;
mschaefer
parents: 9480
diff changeset
246
3fa8551c3d1b Fixed error in bundu bzws missing volume calculation for mean bed height;
mschaefer
parents: 9480
diff changeset
247 @Override
3fa8551c3d1b Fixed error in bundu bzws missing volume calculation for mean bed height;
mschaefer
parents: 9480
diff changeset
248 public String exportValue(final CallContext context, final Object value) {
3fa8551c3d1b Fixed error in bundu bzws missing volume calculation for mean bed height;
mschaefer
parents: 9480
diff changeset
249 final double doubleValue = asDouble(value);
3fa8551c3d1b Fixed error in bundu bzws missing volume calculation for mean bed height;
mschaefer
parents: 9480
diff changeset
250 return exportDoubleValue(context, doubleValue);
3fa8551c3d1b Fixed error in bundu bzws missing volume calculation for mean bed height;
mschaefer
parents: 9480
diff changeset
251 }
3fa8551c3d1b Fixed error in bundu bzws missing volume calculation for mean bed height;
mschaefer
parents: 9480
diff changeset
252
3fa8551c3d1b Fixed error in bundu bzws missing volume calculation for mean bed height;
mschaefer
parents: 9480
diff changeset
253 @Override
3fa8551c3d1b Fixed error in bundu bzws missing volume calculation for mean bed height;
mschaefer
parents: 9480
diff changeset
254 protected NumberFormat createFormatter(final CallContext context) {
3fa8551c3d1b Fixed error in bundu bzws missing volume calculation for mean bed height;
mschaefer
parents: 9480
diff changeset
255 return Formatter.getMeanBedHeight(context);
3fa8551c3d1b Fixed error in bundu bzws missing volume calculation for mean bed height;
mschaefer
parents: 9480
diff changeset
256 }
3fa8551c3d1b Fixed error in bundu bzws missing volume calculation for mean bed height;
mschaefer
parents: 9480
diff changeset
257 };
3fa8551c3d1b Fixed error in bundu bzws missing volume calculation for mean bed height;
mschaefer
parents: 9480
diff changeset
258
3fa8551c3d1b Fixed error in bundu bzws missing volume calculation for mean bed height;
mschaefer
parents: 9480
diff changeset
259 public static final SInfoResultType flowdepthMeanBed = new SInfoResultType(I18NStrings.UNIT_M, "bundu.export.bezugswst.csv.meta.miss.flowdepth.mean_bed") {
3fa8551c3d1b Fixed error in bundu bzws missing volume calculation for mean bed height;
mschaefer
parents: 9480
diff changeset
260 private static final long serialVersionUID = 1L;
3fa8551c3d1b Fixed error in bundu bzws missing volume calculation for mean bed height;
mschaefer
parents: 9480
diff changeset
261
3fa8551c3d1b Fixed error in bundu bzws missing volume calculation for mean bed height;
mschaefer
parents: 9480
diff changeset
262 @Override
3fa8551c3d1b Fixed error in bundu bzws missing volume calculation for mean bed height;
mschaefer
parents: 9480
diff changeset
263 public String exportValue(final CallContext context, final Object value) {
3fa8551c3d1b Fixed error in bundu bzws missing volume calculation for mean bed height;
mschaefer
parents: 9480
diff changeset
264 final double doubleValue = asDouble(value);
3fa8551c3d1b Fixed error in bundu bzws missing volume calculation for mean bed height;
mschaefer
parents: 9480
diff changeset
265 return exportDoubleValue(context, doubleValue);
3fa8551c3d1b Fixed error in bundu bzws missing volume calculation for mean bed height;
mschaefer
parents: 9480
diff changeset
266 }
3fa8551c3d1b Fixed error in bundu bzws missing volume calculation for mean bed height;
mschaefer
parents: 9480
diff changeset
267
3fa8551c3d1b Fixed error in bundu bzws missing volume calculation for mean bed height;
mschaefer
parents: 9480
diff changeset
268 @Override
3fa8551c3d1b Fixed error in bundu bzws missing volume calculation for mean bed height;
mschaefer
parents: 9480
diff changeset
269 protected NumberFormat createFormatter(final CallContext context) {
3fa8551c3d1b Fixed error in bundu bzws missing volume calculation for mean bed height;
mschaefer
parents: 9480
diff changeset
270 return Formatter.getFlowDepth(context);
3fa8551c3d1b Fixed error in bundu bzws missing volume calculation for mean bed height;
mschaefer
parents: 9480
diff changeset
271 }
3fa8551c3d1b Fixed error in bundu bzws missing volume calculation for mean bed height;
mschaefer
parents: 9480
diff changeset
272 };
3fa8551c3d1b Fixed error in bundu bzws missing volume calculation for mean bed height;
mschaefer
parents: 9480
diff changeset
273
9450
7e1fb8d0cb0d Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents: 9448
diff changeset
274 public static final BunduResultType missDepthMeanBed = new BunduResultType(I18NStrings.UNIT_NONE, null) {
7e1fb8d0cb0d Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents: 9448
diff changeset
275
7e1fb8d0cb0d Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents: 9448
diff changeset
276 private static final long serialVersionUID = 1L;
7e1fb8d0cb0d Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents: 9448
diff changeset
277
7e1fb8d0cb0d Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents: 9448
diff changeset
278 @Override
7e1fb8d0cb0d Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents: 9448
diff changeset
279 public String exportValue(final CallContext context, final Object value) {
7e1fb8d0cb0d Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents: 9448
diff changeset
280 final double doubleValue = asDouble(value);
7e1fb8d0cb0d Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents: 9448
diff changeset
281 return exportDoubleValue(context, doubleValue);
7e1fb8d0cb0d Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents: 9448
diff changeset
282 }
7e1fb8d0cb0d Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents: 9448
diff changeset
283
7e1fb8d0cb0d Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents: 9448
diff changeset
284 @Override
7e1fb8d0cb0d Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents: 9448
diff changeset
285 protected NumberFormat createFormatter(final CallContext context) {
7e1fb8d0cb0d Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents: 9448
diff changeset
286 return Formatter.getFlowDepth(context);
7e1fb8d0cb0d Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents: 9448
diff changeset
287 }
7e1fb8d0cb0d Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents: 9448
diff changeset
288 };
7e1fb8d0cb0d Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents: 9448
diff changeset
289
7e1fb8d0cb0d Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents: 9448
diff changeset
290 public static final BunduResultType missAreaMeanBed = new BunduResultType(I18NStrings.UNIT_NONE, null) {
7e1fb8d0cb0d Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents: 9448
diff changeset
291
7e1fb8d0cb0d Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents: 9448
diff changeset
292 private static final long serialVersionUID = 1L;
7e1fb8d0cb0d Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents: 9448
diff changeset
293
7e1fb8d0cb0d Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents: 9448
diff changeset
294 @Override
7e1fb8d0cb0d Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents: 9448
diff changeset
295 public String exportValue(final CallContext context, final Object value) {
7e1fb8d0cb0d Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents: 9448
diff changeset
296 final double doubleValue = asDouble(value);
7e1fb8d0cb0d Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents: 9448
diff changeset
297 return exportDoubleValue(context, doubleValue);
7e1fb8d0cb0d Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents: 9448
diff changeset
298 }
7e1fb8d0cb0d Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents: 9448
diff changeset
299
7e1fb8d0cb0d Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents: 9448
diff changeset
300 @Override
7e1fb8d0cb0d Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents: 9448
diff changeset
301 protected NumberFormat createFormatter(final CallContext context) {
7e1fb8d0cb0d Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents: 9448
diff changeset
302 return Formatter.getMassFormat(context);
7e1fb8d0cb0d Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents: 9448
diff changeset
303 }
7e1fb8d0cb0d Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents: 9448
diff changeset
304 };
7e1fb8d0cb0d Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents: 9448
diff changeset
305
9432
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
306 public static final BunduResultType missVolumeMeanBed = new BunduResultType(I18NStrings.UNIT_NONE, "bundu.export.bezugswst.csv.meta.miss.volume.mean_bed") {
9330
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
307
9432
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
308 private static final long serialVersionUID = 1L;
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
309
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
310 @Override
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
311 public String exportValue(final CallContext context, final Object value) {
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
312 final double doubleValue = asDouble(value);
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
313 return exportDoubleValue(context, doubleValue);
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
314 }
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
315
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
316 @Override
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
317 protected NumberFormat createFormatter(final CallContext context) {
9450
7e1fb8d0cb0d Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents: 9448
diff changeset
318 return Formatter.getMassFormat(context);
9432
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
319 }
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
320 };
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
321
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
322 public static final BunduResultType missMassMeanBed = new BunduResultType(I18NStrings.UNIT_NONE, "bundu.export.bezugswst.csv.meta.miss.mass.mean_bed") {
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
323
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
324 private static final long serialVersionUID = 1L;
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
325
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
326 @Override
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
327 public String exportValue(final CallContext context, final Object value) {
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
328 final double doubleValue = asDouble(value);
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
329 return exportDoubleValue(context, doubleValue);
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
330 }
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
331
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
332 @Override
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
333 protected NumberFormat createFormatter(final CallContext context) {
9450
7e1fb8d0cb0d Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents: 9448
diff changeset
334 return Formatter.getMassFormat(context);
9432
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
335 }
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
336 };
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
337
9444
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
338 /**
9573
b9c87bbff6a4 mean bed height -> mean bed LEVEL
gernotbelger
parents: 9535
diff changeset
339 * List of bed level values of the 10 fields of a cross section
9444
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
340 */
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
341 public static final BunduResultType bedHeightFields = new BunduResultType(null, null) {
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
342
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
343 private static final long serialVersionUID = 1L;
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
344
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
345 @Override
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
346 public String exportValue(final CallContext context, final Object value) {
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
347 final double doubleValue = asDouble(value);
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
348 return exportDoubleValue(context, doubleValue);
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
349 }
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
350
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
351 @Override
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
352 protected NumberFormat createFormatter(final CallContext context) {
9535
3fa8551c3d1b Fixed error in bundu bzws missing volume calculation for mean bed height;
mschaefer
parents: 9480
diff changeset
353 return Formatter.getMeanBedHeight(context);
9444
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
354 }
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
355 };
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
356
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
357 /**
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
358 * List of depth values of the 10 fields of a cross section
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
359 */
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
360 public static final BunduResultType depthFields = new BunduResultType(I18NStrings.UNIT_NONE, null) {
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
361
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
362 private static final long serialVersionUID = 1L;
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
363
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
364 @Override
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
365 public String exportValue(final CallContext context, final Object value) {
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
366 final double doubleValue = asDouble(value);
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
367 return exportDoubleValue(context, doubleValue);
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
368 }
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
369
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
370 @Override
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
371 protected NumberFormat createFormatter(final CallContext context) {
9535
3fa8551c3d1b Fixed error in bundu bzws missing volume calculation for mean bed height;
mschaefer
parents: 9480
diff changeset
372 return Formatter.getFlowDepth(context);
9444
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
373 }
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
374 };
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
375
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
376 /**
9446
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
377 * List of missing depth values of the 10 fields of a cross section
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
378 */
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
379 public static final BunduResultType missDepthFields = new BunduResultType(I18NStrings.UNIT_NONE, null) {
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
380
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
381 private static final long serialVersionUID = 1L;
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
382
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
383 @Override
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
384 public String exportValue(final CallContext context, final Object value) {
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
385 final double doubleValue = asDouble(value);
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
386 return exportDoubleValue(context, doubleValue);
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
387 }
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
388
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
389 @Override
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
390 protected NumberFormat createFormatter(final CallContext context) {
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
391 throw new UnsupportedOperationException();
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
392 }
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
393 };
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
394
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
395 /**
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
396 * List of missing width values of the 10 fields of a cross section
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
397 */
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
398 public static final BunduResultType missWidthFields = new BunduResultType(I18NStrings.UNIT_NONE, null) {
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
399
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
400 private static final long serialVersionUID = 1L;
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
401
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
402 @Override
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
403 public String exportValue(final CallContext context, final Object value) {
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
404 final double doubleValue = asDouble(value);
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
405 return exportDoubleValue(context, doubleValue);
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
406 }
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
407
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
408 @Override
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
409 protected NumberFormat createFormatter(final CallContext context) {
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
410 throw new UnsupportedOperationException();
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
411 }
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
412 };
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
413
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
414 /**
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
415 * List of missing area values of the 10 fields of a cross section
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
416 */
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
417 public static final BunduResultType missAreaFields = new BunduResultType(I18NStrings.UNIT_NONE, null) {
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
418
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
419 private static final long serialVersionUID = 1L;
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
420
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
421 @Override
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
422 public String exportValue(final CallContext context, final Object value) {
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
423 final double doubleValue = asDouble(value);
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
424 return exportDoubleValue(context, doubleValue);
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
425 }
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
426
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
427 @Override
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
428 protected NumberFormat createFormatter(final CallContext context) {
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
429 throw new UnsupportedOperationException();
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
430 }
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
431 };
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
432
e60584f2a531 Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents: 9444
diff changeset
433 /**
9444
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
434 * List of volume values of the 10 fields of a cross section
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
435 */
9432
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
436 public static final BunduResultType missVolumeFields = new BunduResultType(I18NStrings.UNIT_NONE, "bundu.export.bezugswst.csv.meta.miss.volume.field") {
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
437
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
438 private static final long serialVersionUID = 1L;
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
439
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
440 @Override
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
441 public String exportValue(final CallContext context, final Object value) {
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
442 final double doubleValue = asDouble(value);
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
443 return exportDoubleValue(context, doubleValue);
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
444 }
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
445
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
446 @Override
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
447 protected NumberFormat createFormatter(final CallContext context) {
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
448 return Formatter.getMassFormat(context);
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
449 }
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
450 };
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
451
9444
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
452 /**
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
453 * List of mass values of the 10 fields of a cross section
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
454 */
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
455 public static final BunduResultType missMassFields = new BunduResultType(I18NStrings.UNIT_NONE, "bundu.export.bezugswst.csv.meta.miss.mass.field") {
9432
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
456
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
457 private static final long serialVersionUID = 1L;
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
458
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
459 @Override
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
460 public String exportValue(final CallContext context, final Object value) {
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
461 final double doubleValue = asDouble(value);
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
462 return exportDoubleValue(context, doubleValue);
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
463 }
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
464
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
465 @Override
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
466 protected NumberFormat createFormatter(final CallContext context) {
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
467 return Formatter.getMassFormat(context);
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
468 }
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
469 };
d194c5b24bf8 Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents: 9332
diff changeset
470
9451
fd6621f47a72 Bundu bzws density calculation completed
mschaefer
parents: 9450
diff changeset
471 public static final BunduResultType missStationRangeFrom = new BunduResultType(I18NStrings.UNIT_KM, "bundu.export.bezugswst.csv.meta.miss.km_from") {
9444
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
472
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
473 private static final long serialVersionUID = 1L;
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
474
9330
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
475 @Override
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
476 public String exportValue(final CallContext context, final Object value) {
9444
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
477 final double doubleValue = asDouble(value);
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
478 return exportDoubleValue(context, doubleValue);
9330
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
479 }
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
480
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
481 @Override
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
482 protected NumberFormat createFormatter(final CallContext context) {
9444
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
483 return Formatter.getWaterlevelKM(context);
9330
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
484 }
0a0937f33bb5 bundu.bezugswst first result for missing volume added
gernotbelger
parents: 9318
diff changeset
485 };
9331
127638669052 bundu bezugswst result 2
gernotbelger
parents: 9330
diff changeset
486
9451
fd6621f47a72 Bundu bzws density calculation completed
mschaefer
parents: 9450
diff changeset
487 public static final BunduResultType missStationRangeTo = new BunduResultType(I18NStrings.UNIT_KM, "bundu.export.bezugswst.csv.meta.miss.km_to") {
9444
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
488
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
489 private static final long serialVersionUID = 1L;
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
490
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
491 @Override
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
492 public String exportValue(final CallContext context, final Object value) {
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
493 final double doubleValue = asDouble(value);
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
494 return exportDoubleValue(context, doubleValue);
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
495 }
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
496
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
497 @Override
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
498 protected NumberFormat createFormatter(final CallContext context) {
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
499 return Formatter.getWaterlevelKM(context);
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
500 }
ecadc9ed0ba0 Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents: 9432
diff changeset
501 };
9318
7b2b086e45f0 collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff changeset
502 }

http://dive4elements.wald.intevation.org