Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/states/FlowVelocityState.java @ 8202:e4606eae8ea5
sed src/**/*.java 's/logger/log/g'
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Fri, 05 Sep 2014 12:58:17 +0200 |
parents | e0219f4079a8 |
children | 5e38e2924c07 |
comparison
equal
deleted
inserted
replaced
8201:4b8c5a08de04 | 8202:e4606eae8ea5 |
---|---|
32 | 32 |
33 | 33 |
34 /* State in which flow velocities can/will be calculated. */ | 34 /* State in which flow velocities can/will be calculated. */ |
35 public class FlowVelocityState extends DefaultState implements FacetTypes { | 35 public class FlowVelocityState extends DefaultState implements FacetTypes { |
36 | 36 |
37 private static Logger logger = Logger.getLogger(FlowVelocityState.class); | 37 private static Logger log = Logger.getLogger(FlowVelocityState.class); |
38 | 38 |
39 public static final String I18N_MAINCHANNEL_FACET = | 39 public static final String I18N_MAINCHANNEL_FACET = |
40 "facet.flow_velocity.mainchannel"; | 40 "facet.flow_velocity.mainchannel"; |
41 | 41 |
42 public static final String I18N_TOTALCHANNEL_FACET = | 42 public static final String I18N_TOTALCHANNEL_FACET = |
64 String hash, | 64 String hash, |
65 CallContext context, | 65 CallContext context, |
66 List<Facet> facets, | 66 List<Facet> facets, |
67 Object old | 67 Object old |
68 ) { | 68 ) { |
69 logger.debug("FlowVelocityState.computeAdvance"); | 69 log.debug("FlowVelocityState.computeAdvance"); |
70 | 70 |
71 List<Facet> newFacets = new ArrayList<Facet>(); | 71 List<Facet> newFacets = new ArrayList<Facet>(); |
72 | 72 |
73 FlowVelocityAccess access = new FlowVelocityAccess(artifact); | 73 FlowVelocityAccess access = new FlowVelocityAccess(artifact); |
74 | 74 |
80 return res; | 80 return res; |
81 } | 81 } |
82 | 82 |
83 FlowVelocityData[] data = (FlowVelocityData[]) res.getData(); | 83 FlowVelocityData[] data = (FlowVelocityData[]) res.getData(); |
84 | 84 |
85 logger.debug("Calculated " + data.length + " FlowVelocityData objects"); | 85 log.debug("Calculated " + data.length + " FlowVelocityData objects"); |
86 | 86 |
87 String id = getID(); | 87 String id = getID(); |
88 int idx = 0; | 88 int idx = 0; |
89 | 89 |
90 for (FlowVelocityData d: data) { | 90 for (FlowVelocityData d: data) { |
210 | 210 |
211 // TODO ADD PDF FACET | 211 // TODO ADD PDF FACET |
212 | 212 |
213 newFacets.add(csv); | 213 newFacets.add(csv); |
214 | 214 |
215 logger.debug("Created " + newFacets.size() + " new Facets."); | 215 log.debug("Created " + newFacets.size() + " new Facets."); |
216 | 216 |
217 facets.addAll(newFacets); | 217 facets.addAll(newFacets); |
218 | 218 |
219 return res; | 219 return res; |
220 } | 220 } |