All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openl.rules.variation.NoVariation Maven / Gradle / Ivy

There is a newer version: 5.27.9
Show newest version
package org.openl.rules.variation;

import javax.xml.bind.annotation.XmlRootElement;

/**
 * Empty variation that represents original calculation without any changes of arguments.
 *
 * @author PUdalau, Marat Kamalov
 */

@XmlRootElement
@Deprecated
public class NoVariation extends Variation {
    /**
     * ID for original calculation. Can be used for retrieving result of calculation without variations.
     */
    public static final String ORIGINAL_CALCULATION = "Original calculation";

    public NoVariation() {
        super(ORIGINAL_CALCULATION);
    }

    @Override
    public Object[] applyModification(Object[] originalArguments) {
        return originalArguments;
    }

    @Override
    public void revertModifications(Object[] modifiedArguments, Object previousValue) {
    }

    @Override
    public Object currentValue(Object[] originalArguments) {
        return null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy