Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/artifacts/model/WstLine.java @ 7604:05549a84ee83
(issue1620) Add export of official lines in WST as specified
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Wed, 27 Nov 2013 16:21:00 +0100 |
parents | af13ceeba52a |
children | b45f6c0b0ba4 |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/WstLine.java Mon Nov 25 17:40:47 2013 +0100 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/WstLine.java Wed Nov 27 16:21:00 2013 +0100 @@ -73,6 +73,16 @@ return ws.size() > idx ? ws.get(idx) : -1d; } + /** + * Returns the W value at index <i>idx</i> of this line. + * + * @param idx The position of the desired W value. + * + * @return the W at position <i>idx</i>. + */ + public double getQ(int idx) { + return qs.size() > idx ? qs.get(idx) : -1d; + } /** * Returns the Q values of this line.