Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/FlowVelocityFacet.java @ 5867:59ff03ff48f1
River artifacts: Renamed FLYSArtifact(Collection) to D4EArtifact(Collection).
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Sun, 28 Apr 2013 15:23:01 +0200 |
parents | 4897a58c8746 |
children | af13ceeba52a |
comparison
equal
deleted
inserted
replaced
5866:9a6741ccf6d4 | 5867:59ff03ff48f1 |
---|---|
11 import org.dive4elements.artifactdatabase.state.Facet; | 11 import org.dive4elements.artifactdatabase.state.Facet; |
12 | 12 |
13 import org.dive4elements.artifacts.Artifact; | 13 import org.dive4elements.artifacts.Artifact; |
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.D4EArtifact; |
17 | 17 |
18 import org.dive4elements.river.artifacts.states.DefaultState.ComputeType; | 18 import org.dive4elements.river.artifacts.states.DefaultState.ComputeType; |
19 | 19 |
20 import org.apache.log4j.Logger; | 20 import org.apache.log4j.Logger; |
21 | 21 |
44 | 44 |
45 | 45 |
46 public Object getData(Artifact artifact, CallContext context) { | 46 public Object getData(Artifact artifact, CallContext context) { |
47 logger.debug("Get data for flow velocity at index: " + index); | 47 logger.debug("Get data for flow velocity at index: " + index); |
48 | 48 |
49 FLYSArtifact flys = (FLYSArtifact) artifact; | 49 D4EArtifact flys = (D4EArtifact) artifact; |
50 | 50 |
51 CalculationResult res = (CalculationResult) | 51 CalculationResult res = (CalculationResult) |
52 flys.compute(context, hash, stateId, type, false); | 52 flys.compute(context, hash, stateId, type, false); |
53 | 53 |
54 FlowVelocityData[] data = (FlowVelocityData[]) res.getData(); | 54 FlowVelocityData[] data = (FlowVelocityData[]) res.getData(); |