Mercurial > dive4elements > river
changeset 8216:cb25ea4d4551
We only need to know what's going on upstream.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Mon, 08 Sep 2014 12:25:47 +0200 |
parents | 204905c16ade |
children | ed8c1a0b4cfb |
files | artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadData.java |
diffstat | 1 files changed, 0 insertions(+), 20 deletions(-) [+] |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadData.java Mon Sep 08 12:21:32 2014 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadData.java Mon Sep 08 12:25:47 2014 +0200 @@ -221,7 +221,6 @@ private List<List<Value>> grainFractions; - private Station next; private Station prev; public Station() { @@ -259,14 +258,6 @@ return (this.type & type) != 0; } - public void setNext(Station next) { - this.next = next; - } - - public Station getNext() { - return next; - } - public void setPrev(Station prev) { this.prev = prev; } @@ -299,15 +290,6 @@ return a; } - public Station nextByType(int type) { - for (Station curr = this; curr != null; curr = curr.getNext()) { - if (curr.isType(type)) { - return curr; - } - } - return null; - } - public Station prevByType(int type) { for (Station curr = this; curr != null; curr = curr.getPrev()) { if (curr.isType(type)) { @@ -431,13 +413,11 @@ private void wireNeighbors(boolean kmUp) { if (kmUp) { for (int i = stations.length - 1; i > 0; --i) { - stations[i].setNext(stations[i-1]); stations[i-1].setPrev(stations[i]); } } else { for (int i = 1; i < stations.length; ++i) { - stations[i-1].setNext(stations[i]); stations[i].setPrev(stations[i-1]); } }