Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/QualityMeasurement.java @ 5838:5aa05a7a34b7
Rename modules to more fitting names.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Thu, 25 Apr 2013 15:23:37 +0200 |
parents | flys-artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/QualityMeasurement.java@bd047b71ab37 |
children | 4897a58c8746 |
comparison
equal
deleted
inserted
replaced
5837:d9901a08d0a6 | 5838:5aa05a7a34b7 |
---|---|
1 package org.dive4elements.river.artifacts.model.minfo; | |
2 | |
3 import java.util.Date; | |
4 import java.util.Map; | |
5 | |
6 | |
7 public class QualityMeasurement { | |
8 | |
9 private double km; | |
10 private Date date; | |
11 private double depth1; | |
12 private double depth2; | |
13 private Map<String, Double> charDiameter; | |
14 | |
15 public QualityMeasurement() { | |
16 | |
17 } | |
18 | |
19 public QualityMeasurement( | |
20 double km, | |
21 Date date, | |
22 double depth1, | |
23 double depth2, | |
24 Map<String, Double> diameter) { | |
25 this.setKm(km); | |
26 this.setDate(date); | |
27 this.depth1 = depth1; | |
28 this.depth2 = depth2; | |
29 this.setDiameter(diameter); | |
30 } | |
31 | |
32 public double getKm() { | |
33 return km; | |
34 } | |
35 | |
36 public void setKm(double km) { | |
37 this.km = km; | |
38 } | |
39 | |
40 public Date getDate() { | |
41 return date; | |
42 } | |
43 | |
44 public void setDate(Date date) { | |
45 this.date = date; | |
46 } | |
47 | |
48 public Map<String, Double> getAllDiameter() { | |
49 return charDiameter; | |
50 } | |
51 | |
52 public void setDiameter(Map<String, Double> charDiameter) { | |
53 this.charDiameter = charDiameter; | |
54 } | |
55 | |
56 public double getDiameter(String key) { | |
57 return charDiameter.get(key); | |
58 } | |
59 | |
60 public void setDiameter(String key, double value) { | |
61 charDiameter.put(key, value); | |
62 } | |
63 | |
64 public double getDepth1() { | |
65 return depth1; | |
66 } | |
67 | |
68 public void setDepth1(double depth1) { | |
69 this.depth1 = depth1; | |
70 } | |
71 | |
72 public double getDepth2() { | |
73 return depth2; | |
74 } | |
75 | |
76 public void setDepth2(double depth2) { | |
77 this.depth2 = depth2; | |
78 } | |
79 } |