comparison artifacts/src/main/java/org/dive4elements/river/artifacts/bundu/bezugswst/BezugswstState.java @ 9318:7b2b086e45f0

collision pdf details, ResultType refactoring, bezugswst result
author gernotbelger
date Fri, 27 Jul 2018 10:11:23 +0200
parents 6ffcbb4f35d5
children ddcd52d239cd
comparison
equal deleted inserted replaced
9317:61b5de0b673b 9318:7b2b086e45f0
25 * 25 *
26 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a> 26 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a>
27 */ 27 */
28 public class BezugswstState extends DefaultState implements FacetTypes { 28 public class BezugswstState extends DefaultState implements FacetTypes {
29 29
30 /* 30 private static final long serialVersionUID = 1L;
31 * TODO: THIS CLASS IS A CLONE OF FixRealizingCompute
32 * +
33 * ++
34 * +++
35 * ++++
36 * +++++
37 * ++++++
38 * +++++++
39 * ++++++++
40 * +++++++++
41 * ++++++++++
42 * +++++++++++
43 * IT does not work here
44 */
45 31
46 /** The log used in this class. */ 32 /** The log used in this class. */
47 private static Logger log = Logger.getLogger(BezugswstState.class); 33 private static Logger log = Logger.getLogger(BezugswstState.class);
48 34
49 public static final String I18N_WQ_CURVE = "fix.vollmer.wq.curve"; 35 public static final String I18N_WQ_CURVE = "fix.vollmer.wq.curve";
57 } 43 }
58 44
59 @Override 45 @Override
60 public Object computeAdvance(final D4EArtifact artifact, final String hash, final CallContext context, final List<Facet> facets, final Object old) { 46 public Object computeAdvance(final D4EArtifact artifact, final String hash, final CallContext context, final List<Facet> facets, final Object old) {
61 log.debug("BezugswstState.computeAdvance"); 47 log.debug("BezugswstState.computeAdvance");
62 48 // TODO: remove this old stuff, or replace it by new
63 // final CalculationResult res; 49 // final CalculationResult res;
64 // 50 //
65 // final FixRealizingAccess access = new FixRealizingAccess(artifact); 51 // final FixRealizingAccess access = new FixRealizingAccess(artifact);
66 // 52 //
67 // if (old instanceof CalculationResult) { 53 // if (old instanceof CalculationResult) {
163 final CalculationResult res = s.calculate(artifact); 149 final CalculationResult res = s.calculate(artifact);
164 150
165 if (facets == null) 151 if (facets == null)
166 return res; 152 return res;
167 153
168 // if (!((List<Facet>) res).isEmpty()) {
169 final Facet csv = new DataFacet(FacetTypes.CSV, "CSV data", ComputeType.ADVANCE, hash, this.id); 154 final Facet csv = new DataFacet(FacetTypes.CSV, "CSV data", ComputeType.ADVANCE, hash, this.id);
170 final Facet pdf = new DataFacet(FacetTypes.PDF, "PDF data", ComputeType.ADVANCE, hash, this.id); 155 final Facet pdf = new DataFacet(FacetTypes.PDF, "PDF data", ComputeType.ADVANCE, hash, this.id);
171 156
172 facets.add(csv); 157 facets.add(csv);
173 facets.add(pdf); 158 facets.add(pdf);
174 // }
175 159
176 return res; 160 return res;
177 } 161 }
178 162
179 } 163 }

http://dive4elements.wald.intevation.org