Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/SedimentYieldArtifact.java @ 8024:963ede7b32bb
Renamed SedimentLoad to SedimentLoadLSData to make place for SedimentLoad in backend.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Wed, 09 Jul 2014 17:33:57 +0200 |
parents | 8d5ca5175038 |
children |
comparison
equal
deleted
inserted
replaced
8023:f7f86f4e4c8d | 8024:963ede7b32bb |
---|---|
25 import org.dive4elements.artifacts.CallMeta; | 25 import org.dive4elements.artifacts.CallMeta; |
26 import org.dive4elements.artifacts.common.utils.XMLUtils; | 26 import org.dive4elements.artifacts.common.utils.XMLUtils; |
27 import org.dive4elements.river.artifacts.states.DefaultState.ComputeType; | 27 import org.dive4elements.river.artifacts.states.DefaultState.ComputeType; |
28 import org.dive4elements.river.artifacts.model.Calculation; | 28 import org.dive4elements.river.artifacts.model.Calculation; |
29 import org.dive4elements.river.artifacts.model.CalculationResult; | 29 import org.dive4elements.river.artifacts.model.CalculationResult; |
30 import org.dive4elements.river.artifacts.model.minfo.SedimentLoad; | 30 import org.dive4elements.river.artifacts.model.minfo.SedimentLoadLSData; |
31 import org.dive4elements.river.artifacts.model.minfo.SedimentLoadFacet; | 31 import org.dive4elements.river.artifacts.model.minfo.SedimentLoadFacet; |
32 import org.dive4elements.river.artifacts.model.minfo.SedimentLoadFactory; | 32 import org.dive4elements.river.artifacts.model.minfo.SedimentLoadFactory; |
33 import org.dive4elements.river.artifacts.model.minfo.SedimentLoadResult; | 33 import org.dive4elements.river.artifacts.model.minfo.SedimentLoadResult; |
34 import org.dive4elements.river.artifacts.resources.Resources; | 34 import org.dive4elements.river.artifacts.resources.Resources; |
35 import org.dive4elements.river.artifacts.states.StaticState; | 35 import org.dive4elements.river.artifacts.states.StaticState; |
85 logger.debug("SedimentYieldArtifact.getSedimentLoad"); | 85 logger.debug("SedimentYieldArtifact.getSedimentLoad"); |
86 String id = getDataAsString(DATA_NAME); | 86 String id = getDataAsString(DATA_NAME); |
87 String river = getDataAsString("river"); | 87 String river = getDataAsString("river"); |
88 | 88 |
89 // TODO use cache if possible | 89 // TODO use cache if possible |
90 SedimentLoad myLoad = SedimentLoadFactory.getSedimentLoadWithDataUncached(id, river); | 90 SedimentLoadLSData myLoad = SedimentLoadFactory.getSedimentLoadWithDataUncached(id, river); |
91 return new CalculationResult( | 91 return new CalculationResult( |
92 new SedimentLoadResult[] { | 92 new SedimentLoadResult[] { |
93 new SedimentLoadResult(1983,2042,myLoad) | 93 new SedimentLoadResult(1983,2042,myLoad) |
94 }, new Calculation()); | 94 }, new Calculation()); |
95 } | 95 } |