Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadData.java @ 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 |
comparison
equal
deleted
inserted
replaced
8208:2badb2ca5f89 | 8209:5114b643a6d6 |
---|---|
58 /* GF_SUSP_SEDIMENT */ Station.SUSPENDED, | 58 /* GF_SUSP_SEDIMENT */ Station.SUSPENDED, |
59 /* GF_TOTAL */ Station.BED_LOAD|Station.SUSPENDED, | 59 /* GF_TOTAL */ Station.BED_LOAD|Station.SUSPENDED, |
60 /* GF_BED_LOAD */ Station.BED_LOAD, | 60 /* GF_BED_LOAD */ Station.BED_LOAD, |
61 /* GF_BED_LOAD_SUSP_SAND */ Station.BED_LOAD | 61 /* GF_BED_LOAD_SUSP_SAND */ Station.BED_LOAD |
62 }; | 62 }; |
63 | |
64 public static final int measurementStationType(int grainFraction) { | |
65 return grainFraction < 0 || grainFraction >= MEASUREMENT_STATION_GF.length | |
66 ? Station.UNKNOWN | |
67 : MEASUREMENT_STATION_GF[grainFraction]; | |
68 } | |
63 | 69 |
64 public static final int grainFractionIndex(String name) { | 70 public static final int grainFractionIndex(String name) { |
65 for (int i = 0; i < GF_NAMES.length; ++i) { | 71 for (int i = 0; i < GF_NAMES.length; ++i) { |
66 if (GF_NAMES[i].equals(name)) { | 72 if (GF_NAMES[i].equals(name)) { |
67 return i; | 73 return i; |