// Path: avt/src/main/java/fr/irit/smac/libs/tooling/avt/impl/SoftBoundsAVTFactory.java
// public class SoftBoundsAVTFactory implements IAVTFactory<IAVT> {
// 
//     /* (non-Javadoc)
//      * @see fr.irit.smac.libs.tooling.avt.IAVTFactory#createInstance(double, double, double, fr.irit.smac.libs.tooling.avt.deltamanager.IDeltaManagerFactory)
//      */
//     @Override
//     public IAVT createInstance(double lowerBound, double upperBound, double startValue,
//         IDeltaManagerFactory<?> deltaManagerFactory) {
//         return new SoftBoundsAVT(lowerBound, upperBound, startValue, deltaManagerFactory);
//     }
// 
// }
// 
// Path: avt/src/main/java/fr/irit/smac/libs/tooling/avt/impl/SoftBoundsMemoryAVTFactory.java
// public class SoftBoundsMemoryAVTFactory implements IAVTFactory<IAVT> {
// 
//     /** The soft bounds memory. */
//     private final int softBoundsMemory;
// 
//     /**
//      * Instantiates a new soft bounds memory avt factory.
//      *
//      * @param softBoundsMemory the soft bounds memory
//      */
//     public SoftBoundsMemoryAVTFactory(int softBoundsMemory) {
//         super();
//         this.softBoundsMemory = softBoundsMemory;
//     }
// 
//     /* (non-Javadoc)
//      * @see fr.irit.smac.libs.tooling.avt.IAVTFactory#createInstance(double, double, double, fr.irit.smac.libs.tooling.avt.deltamanager.IDeltaManagerFactory)
//      */
//     @Override
//     public IAVT createInstance(double lowerBound, double upperBound, double startValue,
//         IDeltaManagerFactory<?> deltaManagerFactory) {
// 
//         return new SoftBoundsMemoryAVT(lowerBound, upperBound, startValue, deltaManagerFactory, this.softBoundsMemory);
//     }
// 
// }
// 
// Path: avt/src/main/java/fr/irit/smac/libs/tooling/avt/impl/StandardAVTFactory.java
// public class StandardAVTFactory implements IAVTFactory<IAVT> {
// 
//     /* (non-Javadoc)
//      * @see fr.irit.smac.libs.tooling.avt.IAVTFactory#createInstance(double, double, double, fr.irit.smac.libs.tooling.avt.deltamanager.IDeltaManagerFactory)
//      */
//     @Override
//     public IAVT createInstance(double lowerBound, double upperBound, double startValue,
//         IDeltaManagerFactory<?> deltaManagerFactory) {
//         return new StandardAVT(lowerBound, upperBound, startValue, deltaManagerFactory);
//     }
// 
// }


import fr.irit.smac.libs.tooling.avt.impl.SoftBoundsMemoryAVTFactory;
import fr.irit.smac.libs.tooling.avt.impl.StandardAVTFactory;
import fr.irit.smac.libs.tooling.avt.impl.SoftBoundsAVTFactory;
/*
 * #%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;


/**
 * The Class AVTBuilder.
 *
 * @author Sylvain Lemouzy
 */
public class AVTBuilder extends AbstractAVTBuilder<IAVT> {

    /*
     * (non-Javadoc)
     * 
     * @see fr.irit.smac.util.avt.IAVTBuilder#build()
     */
    @Override
    public IAVT build() {

        if (this.avtFactory == null) {

            if (!this.isHardBounds) {
                if (this.softBoundsMemory > 0) {
// Path: avt/src/main/java/fr/irit/smac/libs/tooling/avt/impl/SoftBoundsAVTFactory.java
// public class SoftBoundsAVTFactory implements IAVTFactory<IAVT> {
// 
//     /* (non-Javadoc)
//      * @see fr.irit.smac.libs.tooling.avt.IAVTFactory#createInstance(double, double, double, fr.irit.smac.libs.tooling.avt.deltamanager.IDeltaManagerFactory)
//      */
//     @Override
//     public IAVT createInstance(double lowerBound, double upperBound, double startValue,
//         IDeltaManagerFactory<?> deltaManagerFactory) {
//         return new SoftBoundsAVT(lowerBound, upperBound, startValue, deltaManagerFactory);
//     }
// 
// }
// 
// Path: avt/src/main/java/fr/irit/smac/libs/tooling/avt/impl/SoftBoundsMemoryAVTFactory.java
// public class SoftBoundsMemoryAVTFactory implements IAVTFactory<IAVT> {
// 
//     /** The soft bounds memory. */
//     private final int softBoundsMemory;
// 
//     /**
//      * Instantiates a new soft bounds memory avt factory.
//      *
//      * @param softBoundsMemory the soft bounds memory
//      */
//     public SoftBoundsMemoryAVTFactory(int softBoundsMemory) {
//         super();
//         this.softBoundsMemory = softBoundsMemory;
//     }
// 
//     /* (non-Javadoc)
//      * @see fr.irit.smac.libs.tooling.avt.IAVTFactory#createInstance(double, double, double, fr.irit.smac.libs.tooling.avt.deltamanager.IDeltaManagerFactory)
//      */
//     @Override
//     public IAVT createInstance(double lowerBound, double upperBound, double startValue,
//         IDeltaManagerFactory<?> deltaManagerFactory) {
// 
//         return new SoftBoundsMemoryAVT(lowerBound, upperBound, startValue, deltaManagerFactory, this.softBoundsMemory);
//     }
// 
// }
// 
// Path: avt/src/main/java/fr/irit/smac/libs/tooling/avt/impl/StandardAVTFactory.java
// public class StandardAVTFactory implements IAVTFactory<IAVT> {
// 
//     /* (non-Javadoc)
//      * @see fr.irit.smac.libs.tooling.avt.IAVTFactory#createInstance(double, double, double, fr.irit.smac.libs.tooling.avt.deltamanager.IDeltaManagerFactory)
//      */
//     @Override
//     public IAVT createInstance(double lowerBound, double upperBound, double startValue,
//         IDeltaManagerFactory<?> deltaManagerFactory) {
//         return new StandardAVT(lowerBound, upperBound, startValue, deltaManagerFactory);
//     }
// 
// }


// Path: avt/src/main/java/fr/irit/smac/libs/tooling/avt/AVTBuilder.java
import fr.irit.smac.libs.tooling.avt.impl.SoftBoundsMemoryAVTFactory;
import fr.irit.smac.libs.tooling.avt.impl.StandardAVTFactory;
import fr.irit.smac.libs.tooling.avt.impl.SoftBoundsAVTFactory;

/*
 * #%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;


/**
 * The Class AVTBuilder.
 *
 * @author Sylvain Lemouzy
 */
public class AVTBuilder extends AbstractAVTBuilder<IAVT> {

    /*
     * (non-Javadoc)
     * 
     * @see fr.irit.smac.util.avt.IAVTBuilder#build()
     */
    @Override
    public IAVT build() {

        if (this.avtFactory == null) {

            if (!this.isHardBounds) {
                if (this.softBoundsMemory > 0) {
                    this.avtFactory = new SoftBoundsMemoryAVTFactory(this.softBoundsMemory);