Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/fixings/FixRealizingCalculation.java @ 3437:e111902834d3
FixA: Made calculation base class abstract. Sub classes are called with fixings overview an function to fit.
flys-artifacts/trunk@5100 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 23 Jul 2012 09:09:49 +0000 |
parents | 7f7ab030a4e3 |
children | fc351f12b906 |
comparison
equal
deleted
inserted
replaced
3436:0d63581c5df1 | 3437:e111902834d3 |
---|---|
1 package de.intevation.flys.artifacts.model.fixings; | 1 package de.intevation.flys.artifacts.model.fixings; |
2 | 2 |
3 import de.intevation.flys.artifacts.access.FixRealizingAccess; | 3 import de.intevation.flys.artifacts.access.FixRealizingAccess; |
4 | 4 |
5 import de.intevation.flys.artifacts.math.fitting.Function; | |
6 | |
5 import de.intevation.flys.artifacts.model.CalculationResult; | 7 import de.intevation.flys.artifacts.model.CalculationResult; |
8 import de.intevation.flys.artifacts.model.FixingsOverview; | |
6 import de.intevation.flys.artifacts.model.Segment; | 9 import de.intevation.flys.artifacts.model.Segment; |
7 | 10 |
8 import java.util.List; | 11 import java.util.List; |
9 | 12 |
10 import org.apache.log4j.Logger; | 13 import org.apache.log4j.Logger; |
41 this.isQ = isQ; | 44 this.isQ = isQ; |
42 this.segments = segments; | 45 this.segments = segments; |
43 } | 46 } |
44 } | 47 } |
45 | 48 |
46 public CalculationResult calculate() { | 49 @Override |
47 if (hasProblems()) { | 50 protected CalculationResult innerCalculate( |
48 return new CalculationResult(this); | 51 FixingsOverview overview, |
49 } | 52 Function func |
53 ) { | |
50 // TODO: Implement me! | 54 // TODO: Implement me! |
51 return new CalculationResult(this); | 55 return new CalculationResult(this); |
52 } | 56 } |
53 } | 57 } |
54 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 58 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |