Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedloadDiameterDataFacet.java @ 6357:673e146e7793
Fixed bed quality data facet index to get the correct diameter.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Tue, 18 Jun 2013 09:09:08 +0200 |
parents | 947434874937 |
children | a56fe3bc6700 |
comparison
equal
deleted
inserted
replaced
6356:4c791a458305 | 6357:673e146e7793 |
---|---|
33 | 33 |
34 public Object getData(Artifact artifact, CallContext context) { | 34 public Object getData(Artifact artifact, CallContext context) { |
35 D4EArtifact d4e = (D4EArtifact) artifact; | 35 D4EArtifact d4e = (D4EArtifact) artifact; |
36 BedQualityAccess access = new BedQualityAccess(d4e, context); | 36 BedQualityAccess access = new BedQualityAccess(d4e, context); |
37 int ndx = getIndex() & 7; | 37 int ndx = getIndex() & 7; |
38 int diam = (getIndex() >> 3); | 38 int diam = (getIndex() >> 4); |
39 String diameter = ""; | 39 String diameter = ""; |
40 switch (diam) { | 40 switch (diam) { |
41 case 1: diameter = "d10"; break; | 41 case 1: diameter = "d10"; break; |
42 case 2: diameter = "d16"; break; | 42 case 2: diameter = "d16"; break; |
43 case 3: diameter = "d20"; break; | 43 case 3: diameter = "d20"; break; |