Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultMeasurementStation.java @ 4325:7320830987a3
Add the gauge name to the MeasurementStation client class
The reference gauge should be displayed in the measurement station info panel.
author | Björn Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Tue, 30 Oct 2012 13:02:45 +0100 |
parents | 82c1e911dd71 |
children |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultMeasurementStation.java Tue Oct 30 12:49:17 2012 +0100 +++ b/flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultMeasurementStation.java Tue Oct 30 13:02:45 2012 +0100 @@ -19,6 +19,7 @@ private String moperator; private Date starttime; private Date stoptime; + private String gaugename; public DefaultMeasurementStation() { } @@ -35,7 +36,8 @@ String measurementtype, String moperator, Date starttime, - Date stoptime) + Date stoptime, + String gaugename) { this.rivername = rivername; this.name = name; @@ -49,6 +51,7 @@ this.moperator = moperator; this.starttime = starttime; this.stoptime = stoptime; + this.gaugename = gaugename; } /** @@ -145,4 +148,12 @@ return this.stoptime; } + /** + * Returns the name of the gauge in reference to this measurement station + */ + @Override + public String getGaugeName() { + return this.gaugename; + } + }