Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/tkhstate/TkhState.java @ 8956:ee5ce13016ed
Work on SINFO-Fließtiefenentwicklung
author | gernotbelger |
---|---|
date | Tue, 20 Mar 2018 13:30:07 +0100 |
parents | a9950a3a71e5 |
children | b194fa64506a |
comparison
equal
deleted
inserted
replaced
8955:798d9dcbccdd | 8956:ee5ce13016ed |
---|---|
9 package org.dive4elements.river.artifacts.sinfo.tkhstate; | 9 package org.dive4elements.river.artifacts.sinfo.tkhstate; |
10 | 10 |
11 import java.util.List; | 11 import java.util.List; |
12 | 12 |
13 import org.dive4elements.artifactdatabase.state.Facet; | 13 import org.dive4elements.artifactdatabase.state.Facet; |
14 import org.dive4elements.artifactdatabase.state.FacetActivity; | |
15 import org.dive4elements.artifacts.Artifact; | |
16 import org.dive4elements.artifacts.CallContext; | 14 import org.dive4elements.artifacts.CallContext; |
17 import org.dive4elements.river.artifacts.ChartArtifact; | 15 import org.dive4elements.river.artifacts.ChartArtifact; |
18 import org.dive4elements.river.artifacts.D4EArtifact; | 16 import org.dive4elements.river.artifacts.D4EArtifact; |
19 import org.dive4elements.river.artifacts.model.Calculation; | 17 import org.dive4elements.river.artifacts.model.Calculation; |
20 import org.dive4elements.river.artifacts.model.CalculationResult; | 18 import org.dive4elements.river.artifacts.model.CalculationResult; |
35 | 33 |
36 /// ** The log that is used in this state. */ | 34 /// ** The log that is used in this state. */ |
37 // private static Logger log = Logger.getLogger(FlowDepthState.class); | 35 // private static Logger log = Logger.getLogger(FlowDepthState.class); |
38 | 36 |
39 private static final long serialVersionUID = 1L; | 37 private static final long serialVersionUID = 1L; |
40 | |
41 static { | |
42 // Active/deactivate facets. | |
43 // BEWARE: we can only define one activity for "sinfo", so this is not the right place.... | |
44 FacetActivity.Registry.getInstance().register("sinfo", new FacetActivity() { | |
45 @Override | |
46 public Boolean isInitialActive(final Artifact artifact, final Facet facet, final String output) { | |
47 | |
48 /* only */ | |
49 if ("sinfo_tkk".equals(output)) { | |
50 final String name = facet.getName(); | |
51 if (FlowDepthProcessor.FACET_FLOW_DEPTH_FILTERED.equals(name)) | |
52 return Boolean.FALSE; | |
53 if (VelocityProcessor.FACET_TKH_VELOCITY_FILTERED.equals(name)) | |
54 return Boolean.FALSE; | |
55 if (TauProcessor.FACET_TKH_TAU_FILTERED.equals(name)) | |
56 return Boolean.FALSE; | |
57 if (D50Processor.FACET_TKH_D50_FILTERED.equals(name)) | |
58 return Boolean.FALSE; | |
59 } | |
60 | |
61 return null; | |
62 } | |
63 }); | |
64 } | |
65 | 38 |
66 /** | 39 /** |
67 * From this state can only be continued trivially. | 40 * From this state can only be continued trivially. |
68 */ | 41 */ |
69 @Override | 42 @Override |