Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadFraction.java @ 6373:be283f9bc079
Add fields, getters and setters for ranges in SedimentLoadFraction.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 19 Jun 2013 16:53:27 +0200 |
parents | af13ceeba52a |
children | 8d6f23243d1d |
comparison
equal
deleted
inserted
replaced
6372:01073acf6735 | 6373:be283f9bc079 |
---|---|
7 */ | 7 */ |
8 | 8 |
9 package org.dive4elements.river.artifacts.model.minfo; | 9 package org.dive4elements.river.artifacts.model.minfo; |
10 | 10 |
11 import org.dive4elements.river.artifacts.model.NamedObjectImpl; | 11 import org.dive4elements.river.artifacts.model.NamedObjectImpl; |
12 import org.dive4elements.river.artifacts.model.Range; | |
12 | 13 |
13 | 14 /** One part of sedimentload. */ |
14 public class SedimentLoadFraction | 15 public class SedimentLoadFraction |
15 extends NamedObjectImpl | 16 extends NamedObjectImpl |
16 { | 17 { |
17 double sand; | 18 double sand; |
18 double fine_middle; | 19 double fine_middle; |
20 double susp_sand; | 21 double susp_sand; |
21 double susp_sand_bed; | 22 double susp_sand_bed; |
22 double susp_sediment; | 23 double susp_sediment; |
23 double loadTotal; | 24 double loadTotal; |
24 double total; | 25 double total; |
26 /** Values are valid within this km range. */ | |
27 Range sandRange = null; | |
28 Range fineMiddleRange = null; | |
29 Range coarseRange = null; | |
30 Range suspSandRange = null; | |
31 Range suspSandBedRange = null; | |
32 Range suspSedimentRange = null; | |
33 Range loadTotalRange = null; | |
34 Range totalRange = null; | |
35 | |
25 | 36 |
26 public SedimentLoadFraction() { | 37 public SedimentLoadFraction() { |
27 sand = 0d; | 38 sand = 0d; |
28 fine_middle = 0d; | 39 fine_middle = 0d; |
29 coarse = 0d; | 40 coarse = 0d; |
39 | 50 |
40 public void setSand(double sand) { | 51 public void setSand(double sand) { |
41 this.sand = sand; | 52 this.sand = sand; |
42 } | 53 } |
43 | 54 |
55 public void setSandRange(Range range) { | |
56 this.sandRange = range; | |
57 } | |
58 | |
59 public Range getSandRange() { | |
60 return this.sandRange; | |
61 } | |
62 | |
44 public double getFine_middle() { | 63 public double getFine_middle() { |
45 return fine_middle; | 64 return fine_middle; |
46 } | 65 } |
47 | 66 |
48 public void setFine_middle(double fine_middle) { | 67 public void setFine_middle(double fine_middle) { |
49 this.fine_middle = fine_middle; | 68 this.fine_middle = fine_middle; |
69 } | |
70 | |
71 public void setFineMiddleRange(Range range) { | |
72 this.fineMiddleRange = range; | |
73 } | |
74 | |
75 public Range getFineMiddleRange() { | |
76 return this.fineMiddleRange; | |
50 } | 77 } |
51 | 78 |
52 public double getCoarse() { | 79 public double getCoarse() { |
53 return coarse; | 80 return coarse; |
54 } | 81 } |
55 | 82 |
56 public void setCoarse(double coarse) { | 83 public void setCoarse(double coarse) { |
57 this.coarse = coarse; | 84 this.coarse = coarse; |
58 } | 85 } |
59 | 86 |
87 public Range getCoarseRange() { | |
88 return this.coarseRange; | |
89 } | |
90 | |
91 public void setCoarseRange(Range range) { | |
92 this.coarseRange = range; | |
93 } | |
94 | |
60 public double getSusp_sand() { | 95 public double getSusp_sand() { |
61 return susp_sand; | 96 return susp_sand; |
62 } | 97 } |
63 | 98 |
64 public void setSusp_sand(double susp_sand) { | 99 public void setSusp_sand(double susp_sand) { |
65 this.susp_sand = susp_sand; | 100 this.susp_sand = susp_sand; |
101 } | |
102 | |
103 public void setSuspSandRange(Range range) { | |
104 this.suspSandRange = range; | |
105 } | |
106 | |
107 public Range getSuspSandRange() { | |
108 return this.suspSandRange; | |
66 } | 109 } |
67 | 110 |
68 public double getSusp_sand_bed() { | 111 public double getSusp_sand_bed() { |
69 return susp_sand_bed; | 112 return susp_sand_bed; |
70 } | 113 } |
71 | 114 |
72 public void setSusp_sand_bed(double susp_sand_bed) { | 115 public void setSusp_sand_bed(double susp_sand_bed) { |
73 this.susp_sand_bed = susp_sand_bed; | 116 this.susp_sand_bed = susp_sand_bed; |
74 } | 117 } |
75 | 118 |
119 public void setSuspSandBedRange(Range range) { | |
120 this.suspSandRange = range; | |
121 } | |
122 | |
123 public Range getSuspSandBedRange() { | |
124 return this.suspSandRange; | |
125 } | |
126 | |
76 public double getSusp_sediment() { | 127 public double getSusp_sediment() { |
77 return susp_sediment; | 128 return susp_sediment; |
78 } | 129 } |
79 | 130 |
80 public void setSusp_sediment(double susp_sediment) { | 131 public void setSusp_sediment(double susp_sediment) { |
81 this.susp_sediment = susp_sediment; | 132 this.susp_sediment = susp_sediment; |
133 } | |
134 | |
135 public void setSuspSedimentRange(Range range) { | |
136 this.suspSedimentRange = range; | |
137 } | |
138 | |
139 public Range getSuspSedimentRange() { | |
140 return this.suspSedimentRange; | |
82 } | 141 } |
83 | 142 |
84 public double getTotal() { | 143 public double getTotal() { |
85 return total; | 144 return total; |
86 } | 145 } |
87 | 146 |
88 public void setTotal(double total) { | 147 public void setTotal(double total) { |
89 this.total = total; | 148 this.total = total; |
90 } | 149 } |
91 | 150 |
151 public void setTotalRange(Range range) { | |
152 this.totalRange = range; | |
153 } | |
154 | |
155 public Range getTotalRange() { | |
156 return this.totalRange; | |
157 } | |
158 | |
92 public double getLoadTotal() { | 159 public double getLoadTotal() { |
93 return loadTotal; | 160 return loadTotal; |
94 } | 161 } |
95 | 162 |
96 public void setLoadTotal(double total) { | 163 public void setLoadTotal(double total) { |
97 this.loadTotal = total; | 164 this.loadTotal = total; |
98 } | 165 } |
166 | |
167 public void setLoadTotalRange(Range range) { | |
168 this.loadTotalRange = range; | |
169 } | |
99 } | 170 } |
171 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 : |