9404
|
1 /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde |
|
2 * Software engineering by Intevation GmbH |
|
3 * |
|
4 * This file is Free Software under the GNU AGPL (>=v3) |
|
5 * and comes with ABSOLUTELY NO WARRANTY! Check out the |
|
6 * documentation coming with Dive4Elements River for details. |
|
7 */ |
|
8 |
|
9 package org.dive4elements.river.client.shared.model; |
|
10 |
|
11 import java.util.Date; |
|
12 |
|
13 /** |
|
14 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a> |
|
15 */ |
|
16 public class GaugeInfoObjectImpl implements GaugeInfoObject { |
|
17 |
|
18 private static final long serialVersionUID = 1L; |
|
19 |
|
20 protected String name; |
|
21 |
|
22 protected String errorMsg; |
|
23 |
|
24 Date startTime; |
|
25 |
|
26 Date stopTime; |
|
27 |
|
28 public GaugeInfoObjectImpl() { |
|
29 } |
|
30 |
|
31 public GaugeInfoObjectImpl(final String name, final String errorMsg, final Date startTime, final Date stopTime) { |
|
32 this.name = name; |
|
33 this.errorMsg = errorMsg; |
|
34 this.startTime = startTime; |
|
35 this.stopTime = stopTime; |
|
36 } |
|
37 |
|
38 @Override |
|
39 public Date getStopTime() { |
|
40 return this.stopTime; |
|
41 } |
|
42 |
|
43 @Override |
|
44 public Date getStartTime() { |
|
45 return this.startTime; |
|
46 } |
|
47 |
|
48 @Override |
|
49 public String getName() { |
|
50 return this.name; |
|
51 } |
|
52 |
|
53 @Override |
|
54 public String getErrorMessage() { |
|
55 return this.errorMsg; |
|
56 } |
|
57 |
|
58 } |
|
59 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |