diff artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepth/FlowDepthCalculation.java @ 8863:1009cab0f86b

Some work on flow depth exporter
author gernotbelger
date Fri, 19 Jan 2018 18:47:53 +0100
parents 7bbfb24e6eec
children 9f7a285b0ee3
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepth/FlowDepthCalculation.java	Fri Jan 19 18:47:18 2018 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepth/FlowDepthCalculation.java	Fri Jan 19 18:47:53 2018 +0100
@@ -40,6 +40,9 @@
 	
     public CalculationResult calculate(final SINFOArtifact sinfo) {
     	
+        // FIXME: find user of this artifact; probably only possible by selecting the collection that contains this artifact...
+        final String user = "unbekannt";
+        
     	/* access input data */
     	final FlowDepthAccess access = new FlowDepthAccess(sinfo);
     	final River river = access.getRiver();
@@ -57,7 +60,10 @@
     	final List<Gauge> gauges = river.determineGauges(from, to);
     	final GaugeIndex gaugeIndex = new GaugeIndex(gauges);
 
-    	final FlowDepthCalculationResults results = new FlowDepthCalculationResults(river, from, to, useTkh);
+    	final String calcModeLabel = Resources.getMsg(context.getMeta(),sinfo.getCalculationMode().name() );
+    	
+    	
+        final FlowDepthCalculationResults results = new FlowDepthCalculationResults(calcModeLabel, user, river, from, to, useTkh);
 
     	for (final DifferencesPair diffPair : diffPairs) {
     		final FlowDepthCalculationResult result = calculateResult( river, from, to, diffPair, problems, gaugeIndex );

http://dive4elements.wald.intevation.org