comparison flys-client/src/main/java/org/dive4elements/river/client/shared/model/DefaultRiverInfo.java @ 5834:f507086aa94b

Repaired internal references.
author Sascha L. Teichmann <teichmann@intevation.de>
date Thu, 25 Apr 2013 12:31:32 +0200
parents flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultRiverInfo.java@7a889098bcc6
children 821a02bbfb4e
comparison
equal deleted inserted replaced
5833:a2bdc0f524e8 5834:f507086aa94b
1 package de.intevation.flys.client.shared.model;
2
3 import java.util.List;
4
5 /**
6 * @author <a href="mailto:bjoern.ricks@intevation.de">Björn Ricks</a>
7 */
8
9 public class DefaultRiverInfo implements RiverInfo {
10
11 private String name;
12 private boolean kmup;
13 private Double start;
14 private Double end;
15 private String wstunit;
16 private Double minq;
17 private Double maxq;
18 private Long officialnumber;
19
20 private List<GaugeInfo> gaugeinfo;
21 private List<MeasurementStation> mstations;
22
23 public DefaultRiverInfo() {
24 }
25
26 public DefaultRiverInfo(
27 String name,
28 boolean kmup,
29 Double start,
30 Double end,
31 String wstunit,
32 Double minq,
33 Double maxq,
34 Long official)
35 {
36 this.name = name;
37 this.kmup = kmup;
38 this.start = start;
39 this.end = end;
40 this.wstunit = wstunit;
41 this.minq = minq;
42 this.maxq = maxq;
43 this.officialnumber = official;
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 or null if they aren't available.
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
99 /**
100 * Returns the official number of the river
101 */
102 public Long getOfficialNumber() {
103 return this.officialnumber;
104 }
105
106 /**
107 * Returns the MeasurementStations on this river or null if they aren't
108 * available.
109 */
110 @Override
111 public List<MeasurementStation> getMeasurementStations() {
112 return this.mstations;
113 }
114
115 public void setGauges(List<GaugeInfo> gauges) {
116 this.gaugeinfo = gauges;
117 }
118
119 public void setMeasurementStations(List<MeasurementStation> mstations) {
120 this.mstations = mstations;
121 }
122 }

http://dive4elements.wald.intevation.org