diff flys-backend/src/main/java/de/intevation/flys/model/FlowVelocityModelValue.java @ 2828:ac13e466a55e

Added a parser for flow velocity model data and adjusted the db relation schema (missing q column). flys-backend/trunk@4245 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 17 Apr 2012 09:37:52 +0000
parents a948366d8ac5
children 5a89c2b05e6d
line wrap: on
line diff
--- a/flys-backend/src/main/java/de/intevation/flys/model/FlowVelocityModelValue.java	Tue Apr 17 08:50:15 2012 +0000
+++ b/flys-backend/src/main/java/de/intevation/flys/model/FlowVelocityModelValue.java	Tue Apr 17 09:37:52 2012 +0000
@@ -30,6 +30,7 @@
     private FlowVelocityModel flowVelocity;
 
     private BigDecimal station;
+    private BigDecimal q;
     private BigDecimal totalChannel;
     private BigDecimal mainChannel;
     private BigDecimal shearStress;
@@ -42,12 +43,14 @@
     public FlowVelocityModelValue(
         FlowVelocityModel flowVelocity,
         BigDecimal        station,
+        BigDecimal        q,
         BigDecimal        totalChannel,
         BigDecimal        mainChannel,
         BigDecimal        shearStress
     ) {
         this.flowVelocity = flowVelocity;
         this.station      = station;
+        this.q            = q;
         this.totalChannel = totalChannel;
         this.mainChannel  = mainChannel;
         this.shearStress  = shearStress;
@@ -89,6 +92,15 @@
         this.station = station;
     }
 
+    @Column(name = "q")
+    public BigDecimal getQ() {
+        return q;
+    }
+
+    public void setQ(BigDecimal q) {
+        this.q = q;
+    }
+
     @Column(name = "total_channel")
     public BigDecimal getTotalChannel() {
         return totalChannel;

http://dive4elements.wald.intevation.org