comparison 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
comparison
equal deleted inserted replaced
188:003ac16812dd 189:bc3747a371cc
1 package de.intevation.flys.importer; 1 package de.intevation.flys.importer;
2 2
3 import java.io.File; 3 import java.io.File;
4
5 import java.math.BigDecimal;
6
7 import de.intevation.flys.model.River;
8 import de.intevation.flys.model.Gauge;
9
10 import java.io.IOException;
4 11
5 public class ImportGauge 12 public class ImportGauge
6 { 13 {
7 protected ImportRange range; 14 protected ImportRange range;
8 15
9 protected File staFile; 16 protected File staFile;
10 protected File atFile; 17 protected File atFile;
18
19 protected String name;
20 protected BigDecimal aeo;
21 protected BigDecimal datum;
22
23 protected Gauge peer;
11 24
12 public ImportGauge() { 25 public ImportGauge() {
13 } 26 }
14 27
15 public ImportGauge(ImportRange range, File staFile, File atFile) { 28 public ImportGauge(ImportRange range, File staFile, File atFile) {
35 } 48 }
36 49
37 public File getAtFile() { 50 public File getAtFile() {
38 return atFile; 51 return atFile;
39 } 52 }
53
54 public BigDecimal getAeo() {
55 return aeo;
56 }
57
58 public void setAeo(BigDecimal aeo) {
59 this.aeo = aeo;
60 }
61
62 public String getName() {
63 return name;
64 }
65
66 public void setName(String name) {
67 this.name = name;
68 }
69
70 public BigDecimal getDatum() {
71 return datum;
72 }
73
74 public void setDatum(BigDecimal datum) {
75 this.datum = datum;
76 }
77
78 public void parseDependencies() throws IOException {
79 StaFileParser sfp = new StaFileParser();
80 sfp.parse(this);
81 }
82
83 public Gauge getPeer(River river) {
84 if (peer == null) {
85 }
86 return peer;
87 }
40 } 88 }
41 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 89 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org