Mercurial > dive4elements > river
comparison 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 |
comparison
equal
deleted
inserted
replaced
2827:85b25e74594f | 2828:ac13e466a55e |
---|---|
28 private Integer id; | 28 private Integer id; |
29 | 29 |
30 private FlowVelocityModel flowVelocity; | 30 private FlowVelocityModel flowVelocity; |
31 | 31 |
32 private BigDecimal station; | 32 private BigDecimal station; |
33 private BigDecimal q; | |
33 private BigDecimal totalChannel; | 34 private BigDecimal totalChannel; |
34 private BigDecimal mainChannel; | 35 private BigDecimal mainChannel; |
35 private BigDecimal shearStress; | 36 private BigDecimal shearStress; |
36 | 37 |
37 | 38 |
40 | 41 |
41 | 42 |
42 public FlowVelocityModelValue( | 43 public FlowVelocityModelValue( |
43 FlowVelocityModel flowVelocity, | 44 FlowVelocityModel flowVelocity, |
44 BigDecimal station, | 45 BigDecimal station, |
46 BigDecimal q, | |
45 BigDecimal totalChannel, | 47 BigDecimal totalChannel, |
46 BigDecimal mainChannel, | 48 BigDecimal mainChannel, |
47 BigDecimal shearStress | 49 BigDecimal shearStress |
48 ) { | 50 ) { |
49 this.flowVelocity = flowVelocity; | 51 this.flowVelocity = flowVelocity; |
50 this.station = station; | 52 this.station = station; |
53 this.q = q; | |
51 this.totalChannel = totalChannel; | 54 this.totalChannel = totalChannel; |
52 this.mainChannel = mainChannel; | 55 this.mainChannel = mainChannel; |
53 this.shearStress = shearStress; | 56 this.shearStress = shearStress; |
54 } | 57 } |
55 | 58 |
87 | 90 |
88 public void setStation(BigDecimal station) { | 91 public void setStation(BigDecimal station) { |
89 this.station = station; | 92 this.station = station; |
90 } | 93 } |
91 | 94 |
95 @Column(name = "q") | |
96 public BigDecimal getQ() { | |
97 return q; | |
98 } | |
99 | |
100 public void setQ(BigDecimal q) { | |
101 this.q = q; | |
102 } | |
103 | |
92 @Column(name = "total_channel") | 104 @Column(name = "total_channel") |
93 public BigDecimal getTotalChannel() { | 105 public BigDecimal getTotalChannel() { |
94 return totalChannel; | 106 return totalChannel; |
95 } | 107 } |
96 | 108 |