Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/sq/SQRelationCalculation.java @ 3290:36f3b53d5cfc
SQ relation: Added infrastructure to extract fractions from measurments.
flys-artifacts/trunk@4958 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 12 Jul 2012 17:34:40 +0000 |
parents | ec9aab93f292 |
children | 79c8e0d9fdea |
comparison
equal
deleted
inserted
replaced
3289:ec9aab93f292 | 3290:36f3b53d5cfc |
---|---|
5 import de.intevation.flys.artifacts.model.Calculation; | 5 import de.intevation.flys.artifacts.model.Calculation; |
6 import de.intevation.flys.artifacts.model.CalculationResult; | 6 import de.intevation.flys.artifacts.model.CalculationResult; |
7 import de.intevation.flys.artifacts.model.DateRange; | 7 import de.intevation.flys.artifacts.model.DateRange; |
8 | 8 |
9 import de.intevation.flys.backend.SedDBSessionHolder; | 9 import de.intevation.flys.backend.SedDBSessionHolder; |
10 | |
11 import java.util.List; | |
12 | 10 |
13 import org.apache.log4j.Logger; | 11 import org.apache.log4j.Logger; |
14 | 12 |
15 public class SQRelationCalculation extends Calculation { | 13 public class SQRelationCalculation extends Calculation { |
16 | 14 |
80 protected CalculationResult internalCalculate() { | 78 protected CalculationResult internalCalculate() { |
81 | 79 |
82 boolean debug = log.isDebugEnabled(); | 80 boolean debug = log.isDebugEnabled(); |
83 | 81 |
84 for (DateRange period: periods) { | 82 for (DateRange period: periods) { |
85 List<Measurement> measurements = | 83 Measurements measurements = |
86 MeasurementFactory.getMeasurements(river, location, period); | 84 MeasurementFactory.getMeasurements(river, location, period); |
87 | 85 |
88 if (debug) { | 86 if (debug) { |
89 for (Measurement measument: measurements) { | 87 log.debug(measurements.toString()); |
90 log.debug(measument.toString()); | |
91 } | |
92 } | 88 } |
93 } | 89 } |
94 | 90 |
95 // TODO: Implement me! | 91 // TODO: Implement me! |
96 | 92 |