Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/tkhstate/TkhState.java @ 8941:a9950a3a71e5
SINFO - tkh, configured result facets and themes
Configured datacages
author | gernotbelger |
---|---|
date | Wed, 07 Mar 2018 17:36:04 +0100 |
parents | 82998242ba84 |
children | ee5ce13016ed |
comparison
equal
deleted
inserted
replaced
8940:82998242ba84 | 8941:a9950a3a71e5 |
---|---|
21 import org.dive4elements.river.artifacts.model.DataFacet; | 21 import org.dive4elements.river.artifacts.model.DataFacet; |
22 import org.dive4elements.river.artifacts.model.EmptyFacet; | 22 import org.dive4elements.river.artifacts.model.EmptyFacet; |
23 import org.dive4elements.river.artifacts.model.FacetTypes; | 23 import org.dive4elements.river.artifacts.model.FacetTypes; |
24 import org.dive4elements.river.artifacts.model.ReportFacet; | 24 import org.dive4elements.river.artifacts.model.ReportFacet; |
25 import org.dive4elements.river.artifacts.sinfo.SINFOArtifact; | 25 import org.dive4elements.river.artifacts.sinfo.SINFOArtifact; |
26 import org.dive4elements.river.artifacts.sinfo.common.D50Processor; | |
26 import org.dive4elements.river.artifacts.sinfo.common.FlowDepthProcessor; | 27 import org.dive4elements.river.artifacts.sinfo.common.FlowDepthProcessor; |
28 import org.dive4elements.river.artifacts.sinfo.common.TauProcessor; | |
27 import org.dive4elements.river.artifacts.sinfo.common.TkhProcessor; | 29 import org.dive4elements.river.artifacts.sinfo.common.TkhProcessor; |
30 import org.dive4elements.river.artifacts.sinfo.common.VelocityProcessor; | |
28 import org.dive4elements.river.artifacts.states.DefaultState; | 31 import org.dive4elements.river.artifacts.states.DefaultState; |
29 | 32 |
30 /** State in which a waterlevel has been calculated. */ | 33 /** State in which a waterlevel has been calculated. */ |
31 public class TkhState extends DefaultState { | 34 public class TkhState extends DefaultState { |
32 | 35 |
44 | 47 |
45 /* only */ | 48 /* only */ |
46 if ("sinfo_tkk".equals(output)) { | 49 if ("sinfo_tkk".equals(output)) { |
47 final String name = facet.getName(); | 50 final String name = facet.getName(); |
48 if (FlowDepthProcessor.FACET_FLOW_DEPTH_FILTERED.equals(name)) | 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)) | |
49 return Boolean.FALSE; | 58 return Boolean.FALSE; |
50 } | 59 } |
51 | 60 |
52 return null; | 61 return null; |
53 } | 62 } |
103 | 112 |
104 final TkhCalculationResult result = resultList.get(index); | 113 final TkhCalculationResult result = resultList.get(index); |
105 | 114 |
106 facets.add(TkhProcessor.createTkhFacet(context, hash, this.id, result, index)); | 115 facets.add(TkhProcessor.createTkhFacet(context, hash, this.id, result, index)); |
107 | 116 |
108 // FIXME: should only be optionally visible | 117 facets.add(FlowDepthProcessor.createFlowDepthFacet(context, hash, this.id, result, index)); |
109 facets.add(FlowDepthProcessor.createFlowDepthTkhFacet(context, hash, this.id, result, index)); | 118 facets.add(VelocityProcessor.createVelocityFacet(context, hash, this.id, result, index)); |
119 facets.add(D50Processor.createD50Facet(context, hash, this.id, result, index)); | |
120 facets.add(TauProcessor.createTauFacet(context, hash, this.id, result, index)); | |
110 } | 121 } |
111 | 122 |
112 if (!resultList.isEmpty()) { | 123 if (!resultList.isEmpty()) { |
113 facets.add(new DataFacet(FacetTypes.CSV, "CSV data", ComputeType.ADVANCE, hash, this.id)); | 124 facets.add(new DataFacet(FacetTypes.CSV, "CSV data", ComputeType.ADVANCE, hash, this.id)); |
114 facets.add(new DataFacet(FacetTypes.PDF, "PDF data", ComputeType.ADVANCE, hash, this.id)); | 125 facets.add(new DataFacet(FacetTypes.PDF, "PDF data", ComputeType.ADVANCE, hash, this.id)); |