Mercurial > dive4elements > river
annotate artifacts/src/main/java/org/dive4elements/river/artifacts/bundu/BunduResultType.java @ 9480:7228bd10a8cc
Fixed bundu bzws bedheightfinder todos, added types for excavation volume and costs total
author | mschaefer |
---|---|
date | Mon, 10 Sep 2018 17:06:23 +0200 |
parents | 9e471031cc1e |
children | 3fa8551c3d1b |
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; |
7b2b086e45f0
collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff
changeset
|
17 import org.dive4elements.river.utils.Formatter; |
7b2b086e45f0
collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff
changeset
|
18 |
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 * @author Domenico Nardi Tironi |
7b2b086e45f0
collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff
changeset
|
21 * |
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 public abstract class BunduResultType extends AbstractResultType { |
7b2b086e45f0
collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff
changeset
|
24 |
7b2b086e45f0
collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff
changeset
|
25 protected BunduResultType(final String unit, final String csvHeader, final String pdfHeader) { |
7b2b086e45f0
collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff
changeset
|
26 super(unit, csvHeader, pdfHeader); |
7b2b086e45f0
collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff
changeset
|
27 } |
7b2b086e45f0
collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff
changeset
|
28 |
9330
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
29 protected BunduResultType(final String unit, final String csvHeader) { |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
30 super(unit, csvHeader, csvHeader); |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
31 } |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
32 |
9318
7b2b086e45f0
collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff
changeset
|
33 private static final long serialVersionUID = 1L; |
7b2b086e45f0
collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff
changeset
|
34 |
9330
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
35 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
|
36 "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
|
37 |
9318
7b2b086e45f0
collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff
changeset
|
38 private static final long serialVersionUID = 1L; |
7b2b086e45f0
collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff
changeset
|
39 |
7b2b086e45f0
collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff
changeset
|
40 @Override |
7b2b086e45f0
collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff
changeset
|
41 public String exportValue(final CallContext context, final Object value) { |
7b2b086e45f0
collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff
changeset
|
42 final double doubleValue = asDouble(value); |
7b2b086e45f0
collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff
changeset
|
43 return exportDoubleValue(context, doubleValue); |
7b2b086e45f0
collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff
changeset
|
44 } |
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 @Override |
7b2b086e45f0
collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff
changeset
|
47 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
|
48 return Formatter.getFlowDepth(context); // REMARK same as SInfoResultType.waterlevel |
9318
7b2b086e45f0
collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff
changeset
|
49 } |
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 |
9330
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
52 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
|
53 |
9330
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
54 private static final long serialVersionUID = 1L; |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
55 |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
56 @Override |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
57 public String exportValue(final CallContext context, final Object value) { |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
58 return exportStringValue(value); |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
59 } |
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 @Override |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
62 protected NumberFormat createFormatter(final CallContext context) { |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
63 throw new UnsupportedOperationException(); |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
64 } |
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 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
|
68 "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
|
69 |
9330
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
70 private static final long serialVersionUID = 1L; |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
71 |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
72 @Override |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
73 public String exportValue(final CallContext context, final Object value) { |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
74 final double doubleValue = asDouble(value); |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
75 return exportDoubleValue(context, doubleValue); |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
76 } |
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 @Override |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
79 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
|
80 return Formatter.getFlowDepth(context); // REMARK same as SInfoResultType.waterlevel |
9330
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
81 } |
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 |
9432
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
84 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
|
85 "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
|
86 |
9330
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
87 private static final long serialVersionUID = 1L; |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
88 |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
89 @Override |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
90 public String exportValue(final CallContext context, final Object value) { |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
91 final double doubleValue = asDouble(value); |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
92 return exportDoubleValue(context, doubleValue); |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
93 } |
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 @Override |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
96 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
|
97 return Formatter.getFlowDepth(context); |
9330
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
98 } |
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 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
|
102 "bundu.export.bezugswst.pdf.meta.miss.exists") { |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
103 private static final long serialVersionUID = 1L; |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
104 |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
105 @Override |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
106 public String exportValue(final CallContext context, final Object value) { |
9448 | 107 return exportBooleanValue(context, value); |
9330
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
108 } |
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 @Override |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
111 protected NumberFormat createFormatter(final CallContext context) { |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
112 throw new UnsupportedOperationException(); |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
113 } |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
114 }; |
9480
7228bd10a8cc
Fixed bundu bzws bedheightfinder todos, added types for excavation volume and costs total
mschaefer
parents:
9453
diff
changeset
|
115 |
7228bd10a8cc
Fixed bundu bzws bedheightfinder todos, added types for excavation volume and costs total
mschaefer
parents:
9453
diff
changeset
|
116 // 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
|
117 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
|
118 private static final long serialVersionUID = 1L; |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
119 |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
120 @Override |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
121 public String exportValue(final CallContext context, final Object value) { |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
122 final double doubleValue = asDouble(value); |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
123 return exportDoubleValue(context, doubleValue); |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
124 } |
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 @Override |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
127 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
|
128 return Formatter.getIntegerFormatter(context); |
9330
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
129 } |
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 |
9452 | 132 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
|
133 private static final long serialVersionUID = 1L; |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
134 |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
135 @Override |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
136 public String exportValue(final CallContext context, final Object value) { |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
137 final double doubleValue = asDouble(value); |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
138 return exportDoubleValue(context, doubleValue); |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
139 } |
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 @Override |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
142 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
|
143 return Formatter.getMassFormat(context); |
9330
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
144 } |
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 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
|
148 "bundu.export.bezugswst.pdf.meta.miss.excavation") { |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
149 private static final long serialVersionUID = 1L; |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
150 |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
151 @Override |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
152 public String exportValue(final CallContext context, final Object value) { |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
153 final double doubleValue = asDouble(value); |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
154 return exportDoubleValue(context, doubleValue); |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
155 } |
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 @Override |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
158 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
|
159 return Formatter.getIntegerFormatter(context); |
9330
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
160 } |
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 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
|
164 "bundu.export.bezugswst.pdf.meta.miss.costs") { |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
165 private static final long serialVersionUID = 1L; |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
166 |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
167 @Override |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
168 public String exportValue(final CallContext context, final Object value) { |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
169 final double doubleValue = asDouble(value); |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
170 return exportDoubleValue(context, doubleValue); |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
171 } |
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 @Override |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
174 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
|
175 return Formatter.getCurrencyFormat(context); |
9330
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
176 } |
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 |
9480
7228bd10a8cc
Fixed bundu bzws bedheightfinder todos, added types for excavation volume and costs total
mschaefer
parents:
9453
diff
changeset
|
179 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
|
180 "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
|
181 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
|
182 |
7228bd10a8cc
Fixed bundu bzws bedheightfinder todos, added types for excavation volume and costs total
mschaefer
parents:
9453
diff
changeset
|
183 @Override |
7228bd10a8cc
Fixed bundu bzws bedheightfinder todos, added types for excavation volume and costs total
mschaefer
parents:
9453
diff
changeset
|
184 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
|
185 final double doubleValue = asDouble(value); |
7228bd10a8cc
Fixed bundu bzws bedheightfinder todos, added types for excavation volume and costs total
mschaefer
parents:
9453
diff
changeset
|
186 return exportDoubleValue(context, doubleValue); |
7228bd10a8cc
Fixed bundu bzws bedheightfinder todos, added types for excavation volume and costs total
mschaefer
parents:
9453
diff
changeset
|
187 } |
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 @Override |
7228bd10a8cc
Fixed bundu bzws bedheightfinder todos, added types for excavation volume and costs total
mschaefer
parents:
9453
diff
changeset
|
190 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
|
191 return Formatter.getIntegerFormatter(context); |
7228bd10a8cc
Fixed bundu bzws bedheightfinder todos, added types for excavation volume and costs total
mschaefer
parents:
9453
diff
changeset
|
192 } |
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 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
|
196 "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
|
197 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
|
198 |
7228bd10a8cc
Fixed bundu bzws bedheightfinder todos, added types for excavation volume and costs total
mschaefer
parents:
9453
diff
changeset
|
199 @Override |
7228bd10a8cc
Fixed bundu bzws bedheightfinder todos, added types for excavation volume and costs total
mschaefer
parents:
9453
diff
changeset
|
200 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
|
201 final double doubleValue = asDouble(value); |
7228bd10a8cc
Fixed bundu bzws bedheightfinder todos, added types for excavation volume and costs total
mschaefer
parents:
9453
diff
changeset
|
202 return exportDoubleValue(context, doubleValue); |
7228bd10a8cc
Fixed bundu bzws bedheightfinder todos, added types for excavation volume and costs total
mschaefer
parents:
9453
diff
changeset
|
203 } |
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 @Override |
7228bd10a8cc
Fixed bundu bzws bedheightfinder todos, added types for excavation volume and costs total
mschaefer
parents:
9453
diff
changeset
|
206 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
|
207 return Formatter.getCurrencyFormat(context); |
7228bd10a8cc
Fixed bundu bzws bedheightfinder todos, added types for excavation volume and costs total
mschaefer
parents:
9453
diff
changeset
|
208 } |
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 |
9330
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
211 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
|
212 "bundu.export.bezugswst.pdf.meta.miss.channel.width") { |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
213 private static final long serialVersionUID = 1L; |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
214 |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
215 @Override |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
216 public String exportValue(final CallContext context, final Object value) { |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
217 final double doubleValue = asDouble(value); |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
218 return exportDoubleValue(context, doubleValue); |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
219 } |
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 @Override |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
222 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
|
223 return Formatter.getChannelWidth(context); |
9330
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
224 } |
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 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
|
228 "bundu.export.bezugswst.pdf.meta.miss.density") { |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
229 private static final long serialVersionUID = 1L; |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
230 |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
231 @Override |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
232 public String exportValue(final CallContext context, final Object value) { |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
233 final double doubleValue = asDouble(value); |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
234 return exportDoubleValue(context, doubleValue); |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
235 } |
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 @Override |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
238 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
|
239 return Formatter.getDensityFormat(context); |
9330
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
240 } |
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 |
9450
7e1fb8d0cb0d
Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents:
9448
diff
changeset
|
243 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
|
244 |
7e1fb8d0cb0d
Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents:
9448
diff
changeset
|
245 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
|
246 |
7e1fb8d0cb0d
Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents:
9448
diff
changeset
|
247 @Override |
7e1fb8d0cb0d
Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents:
9448
diff
changeset
|
248 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
|
249 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
|
250 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
|
251 } |
7e1fb8d0cb0d
Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents:
9448
diff
changeset
|
252 |
7e1fb8d0cb0d
Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents:
9448
diff
changeset
|
253 @Override |
7e1fb8d0cb0d
Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents:
9448
diff
changeset
|
254 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
|
255 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
|
256 } |
7e1fb8d0cb0d
Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents:
9448
diff
changeset
|
257 }; |
7e1fb8d0cb0d
Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents:
9448
diff
changeset
|
258 |
7e1fb8d0cb0d
Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents:
9448
diff
changeset
|
259 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
|
260 |
7e1fb8d0cb0d
Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents:
9448
diff
changeset
|
261 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
|
262 |
7e1fb8d0cb0d
Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents:
9448
diff
changeset
|
263 @Override |
7e1fb8d0cb0d
Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents:
9448
diff
changeset
|
264 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
|
265 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
|
266 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
|
267 } |
7e1fb8d0cb0d
Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents:
9448
diff
changeset
|
268 |
7e1fb8d0cb0d
Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents:
9448
diff
changeset
|
269 @Override |
7e1fb8d0cb0d
Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents:
9448
diff
changeset
|
270 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
|
271 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
|
272 } |
7e1fb8d0cb0d
Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents:
9448
diff
changeset
|
273 }; |
7e1fb8d0cb0d
Bundu bzws calculation nearly completed, some corrections with csv output, started with linking the minfo density calculation
mschaefer
parents:
9448
diff
changeset
|
274 |
9432
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
275 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
|
276 |
9432
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
277 private static final long serialVersionUID = 1L; |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
278 |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
279 @Override |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
280 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
|
281 final double doubleValue = asDouble(value); |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
282 return exportDoubleValue(context, doubleValue); |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
283 } |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
284 |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
285 @Override |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
286 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
|
287 return Formatter.getMassFormat(context); |
9432
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
288 } |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
289 }; |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
290 |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
291 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
|
292 |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
293 private static final long serialVersionUID = 1L; |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
294 |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
295 @Override |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
296 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
|
297 final double doubleValue = asDouble(value); |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
298 return exportDoubleValue(context, doubleValue); |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
299 } |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
300 |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
301 @Override |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
302 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
|
303 return Formatter.getMassFormat(context); |
9432
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
304 } |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
305 }; |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
306 |
9444
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
307 /** |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
308 * List of bed height 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
|
309 */ |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
310 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
|
311 |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
312 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
|
313 |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
314 @Override |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
315 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
|
316 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
|
317 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
|
318 } |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
319 |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
320 @Override |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
321 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
|
322 throw new UnsupportedOperationException(); |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
323 } |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
324 }; |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
325 |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
326 /** |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
327 * 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
|
328 */ |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
329 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
|
330 |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
331 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
|
332 |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
333 @Override |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
334 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
|
335 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
|
336 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
|
337 } |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
338 |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
339 @Override |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
340 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
|
341 throw new UnsupportedOperationException(); |
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 }; |
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 /** |
9446
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
346 * 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
|
347 */ |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
348 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
|
349 |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
350 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
|
351 |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
352 @Override |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
353 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
|
354 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
|
355 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
|
356 } |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
357 |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
358 @Override |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
359 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
|
360 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
|
361 } |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
362 }; |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
363 |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
364 /** |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
365 * 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
|
366 */ |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
367 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
|
368 |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
369 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
|
370 |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
371 @Override |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
372 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
|
373 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
|
374 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
|
375 } |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
376 |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
377 @Override |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
378 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
|
379 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
|
380 } |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
381 }; |
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 /** |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
384 * 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
|
385 */ |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
386 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
|
387 |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
388 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
|
389 |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
390 @Override |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
391 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
|
392 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
|
393 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
|
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 @Override |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
397 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
|
398 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
|
399 } |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
400 }; |
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 /** |
9444
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
403 * 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
|
404 */ |
9432
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
405 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
|
406 |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
407 private static final long serialVersionUID = 1L; |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
408 |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
409 @Override |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
410 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
|
411 final double doubleValue = asDouble(value); |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
412 return exportDoubleValue(context, doubleValue); |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
413 } |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
414 |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
415 @Override |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
416 protected NumberFormat createFormatter(final CallContext context) { |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
417 return Formatter.getMassFormat(context); |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
418 } |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
419 }; |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
420 |
9444
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
421 /** |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
422 * 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
|
423 */ |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
424 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
|
425 |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
426 private static final long serialVersionUID = 1L; |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
427 |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
428 @Override |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
429 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
|
430 final double doubleValue = asDouble(value); |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
431 return exportDoubleValue(context, doubleValue); |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
432 } |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
433 |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
434 @Override |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
435 protected NumberFormat createFormatter(final CallContext context) { |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
436 return Formatter.getMassFormat(context); |
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 }; |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
439 |
9451 | 440 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
|
441 |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
442 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
|
443 |
9330
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
444 @Override |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
445 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
|
446 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
|
447 return exportDoubleValue(context, doubleValue); |
9330
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
448 } |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
449 |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
450 @Override |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
451 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
|
452 return Formatter.getWaterlevelKM(context); |
9330
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
453 } |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
454 }; |
9331 | 455 |
9451 | 456 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
|
457 |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
458 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
|
459 |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
460 @Override |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
461 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
|
462 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
|
463 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
|
464 } |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
465 |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
466 @Override |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
467 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
|
468 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
|
469 } |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
470 }; |
9318
7b2b086e45f0
collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff
changeset
|
471 } |