Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/MiddleBedHeight.java @ 2715:250a370c377d
Added chart generator for middle bed height charts.
flys-artifacts/trunk@4441 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 18 May 2012 11:58:38 +0000 |
parents | b60751cfdd6c |
children | b888c5eb65b3 |
comparison
equal
deleted
inserted
replaced
2714:2952f6dee5cf | 2715:250a370c377d |
---|---|
50 | 50 |
51 String id = getID(); | 51 String id = getID(); |
52 int idx = 0; | 52 int idx = 0; |
53 | 53 |
54 for (MiddleBedHeightData d: data) { | 54 for (MiddleBedHeightData d: data) { |
55 newFacets.add(new MiddleBedHeightFacet( | 55 if (d.getStartYear() == d.getEndYear()) { |
56 idx, | 56 newFacets.add(new MiddleBedHeightFacet( |
57 MIDDLE_BED_HEIGHT, | 57 idx, |
58 buildMiddleBedHeightName(artifact, context, d), | 58 MIDDLE_BED_HEIGHT_SINGLE, |
59 ComputeType.ADVANCE, | 59 d.getSoundingName(context), |
60 id, | 60 ComputeType.ADVANCE, |
61 hash | 61 id, |
62 )); | 62 hash |
63 )); | |
64 } | |
65 else { | |
66 newFacets.add(new MiddleBedHeightFacet( | |
67 idx, | |
68 MIDDLE_BED_HEIGHT_EPOCH, | |
69 d.getSoundingName(context), | |
70 ComputeType.ADVANCE, | |
71 id, | |
72 hash | |
73 )); | |
74 } | |
63 | 75 |
64 idx++; | 76 idx++; |
65 } | 77 } |
66 | 78 |
67 Facet csv = new DataFacet( | 79 Facet csv = new DataFacet( |
75 | 87 |
76 facets.addAll(newFacets); | 88 facets.addAll(newFacets); |
77 | 89 |
78 return res; | 90 return res; |
79 } | 91 } |
80 | |
81 | |
82 protected String buildMiddleBedHeightName( | |
83 FLYSArtifact artifact, | |
84 CallContext cc, | |
85 MiddleBedHeightData data | |
86 ) { | |
87 logger.error("TODO: Implement buildMiddleBedHeightName"); | |
88 return "TODO: Implement buildMiddleBedHeightName"; | |
89 } | |
90 } | 92 } |
91 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 93 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |