Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedQualityDiameterResult.java @ 5831:bd047b71ab37
Repaired internal references
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Thu, 25 Apr 2013 12:06:39 +0200 |
parents | flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/minfo/BedQualityDiameterResult.java@9f9d5ada96ca |
children |
comparison
equal
deleted
inserted
replaced
5830:160f53ee0870 | 5831:bd047b71ab37 |
---|---|
1 package org.dive4elements.river.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 } |