Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/ReferenceCurveFacet.java @ 2283:d4330439be3a
Let reference curve calculation result in wwqq.
flys-artifacts/trunk@3945 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Tue, 07 Feb 2012 09:52:55 +0000 |
parents | dd93a8e1377a |
children | c5e4a2d67631 |
comparison
equal
deleted
inserted
replaced
2282:4d30e38600b8 | 2283:d4330439be3a |
---|---|
48 if (log.isDebugEnabled()) { | 48 if (log.isDebugEnabled()) { |
49 log.debug("Get data for reference curve at index: " + index + | 49 log.debug("Get data for reference curve at index: " + index + |
50 " /stateId: " + stateId); | 50 " /stateId: " + stateId); |
51 } | 51 } |
52 | 52 |
53 return getWW(artifact, context); | 53 return getWWQQ(artifact, context); |
54 } | 54 } |
55 | 55 |
56 protected WW getWW(Artifact artifact, CallContext context) { | 56 protected WWQQ getWWQQ(Artifact artifact, CallContext context) { |
57 FLYSArtifact winfo = (FLYSArtifact)artifact; | 57 FLYSArtifact winfo = (FLYSArtifact)artifact; |
58 | 58 |
59 CalculationResult res = (CalculationResult) | 59 CalculationResult res = (CalculationResult) |
60 winfo.compute(context, hash, stateId, type, false); | 60 winfo.compute(context, hash, stateId, type, false); |
61 | 61 |
62 return ((WW [])res.getData())[index]; | 62 return ((WWQQ [])res.getData())[index]; |
63 } | 63 } |
64 | 64 |
65 @Override | 65 @Override |
66 public void set(Facet other) { | 66 public void set(Facet other) { |
67 super.set(other); | 67 super.set(other); |
96 } | 96 } |
97 | 97 |
98 Object obj = context.getContextValue("reference.curve.axis.scale"); | 98 Object obj = context.getContextValue("reference.curve.axis.scale"); |
99 | 99 |
100 if (!(obj instanceof WWAxisTypes)) { | 100 if (!(obj instanceof WWAxisTypes)) { |
101 obj = new WWAxisTypes(getWW(artifact, context)); | 101 obj = new WWAxisTypes(getWWQQ(artifact, context)); |
102 } | 102 } |
103 else { | 103 else { |
104 ((WWAxisTypes)obj).classify(getWW(artifact, context)); | 104 ((WWAxisTypes)obj).classify(getWWQQ(artifact, context)); |
105 } | 105 } |
106 | 106 |
107 return obj; | 107 return obj; |
108 } | 108 } |
109 } | 109 } |