Mercurial > dive4elements > river
view 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 |
line wrap: on
line source
/** Copyright (C) 2017 by Bundesanstalt für Gewässerkunde * Software engineering by * Björnsen Beratende Ingenieure GmbH * Dr. Schumacher Ingenieurbüro für Wasser und Umwelt * * This file is Free Software under the GNU AGPL (>=v3) * and comes with ABSOLUTELY NO WARRANTY! Check out the * documentation coming with Dive4Elements River for details. */ package org.dive4elements.river.artifacts.sinfo.collision; import org.dive4elements.artifactdatabase.state.Facet; import org.dive4elements.river.artifacts.common.ResultFacet; import org.dive4elements.river.artifacts.states.DefaultState.ComputeType; /** * Facet for calculated river bed collision counts * * @author Matthias Schäfer */ public class CollisionCalcFacet extends ResultFacet { private static final long serialVersionUID = 1; private String years; private CollisionCalcFacet() { super(); // required for clone operation deepCopy() } public CollisionCalcFacet(final int facetIndex, final int resultIndex, final String years, final String name, final String description, final String yAxisLabelKey, final ComputeType type, final String hash, final String stateId) { super(facetIndex, resultIndex, name, description, yAxisLabelKey, type, stateId, hash); this.years = years; } public String getYears() { return this.years; } /** Copy deeply. */ @Override public Facet deepCopy() { // FIXME: why not simply use the full constructor instead? final CollisionCalcFacet copy = new CollisionCalcFacet(); // FIXME: why does DataFacet does not override set? Bad access to variables of parent! copy.set(this); copy.type = this.type; copy.hash = this.hash; copy.stateId = this.stateId; copy.years = this.years; return copy; } }