Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/minfo/SedimentLoadResult.java @ 5790:005c989c469c
Doc.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Tue, 23 Apr 2013 10:48:26 +0200 |
parents | f55c410c2d2b |
children |
comparison
equal
deleted
inserted
replaced
5789:62ac8fa61780 | 5790:005c989c469c |
---|---|
5 import java.io.Serializable; | 5 import java.io.Serializable; |
6 import java.util.Set; | 6 import java.util.Set; |
7 | 7 |
8 import org.apache.log4j.Logger; | 8 import org.apache.log4j.Logger; |
9 | 9 |
10 | |
11 /** Result from a SedimentLoadCalculation. */ | |
10 public class SedimentLoadResult | 12 public class SedimentLoadResult |
11 implements Serializable | 13 implements Serializable |
12 { | 14 { |
13 private static final Logger logger = Logger | 15 private static final Logger logger = Logger |
14 .getLogger(SedimentLoadResult.class); | 16 .getLogger(SedimentLoadResult.class); |
59 k.toNativeArray(), | 61 k.toNativeArray(), |
60 total.toNativeArray() | 62 total.toNativeArray() |
61 }; | 63 }; |
62 } | 64 } |
63 | 65 |
66 /** Search all SedimenLoads fractions for sand and returns | |
67 * an array [[km1, km2][sand1, sand2]]. */ | |
64 public double[][] getSandData() { | 68 public double[][] getSandData() { |
65 Set<Double> kms = this.load.getKms(); | 69 Set<Double> kms = this.load.getKms(); |
66 TDoubleArrayList k = new TDoubleArrayList(); | 70 TDoubleArrayList k = new TDoubleArrayList(); |
67 TDoubleArrayList sand = new TDoubleArrayList(); | 71 TDoubleArrayList sand = new TDoubleArrayList(); |
68 for(double km : kms) { | 72 for(double km : kms) { |