Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/minfo/BedQualityDiameterResult.java @ 3867:d8c99ff18db8
Refactor MINFO bed quality resultsets and facets.
flys-artifacts/trunk@5498 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Mon, 17 Sep 2012 14:38:47 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
3866:2e83ed94c513 | 3867:d8c99ff18db8 |
---|---|
1 package de.intevation.flys.artifacts.model.minfo; | |
2 | |
3 import gnu.trove.TDoubleArrayList; | |
4 | |
5 import java.io.Serializable; | |
6 | |
7 public class BedQualityDiameterResult implements Serializable { | |
8 | |
9 public static enum DIAMETER_TYPE { | |
10 D90, | |
11 D84, | |
12 D80, | |
13 D75, | |
14 D70, | |
15 D60, | |
16 D50, | |
17 D40, | |
18 D30, | |
19 D25, | |
20 D20, | |
21 D16, | |
22 D10, | |
23 DMIN, | |
24 DMAX | |
25 } | |
26 | |
27 protected DIAMETER_TYPE type; | |
28 protected TDoubleArrayList kms; | |
29 protected boolean empty; | |
30 | |
31 public BedQualityDiameterResult () { | |
32 empty = true; | |
33 } | |
34 | |
35 public BedQualityDiameterResult ( | |
36 String type, | |
37 TDoubleArrayList km | |
38 ) { | |
39 if (km.size() > 0) { | |
40 empty = false; | |
41 } | |
42 this.type = DIAMETER_TYPE.valueOf(type.toUpperCase()); | |
43 this.kms = km; | |
44 } | |
45 | |
46 public DIAMETER_TYPE getType() { | |
47 return this.type; | |
48 } | |
49 | |
50 public TDoubleArrayList getKms() { | |
51 return this.kms; | |
52 } | |
53 | |
54 public void setType(DIAMETER_TYPE type) { | |
55 this.type = type; | |
56 } | |
57 | |
58 public boolean isEmpty() { | |
59 return empty; | |
60 } | |
61 } |