/** */ package de.hftstuttgart.buildingphysics.impl; import de.hftstuttgart.buildingphysics.BuildingPhysicsCatalog; import de.hftstuttgart.buildingphysics.BuildingPhysicsFactory; import de.hftstuttgart.buildingphysics.BuildingPhysicsPackage; import de.hftstuttgart.buildingphysics.Catalog; import de.hftstuttgart.buildingphysics.Material; import de.hftstuttgart.buildingphysics.MaterialCatalog; import de.hftstuttgart.buildingphysics.MaterialCategory; import de.hftstuttgart.buildingphysics.WindowCatalog; import de.hftstuttgart.buildingphysics.WindowType; import de.hftstuttgart.cityunits.model.quantities.QuantitiesPackage; import org.eclipse.emf.ecore.EAttribute; 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; /** * * An implementation of the model Package. * * @generated */ public class BuildingPhysicsPackageImpl extends EPackageImpl implements BuildingPhysicsPackage { /** * * * @generated */ private EClass buildingPhysicsCatalogEClass = null; /** * * * @generated */ private EClass windowTypeEClass = null; /** * * * @generated */ private EClass catalogEClass = null; /** * * * @generated */ private EClass windowCatalogEClass = null; /** * * * @generated */ private EClass materialCatalogEClass = null; /** * * * @generated */ private EClass materialCategoryEClass = null; /** * * * @generated */ private EClass materialEClass = null; /** * Creates an instance of the model Package, registered with * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package * package URI value. *

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. * * * @see org.eclipse.emf.ecore.EPackage.Registry * @see de.hftstuttgart.buildingphysics.BuildingPhysicsPackage#eNS_URI * @see #init() * @generated */ private BuildingPhysicsPackageImpl() { super(eNS_URI, BuildingPhysicsFactory.eINSTANCE); } /** * * * @generated */ private static boolean isInited = false; /** * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. * *

This method is used to initialize {@link BuildingPhysicsPackage#eINSTANCE} when that field is accessed. * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. * * * @see #eNS_URI * @see #createPackageContents() * @see #initializePackageContents() * @generated */ public static BuildingPhysicsPackage init() { if (isInited) return (BuildingPhysicsPackage) EPackage.Registry.INSTANCE.getEPackage(BuildingPhysicsPackage.eNS_URI); // Obtain or create and register package Object registeredBuildingPhysicsPackage = EPackage.Registry.INSTANCE.get(eNS_URI); BuildingPhysicsPackageImpl theBuildingPhysicsPackage = registeredBuildingPhysicsPackage instanceof BuildingPhysicsPackageImpl ? (BuildingPhysicsPackageImpl) registeredBuildingPhysicsPackage : new BuildingPhysicsPackageImpl(); isInited = true; // Initialize simple dependencies QuantitiesPackage.eINSTANCE.eClass(); // Create package meta-data objects theBuildingPhysicsPackage.createPackageContents(); // Initialize created meta-data theBuildingPhysicsPackage.initializePackageContents(); // Mark meta-data to indicate it can't be changed theBuildingPhysicsPackage.freeze(); // Update the registry and return the package EPackage.Registry.INSTANCE.put(BuildingPhysicsPackage.eNS_URI, theBuildingPhysicsPackage); return theBuildingPhysicsPackage; } /** * * * @generated */ @Override public EClass getBuildingPhysicsCatalog() { return buildingPhysicsCatalogEClass; } /** * * * @generated */ @Override public EAttribute getBuildingPhysicsCatalog_Author() { return (EAttribute) buildingPhysicsCatalogEClass.getEStructuralFeatures().get(0); } /** * * * @generated */ @Override public EReference getBuildingPhysicsCatalog_WindowCatalog() { return (EReference) buildingPhysicsCatalogEClass.getEStructuralFeatures().get(1); } /** * * * @generated */ @Override public EReference getBuildingPhysicsCatalog_MaterialCatalog() { return (EReference) buildingPhysicsCatalogEClass.getEStructuralFeatures().get(2); } /** * * * @generated */ @Override public EClass getWindowType() { return windowTypeEClass; } /** * * * @generated */ @Override public EAttribute getWindowType_Id() { return (EAttribute) windowTypeEClass.getEStructuralFeatures().get(0); } /** * * * @generated */ @Override public EAttribute getWindowType_Name() { return (EAttribute) windowTypeEClass.getEStructuralFeatures().get(1); } /** * * * @generated */ @Override public EAttribute getWindowType_UValue() { return (EAttribute) windowTypeEClass.getEStructuralFeatures().get(2); } /** * * * @generated */ @Override public EAttribute getWindowType_GValue() { return (EAttribute) windowTypeEClass.getEStructuralFeatures().get(3); } /** * * * @generated */ @Override public EAttribute getWindowType_GlazingNumber() { return (EAttribute) windowTypeEClass.getEStructuralFeatures().get(4); } /** * * * @generated */ @Override public EAttribute getWindowType_FrameRatio() { return (EAttribute) windowTypeEClass.getEStructuralFeatures().get(5); } /** * * * @generated */ @Override public EClass getCatalog() { return catalogEClass; } /** * * * @generated */ @Override public EAttribute getCatalog_Name() { return (EAttribute) catalogEClass.getEStructuralFeatures().get(0); } /** * * * @generated */ @Override public EAttribute getCatalog_Description() { return (EAttribute) catalogEClass.getEStructuralFeatures().get(1); } /** * * * @generated */ @Override public EAttribute getCatalog_Source() { return (EAttribute) catalogEClass.getEStructuralFeatures().get(2); } /** * * * @generated */ @Override public EClass getWindowCatalog() { return windowCatalogEClass; } /** * * * @generated */ @Override public EReference getWindowCatalog_WindowTypes() { return (EReference) windowCatalogEClass.getEStructuralFeatures().get(0); } /** * * * @generated */ @Override public EClass getMaterialCatalog() { return materialCatalogEClass; } /** * * * @generated */ @Override public EReference getMaterialCatalog_MaterialCategories() { return (EReference) materialCatalogEClass.getEStructuralFeatures().get(0); } /** * * * @generated */ @Override public EClass getMaterialCategory() { return materialCategoryEClass; } /** * * * @generated */ @Override public EReference getMaterialCategory_Material() { return (EReference) materialCategoryEClass.getEStructuralFeatures().get(0); } /** * * * @generated */ @Override public EAttribute getMaterialCategory_Name() { return (EAttribute) materialCategoryEClass.getEStructuralFeatures().get(1); } /** * * * @generated */ @Override public EClass getMaterial() { return materialEClass; } /** * * * @generated */ @Override public EAttribute getMaterial_Id() { return (EAttribute) materialEClass.getEStructuralFeatures().get(0); } /** * * * @generated */ @Override public EAttribute getMaterial_Name() { return (EAttribute) materialEClass.getEStructuralFeatures().get(1); } /** * * * @generated */ @Override public EAttribute getMaterial_Density() { return (EAttribute) materialEClass.getEStructuralFeatures().get(2); } /** * * * @generated */ @Override public EAttribute getMaterial_HeatCapacity() { return (EAttribute) materialEClass.getEStructuralFeatures().get(3); } /** * * * @generated */ @Override public EAttribute getMaterial_Conductivity() { return (EAttribute) materialEClass.getEStructuralFeatures().get(4); } /** * * * @generated */ @Override public BuildingPhysicsFactory getBuildingPhysicsFactory() { return (BuildingPhysicsFactory) getEFactoryInstance(); } /** * * * @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. * * * @generated */ public void createPackageContents() { if (isCreated) return; isCreated = true; // Create classes and their features buildingPhysicsCatalogEClass = createEClass(BUILDING_PHYSICS_CATALOG); createEAttribute(buildingPhysicsCatalogEClass, BUILDING_PHYSICS_CATALOG__AUTHOR); createEReference(buildingPhysicsCatalogEClass, BUILDING_PHYSICS_CATALOG__WINDOW_CATALOG); createEReference(buildingPhysicsCatalogEClass, BUILDING_PHYSICS_CATALOG__MATERIAL_CATALOG); windowTypeEClass = createEClass(WINDOW_TYPE); createEAttribute(windowTypeEClass, WINDOW_TYPE__ID); createEAttribute(windowTypeEClass, WINDOW_TYPE__NAME); createEAttribute(windowTypeEClass, WINDOW_TYPE__UVALUE); createEAttribute(windowTypeEClass, WINDOW_TYPE__GVALUE); createEAttribute(windowTypeEClass, WINDOW_TYPE__GLAZING_NUMBER); createEAttribute(windowTypeEClass, WINDOW_TYPE__FRAME_RATIO); catalogEClass = createEClass(CATALOG); createEAttribute(catalogEClass, CATALOG__NAME); createEAttribute(catalogEClass, CATALOG__DESCRIPTION); createEAttribute(catalogEClass, CATALOG__SOURCE); windowCatalogEClass = createEClass(WINDOW_CATALOG); createEReference(windowCatalogEClass, WINDOW_CATALOG__WINDOW_TYPES); materialCatalogEClass = createEClass(MATERIAL_CATALOG); createEReference(materialCatalogEClass, MATERIAL_CATALOG__MATERIAL_CATEGORIES); materialCategoryEClass = createEClass(MATERIAL_CATEGORY); createEReference(materialCategoryEClass, MATERIAL_CATEGORY__MATERIAL); createEAttribute(materialCategoryEClass, MATERIAL_CATEGORY__NAME); materialEClass = createEClass(MATERIAL); createEAttribute(materialEClass, MATERIAL__ID); createEAttribute(materialEClass, MATERIAL__NAME); createEAttribute(materialEClass, MATERIAL__DENSITY); createEAttribute(materialEClass, MATERIAL__HEAT_CAPACITY); createEAttribute(materialEClass, MATERIAL__CONDUCTIVITY); } /** * * * @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. * * * @generated */ public void initializePackageContents() { if (isInitialized) return; isInitialized = true; // Initialize package setName(eNAME); setNsPrefix(eNS_PREFIX); setNsURI(eNS_URI); // Obtain other dependent packages QuantitiesPackage theQuantitiesPackage = (QuantitiesPackage) EPackage.Registry.INSTANCE .getEPackage(QuantitiesPackage.eNS_URI); // Create type parameters // Set bounds for type parameters // Add supertypes to classes windowCatalogEClass.getESuperTypes().add(this.getCatalog()); materialCatalogEClass.getESuperTypes().add(this.getCatalog()); // Initialize classes, features, and operations; add parameters initEClass(buildingPhysicsCatalogEClass, BuildingPhysicsCatalog.class, "BuildingPhysicsCatalog", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getBuildingPhysicsCatalog_Author(), ecorePackage.getEString(), "author", null, 1, 1, BuildingPhysicsCatalog.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getBuildingPhysicsCatalog_WindowCatalog(), this.getWindowCatalog(), null, "windowCatalog", null, 1, 1, BuildingPhysicsCatalog.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getBuildingPhysicsCatalog_MaterialCatalog(), this.getMaterialCatalog(), null, "materialCatalog", null, 1, 1, BuildingPhysicsCatalog.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(windowTypeEClass, WindowType.class, "WindowType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getWindowType_Id(), ecorePackage.getEInt(), "id", null, 1, 1, WindowType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getWindowType_Name(), ecorePackage.getEString(), "name", null, 1, 1, WindowType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getWindowType_UValue(), theQuantitiesPackage.getQuantityDouble(), "uValue", "W/(m*m*K)", 1, 1, WindowType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getWindowType_GValue(), ecorePackage.getEDouble(), "gValue", null, 1, 1, WindowType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getWindowType_GlazingNumber(), ecorePackage.getEInt(), "glazingNumber", "1", 1, 1, WindowType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getWindowType_FrameRatio(), ecorePackage.getEInt(), "frameRatio", null, 1, 1, WindowType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(catalogEClass, Catalog.class, "Catalog", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getCatalog_Name(), ecorePackage.getEString(), "name", null, 1, 1, Catalog.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getCatalog_Description(), ecorePackage.getEString(), "description", null, 0, 1, Catalog.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getCatalog_Source(), ecorePackage.getEString(), "source", null, 0, 1, Catalog.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(windowCatalogEClass, WindowCatalog.class, "WindowCatalog", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getWindowCatalog_WindowTypes(), this.getWindowType(), null, "windowTypes", null, 0, -1, WindowCatalog.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(materialCatalogEClass, MaterialCatalog.class, "MaterialCatalog", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getMaterialCatalog_MaterialCategories(), this.getMaterialCategory(), null, "materialCategories", null, 0, -1, MaterialCatalog.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(materialCategoryEClass, MaterialCategory.class, "MaterialCategory", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getMaterialCategory_Material(), this.getMaterial(), null, "material", null, 0, -1, MaterialCategory.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getMaterialCategory_Name(), ecorePackage.getEString(), "name", null, 1, 1, MaterialCategory.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(materialEClass, Material.class, "Material", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getMaterial_Id(), ecorePackage.getEInt(), "id", null, 1, 1, Material.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getMaterial_Name(), ecorePackage.getEString(), "name", null, 1, 1, Material.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getMaterial_Density(), ecorePackage.getEDouble(), "density", null, 1, 1, Material.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getMaterial_HeatCapacity(), theQuantitiesPackage.getQuantityDouble(), "heatCapacity", "J/K", 1, 1, Material.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getMaterial_Conductivity(), ecorePackage.getEDouble(), "conductivity", null, 1, 1, Material.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); // Create resource createResource(eNS_URI); } } //BuildingPhysicsPackageImpl