Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/fixings/FixOutlierFacet.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 |
---|---|
66 FixResult result = (FixResult) res.getData(); | 66 FixResult result = (FixResult) res.getData(); |
67 | 67 |
68 double km = access.getCurrentKm(); | 68 double km = access.getCurrentKm(); |
69 KMIndex<QW []> kmQWs = result.getOutliers(); | 69 KMIndex<QW []> kmQWs = result.getOutliers(); |
70 | 70 |
71 QW[] qws = kmQWs.binarySearch(km).getValue(); | 71 KMIndex.Entry<QW []> qwsEntry = kmQWs.binarySearch(km); |
72 if (qws == null) { | 72 QW[] qws = null; |
73 return null; | 73 if(qwsEntry != null) { |
74 qws = qwsEntry.getValue(); | |
74 } | 75 } |
75 return qws; | 76 return qws; |
76 } | 77 } |
77 else { | 78 else { |
78 logger.debug("Not an instance of FixationArtifact."); | 79 logger.debug("Not an instance of FixationArtifact."); |