comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/collision/CollisionCalcFacet.java @ 9487:504f63512379

Sinfo collisions: calculation of multiple epochs, avoiding duplicate collision events in the details report
author mschaefer
date Tue, 18 Sep 2018 12:21:17 +0200
parents 08f46ccd37ba
children
comparison
equal deleted inserted replaced
9486:ce13a2f07290 9487:504f63512379
20 * @author Matthias Schäfer 20 * @author Matthias Schäfer
21 */ 21 */
22 public class CollisionCalcFacet extends ResultFacet { 22 public class CollisionCalcFacet extends ResultFacet {
23 23
24 private static final long serialVersionUID = 1; 24 private static final long serialVersionUID = 1;
25 private int year; 25 private String years;
26 26
27 private CollisionCalcFacet() { 27 private CollisionCalcFacet() {
28 super(); 28 super();
29 // required for clone operation deepCopy() 29 // required for clone operation deepCopy()
30 } 30 }
31 31
32 public CollisionCalcFacet(final int facetIndex, final int resultIndex, final int year, final String name, final String description, 32 public CollisionCalcFacet(final int facetIndex, final int resultIndex, final String years, final String name, final String description,
33 final String yAxisLabelKey, final ComputeType type, final String hash, final String stateId) { 33 final String yAxisLabelKey, final ComputeType type, final String hash, final String stateId) {
34
34 super(facetIndex, resultIndex, name, description, yAxisLabelKey, type, stateId, hash); 35 super(facetIndex, resultIndex, name, description, yAxisLabelKey, type, stateId, hash);
35 36 this.years = years;
36 this.year = year;
37 } 37 }
38 38
39 public int getYear() { 39 public String getYears() {
40 return this.year; 40 return this.years;
41 } 41 }
42 42
43 /** Copy deeply. */ 43 /** Copy deeply. */
44 @Override 44 @Override
45 public Facet deepCopy() { 45 public Facet deepCopy() {
48 // FIXME: why does DataFacet does not override set? Bad access to variables of parent! 48 // FIXME: why does DataFacet does not override set? Bad access to variables of parent!
49 copy.set(this); 49 copy.set(this);
50 copy.type = this.type; 50 copy.type = this.type;
51 copy.hash = this.hash; 51 copy.hash = this.hash;
52 copy.stateId = this.stateId; 52 copy.stateId = this.stateId;
53 copy.year = this.year; 53 copy.years = this.years;
54 return copy; 54 return copy;
55 } 55 }
56 } 56 }

http://dive4elements.wald.intevation.org