changeset 8209:5114b643a6d6

Fixed broken build.
author Sascha L. Teichmann <teichmann@intevation.de>
date Fri, 05 Sep 2014 18:30:20 +0200
parents 2badb2ca5f89
children 3bb00338228c
files artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadData.java
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadData.java	Fri Sep 05 18:23:36 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadData.java	Fri Sep 05 18:30:20 2014 +0200
@@ -61,6 +61,12 @@
         /* GF_BED_LOAD_SUSP_SAND */ Station.BED_LOAD
     };
 
+    public static final int measurementStationType(int grainFraction) {
+        return grainFraction < 0 || grainFraction >= MEASUREMENT_STATION_GF.length
+            ? Station.UNKNOWN
+            : MEASUREMENT_STATION_GF[grainFraction];
+    }
+
     public static final int grainFractionIndex(String name) {
         for (int i = 0; i < GF_NAMES.length; ++i) {
             if (GF_NAMES[i].equals(name)) {

http://dive4elements.wald.intevation.org