comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/predefinedflowdepth/PredefinedFlowDepthFacet.java @ 9195:a4121ec450d6

'ca.'-issue ExportContextCSV+PDF separated uinfo.inundationduration url export
author gernotbelger
date Fri, 29 Jun 2018 14:52:54 +0200
parents c16e90a0baf7
children
comparison
equal deleted inserted replaced
9191:f692f5a0536a 9195:a4121ec450d6
15 import java.util.List; 15 import java.util.List;
16 16
17 import org.dive4elements.artifacts.Artifact; 17 import org.dive4elements.artifacts.Artifact;
18 import org.dive4elements.artifacts.CallContext; 18 import org.dive4elements.artifacts.CallContext;
19 import org.dive4elements.river.artifacts.D4EArtifact; 19 import org.dive4elements.river.artifacts.D4EArtifact;
20 import org.dive4elements.river.artifacts.common.DefaultCalculationResult;
20 import org.dive4elements.river.artifacts.common.GeneralResultType; 21 import org.dive4elements.river.artifacts.common.GeneralResultType;
21 import org.dive4elements.river.artifacts.common.ResultRow; 22 import org.dive4elements.river.artifacts.common.ResultRow;
22 import org.dive4elements.river.artifacts.model.BlackboardDataFacet; 23 import org.dive4elements.river.artifacts.model.BlackboardDataFacet;
23 import org.dive4elements.river.artifacts.model.FacetTypes; 24 import org.dive4elements.river.artifacts.model.FacetTypes;
24 import org.dive4elements.river.artifacts.sinfo.common.SInfoResultType; 25 import org.dive4elements.river.artifacts.sinfo.common.SInfoResultType;
61 final Collection<ResultRow> rows = new ArrayList<>(); 62 final Collection<ResultRow> rows = new ArrayList<>();
62 for (final FlowDepthValue value : values) { 63 for (final FlowDepthValue value : values) {
63 rows.add(ResultRow.create().putValue(GeneralResultType.station, value.getStation()) // 64 rows.add(ResultRow.create().putValue(GeneralResultType.station, value.getStation()) //
64 .putValue(SInfoResultType.flowdepth, value.getDepth())); 65 .putValue(SInfoResultType.flowdepth, value.getDepth()));
65 } 66 }
66 return new PredefinedFlowDepthQueryCalculationResult(series.getName(), rows); 67 return new DefaultCalculationResult(series.getName(), rows);
67 } 68 }
68 69
69 /** 70 /**
70 * Create a deep copy of this Facet. 71 * Create a deep copy of this Facet.
71 * 72 *

http://dive4elements.wald.intevation.org