mschaefer@9295: /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde mschaefer@9295: * Software engineering by Intevation GmbH mschaefer@9295: * mschaefer@9295: * This file is Free Software under the GNU AGPL (>=v3) mschaefer@9295: * and comes with ABSOLUTELY NO WARRANTY! Check out the mschaefer@9295: * documentation coming with Dive4Elements River for details. mschaefer@9295: */ mschaefer@9295: mschaefer@9295: package org.dive4elements.river.artifacts.uinfo.salix; mschaefer@9295: mschaefer@9295: import org.apache.log4j.Logger; mschaefer@9295: import org.dive4elements.artifactdatabase.state.Facet; gernotbelger@9347: import org.dive4elements.river.artifacts.common.ResultFacet; gernotbelger@9347: import org.dive4elements.river.artifacts.states.DefaultState.ComputeType; mschaefer@9295: mschaefer@9295: /** mschaefer@9295: * Facet of the U-Info salix line curve. mschaefer@9295: */ gernotbelger@9347: public class SalixLineResultFacet extends ResultFacet { mschaefer@9295: mschaefer@9295: private static final long serialVersionUID = 1L; mschaefer@9295: mschaefer@9295: private static Logger log = Logger.getLogger(SalixLineResultFacet.class); mschaefer@9295: mschaefer@9295: public SalixLineResultFacet() { mschaefer@9295: // required for clone operation deepCopy() mschaefer@9295: } mschaefer@9295: gernotbelger@9347: public SalixLineResultFacet(final int facetIndex, final int resultIndex, final String name, final String description, final String yAxisLabelKey, gernotbelger@9347: final String stateId, final String hash) { gernotbelger@9347: super(facetIndex, resultIndex, name, description, yAxisLabelKey, ComputeType.ADVANCE, stateId, hash); mschaefer@9295: } mschaefer@9295: mschaefer@9295: /** Copy deeply. */ mschaefer@9295: @Override mschaefer@9295: public Facet deepCopy() { mschaefer@9295: // FIXME: why not simply use the full constructor instead? mschaefer@9295: final SalixLineResultFacet copy = new SalixLineResultFacet(); mschaefer@9295: // FIXME: why does DataFacet does not override set? Bad access to variables of parent! mschaefer@9295: copy.set(this); mschaefer@9295: copy.type = this.type; mschaefer@9295: copy.hash = this.hash; mschaefer@9295: copy.stateId = this.stateId; mschaefer@9295: return copy; mschaefer@9295: } mschaefer@9295: }