Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/minfo/SedimentLoadResult.java @ 4518:2eabb5aa0bb6
Added logger and fixed data field checkup.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Wed, 14 Nov 2012 17:10:24 +0100 |
parents | 19772b414d46 |
children | af1938d4e957 |
comparison
equal
deleted
inserted
replaced
4517:a5e4fae31089 | 4518:2eabb5aa0bb6 |
---|---|
3 import gnu.trove.TDoubleArrayList; | 3 import gnu.trove.TDoubleArrayList; |
4 | 4 |
5 import java.io.Serializable; | 5 import java.io.Serializable; |
6 import java.util.Set; | 6 import java.util.Set; |
7 | 7 |
8 import org.apache.log4j.Logger; | |
9 | |
8 public class SedimentLoadResult | 10 public class SedimentLoadResult |
9 implements Serializable | 11 implements Serializable |
10 { | 12 { |
13 private static final Logger logger = Logger | |
14 .getLogger(SedimentLoadResult.class); | |
11 protected int startYear; | 15 protected int startYear; |
12 protected int endYear; | 16 protected int endYear; |
13 protected SedimentLoad load; | 17 protected SedimentLoad load; |
14 | 18 |
15 public SedimentLoadResult() { | 19 public SedimentLoadResult() { |
152 ss.toNativeArray() | 156 ss.toNativeArray() |
153 }; | 157 }; |
154 } | 158 } |
155 | 159 |
156 public boolean hasCoarseData() { | 160 public boolean hasCoarseData() { |
157 return getCoarseData().length > 0; | 161 return getCoarseData()[0].length > 0; |
158 } | 162 } |
159 | 163 |
160 public boolean hasFineMiddleData() { | 164 public boolean hasFineMiddleData() { |
161 return getFineMiddleData().length > 0; | 165 return getFineMiddleData()[0].length > 0; |
162 } | 166 } |
163 | 167 |
164 public boolean hasSandData() { | 168 public boolean hasSandData() { |
165 return getSandData().length > 0; | 169 return getSandData()[0].length > 0; |
166 } | 170 } |
167 | 171 |
168 public boolean hasSuspSandData() { | 172 public boolean hasSuspSandData() { |
169 return getSuspSandData().length > 0; | 173 return getSuspSandData()[0].length > 0; |
170 } | 174 } |
171 | 175 |
172 public boolean hasSuspSandBedData() { | 176 public boolean hasSuspSandBedData() { |
173 return getSuspSandBedData().length > 0; | 177 return getSuspSandBedData()[0].length > 0; |
174 } | 178 } |
175 | 179 |
176 public boolean hasSuspSedimentData() { | 180 public boolean hasSuspSedimentData() { |
177 return getSuspSedimentData().length > 0; | 181 return getSuspSedimentData()[0].length > 0; |
178 } | 182 } |
179 | 183 |
180 public boolean hasTotalData() { | 184 public boolean hasTotalData() { |
181 return getTotalData().length > 0; | 185 return getTotalData()[0].length > 0; |
182 } | 186 } |
183 } | 187 } |