Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadDataFactory.java @ 8034:b6e7cfcabf2c
Wire the neighbors to the measurement stations together. This eases the lookup for same types (suspended or bed load).
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Tue, 15 Jul 2014 18:52:22 +0200 |
parents | 5e3f4b4fcb28 |
children | 3a769d5fb733 |
comparison
equal
deleted
inserted
replaced
8033:5e3f4b4fcb28 | 8034:b6e7cfcabf2c |
---|---|
155 station.addValue( | 155 station.addValue( |
156 grainFractionIndex, | 156 grainFractionIndex, |
157 new SedimentLoadData.Value(load, slv_value)); | 157 new SedimentLoadData.Value(load, slv_value)); |
158 } | 158 } |
159 | 159 |
160 SedimentLoadData sld = new SedimentLoadData(); | 160 SedimentLoadData sld = new SedimentLoadData(id2station.values()); |
161 | |
162 for (SedimentLoadData.Station station: id2station.values()) { | |
163 sld.addStation(station); | |
164 } | |
165 | 161 |
166 return sld; | 162 return sld; |
167 } | 163 } |
168 } | 164 } |
169 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 165 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |