Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/uinfo/vegetationzones/VegetationZonesState.java @ 9024:a6b3421dc2b4
test 2,5
author | gernotbelger |
---|---|
date | Mon, 23 Apr 2018 17:31:35 +0200 |
parents | fb9430250899 |
children | 1ffd38826175 |
comparison
equal
deleted
inserted
replaced
9023:c4c11358ffa9 | 9024:a6b3421dc2b4 |
---|---|
1 /** Copyright (C) 2017 by Bundesanstalt für Gewässerkunde | 1 /** Copyright (C) 2017 by Bundesanstalt für Gewässerkunde |
2 * Software engineering by | 2 * Software engineering by |
3 * Björnsen Beratende Ingenieure GmbH | 3 * Björnsen Beratende Ingenieure GmbH |
4 * Dr. Schumacher Ingenieurbüro für Wasser und Umwelt | 4 * Dr. Schumacher Ingenieurbüro für Wasser und Umwelt |
5 * | 5 * |
6 * This file is Free Software under the GNU AGPL (>=v3) | 6 * This file is Free Software under the GNU AGPL (>=v3) |
7 * and comes with ABSOLUTELY NO WARRANTY! Check out the | 7 * and comes with ABSOLUTELY NO WARRANTY! Check out the |
8 * documentation coming with Dive4Elements River for details. | 8 * documentation coming with Dive4Elements River for details. |
75 if (facets == null) | 75 if (facets == null) |
76 return res; | 76 return res; |
77 | 77 |
78 final VegetationZonesCalculationResults results = (VegetationZonesCalculationResults) res.getData(); | 78 final VegetationZonesCalculationResults results = (VegetationZonesCalculationResults) res.getData(); |
79 | 79 |
80 List<VegetationZonesCalculationResult> resultList = results.getResults(); | 80 final List<VegetationZonesCalculationResult> resultList = results.getResults(); |
81 | 81 |
82 if (!resultList.isEmpty()) { | 82 if (!resultList.isEmpty()) { |
83 final Facet csv = new DataFacet(FacetTypes.CSV, "CSV data", ComputeType.ADVANCE, hash, this.id); | 83 final Facet csv = new DataFacet(FacetTypes.CSV, "CSV data", ComputeType.ADVANCE, hash, this.id); |
84 final Facet pdf = new DataFacet(FacetTypes.PDF, "PDF data", ComputeType.ADVANCE, hash, this.id); | 84 final Facet pdf = new DataFacet(FacetTypes.PDF, "PDF data", ComputeType.ADVANCE, hash, this.id); |
85 | 85 |
97 | 97 |
98 private CalculationResult doCompute(final UINFOArtifact sinfo, final CallContext context, final Object old) { | 98 private CalculationResult doCompute(final UINFOArtifact sinfo, final CallContext context, final Object old) { |
99 if (old instanceof CalculationResult) | 99 if (old instanceof CalculationResult) |
100 return (CalculationResult) old; | 100 return (CalculationResult) old; |
101 | 101 |
102 return new VegetationZonesCalculation(context).calculate(sinfo); | 102 return new VegetationZonesCalculation(context).calculate(sinfo); // Test2 |
103 } | 103 } |
104 } | 104 } |