comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/LocationDistanceSelect.java @ 689:f8ac04b2dbd0 facets-slt

Added two more compute() methods to ComputeCallback to distinguish between different phases of the artifact. flys-artifacts/branches/facets-slt@2129 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 16 Jun 2011 08:43:58 +0000
parents 06689035024c
children 22e4bffbe240
comparison
equal deleted inserted replaced
688:dc3613c4daf6 689:f8ac04b2dbd0
20 import de.intevation.flys.model.River; 20 import de.intevation.flys.model.River;
21 21
22 import de.intevation.flys.artifacts.FLYSArtifact; 22 import de.intevation.flys.artifacts.FLYSArtifact;
23 import de.intevation.flys.artifacts.WINFOArtifact; 23 import de.intevation.flys.artifacts.WINFOArtifact;
24 import de.intevation.flys.artifacts.model.ComputeCallback; 24 import de.intevation.flys.artifacts.model.ComputeCallback;
25 import de.intevation.flys.artifacts.model.ComputeCallbackAdapter;
25 import de.intevation.flys.artifacts.model.RiverFactory; 26 import de.intevation.flys.artifacts.model.RiverFactory;
26 import de.intevation.flys.artifacts.resources.Resources; 27 import de.intevation.flys.artifacts.resources.Resources;
27 28
28 /** 29 /**
29 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> 30 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
301 public ComputeCallback createComputeCallback( 302 public ComputeCallback createComputeCallback(
302 String hash, FLYSArtifact flys) 303 String hash, FLYSArtifact flys)
303 { 304 {
304 final WINFOArtifact winfo = (WINFOArtifact) flys; 305 final WINFOArtifact winfo = (WINFOArtifact) flys;
305 306
306 return new ComputeCallback() { 307 return new ComputeCallbackAdapter() {
307 public Object compute(List<Facet> facets) { 308
309 @Override
310 public Object computeFeed(List<Facet> facets) {
308 return winfo.getDischargeCurveData(); 311 return winfo.getDischargeCurveData();
309 } 312 }
310 }; 313 };
311 } 314 }
312 } 315 }

http://dive4elements.wald.intevation.org