Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/model/SedimentYield.java @ 2840:71175502d868
Added a parser for sediment yield files; started parsing and store values in db.
flys-backend/trunk@4277 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Thu, 19 Apr 2012 12:48:53 +0000 |
parents | 8b910e3277b0 |
children |
comparison
equal
deleted
inserted
replaced
2839:163c037f2c7e | 2840:71175502d868 |
---|---|
32 | 32 |
33 private Unit unit; | 33 private Unit unit; |
34 | 34 |
35 private TimeInterval timeInterval; | 35 private TimeInterval timeInterval; |
36 | 36 |
37 private String description; | |
38 | |
37 private List<SedimentYieldValue> values; | 39 private List<SedimentYieldValue> values; |
38 | 40 |
39 | 41 |
40 public SedimentYield() { | 42 public SedimentYield() { |
41 this.values = new ArrayList<SedimentYieldValue>(); | 43 this.values = new ArrayList<SedimentYieldValue>(); |
57 GrainFraction grainFraction | 59 GrainFraction grainFraction |
58 ) { | 60 ) { |
59 this(river, unit, timeInterval); | 61 this(river, unit, timeInterval); |
60 | 62 |
61 this.grainFraction = grainFraction; | 63 this.grainFraction = grainFraction; |
64 } | |
65 | |
66 | |
67 public SedimentYield( | |
68 River river, | |
69 Unit unit, | |
70 TimeInterval timeInterval, | |
71 GrainFraction grainFraction, | |
72 String description | |
73 ) { | |
74 this(river, unit, timeInterval, grainFraction); | |
75 | |
76 this.description = description; | |
62 } | 77 } |
63 | 78 |
64 @Id | 79 @Id |
65 @SequenceGenerator( | 80 @SequenceGenerator( |
66 name = "SEQUENCE_SEDIMENT_YIELD_ID_SEQ", | 81 name = "SEQUENCE_SEDIMENT_YIELD_ID_SEQ", |
115 } | 130 } |
116 | 131 |
117 public void setTimeInterval(TimeInterval timeInterval) { | 132 public void setTimeInterval(TimeInterval timeInterval) { |
118 this.timeInterval = timeInterval; | 133 this.timeInterval = timeInterval; |
119 } | 134 } |
135 | |
136 @Column(name = "description") | |
137 public String getDescription() { | |
138 return description; | |
139 } | |
140 | |
141 public void setDescription(String description) { | |
142 this.description = description; | |
143 } | |
120 } | 144 } |
121 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 145 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |