Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultGaugeInfo.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 | |
5 /** | |
6 * @author <a href="mailto:bjoern.ricks@intevation.de">Björn Ricks</a> | |
7 */ | |
8 public class DefaultGaugeInfo implements GaugeInfo { | |
9 | |
10 private String name; | |
11 private Double start; | |
12 private Double end; | |
13 private Double aeo; | |
14 private Double datum; | |
15 private Double minq; | |
16 private Double maxq; | |
17 private Double minw; | |
18 private Double maxw; | |
19 private boolean kmup; | |
20 | |
21 public DefaultGaugeInfo() { | |
22 } | |
23 | |
24 public DefaultGaugeInfo( | |
25 String name, | |
26 boolean kmup, | |
27 Double start, | |
28 Double end, | |
29 Double datum, | |
30 Double aeo, | |
31 Double minq, | |
32 Double maxq, | |
33 Double minw, | |
34 Double maxw) | |
35 { | |
36 this.name = name; | |
37 this.start = start; | |
38 this.end = end; | |
39 this.datum = datum; | |
40 this.aeo = aeo; | |
41 this.minq = minq; | |
42 this.maxq = maxq; | |
43 this.minw = minw; | |
44 this.maxw = maxw; | |
45 } | |
46 /** | |
47 * Returns the name of the gauge | |
48 */ | |
49 public String getName() { | |
50 return this.name; | |
51 } | |
52 | |
53 /** | |
54 * Returns the start KM of the gauge or null if not available | |
55 */ | |
56 public Double getKmStart() { | |
57 return this.start; | |
58 } | |
59 | |
60 /** | |
61 * Returns the end KM of the gauge or null if not available | |
62 */ | |
63 public Double getKmEnd() { | |
64 return this.end; | |
65 } | |
66 | |
67 /** | |
68 * Returns the mimimum Q value at this gauge or null if not available | |
69 */ | |
70 public Double getMinQ() { | |
71 return this.minq; | |
72 } | |
73 | |
74 /** | |
75 * Returns the maximum Q value at this gauge or null if not available | |
76 */ | |
77 public Double getMaxQ() { | |
78 return this.maxq; | |
79 } | |
80 | |
81 /** | |
82 * Returns the mimimum W value at this gauge or null if not available | |
83 */ | |
84 public Double getMinW() { | |
85 return this.minw; | |
86 } | |
87 | |
88 /** | |
89 * Returns the maximim W value at this gauge or null if not available | |
90 */ | |
91 public Double getMaxW() { | |
92 return this.maxw; | |
93 } | |
94 | |
95 /** | |
96 * Returns the datum value or null if not available | |
97 */ | |
98 public Double getDatum() { | |
99 return this.datum; | |
100 } | |
101 | |
102 /** | |
103 * Returns the aeo value or null if not available | |
104 */ | |
105 public Double getAeo() { | |
106 return this.aeo; | |
107 } | |
108 | |
109 public boolean isKmUp() { | |
110 return this.kmup; | |
111 } | |
112 } |