[PATCH 1 of 3] issue1020: Handle FixRealizingResult for UESK waterlevel-selection

Wald Commits scm-commit at wald.intevation.org
Tue Dec 3 15:09:07 CET 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1386069903 -3600
# Node ID 003502ea4854663bda2cbdc4108544ae624064a0
# Parent  0426c1efd68039d78d722f11c666d0565ad89651
issue1020: Handle FixRealizingResult for UESK waterlevel-selection.

diff -r 0426c1efd680 -r 003502ea4854 artifacts/src/main/java/org/dive4elements/river/artifacts/states/WaterlevelSelectState.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/states/WaterlevelSelectState.java	Tue Dec 03 12:55:17 2013 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/states/WaterlevelSelectState.java	Tue Dec 03 12:25:03 2013 +0100
@@ -24,6 +24,7 @@
 import org.dive4elements.river.artifacts.model.CalculationResult;
 import org.dive4elements.river.artifacts.model.WQKms;
 import org.dive4elements.river.artifacts.model.extreme.ExtremeResult;
+import org.dive4elements.river.artifacts.model.fixings.FixRealizingResult;
 import org.dive4elements.river.artifacts.resources.Resources;
 import org.dive4elements.river.utils.RiverUtils;
 import org.dive4elements.river.utils.StringUtil;
@@ -142,6 +143,9 @@
             if (calcResult.getData() instanceof ExtremeResult) {
                 wqkms = ((ExtremeResult) calcResult.getData()).getWQKms();
             }
+            else if (calcResult.getData() instanceof FixRealizingResult) {
+                wqkms = ((FixRealizingResult) calcResult.getData()).getWQKms();
+            }
             else {
                 wqkms = (WQKms[]) calcResult.getData();
             }


More information about the Dive4elements-commits mailing list