Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WaterlevelFacet.java @ 2125:7a8f52267a5c
Fix stateId/hash assignment in WaterlevelFacet.
flys-artifacts/trunk@3695 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Tue, 17 Jan 2012 09:00:30 +0000 |
parents | 81312f84689a |
children | 5f3726f31f00 |
comparison
equal
deleted
inserted
replaced
2124:a202a9e048a5 | 2125:7a8f52267a5c |
---|---|
30 ComputeType type, | 30 ComputeType type, |
31 String stateID, | 31 String stateID, |
32 String hash | 32 String hash |
33 | 33 |
34 ) { | 34 ) { |
35 super(index, name, description, type, stateID, hash); | 35 super(index, name, description, type, hash, stateID); |
36 } | 36 } |
37 | 37 |
38 public WaterlevelFacet() { | 38 public WaterlevelFacet() { |
39 } | 39 } |
40 | 40 |
42 /** | 42 /** |
43 * Get waterlevel data. | 43 * Get waterlevel data. |
44 * @return a WQKms at given index. | 44 * @return a WQKms at given index. |
45 */ | 45 */ |
46 public Object getData(Artifact artifact, CallContext context) { | 46 public Object getData(Artifact artifact, CallContext context) { |
47 logger.debug("Get data for waterlevels at index: " + index); | 47 logger.debug("Get data for waterlevels at index: " + index + |
48 " /stateId: " + stateId); | |
48 | 49 |
49 FLYSArtifact winfo = (FLYSArtifact)artifact; | 50 FLYSArtifact winfo = (FLYSArtifact)artifact; |
50 | 51 |
51 CalculationResult res = (CalculationResult) | 52 CalculationResult res = (CalculationResult) |
52 winfo.compute(context, hash, stateId, type, false); | 53 winfo.compute(context, hash, stateId, type, false); |
61 @Override | 62 @Override |
62 public Facet deepCopy() { | 63 public Facet deepCopy() { |
63 WaterlevelFacet copy = new WaterlevelFacet(); | 64 WaterlevelFacet copy = new WaterlevelFacet(); |
64 copy.set(this); | 65 copy.set(this); |
65 copy.type = type; | 66 copy.type = type; |
67 copy.hash = hash; | |
66 copy.stateId = stateId; | 68 copy.stateId = stateId; |
67 copy.hash = hash; | |
68 return copy; | 69 return copy; |
69 } | 70 } |
70 } | 71 } |
71 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 72 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |