Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/fixings/FixReferenceEventsFacet.java @ 3128:1dd6f30b0a76
FixA: Changed data type from QW[] to QWD[] to have delta Ws in reference events.
flys-artifacts/trunk@4729 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 20 Jun 2012 15:24:01 +0000 |
parents | d7b0f52d6d04 |
children | 1b9f791937c3 |
comparison
equal
deleted
inserted
replaced
3127:71484036b6ae | 3128:1dd6f30b0a76 |
---|---|
72 double currentKm = | 72 double currentKm = |
73 ((Double)context.getContextValue("currentKm")).doubleValue(); | 73 ((Double)context.getContextValue("currentKm")).doubleValue(); |
74 | 74 |
75 KMIndex<QWD []> kmQWs = result.getReferenced(); | 75 KMIndex<QWD []> kmQWs = result.getReferenced(); |
76 KMIndex.Entry<QWD []> kmQWsEntry = kmQWs.binarySearch(currentKm); | 76 KMIndex.Entry<QWD []> kmQWsEntry = kmQWs.binarySearch(currentKm); |
77 QW[] qws = null; | 77 QWD[] qwds = null; |
78 if (kmQWsEntry != null) { | 78 if (kmQWsEntry != null) { |
79 qws = kmQWsEntry.getValue(); | 79 qwds = kmQWsEntry.getValue(); |
80 } | 80 } |
81 return qws; | 81 return qwds; |
82 } | 82 } |
83 else { | 83 else { |
84 logger.debug("Not an instance of FixationArtifact."); | 84 logger.debug("Not an instance of FixationArtifact."); |
85 return null; | 85 return null; |
86 } | 86 } |