comparison artifacts/src/main/java/org/dive4elements/river/artifacts/bundu/bezugswst/BezugswstCalculation.java @ 9331:127638669052

bundu bezugswst result 2
author gernotbelger
date Fri, 27 Jul 2018 18:49:55 +0200
parents 0a0937f33bb5
children c64de8cc4e97
comparison
equal deleted inserted replaced
9330:0a0937f33bb5 9331:127638669052
76 preprocessing, startYear, endYear, ud, qs, missingVolFrom, missingVolTo); 76 preprocessing, startYear, endYear, ud, qs, missingVolFrom, missingVolTo);
77 results.addResult(result, null); 77 results.addResult(result, null);
78 78
79 // missing volume calculation 79 // missing volume calculation
80 if (access.getMissingVolFrom() != null) { 80 if (access.getMissingVolFrom() != null) {
81 81 /// FIRST RESULT
82 final List<ResultRow> listResult1 = new ArrayList<>(); 82 final List<ResultRow> listResult1 = new ArrayList<>();
83 final ResultRow rowResult1 = ResultRow.create(); 83 final ResultRow rowResult1 = ResultRow.create();
84 rowResult1.putValue(BunduResultType.bezugswst, 45.15); 84 rowResult1.putValue(BunduResultType.bezugswst, 45.15);
85 rowResult1.putValue(GeneralResultType.dischargeQwithUnit, 890); 85 rowResult1.putValue(GeneralResultType.dischargeQwithUnit, 890);
86 rowResult1.putValue(GeneralResultType.waterlevelLabel, "GLQ"); 86 rowResult1.putValue(GeneralResultType.waterlevelLabel, "GLQ");
101 listResult1.add(rowResult1); 101 listResult1.add(rowResult1);
102 102
103 final BezugswstMissVolCalculationResult1 r1 = new BezugswstMissVolCalculationResult1( 103 final BezugswstMissVolCalculationResult1 r1 = new BezugswstMissVolCalculationResult1(
104 Resources.getMsg(m, "bundu.export.csv.title.bezugswst.result1"), listResult1); 104 Resources.getMsg(m, "bundu.export.csv.title.bezugswst.result1"), listResult1);
105 results.addResult(r1, null); 105 results.addResult(r1, null);
106
107 // SECOND RESULT
108 final List<ResultRow> listResult2 = new ArrayList<>();
109 final ResultRow rowResult2 = ResultRow.create();
110
111 rowResult2.putValue(GeneralResultType.station, 890);
112 final List<String> fieldValues = new ArrayList<>();
113 fieldValues.add("444 [m³] / 765 [t]");
114 fieldValues.add("4.444 [m³] / 1.765 [t]");
115 fieldValues.add("444 [m³] / 765 [t]");
116 fieldValues.add("");
117 fieldValues.add("");
118 fieldValues.add("");
119 fieldValues.add("");
120 fieldValues.add("");
121 fieldValues.add("");
122 fieldValues.add("444 [m³] / 765 [t]");
123 rowResult2.putValue(BunduResultType.fields, fieldValues);
124 rowResult2.putValue(BunduResultType.meanBedheight, "9.444 [m³] / 8.765 [t]");
125
126 listResult2.add(rowResult2);
127
128 final BezugswstMissVolCalculationResult2 r2 = new BezugswstMissVolCalculationResult2(
129 Resources.getMsg(m, "bundu.export.csv.title.bezugswst.result2"), listResult2);
130 results.addResult(r2, null);
131
106 } 132 }
107 133
108 return new CalculationResult(results, null);// problems); 134 return new CalculationResult(results, null);// problems);
109 } 135 }
110 136

http://dive4elements.wald.intevation.org