Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/fixings/FixReferenceEventsFacet.java @ 3062:7660cfe5e8f6
FixWQCurveGenerator can generate charts from Fix*-Facets (in theory and not complete)
flys-artifacts/trunk@4642 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Christian Lins <christian.lins@intevation.de> |
---|---|
date | Tue, 12 Jun 2012 12:40:44 +0000 |
parents | 22da13d1b180 |
children | dc2765e31e1f |
comparison
equal
deleted
inserted
replaced
3061:49baebb39305 | 3062:7660cfe5e8f6 |
---|---|
70 | 70 |
71 FixResult result = (FixResult) res.getData(); | 71 FixResult result = (FixResult) res.getData(); |
72 | 72 |
73 double km = access.getCurrentKm(); | 73 double km = access.getCurrentKm(); |
74 KMIndex<QW []> kmQWs = result.getReferenced(); | 74 KMIndex<QW []> kmQWs = result.getReferenced(); |
75 | 75 KMIndex.Entry<QW []> kmQWsEntry = kmQWs.binarySearch(km); |
76 QW[] qws = kmQWs.binarySearch(km).getValue(); | 76 QW[] qws = null; |
77 if (qws == null) { | 77 if (kmQWsEntry != null) { |
78 return null; | 78 qws = kmQWsEntry.getValue(); |
79 } | 79 } |
80 return qws; | 80 return qws; |
81 } | 81 } |
82 else { | 82 else { |
83 logger.debug("Not an instance of FixationArtifact."); | 83 logger.debug("Not an instance of FixationArtifact."); |