comparison flys-aft/src/main/java/de/intevation/aft/DIPSGauge.java @ 4085:067341e86375

Separate FLYS gauges to be updated or to create. flys-aft/trunk@3523 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 22 Dec 2011 12:07:29 +0000
parents d13011e53022
children aad1886ea226
comparison
equal deleted inserted replaced
4084:9178beeb7b05 4085:067341e86375
65 65
66 protected double aeo; 66 protected double aeo;
67 67
68 protected String name; 68 protected String name;
69 69
70 protected String riverName;
71
70 protected List<Datum> datums; 72 protected List<Datum> datums;
73
74 protected int flysId;
75
76 protected String aftName;
71 77
72 public DIPSGauge() { 78 public DIPSGauge() {
73 } 79 }
74 80
75 public DIPSGauge(Element element) { 81 public DIPSGauge(Element element) {
76 82
77 name = element.getAttribute("NAME"); 83 name = element.getAttribute("NAME");
84 riverName = element.getAttribute("GEWAESSER");
78 85
79 String aeoString = element.getAttribute("EINZUGSGEBIET_AEO"); 86 String aeoString = element.getAttribute("EINZUGSGEBIET_AEO");
80 if (aeoString.length() == 0) { 87 if (aeoString.length() == 0) {
81 log.warn("DIPS: Setting AEO of gauge '" + name + "' to zero."); 88 log.warn("DIPS: Setting AEO of gauge '" + name + "' to zero.");
82 aeoString = "0"; 89 aeoString = "0";
98 } 105 }
99 106
100 public String getName() { 107 public String getName() {
101 return name; 108 return name;
102 } 109 }
110
111 public String getRiverName() {
112 return riverName;
113 }
114
115 public int getFlysId() {
116 return flysId;
117 }
118
119 public void setFlysId(int flysId) {
120 this.flysId = flysId;
121 }
122
123 public String getAftName() {
124 return aftName != null ? aftName : name;
125 }
126
127 public void setAftName(String aftName) {
128 this.aftName = aftName;
129 }
130
131
103 } 132 }
104 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 133 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org