/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package fr.femtost.disc.eclipse.vhdlamslibrary.vhdlamsforsysmlprofile.impl;

import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;

import org.eclipse.emf.ecore.impl.EPackageImpl;

import org.eclipse.uml2.uml.UMLPackage;

import org.topcased.sysml.SysMLPackage;

import fr.femtost.disc.eclipse.vhdlamslibrary.vhdlamsforsysmlprofile.Nature;
import fr.femtost.disc.eclipse.vhdlamslibrary.vhdlamsforsysmlprofile.VhdlamsforsysmlprofileFactory;
import fr.femtost.disc.eclipse.vhdlamslibrary.vhdlamsforsysmlprofile.VhdlamsforsysmlprofilePackage;
import fr.femtost.disc.eclipse.vhdlamslibrary.vhdlamsforsysmlprofile.minus;
import fr.femtost.disc.eclipse.vhdlamslibrary.vhdlamsforsysmlprofile.plus;
import fr.femtost.disc.eclipse.vhdlamslibrary.vhdlamsforsysmlprofile.quantity;


/**
 * <!-- begin-user-doc -->
 * An implementation of the model <b>Package</b>.
 * <!-- end-user-doc -->
 * @generated
 */
public class VhdlamsforsysmlprofilePackageImpl extends EPackageImpl implements VhdlamsforsysmlprofilePackage {
	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass pslEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass natureEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass plusEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass minusEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass quantityEClass = null;

	/**
	 * Creates an instance of the model <b>Package</b>, registered with
	 * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
	 * package URI value.
	 * <p>Note: the correct way to create the package is via the static
	 * factory method {@link #init init()}, which also performs
	 * initialization of the package, or returns the registered package,
	 * if one already exists.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see org.eclipse.emf.ecore.EPackage.Registry
	 * @see fr.femtost.disc.eclipse.vhdlamslibrary.vhdlamsforsysmlprofile.VhdlamsforsysmlprofilePackage#eNS_URI
	 * @see #init()
	 * @generated
	 */
	private VhdlamsforsysmlprofilePackageImpl() {
		super(eNS_URI, VhdlamsforsysmlprofileFactory.eINSTANCE);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static boolean isInited = false;

	/**
	 * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
	 * 
	 * <p>This method is used to initialize {@link VhdlamsforsysmlprofilePackage#eINSTANCE} when that field is accessed.
	 * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #eNS_URI
	 * @see #createPackageContents()
	 * @see #initializePackageContents()
	 * @generated
	 */
	public static VhdlamsforsysmlprofilePackage init() {
		if (isInited) return (VhdlamsforsysmlprofilePackage)EPackage.Registry.INSTANCE.getEPackage(VhdlamsforsysmlprofilePackage.eNS_URI);

		// Obtain or create and register package
		VhdlamsforsysmlprofilePackageImpl theVhdlamsforsysmlprofilePackage = (VhdlamsforsysmlprofilePackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof VhdlamsforsysmlprofilePackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new VhdlamsforsysmlprofilePackageImpl());

		isInited = true;

		// Initialize simple dependencies
		SysMLPackage.eINSTANCE.eClass();

		// Create package meta-data objects
		theVhdlamsforsysmlprofilePackage.createPackageContents();

		// Initialize created meta-data
		theVhdlamsforsysmlprofilePackage.initializePackageContents();

		// Mark meta-data to indicate it can't be changed
		theVhdlamsforsysmlprofilePackage.freeze();

  
		// Update the registry and return the package
		EPackage.Registry.INSTANCE.put(VhdlamsforsysmlprofilePackage.eNS_URI, theVhdlamsforsysmlprofilePackage);
		return theVhdlamsforsysmlprofilePackage;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getPSL() {
		return pslEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getPSL_Base_Requirement() {
		return (EReference)pslEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getNature() {
		return natureEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getNature_Base_Interface() {
		return (EReference)natureEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getplus() {
		return plusEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getplus_Base_Property() {
		return (EReference)plusEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getminus() {
		return minusEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getminus_Base_Property() {
		return (EReference)minusEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getquantity() {
		return quantityEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getquantity_Base_Property() {
		return (EReference)quantityEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public VhdlamsforsysmlprofileFactory getVhdlamsforsysmlprofileFactory() {
		return (VhdlamsforsysmlprofileFactory)getEFactoryInstance();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private boolean isCreated = false;

	/**
	 * Creates the meta-model objects for the package.  This method is
	 * guarded to have no affect on any invocation but its first.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void createPackageContents() {
		if (isCreated) return;
		isCreated = true;

		// Create classes and their features
		pslEClass = createEClass(PSL);
		createEReference(pslEClass, PSL__BASE_REQUIREMENT);

		natureEClass = createEClass(NATURE);
		createEReference(natureEClass, NATURE__BASE_INTERFACE);

		plusEClass = createEClass(PLUS);
		createEReference(plusEClass, PLUS__BASE_PROPERTY);

		minusEClass = createEClass(MINUS);
		createEReference(minusEClass, MINUS__BASE_PROPERTY);

		quantityEClass = createEClass(QUANTITY);
		createEReference(quantityEClass, QUANTITY__BASE_PROPERTY);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private boolean isInitialized = false;

	/**
	 * Complete the initialization of the package and its meta-model.  This
	 * method is guarded to have no affect on any invocation but its first.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void initializePackageContents() {
		if (isInitialized) return;
		isInitialized = true;

		// Initialize package
		setName(eNAME);
		setNsPrefix(eNS_PREFIX);
		setNsURI(eNS_URI);

		// Obtain other dependent packages
		SysMLPackage theSysMLPackage = (SysMLPackage)EPackage.Registry.INSTANCE.getEPackage(SysMLPackage.eNS_URI);
		UMLPackage theUMLPackage = (UMLPackage)EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI);

		// Create type parameters

		// Set bounds for type parameters

		// Add supertypes to classes

		// Initialize classes and features; add operations and parameters
		initEClass(pslEClass, fr.femtost.disc.eclipse.vhdlamslibrary.vhdlamsforsysmlprofile.PSL.class, "PSL", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEReference(getPSL_Base_Requirement(), theSysMLPackage.getRequirement(), null, "base_Requirement", null, 1, 1, fr.femtost.disc.eclipse.vhdlamslibrary.vhdlamsforsysmlprofile.PSL.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);

		initEClass(natureEClass, Nature.class, "Nature", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEReference(getNature_Base_Interface(), theUMLPackage.getInterface(), null, "base_Interface", null, 1, 1, Nature.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);

		initEClass(plusEClass, plus.class, "plus", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEReference(getplus_Base_Property(), theUMLPackage.getProperty(), null, "base_Property", null, 1, 1, plus.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);

		initEClass(minusEClass, minus.class, "minus", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEReference(getminus_Base_Property(), theUMLPackage.getProperty(), null, "base_Property", null, 1, 1, minus.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);

		initEClass(quantityEClass, quantity.class, "quantity", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEReference(getquantity_Base_Property(), theUMLPackage.getProperty(), null, "base_Property", null, 1, 1, quantity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);

		// Create resource
		createResource(eNS_URI);
	}

} //VhdlamsforsysmlprofilePackageImpl
