Mercurial > dive4elements > river
annotate artifacts/src/main/java/org/dive4elements/river/artifacts/bundu/BunduResultType.java @ 9446:e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
author | mschaefer |
---|---|
date | Tue, 21 Aug 2018 18:19:35 +0200 |
parents | ecadc9ed0ba0 |
children | d32b11d585cd |
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) { |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
97 return Formatter.getWaterlevelQ(context); // Richtiges Format? TODO check! |
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) { |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
107 return exportStringValue(value); |
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 }; |
9432
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
115 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
|
116 private static final long serialVersionUID = 1L; |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
117 |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
118 @Override |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
119 public String exportValue(final CallContext context, final Object value) { |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
120 final double doubleValue = asDouble(value); |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
121 return exportDoubleValue(context, doubleValue); |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
122 } |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
123 |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
124 @Override |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
125 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
|
126 return Formatter.getIntegerFormatter(context); |
9330
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
127 } |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
128 }; |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
129 |
9432
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
130 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
|
131 "bundu.export.bezugswst.csv.meta.miss.mass") { |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
132 private static final long serialVersionUID = 1L; |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
133 |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
134 @Override |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
135 public String exportValue(final CallContext context, final Object value) { |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
136 final double doubleValue = asDouble(value); |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
137 return exportDoubleValue(context, doubleValue); |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
138 } |
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 @Override |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
141 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
|
142 return Formatter.getMassFormat(context); |
9330
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
143 } |
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 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
|
147 "bundu.export.bezugswst.pdf.meta.miss.excavation") { |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
148 private static final long serialVersionUID = 1L; |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
149 |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
150 @Override |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
151 public String exportValue(final CallContext context, final Object value) { |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
152 final double doubleValue = asDouble(value); |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
153 return exportDoubleValue(context, doubleValue); |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
154 } |
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 @Override |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
157 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
|
158 return Formatter.getIntegerFormatter(context); |
9330
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
159 } |
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 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
|
163 "bundu.export.bezugswst.pdf.meta.miss.costs") { |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
164 private static final long serialVersionUID = 1L; |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
165 |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
166 @Override |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
167 public String exportValue(final CallContext context, final Object value) { |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
168 final double doubleValue = asDouble(value); |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
169 return exportDoubleValue(context, doubleValue); |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
170 } |
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 @Override |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
173 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
|
174 return Formatter.getCurrencyFormat(context); |
9330
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
175 } |
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 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
|
179 "bundu.export.bezugswst.pdf.meta.miss.channel.width") { |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
180 private static final long serialVersionUID = 1L; |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
181 |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
182 @Override |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
183 public String exportValue(final CallContext context, final Object value) { |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
184 final double doubleValue = asDouble(value); |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
185 return exportDoubleValue(context, doubleValue); |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
186 } |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
187 |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
188 @Override |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
189 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
|
190 return Formatter.getChannelWidth(context); |
9330
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
191 } |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
192 }; |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
193 |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
194 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
|
195 "bundu.export.bezugswst.pdf.meta.miss.density") { |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
196 private static final long serialVersionUID = 1L; |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
197 |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
198 @Override |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
199 public String exportValue(final CallContext context, final Object value) { |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
200 final double doubleValue = asDouble(value); |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
201 return exportDoubleValue(context, doubleValue); |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
202 } |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
203 |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
204 @Override |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
205 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
|
206 return Formatter.getDensityFormat(context); |
9330
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
207 } |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
208 }; |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
209 |
9432
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
210 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
|
211 |
9432
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
212 private static final long serialVersionUID = 1L; |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
213 |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
214 @Override |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
215 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
|
216 final double doubleValue = asDouble(value); |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
217 return exportDoubleValue(context, doubleValue); |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
218 } |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
219 |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
220 @Override |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
221 protected NumberFormat createFormatter(final CallContext context) { |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
222 return Formatter.getIntegerFormatter(context); |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
223 } |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
224 }; |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
225 |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
226 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
|
227 |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
228 private static final long serialVersionUID = 1L; |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
229 |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
230 @Override |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
231 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
|
232 final double doubleValue = asDouble(value); |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
233 return exportDoubleValue(context, doubleValue); |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
234 } |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
235 |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
236 @Override |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
237 protected NumberFormat createFormatter(final CallContext context) { |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
238 return Formatter.getIntegerFormatter(context); |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
239 } |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
240 }; |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
241 |
9444
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
242 /** |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
243 * 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
|
244 */ |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
245 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
|
246 |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
247 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
|
248 |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
249 @Override |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
250 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
|
251 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
|
252 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
|
253 } |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
254 |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
255 @Override |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
256 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
|
257 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
|
258 } |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
259 }; |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
260 |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
261 /** |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
262 * 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
|
263 */ |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
264 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
|
265 |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
266 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
|
267 |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
268 @Override |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
269 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
|
270 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
|
271 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
|
272 } |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
273 |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
274 @Override |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
275 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
|
276 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
|
277 } |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
278 }; |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
279 |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
280 /** |
9446
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
281 * 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
|
282 */ |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
283 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
|
284 |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
285 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
|
286 |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
287 @Override |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
288 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
|
289 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
|
290 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
|
291 } |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
292 |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
293 @Override |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
294 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
|
295 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
|
296 } |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
297 }; |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
298 |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
299 /** |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
300 * 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
|
301 */ |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
302 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
|
303 |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
304 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
|
305 |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
306 @Override |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
307 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
|
308 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
|
309 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
|
310 } |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
311 |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
312 @Override |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
313 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
|
314 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
|
315 } |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
316 }; |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
317 |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
318 /** |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
319 * 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
|
320 */ |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
321 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
|
322 |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
323 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
|
324 |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
325 @Override |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
326 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
|
327 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
|
328 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
|
329 } |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
330 |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
331 @Override |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
332 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
|
333 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
|
334 } |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
335 }; |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
diff
changeset
|
336 |
e60584f2a531
Added bundu bzws calculation for missing volumes (masses still not yet ready) and results1/2/3
mschaefer
parents:
9444
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 * 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
|
339 */ |
9432
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
340 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
|
341 |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
342 private static final long serialVersionUID = 1L; |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
343 |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
344 @Override |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
345 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
|
346 final double doubleValue = asDouble(value); |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
347 return exportDoubleValue(context, doubleValue); |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
348 } |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
349 |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
350 @Override |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
351 protected NumberFormat createFormatter(final CallContext context) { |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
352 return Formatter.getMassFormat(context); |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
353 } |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
354 }; |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
355 |
9444
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 * 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
|
358 */ |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
359 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
|
360 |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
361 private static final long serialVersionUID = 1L; |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
362 |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
363 @Override |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
364 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
|
365 final double doubleValue = asDouble(value); |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
366 return exportDoubleValue(context, doubleValue); |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
367 } |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
368 |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
369 @Override |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
370 protected NumberFormat createFormatter(final CallContext context) { |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
371 return Formatter.getMassFormat(context); |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
372 } |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
373 }; |
d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
mschaefer
parents:
9332
diff
changeset
|
374 |
9444
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
375 public static final BunduResultType missStationRangeFrom = new BunduResultType(I18NStrings.UNIT_KM, "bundu.export.bezugswst.csv.meta.miss.mass.km_from") { |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
376 |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
377 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
|
378 |
9330
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
379 @Override |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
380 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
|
381 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
|
382 return exportDoubleValue(context, doubleValue); |
9330
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
383 } |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
384 |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
385 @Override |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
386 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
|
387 return Formatter.getWaterlevelKM(context); |
9330
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
388 } |
0a0937f33bb5
bundu.bezugswst first result for missing volume added
gernotbelger
parents:
9318
diff
changeset
|
389 }; |
9331 | 390 |
9444
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
391 public static final BunduResultType missStationRangeTo = new BunduResultType(I18NStrings.UNIT_KM, "bundu.export.bezugswst.csv.meta.miss.mass.km_to") { |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
392 |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
393 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
|
394 |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
395 @Override |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
396 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
|
397 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
|
398 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
|
399 } |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
400 |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
401 @Override |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
402 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
|
403 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
|
404 } |
ecadc9ed0ba0
Added heights and depths of cross section fields in the bundu bzws calculation and longitudinal section charts
mschaefer
parents:
9432
diff
changeset
|
405 }; |
9318
7b2b086e45f0
collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
diff
changeset
|
406 } |