comparison artifacts/src/main/java/org/dive4elements/river/artifacts/SedimentYieldArtifact.java @ 7196:e6f9c831a75f

SedimentYieldArtifact: Removed unneeded documentation, removed but added one TODO.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Mon, 30 Sep 2013 06:58:09 +0200
parents 644b2f461272
children 63fd11f57379
comparison
equal deleted inserted replaced
7195:c0349b54c604 7196:e6f9c831a75f
34 import org.dive4elements.river.artifacts.model.FacetTypes; 34 import org.dive4elements.river.artifacts.model.FacetTypes;
35 35
36 import org.dive4elements.river.utils.Formatter; 36 import org.dive4elements.river.utils.Formatter;
37 37
38 38
39 /** Artifact to access sediment yield measurements (inspired from flow velocity artifact). */ 39 /** Artifact to access sediment yield measurements. */
40 public class SedimentYieldArtifact 40 public class SedimentYieldArtifact
41 extends StaticD4EArtifact 41 extends StaticD4EArtifact
42 implements FacetTypes 42 implements FacetTypes
43 { 43 {
44 /** The logger for this class. */ 44 /** The logger for this class. */
82 private Object getSedimentLoad() { 82 private Object getSedimentLoad() {
83 logger.debug("SedimentYieldArtifact.getSedimentLoad"); 83 logger.debug("SedimentYieldArtifact.getSedimentLoad");
84 String id = getDataAsString(DATA_NAME); 84 String id = getDataAsString(DATA_NAME);
85 String river = getDataAsString("river"); 85 String river = getDataAsString("river");
86 86
87 // TODO use cache if possible
87 SedimentLoad myLoad = SedimentLoadFactory.getSedimentLoadWithDataUncached(id, river); 88 SedimentLoad myLoad = SedimentLoadFactory.getSedimentLoadWithDataUncached(id, river);
88 return new CalculationResult( 89 return new CalculationResult(
89 new SedimentLoadResult[] { 90 new SedimentLoadResult[] {
90 new SedimentLoadResult(1983,2042,myLoad) 91 new SedimentLoadResult(1983,2042,myLoad)
91 }, new Calculation()); 92 }, new Calculation());
140 } 141 }
141 142
142 List<Facet> fs = new ArrayList<Facet>(); 143 List<Facet> fs = new ArrayList<Facet>();
143 String code = getDatacageIDValue(data); 144 String code = getDatacageIDValue(data);
144 145
145 // TODO need river, too.
146 //
147 if (code != null) { 146 if (code != null) {
148 String name = SedimentLoadFactory.getSedimentYieldDescription(Integer.valueOf(code)); 147 String name = SedimentLoadFactory.getSedimentYieldDescription(Integer.valueOf(code));
149 148
150 Facet facet = new SedimentLoadFacet( 149 Facet facet = new SedimentLoadFacet(
151 0, 150 0,

http://dive4elements.wald.intevation.org