Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultRiverInfo.java @ 3713:79ad33f41977
Implement a gauge service
flys-client/trunk@5469 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Bjoern Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Fri, 14 Sep 2012 13:14:45 +0000 |
parents | |
children | 4e33aa341e51 |
comparison
equal
deleted
inserted
replaced
3712:738010779c74 | 3713:79ad33f41977 |
---|---|
1 package de.intevation.flys.client.shared.model; | |
2 | |
3 import java.io.Serializable; | |
4 import java.util.List; | |
5 | |
6 /** | |
7 * @author <a href="mailto:bjoern.ricks@intevation.de">Björn Ricks</a> | |
8 */ | |
9 | |
10 public class DefaultRiverInfo implements RiverInfo { | |
11 | |
12 private String name; | |
13 private boolean kmup; | |
14 private Double start; | |
15 private Double end; | |
16 private String wstunit; | |
17 private Double minq; | |
18 private Double maxq; | |
19 | |
20 private List<GaugeInfo> gaugeinfo; | |
21 | |
22 public DefaultRiverInfo() { | |
23 } | |
24 | |
25 public DefaultRiverInfo( | |
26 String name, | |
27 boolean kmup, | |
28 Double start, | |
29 Double end, | |
30 String wstunit, | |
31 Double minq, | |
32 Double maxq, | |
33 List<GaugeInfo> gaugeinfo) | |
34 { | |
35 this.name = name; | |
36 this.kmup = kmup; | |
37 this.start = start; | |
38 this.end = end; | |
39 this.wstunit = wstunit; | |
40 this.minq = minq; | |
41 this.maxq = maxq; | |
42 this.gaugeinfo = gaugeinfo; | |
43 } | |
44 | |
45 | |
46 public boolean isKmUp() { | |
47 return this.kmup; | |
48 } | |
49 | |
50 /** | |
51 * Start KM of the river | |
52 */ | |
53 public Double getKmStart() { | |
54 return this.start; | |
55 } | |
56 | |
57 /** | |
58 * End KM of the river | |
59 */ | |
60 public Double getKmEnd() { | |
61 return this.end; | |
62 } | |
63 | |
64 /** | |
65 * Returns the name of the river | |
66 */ | |
67 public String getName() { | |
68 return this.name; | |
69 } | |
70 | |
71 /** | |
72 * Returns the name of the WST unit | |
73 */ | |
74 public String getWstUnit() { | |
75 return this.wstunit; | |
76 } | |
77 | |
78 /** | |
79 * Return all gauge info of the river | |
80 */ | |
81 public List<GaugeInfo> getGauges() { | |
82 return this.gaugeinfo; | |
83 } | |
84 | |
85 /** | |
86 * Returns the min q value of the river | |
87 */ | |
88 public Double getMinQ() { | |
89 return this.minq; | |
90 } | |
91 | |
92 /** | |
93 * Returns the max q value of the river | |
94 */ | |
95 public Double getMaxQ() { | |
96 return maxq; | |
97 } | |
98 } |