/**
 */
package ua.ansymo.hintco.impl;

import org.eclipse.emf.ecore.EClass;

import ua.ansymo.hintco.HintcoPackage;
import ua.ansymo.hintco.InterpolationAdaptation;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model object '<em><b>Interpolation Adaptation</b></em>'.
 * <!-- end-user-doc -->
 * <p>
 * The following features are implemented:
 * </p>
 * <ul>
 *   <li>{@link ua.ansymo.hintco.impl.InterpolationAdaptationImpl#getName <em>Name</em>}</li>
 * </ul>
 *
 * @generated
 */
public class InterpolationAdaptationImpl extends ApproximationAdaptationImpl implements InterpolationAdaptation {
	/**
	 * The default value of the '{@link #getName() <em>Name</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getName()
	 * @generated
	 * @ordered
	 */
	protected static final String NAME_EDEFAULT = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected InterpolationAdaptationImpl() {
		super();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	protected EClass eStaticClass() {
		return HintcoPackage.Literals.INTERPOLATION_ADAPTATION;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
		int _order = this.getOrder();
		String _plus = (Integer.valueOf(_order) + "(w=");
		int _weight = this.getWeight();
		String _plus_1 = (_plus + Integer.valueOf(_weight));
		return (_plus_1 + ")");
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Object eGet(int featureID, boolean resolve, boolean coreType) {
		switch (featureID) {
			case HintcoPackage.INTERPOLATION_ADAPTATION__NAME:
				return getName();
		}
		return super.eGet(featureID, resolve, coreType);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public boolean eIsSet(int featureID) {
		switch (featureID) {
			case HintcoPackage.INTERPOLATION_ADAPTATION__NAME:
				return NAME_EDEFAULT == null ? getName() != null : !NAME_EDEFAULT.equals(getName());
		}
		return super.eIsSet(featureID);
	}

} //InterpolationAdaptationImpl
