Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadFraction.java @ 7014:56891f61e534
issue1465: Adjust to new use of NaN instead of 0.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Fri, 13 Sep 2013 16:10:10 +0200 |
parents | 9f45c17e8fda |
children | a9ff696c2d18 |
comparison
equal
deleted
inserted
replaced
7013:998a9710007e | 7014:56891f61e534 |
---|---|
211 } | 211 } |
212 | 212 |
213 /** Returns true if all fraction needed for total calculation are set. */ | 213 /** Returns true if all fraction needed for total calculation are set. */ |
214 public boolean isComplete() { | 214 public boolean isComplete() { |
215 return | 215 return |
216 getCoarse() != 0d && | 216 getCoarse() != Double.NaN && |
217 getFineMiddle() != 0d && | 217 getFineMiddle() != Double.NaN && |
218 getSand() != 0d && | 218 getSand() != Double.NaN && |
219 getSuspSand() != 0d && | 219 getSuspSand() != Double.NaN && |
220 getSuspSediment() != 0d; | 220 getSuspSediment() != Double.NaN; |
221 } | 221 } |
222 } | 222 } |
223 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 : | 223 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 : |