Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/uinfo/inundationduration/InundationDurationState.java @ 9178:2f5052835b76
uinfo inundationduration langjÀhr. Mittel, Uedauern.properties, Meldung
author | gernotbelger |
---|---|
date | Tue, 26 Jun 2018 19:48:35 +0200 |
parents | 23945061daec |
children | 0633f963c5be |
comparison
equal
deleted
inserted
replaced
9177:37db8c4c44b7 | 9178:2f5052835b76 |
---|---|
13 | 13 |
14 import org.dive4elements.artifactdatabase.state.Facet; | 14 import org.dive4elements.artifactdatabase.state.Facet; |
15 import org.dive4elements.artifacts.CallContext; | 15 import org.dive4elements.artifacts.CallContext; |
16 import org.dive4elements.river.artifacts.ChartArtifact; | 16 import org.dive4elements.river.artifacts.ChartArtifact; |
17 import org.dive4elements.river.artifacts.D4EArtifact; | 17 import org.dive4elements.river.artifacts.D4EArtifact; |
18 import org.dive4elements.river.artifacts.MapArtifact.MapState; | |
18 import org.dive4elements.river.artifacts.common.AbstractCalculationExportableResult; | 19 import org.dive4elements.river.artifacts.common.AbstractCalculationExportableResult; |
19 import org.dive4elements.river.artifacts.model.Calculation; | 20 import org.dive4elements.river.artifacts.model.Calculation; |
20 import org.dive4elements.river.artifacts.model.CalculationResult; | 21 import org.dive4elements.river.artifacts.model.CalculationResult; |
21 import org.dive4elements.river.artifacts.model.DataFacet; | 22 import org.dive4elements.river.artifacts.model.DataFacet; |
22 import org.dive4elements.river.artifacts.model.EmptyFacet; | 23 import org.dive4elements.river.artifacts.model.EmptyFacet; |
23 import org.dive4elements.river.artifacts.model.FacetTypes; | 24 import org.dive4elements.river.artifacts.model.FacetTypes; |
24 import org.dive4elements.river.artifacts.model.ReportFacet; | 25 import org.dive4elements.river.artifacts.model.ReportFacet; |
25 import org.dive4elements.river.artifacts.states.DefaultState; | |
26 import org.dive4elements.river.artifacts.uinfo.UINFOArtifact; | 26 import org.dive4elements.river.artifacts.uinfo.UINFOArtifact; |
27 | 27 |
28 /** | 28 /** |
29 * @author Domenico Nardi Tironi | 29 * @author Domenico Nardi Tironi |
30 */ | 30 */ |
31 public class InundationDurationState extends DefaultState { | 31 public class InundationDurationState extends MapState { |
32 | 32 |
33 /// ** The log that is used in this state. */ | 33 /// ** The log that is used in this state. */ |
34 // private static Logger log = Logger.getLogger(FlowDepthState.class); | 34 // private static Logger log = Logger.getLogger(FlowDepthState.class); |
35 | 35 |
36 private static final long serialVersionUID = 1L; | 36 private static final long serialVersionUID = 1L; |
58 public Object computeAdvance(final D4EArtifact artifact, final String hash, final CallContext context, final List<Facet> facets, final Object old) { | 58 public Object computeAdvance(final D4EArtifact artifact, final String hash, final CallContext context, final List<Facet> facets, final Object old) { |
59 if (artifact instanceof ChartArtifact) { | 59 if (artifact instanceof ChartArtifact) { |
60 facets.add(new EmptyFacet()); | 60 facets.add(new EmptyFacet()); |
61 return null; | 61 return null; |
62 } | 62 } |
63 | |
64 if (facets != null) | |
65 super.computeAdvance(artifact, hash, context, facets, old); | |
66 | |
63 return compute((UINFOArtifact) artifact, context, hash, facets, old); | 67 return compute((UINFOArtifact) artifact, context, hash, facets, old); |
64 } | 68 } |
65 | 69 |
66 /** | 70 /** |
67 * Compute result or returned object from cache, create facets. | 71 * Compute result or returned object from cache, create facets. |