Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/shared/model/DistanceInfoObjectImpl.java @ 218:79fb4d900643
Added a model class that represents a distance information.
flys-client/trunk@1661 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 11 Apr 2011 14:29:54 +0000 |
parents | |
children | d9fc58e30a53 |
comparison
equal
deleted
inserted
replaced
217:907b61e4d702 | 218:79fb4d900643 |
---|---|
1 package de.intevation.flys.client.shared.model; | |
2 | |
3 | |
4 /** | |
5 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | |
6 */ | |
7 public class DistanceInfoObjectImpl implements DistanceInfoObject { | |
8 | |
9 protected String description; | |
10 | |
11 protected Double from; | |
12 | |
13 protected Double to; | |
14 | |
15 protected String riverside; | |
16 | |
17 | |
18 public DistanceInfoObjectImpl() { | |
19 } | |
20 | |
21 | |
22 public DistanceInfoObjectImpl( | |
23 String description, | |
24 Double from, | |
25 Double to, | |
26 String riverside) | |
27 { | |
28 this.description = description; | |
29 this.from = from; | |
30 this.to = to; | |
31 this.riverside = riverside; | |
32 } | |
33 | |
34 | |
35 public String getDescription() { | |
36 return description; | |
37 } | |
38 | |
39 | |
40 public Double getFrom() { | |
41 return from; | |
42 } | |
43 | |
44 | |
45 public Double getTo() { | |
46 return to; | |
47 } | |
48 | |
49 | |
50 public String getRiverside() { | |
51 return riverside; | |
52 } | |
53 } | |
54 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |