Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/fixation/FixRealizingCompute.java @ 5646:14009b194871
Doc, Cosmetics.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 10 Apr 2013 09:36:25 +0200 |
parents | 3b974a24a8e1 |
children | de0639306008 |
comparison
equal
deleted
inserted
replaced
5645:696d710470f5 | 5646:14009b194871 |
---|---|
24 import de.intevation.flys.artifacts.model.fixings.FixWaterlevelFacet; | 24 import de.intevation.flys.artifacts.model.fixings.FixWaterlevelFacet; |
25 import de.intevation.flys.artifacts.resources.Resources; | 25 import de.intevation.flys.artifacts.resources.Resources; |
26 import de.intevation.flys.artifacts.states.DefaultState; | 26 import de.intevation.flys.artifacts.states.DefaultState; |
27 | 27 |
28 /** | 28 /** |
29 * State to compute the fixation realizing (vollmer) results. | |
30 * | |
29 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a> | 31 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a> |
30 */ | 32 */ |
31 public class FixRealizingCompute extends DefaultState implements FacetTypes { | 33 public class FixRealizingCompute extends DefaultState implements FacetTypes { |
32 | 34 |
33 /** The logger used in this class. */ | 35 /** The logger used in this class. */ |
44 * The default constructor that initializes an empty State object. | 46 * The default constructor that initializes an empty State object. |
45 */ | 47 */ |
46 public FixRealizingCompute() { | 48 public FixRealizingCompute() { |
47 } | 49 } |
48 | 50 |
51 | |
49 @Override | 52 @Override |
50 public Object computeAdvance( | 53 public Object computeAdvance( |
51 FLYSArtifact artifact, | 54 FLYSArtifact artifact, |
52 String hash, | 55 String hash, |
53 CallContext context, | 56 CallContext context, |
60 | 63 |
61 FixRealizingAccess access = | 64 FixRealizingAccess access = |
62 new FixRealizingAccess(artifact, context); | 65 new FixRealizingAccess(artifact, context); |
63 | 66 |
64 if (old instanceof CalculationResult) { | 67 if (old instanceof CalculationResult) { |
65 res = (CalculationResult)old; | 68 res = (CalculationResult) old; |
66 } | 69 } |
67 else { | 70 else { |
68 FixRealizingCalculation calc = new FixRealizingCalculation(access); | 71 FixRealizingCalculation calc = new FixRealizingCalculation(access); |
69 res = calc.calculate(); | 72 res = calc.calculate(); |
70 } | 73 } |