Mercurial > dive4elements > river
diff flys-backend/src/main/java/de/intevation/flys/importer/ImportGauge.java @ 189:bc3747a371cc
First part of parsing main values.
flys-backend/trunk@1520 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 18 Mar 2011 16:12:24 +0000 |
parents | a60edcfe5f53 |
children | c4fb5141ce11 |
line wrap: on
line diff
--- a/flys-backend/src/main/java/de/intevation/flys/importer/ImportGauge.java Fri Mar 18 12:10:33 2011 +0000 +++ b/flys-backend/src/main/java/de/intevation/flys/importer/ImportGauge.java Fri Mar 18 16:12:24 2011 +0000 @@ -2,12 +2,25 @@ import java.io.File; +import java.math.BigDecimal; + +import de.intevation.flys.model.River; +import de.intevation.flys.model.Gauge; + +import java.io.IOException; + public class ImportGauge { protected ImportRange range; - protected File staFile; - protected File atFile; + protected File staFile; + protected File atFile; + + protected String name; + protected BigDecimal aeo; + protected BigDecimal datum; + + protected Gauge peer; public ImportGauge() { } @@ -37,5 +50,40 @@ public File getAtFile() { return atFile; } + + public BigDecimal getAeo() { + return aeo; + } + + public void setAeo(BigDecimal aeo) { + this.aeo = aeo; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public BigDecimal getDatum() { + return datum; + } + + public void setDatum(BigDecimal datum) { + this.datum = datum; + } + + public void parseDependencies() throws IOException { + StaFileParser sfp = new StaFileParser(); + sfp.parse(this); + } + + public Gauge getPeer(River river) { + if (peer == null) { + } + return peer; + } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :