Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultMeasurementStation.java @ 4248:fc742c039f30
Add model for MeasurementStation client side
Add a client mode representing the MeasurementStation
author | Björn Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Wed, 24 Oct 2012 16:57:53 +0200 |
parents | |
children | d5d68c5bf085 |
comparison
equal
deleted
inserted
replaced
4247:5da024c2af62 | 4248:fc742c039f30 |
---|---|
1 package de.intevation.flys.client.shared.model; | |
2 | |
3 /** | |
4 * @author <a href="mailto:bjoern.ricks@intevation.de">Björn Ricks</a> | |
5 */ | |
6 public class DefaultMeasurementStation implements MeasurementStation { | |
7 | |
8 private String name; | |
9 private Double start; | |
10 private Double end; | |
11 private Double station; | |
12 private String rivername; | |
13 private String measurementtype; | |
14 private String riverside; | |
15 | |
16 public DefaultMeasurementStation() { | |
17 } | |
18 | |
19 public DefaultMeasurementStation( | |
20 String rivername, | |
21 String name, | |
22 Double station, | |
23 Double start, | |
24 Double end, | |
25 String riverside, | |
26 String measurementtype) | |
27 { | |
28 this.rivername = rivername; | |
29 this.name = name; | |
30 this.station = station; | |
31 this.start = start; | |
32 this.end = end; | |
33 this.riverside = riverside; | |
34 this.measurementtype = measurementtype; | |
35 } | |
36 | |
37 /** | |
38 * Returns the name of the measurement station | |
39 */ | |
40 @Override | |
41 public String getName() { | |
42 return this.name; | |
43 } | |
44 | |
45 /** | |
46 * Returns the start KM of the measurement station or null if not available | |
47 */ | |
48 @Override | |
49 public Double getKmStart() { | |
50 return this.start; | |
51 } | |
52 | |
53 /** | |
54 * Returns the end KM of the measurement station or null if not available | |
55 */ | |
56 @Override | |
57 public Double getKmEnd() { | |
58 return this.end; | |
59 } | |
60 | |
61 /** | |
62 * Returns the river to which this measurement station belongs | |
63 */ | |
64 @Override | |
65 public String getRiverName() { | |
66 return this.rivername; | |
67 } | |
68 | |
69 /** | |
70 * Returns the type of the measurement station | |
71 */ | |
72 @Override | |
73 public String getMeasurementType() { | |
74 return this.measurementtype; | |
75 } | |
76 | |
77 /** | |
78 * Returns the station km of this measurement station | |
79 */ | |
80 @Override | |
81 public Double getStation() { | |
82 return this.station; | |
83 } | |
84 | |
85 | |
86 /** | |
87 * Returns the side of the river where this measurement station belongs | |
88 */ | |
89 @Override | |
90 public String getRiverSide() { | |
91 return this.riverside; | |
92 } | |
93 } |