Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/FlowVelocityFilterFacet.java @ 5866:9a6741ccf6d4
FLYS artifacts: Renamed FLYSContext(Factory) to RiverContext(Factory).
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Sun, 28 Apr 2013 15:14:30 +0200 |
parents | 4897a58c8746 |
children | 59ff03ff48f1 |
comparison
equal
deleted
inserted
replaced
5865:73da40528cf2 | 5866:9a6741ccf6d4 |
---|---|
14 import org.dive4elements.artifacts.CallContext; | 14 import org.dive4elements.artifacts.CallContext; |
15 | 15 |
16 import org.dive4elements.river.artifacts.FLYSArtifact; | 16 import org.dive4elements.river.artifacts.FLYSArtifact; |
17 | 17 |
18 import org.dive4elements.river.artifacts.access.RiverAccess; | 18 import org.dive4elements.river.artifacts.access.RiverAccess; |
19 import org.dive4elements.river.artifacts.context.FLYSContext; | 19 import org.dive4elements.river.artifacts.context.RiverContext; |
20 | 20 |
21 import org.dive4elements.river.artifacts.math.MovingAverage; | 21 import org.dive4elements.river.artifacts.math.MovingAverage; |
22 import org.dive4elements.river.artifacts.states.DefaultState.ComputeType; | 22 import org.dive4elements.river.artifacts.states.DefaultState.ComputeType; |
23 | 23 |
24 import org.apache.log4j.Logger; | 24 import org.apache.log4j.Logger; |
57 CalculationResult res = (CalculationResult) | 57 CalculationResult res = (CalculationResult) |
58 flys.compute(context, hash, stateId, type, false); | 58 flys.compute(context, hash, stateId, type, false); |
59 | 59 |
60 FlowVelocityData[] data = (FlowVelocityData[]) res.getData(); | 60 FlowVelocityData[] data = (FlowVelocityData[]) res.getData(); |
61 if(start != null && end != null) { | 61 if(start != null && end != null) { |
62 FLYSContext fc = (FLYSContext)context.globalContext(); | 62 RiverContext fc = (RiverContext)context.globalContext(); |
63 ZoomScale scales = (ZoomScale)fc.get("zoomscale"); | 63 ZoomScale scales = (ZoomScale)fc.get("zoomscale"); |
64 RiverAccess access = new RiverAccess((FLYSArtifact)artifact); | 64 RiverAccess access = new RiverAccess((FLYSArtifact)artifact); |
65 String river = access.getRiver(); | 65 String river = access.getRiver(); |
66 | 66 |
67 double radius = scales.getRadius(river, start, end); | 67 double radius = scales.getRadius(river, start, end); |