Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadData.java @ 8041:01ad09af0975
Sediment load: Recognize grain fractions 'total', 'bed_load' and 'suspended_load' from pre-calculations.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Wed, 16 Jul 2014 17:09:02 +0200 |
parents | f1500a524b76 |
children | 86fa217c24d5 |
comparison
equal
deleted
inserted
replaced
8040:f1500a524b76 | 8041:01ad09af0975 |
---|---|
17 | 17 |
18 import org.dive4elements.river.utils.EpsilonComparator; | 18 import org.dive4elements.river.utils.EpsilonComparator; |
19 | 19 |
20 public class SedimentLoadData implements Serializable | 20 public class SedimentLoadData implements Serializable |
21 { | 21 { |
22 public static final int GF_UNKNOWN = -1; | 22 public static final int GF_UNKNOWN = -1; |
23 public static final int GF_COARSE = 0; | 23 public static final int GF_COARSE = 0; |
24 public static final int GF_FINE_MIDDLE = 1; | 24 public static final int GF_FINE_MIDDLE = 1; |
25 public static final int GF_SAND = 2; | 25 public static final int GF_SAND = 2; |
26 public static final int GF_SUSP_SAND = 3; | 26 public static final int GF_SUSP_SAND = 3; |
27 public static final int GF_SUSP_SAND_BED = 4; | 27 public static final int GF_SUSP_SAND_BED = 4; |
28 public static final int GF_SUSP_SEDIMENT = 5; | 28 public static final int GF_SUSP_SEDIMENT = 5; |
29 public static final int GF_MAX = 5; | 29 public static final int GF_TOTAL = 6; |
30 public static final int GF_BED_LOAD = 7; | |
31 public static final int GF_SUSPENDED_LOAD = 8; | |
32 public static final int GF_MAX = 8; | |
30 | 33 |
31 public static final int grainFractionIndex(String name) { | 34 public static final int grainFractionIndex(String name) { |
32 if ("coarse".equals(name)) return GF_COARSE; | 35 if ("coarse".equals(name)) return GF_COARSE; |
33 if ("fine_middle".equals(name)) return GF_FINE_MIDDLE; | 36 if ("fine_middle".equals(name)) return GF_FINE_MIDDLE; |
34 if ("sand".equals(name)) return GF_SAND; | 37 if ("sand".equals(name)) return GF_SAND; |
35 if ("susp_sand".equals(name)) return GF_SUSP_SAND; | 38 if ("susp_sand".equals(name)) return GF_SUSP_SAND; |
36 if ("susp_sand_bed".equals(name)) return GF_SUSP_SAND_BED; | 39 if ("susp_sand_bed".equals(name)) return GF_SUSP_SAND_BED; |
37 if ("suspended_sediment".equals(name)) return GF_SUSP_SEDIMENT; | 40 if ("suspended_sediment".equals(name)) return GF_SUSP_SEDIMENT; |
41 if ("total".equals(name)) return GF_TOTAL; | |
42 if ("bed_load".equals(name)) return GF_BED_LOAD; | |
43 if ("suspended_load".equals(name)) return GF_SUSPENDED_LOAD; | |
38 return GF_UNKNOWN; | 44 return GF_UNKNOWN; |
39 } | 45 } |
40 | 46 |
41 public interface Visitor { | 47 public interface Visitor { |
42 void visit(Station station); | 48 void visit(Station station); |