Mercurial > dive4elements > river
changeset 8218:ed8c1a0b4cfb
Merged
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Mon, 08 Sep 2014 12:28:16 +0200 |
parents | a12e0245643b (current diff) cb25ea4d4551 (diff) |
children | 9667900536b6 |
files | |
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:27:55 2014 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadData.java Mon Sep 08 12:28:16 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]); } }