Mercurial > dive4elements > river
view artifacts/src/main/java/org/dive4elements/river/artifacts/uinfo/salix/SalixMnwMwResultFacet.java @ 9499:853f2dafc16e
VegetationZones in CrossSectionsDiagram
author | gernotbelger |
---|---|
date | Thu, 27 Sep 2018 18:06:26 +0200 |
parents | 08f46ccd37ba |
children |
line wrap: on
line source
/* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde * Software engineering by Intevation GmbH * * 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.uinfo.salix; import org.dive4elements.artifactdatabase.state.Facet; import org.dive4elements.river.artifacts.common.ResultFacet; import org.dive4elements.river.artifacts.states.DefaultState.ComputeType; /** * Facet of the U-Info salix mnw-mw curve. */ public class SalixMnwMwResultFacet extends ResultFacet { private static final long serialVersionUID = 1L; public SalixMnwMwResultFacet() { // required for clone operation deepCopy() } public SalixMnwMwResultFacet(final int facetIndex, final int resultIndex, final String name, final String description, final String yAxisLabel, final String id, final String hash) { super(facetIndex, resultIndex, name, description, yAxisLabel, ComputeType.ADVANCE, id, hash); } /** Copy deeply. */ @Override public Facet deepCopy() { // FIXME: why not simply use the full constructor instead? final SalixMnwMwResultFacet copy = new SalixMnwMwResultFacet(); // 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; } }