Mercurial > dive4elements > river
view artifacts/src/main/java/org/dive4elements/river/artifacts/bundu/bezugswst/BezugswstResultFacet.java @ 9432:d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
author | mschaefer |
---|---|
date | Mon, 20 Aug 2018 09:46:02 +0200 |
parents | |
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.bundu.bezugswst; import org.apache.log4j.Logger; import org.dive4elements.artifactdatabase.state.Facet; import org.dive4elements.river.artifacts.common.ResultFacet; import org.dive4elements.river.artifacts.states.DefaultState.ComputeType; /** * Facet of a bundu bezugswst longitudinal section data series */ public class BezugswstResultFacet extends ResultFacet { private static final long serialVersionUID = 1L; private static Logger log = Logger.getLogger(BezugswstResultFacet.class); public BezugswstResultFacet() { // required for clone operation deepCopy() } public BezugswstResultFacet(final int facetIndex, final int resultIndex, final String name, final String description, final String yAxisLabelKey, final String stateId, final String hash) { super(facetIndex, resultIndex, name, description, yAxisLabelKey, ComputeType.ADVANCE, stateId, hash); } /** Copy deeply. */ @Override public Facet deepCopy() { // FIXME: why not simply use the full constructor instead? final BezugswstResultFacet copy = new BezugswstResultFacet(); // 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; return copy; } }