Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/minfo/BedParametersResult.java @ 3784:9f9d5ada96ca
Merged revisions 5498-5499 via svnmerge from
file:///home/clients/bsh/bsh-generischer-viewer/Material/SVN/flys-artifacts/trunk
........
r5498 | rrenkert | 2012-09-17 16:38:47 +0200 (Mo, 17 Sep 2012) | 3 lines
Refactor MINFO bed quality resultsets and facets.
........
r5499 | rrenkert | 2012-09-17 16:47:05 +0200 (Mo, 17 Sep 2012) | 2 lines
Fixed date range in minfo bed quality result.
........
flys-artifacts/tags/2.9.1@5530 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Wed, 19 Sep 2012 14:56:13 +0000 |
parents | |
children | a5f65e8983be |
comparison
equal
deleted
inserted
replaced
3783:4a973fa25125 | 3784:9f9d5ada96ca |
---|---|
1 package de.intevation.flys.artifacts.model.minfo; | |
2 | |
3 import gnu.trove.TDoubleArrayList; | |
4 | |
5 import java.io.Serializable; | |
6 | |
7 | |
8 public class BedParametersResult | |
9 implements Serializable | |
10 { | |
11 protected TDoubleArrayList porosityCap; | |
12 protected TDoubleArrayList porositySub; | |
13 protected TDoubleArrayList loadDensityCap; | |
14 protected TDoubleArrayList loadDensitySub; | |
15 protected TDoubleArrayList kms; | |
16 | |
17 public BedParametersResult() { | |
18 | |
19 } | |
20 | |
21 public BedParametersResult( | |
22 TDoubleArrayList kms, | |
23 TDoubleArrayList porosityCap, | |
24 TDoubleArrayList porositySub, | |
25 TDoubleArrayList densityCap, | |
26 TDoubleArrayList densitySub | |
27 ) { | |
28 this.kms = kms; | |
29 this.porosityCap = porosityCap; | |
30 this.porositySub = porositySub; | |
31 this.loadDensityCap = densityCap; | |
32 this.loadDensitySub = densitySub; | |
33 } | |
34 | |
35 public double getPorosityCap(int ndx) { | |
36 return porosityCap.get(ndx); | |
37 } | |
38 | |
39 public double getPorositySub(int ndx) { | |
40 return porositySub.get(ndx); | |
41 } | |
42 | |
43 public double getLoadDensityCap(int ndx) { | |
44 return loadDensityCap.get(ndx); | |
45 } | |
46 | |
47 public double getLoadDensitySub(int ndx) { | |
48 return loadDensitySub.get(ndx); | |
49 } | |
50 | |
51 public double[][] getPorosityCapData() { | |
52 return new double[][] { | |
53 kms.toNativeArray(), | |
54 porosityCap.toNativeArray() | |
55 }; | |
56 } | |
57 | |
58 public double[][] getPorositySubData() { | |
59 return new double[][] { | |
60 kms.toNativeArray(), | |
61 porositySub.toNativeArray() | |
62 }; | |
63 } | |
64 | |
65 public double[][] getDensityCapData() { | |
66 return new double[][] { | |
67 kms.toNativeArray(), | |
68 loadDensityCap.toNativeArray() | |
69 }; | |
70 } | |
71 | |
72 public double[][] getDensitySubData() { | |
73 return new double[][] { | |
74 kms.toNativeArray(), | |
75 loadDensitySub.toNativeArray() | |
76 }; | |
77 } | |
78 } |