// Path: avt/src/main/java/fr/irit/smac/libs/tooling/avt/deltamanager/deltaevolution/IGeometricDE.java
// public interface IGeometricDE extends IDeltaEvolution {
//     
//     /**
//      * Gets the increase factor.
//      *
//      * @return the increase factor
//      */
//     public double getIncreaseFactor();
// 
//     /**
//      * Gets the decrease factor.
//      *
//      * @return the decrease factor
//      */
//     public double getDecreaseFactor();
// }
// 
// Path: avt/src/main/java/fr/irit/smac/libs/tooling/avt/deltamanager/deltaevolution/IGeometricDEFactory.java
// public interface IGeometricDEFactory extends IDeltaEvolutionFactory {
//     
//     /* (non-Javadoc)
//      * @see fr.irit.smac.libs.tooling.avt.deltamanager.deltaevolution.IDeltaEvolutionFactory#createInstance()
//      */
//     @Override
//     IGeometricDE createInstance();
// }


import fr.irit.smac.libs.tooling.avt.deltamanager.deltaevolution.IGeometricDEFactory;
import fr.irit.smac.libs.tooling.avt.deltamanager.deltaevolution.IGeometricDE;
/*
 * #%L
 * avt
 * %%
 * Copyright (C) 2014 - 2015 IRIT - SMAC Team
 * %%
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Lesser Public License for more details.
 * 
 * You should have received a copy of the GNU General Lesser Public
 * License along with this program.  If not, see
 * <http://www.gnu.org/licenses/lgpl-3.0.html>.
 * #L%
 */
package fr.irit.smac.libs.tooling.avt.deltamanager.deltaevolution.impl;


/**
 * A factory for creating UndeterministicGDE objects.
 */
public class UndeterministicGDEFactory implements IGeometricDEFactory {

    /** The increase factor. */
    private final double increaseFactor;
    
    /** The decrease factor. */
    private final double decreaseFactor;
    
    /** The decrease noise. */
    private final double decreaseNoise;
    
    /** The random seed. */
    private final Long   randomSeed;

    /**
     * Instantiates a new undeterministic gde factory.
     *
     * @param increaseFactor the increase factor
     * @param decreaseFactor the decrease factor
     * @param decreaseNoise the decrease noise
     */
    public UndeterministicGDEFactory(double increaseFactor, double decreaseFactor, double decreaseNoise) {
        this(increaseFactor, decreaseFactor, decreaseNoise, null);
    }

    /**
     * Instantiates a new undeterministic gde factory.
     *
     * @param increaseFactor the increase factor
     * @param decreaseFactor the decrease factor
     * @param decreaseNoise the decrease noise
     * @param randomSeed the random seed
     */
    public UndeterministicGDEFactory(double increaseFactor, double decreaseFactor, double decreaseNoise,
        Long randomSeed) {
        super();
        this.increaseFactor = increaseFactor;
        this.decreaseFactor = decreaseFactor;
        this.decreaseNoise = decreaseNoise;
        this.randomSeed = randomSeed;
    }

    /* (non-Javadoc)
     * @see fr.irit.smac.libs.tooling.avt.deltamanager.deltaevolution.IGeometricDEFactory#createInstance()
     */
    @Override
// Path: avt/src/main/java/fr/irit/smac/libs/tooling/avt/deltamanager/deltaevolution/IGeometricDE.java
// public interface IGeometricDE extends IDeltaEvolution {
//     
//     /**
//      * Gets the increase factor.
//      *
//      * @return the increase factor
//      */
//     public double getIncreaseFactor();
// 
//     /**
//      * Gets the decrease factor.
//      *
//      * @return the decrease factor
//      */
//     public double getDecreaseFactor();
// }
// 
// Path: avt/src/main/java/fr/irit/smac/libs/tooling/avt/deltamanager/deltaevolution/IGeometricDEFactory.java
// public interface IGeometricDEFactory extends IDeltaEvolutionFactory {
//     
//     /* (non-Javadoc)
//      * @see fr.irit.smac.libs.tooling.avt.deltamanager.deltaevolution.IDeltaEvolutionFactory#createInstance()
//      */
//     @Override
//     IGeometricDE createInstance();
// }


// Path: avt/src/main/java/fr/irit/smac/libs/tooling/avt/deltamanager/deltaevolution/impl/UndeterministicGDEFactory.java
import fr.irit.smac.libs.tooling.avt.deltamanager.deltaevolution.IGeometricDEFactory;
import fr.irit.smac.libs.tooling.avt.deltamanager.deltaevolution.IGeometricDE;

/*
 * #%L
 * avt
 * %%
 * Copyright (C) 2014 - 2015 IRIT - SMAC Team
 * %%
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Lesser Public License for more details.
 * 
 * You should have received a copy of the GNU General Lesser Public
 * License along with this program.  If not, see
 * <http://www.gnu.org/licenses/lgpl-3.0.html>.
 * #L%
 */
package fr.irit.smac.libs.tooling.avt.deltamanager.deltaevolution.impl;


/**
 * A factory for creating UndeterministicGDE objects.
 */
public class UndeterministicGDEFactory implements IGeometricDEFactory {

    /** The increase factor. */
    private final double increaseFactor;
    
    /** The decrease factor. */
    private final double decreaseFactor;
    
    /** The decrease noise. */
    private final double decreaseNoise;
    
    /** The random seed. */
    private final Long   randomSeed;

    /**
     * Instantiates a new undeterministic gde factory.
     *
     * @param increaseFactor the increase factor
     * @param decreaseFactor the decrease factor
     * @param decreaseNoise the decrease noise
     */
    public UndeterministicGDEFactory(double increaseFactor, double decreaseFactor, double decreaseNoise) {
        this(increaseFactor, decreaseFactor, decreaseNoise, null);
    }

    /**
     * Instantiates a new undeterministic gde factory.
     *
     * @param increaseFactor the increase factor
     * @param decreaseFactor the decrease factor
     * @param decreaseNoise the decrease noise
     * @param randomSeed the random seed
     */
    public UndeterministicGDEFactory(double increaseFactor, double decreaseFactor, double decreaseNoise,
        Long randomSeed) {
        super();
        this.increaseFactor = increaseFactor;
        this.decreaseFactor = decreaseFactor;
        this.decreaseNoise = decreaseNoise;
        this.randomSeed = randomSeed;
    }

    /* (non-Javadoc)
     * @see fr.irit.smac.libs.tooling.avt.deltamanager.deltaevolution.IGeometricDEFactory#createInstance()
     */
    @Override
    public IGeometricDE createInstance() {