From 6b727cdfa9297e7d0f52c1e22a09c1322b3b710c Mon Sep 17 00:00:00 2001 From: rschnekenbu Date: Thu, 9 Dec 2010 13:11:36 +0000 Subject: Merged branch 0.7.X changes r2480:3444 into the trunk --- .../BasicNFP_Types/BasicNFP_TypesFactory.java | 44 + .../BasicNFP_Types/BasicNFP_TypesPackage.java | 989 +++++++++++++++++++++ .../BasicNFP_Types/DirectionKind.java | 219 +++++ .../MARTE_Library/BasicNFP_Types/SourceKind.java | 273 ++++++ .../BasicNFP_Types/StatisticalQualifierKind.java | 408 +++++++++ .../impl/BasicNFP_TypesFactoryImpl.java | 766 ++++++++++++++++ .../impl/BasicNFP_TypesPackageImpl.java | 948 ++++++++++++++++++++ .../GRM_BasicTypes/GRM_BasicTypesFactory.java | 44 + .../GRM_BasicTypes/GRM_BasicTypesPackage.java | 431 +++++++++ .../GRM_BasicTypes/PeriodicServerKind.java | 273 ++++++ .../GRM_BasicTypes/ProtectProtocolKind.java | 354 ++++++++ .../GRM_BasicTypes/SchedPolicyKind.java | 381 ++++++++ .../impl/GRM_BasicTypesFactoryImpl.java | 370 ++++++++ .../impl/GRM_BasicTypesPackageImpl.java | 628 +++++++++++++ .../MARTE_DataTypes/MARTE_DataTypesFactory.java | 44 + .../MARTE_DataTypes/MARTE_DataTypesPackage.java | 495 +++++++++++ .../MARTE_DataTypes/TransmModeKind.java | 246 +++++ .../impl/MARTE_DataTypesFactoryImpl.java | 410 +++++++++ .../impl/MARTE_DataTypesPackageImpl.java | 644 ++++++++++++++ .../MARTE_PrimitivesTypesFactory.java | 44 + .../MARTE_PrimitivesTypesPackage.java | 272 ++++++ .../impl/MARTE_PrimitivesTypesFactoryImpl.java | 254 ++++++ .../impl/MARTE_PrimitivesTypesPackageImpl.java | 509 +++++++++++ .../MeasurementUnits/AreaUnitKind.java | 219 +++++ .../MeasurementUnits/DataSizeUnitKind.java | 300 +++++++ .../MeasurementUnits/DataTxRateUnitKind.java | 246 +++++ .../MeasurementUnits/EnergyUnitKind.java | 300 +++++++ .../MeasurementUnits/FrequencyUnitKind.java | 300 +++++++ .../MeasurementUnits/LengthUnitKind.java | 246 +++++ .../MeasurementUnits/MeasurementUnitsFactory.java | 44 + .../MeasurementUnits/MeasurementUnitsPackage.java | 362 ++++++++ .../MeasurementUnits/PowerUnitKind.java | 246 +++++ .../MeasurementUnits/TimeUnitKind.java | 354 ++++++++ .../MeasurementUnits/WeightUnitKind.java | 246 +++++ .../impl/MeasurementUnitsFactoryImpl.java | 338 +++++++ .../impl/MeasurementUnitsPackageImpl.java | 616 +++++++++++++ .../RS_Library/RS_LibraryFactory.java | 44 + .../RS_Library/RS_LibraryPackage.java | 154 ++++ .../RS_Library/impl/RS_LibraryFactoryImpl.java | 166 ++++ .../RS_Library/impl/RS_LibraryPackageImpl.java | 437 +++++++++ .../MARTE_Library/TimeLibrary/IdealClock.java | 37 + .../MARTE_Library/TimeLibrary/LogicalTimeUnit.java | 192 ++++ .../TimeLibrary/TimeLibraryFactory.java | 53 ++ .../TimeLibrary/TimeLibraryPackage.java | 255 ++++++ .../MARTE_Library/TimeLibrary/TimeUnitKind.java | 354 ++++++++ .../TimeLibrary/impl/IdealClockImpl.java | 63 ++ .../TimeLibrary/impl/TimeLibraryFactoryImpl.java | 225 +++++ .../TimeLibrary/impl/TimeLibraryPackageImpl.java | 524 +++++++++++ .../util/TimeLibraryAdapterFactory.java | 131 +++ .../TimeLibrary/util/TimeLibrarySwitch.java | 137 +++ .../MARTE_Library/TimeTypesLibrary/EventKind.java | 300 +++++++ .../TimeTypesLibrary/TimeInterpretationKind.java | 219 +++++ .../TimeTypesLibrary/TimeNatureKind.java | 219 +++++ .../TimeTypesLibrary/TimeStandardKind.java | 462 ++++++++++ .../TimeTypesLibrary/TimeTypesLibraryFactory.java | 44 + .../TimeTypesLibrary/TimeTypesLibraryPackage.java | 212 +++++ .../impl/TimeTypesLibraryFactoryImpl.java | 218 +++++ .../impl/TimeTypesLibraryPackageImpl.java | 500 +++++++++++ 58 files changed, 17809 insertions(+) create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/BasicNFP_Types/BasicNFP_TypesFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/BasicNFP_Types/BasicNFP_TypesPackage.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/BasicNFP_Types/DirectionKind.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/BasicNFP_Types/SourceKind.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/BasicNFP_Types/StatisticalQualifierKind.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/BasicNFP_Types/impl/BasicNFP_TypesFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/BasicNFP_Types/impl/BasicNFP_TypesPackageImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/GRM_BasicTypes/GRM_BasicTypesFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/GRM_BasicTypes/GRM_BasicTypesPackage.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/GRM_BasicTypes/PeriodicServerKind.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/GRM_BasicTypes/ProtectProtocolKind.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/GRM_BasicTypes/SchedPolicyKind.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/GRM_BasicTypes/impl/GRM_BasicTypesFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/GRM_BasicTypes/impl/GRM_BasicTypesPackageImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MARTE_DataTypes/MARTE_DataTypesFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MARTE_DataTypes/MARTE_DataTypesPackage.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MARTE_DataTypes/TransmModeKind.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MARTE_DataTypes/impl/MARTE_DataTypesFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MARTE_DataTypes/impl/MARTE_DataTypesPackageImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MARTE_PrimitivesTypes/MARTE_PrimitivesTypesFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MARTE_PrimitivesTypes/MARTE_PrimitivesTypesPackage.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MARTE_PrimitivesTypes/impl/MARTE_PrimitivesTypesFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MARTE_PrimitivesTypes/impl/MARTE_PrimitivesTypesPackageImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/AreaUnitKind.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/DataSizeUnitKind.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/DataTxRateUnitKind.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/EnergyUnitKind.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/FrequencyUnitKind.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/LengthUnitKind.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/MeasurementUnitsFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/MeasurementUnitsPackage.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/PowerUnitKind.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/TimeUnitKind.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/WeightUnitKind.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/impl/MeasurementUnitsFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/impl/MeasurementUnitsPackageImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/RS_Library/RS_LibraryFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/RS_Library/RS_LibraryPackage.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/RS_Library/impl/RS_LibraryFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/RS_Library/impl/RS_LibraryPackageImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeLibrary/IdealClock.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeLibrary/LogicalTimeUnit.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeLibrary/TimeLibraryFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeLibrary/TimeLibraryPackage.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeLibrary/TimeUnitKind.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeLibrary/impl/IdealClockImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeLibrary/impl/TimeLibraryFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeLibrary/impl/TimeLibraryPackageImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeLibrary/util/TimeLibraryAdapterFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeLibrary/util/TimeLibrarySwitch.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeTypesLibrary/EventKind.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeTypesLibrary/TimeInterpretationKind.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeTypesLibrary/TimeNatureKind.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeTypesLibrary/TimeStandardKind.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeTypesLibrary/TimeTypesLibraryFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeTypesLibrary/TimeTypesLibraryPackage.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeTypesLibrary/impl/TimeTypesLibraryFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeTypesLibrary/impl/TimeTypesLibraryPackageImpl.java (limited to 'extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library') diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/BasicNFP_Types/BasicNFP_TypesFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/BasicNFP_Types/BasicNFP_TypesFactory.java new file mode 100644 index 00000000000..47d7ea7ea8d --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/BasicNFP_Types/BasicNFP_TypesFactory.java @@ -0,0 +1,44 @@ +/***************************************************************************** + * Copyright (c) 2010 CEA LIST. + * + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Chokri MRAIDHA (CEA LIST) chokri.mraidha@cea.fr - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.MARTE_Library.BasicNFP_Types; + +import org.eclipse.emf.ecore.EFactory; + +/** + * + * The Factory for the model. + * It provides a create method for each non-abstract class of the model. + * + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.BasicNFP_TypesPackage + * @generated + */ +public interface BasicNFP_TypesFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + BasicNFP_TypesFactory eINSTANCE = org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesFactoryImpl.init(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + BasicNFP_TypesPackage getBasicNFP_TypesPackage(); + +} //BasicNFP_TypesFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/BasicNFP_Types/BasicNFP_TypesPackage.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/BasicNFP_Types/BasicNFP_TypesPackage.java new file mode 100644 index 00000000000..cd9dd8b5045 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/BasicNFP_Types/BasicNFP_TypesPackage.java @@ -0,0 +1,989 @@ +/***************************************************************************** + * Copyright (c) 2010 CEA LIST. + * + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Chokri MRAIDHA (CEA LIST) chokri.mraidha@cea.fr - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.MARTE_Library.BasicNFP_Types; + +import org.eclipse.emf.ecore.EDataType; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EPackage; + +/** + * + * The Package for the model. + * It contains accessors for the meta objects to represent + *
+ * If the meaning of 'Incr' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #INCR + * @model name="incr" + * @generated + * @ordered + */ + public static final int INCR_VALUE = 0; + + /** + * The 'Decr' literal value. + * + *+ * If the meaning of 'Decr' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #DECR + * @model name="decr" + * @generated + * @ordered + */ + public static final int DECR_VALUE = 1; + + /** + * An array of all the 'Direction Kind' enumerators. + * + * + * @generated + */ + private static final DirectionKind[] VALUES_ARRAY = + new DirectionKind[] { + INCR, + DECR, + }; + + /** + * A public read-only list of all the 'Direction Kind' enumerators. + * + * + * @generated + */ + public static final List+ * If the meaning of 'Est' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #EST + * @model name="est" + * @generated + * @ordered + */ + public static final int EST_VALUE = 0; + + /** + * The 'Meas' literal value. + * + *+ * If the meaning of 'Meas' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #MEAS + * @model name="meas" + * @generated + * @ordered + */ + public static final int MEAS_VALUE = 1; + + /** + * The 'Calc' literal value. + * + *+ * If the meaning of 'Calc' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #CALC + * @model name="calc" + * @generated + * @ordered + */ + public static final int CALC_VALUE = 2; + + /** + * The 'Req' literal value. + * + *+ * If the meaning of 'Req' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #REQ + * @model name="req" + * @generated + * @ordered + */ + public static final int REQ_VALUE = 3; + + /** + * An array of all the 'Source Kind' enumerators. + * + * + * @generated + */ + private static final SourceKind[] VALUES_ARRAY = + new SourceKind[] { + EST, + MEAS, + CALC, + REQ, + }; + + /** + * A public read-only list of all the 'Source Kind' enumerators. + * + * + * @generated + */ + public static final List+ * If the meaning of 'Max' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #MAX + * @model name="max" + * @generated + * @ordered + */ + public static final int MAX_VALUE = 0; + + /** + * The 'Min' literal value. + * + *+ * If the meaning of 'Min' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #MIN + * @model name="min" + * @generated + * @ordered + */ + public static final int MIN_VALUE = 1; + + /** + * The 'Mean' literal value. + * + *+ * If the meaning of 'Mean' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #MEAN + * @model name="mean" + * @generated + * @ordered + */ + public static final int MEAN_VALUE = 2; + + /** + * The 'Range' literal value. + * + *+ * If the meaning of 'Range' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #RANGE + * @model name="range" + * @generated + * @ordered + */ + public static final int RANGE_VALUE = 3; + + /** + * The 'Percent' literal value. + * + *+ * If the meaning of 'Percent' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #PERCENT + * @model name="percent" + * @generated + * @ordered + */ + public static final int PERCENT_VALUE = 4; + + /** + * The 'Distrib' literal value. + * + *+ * If the meaning of 'Distrib' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #DISTRIB + * @model name="distrib" + * @generated + * @ordered + */ + public static final int DISTRIB_VALUE = 5; + + /** + * The 'Determ' literal value. + * + *+ * If the meaning of 'Determ' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #DETERM + * @model name="determ" + * @generated + * @ordered + */ + public static final int DETERM_VALUE = 6; + + /** + * The 'Other' literal value. + * + *+ * If the meaning of 'Other' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #OTHER + * @model name="other" + * @generated + * @ordered + */ + public static final int OTHER_VALUE = 7; + + /** + * The 'Variance' literal value. + * + *+ * If the meaning of 'Variance' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #VARIANCE + * @model name="variance" + * @generated + * @ordered + */ + public static final int VARIANCE_VALUE = 8; + + /** + * An array of all the 'Statistical Qualifier Kind' enumerators. + * + * + * @generated + */ + private static final StatisticalQualifierKind[] VALUES_ARRAY = + new StatisticalQualifierKind[] { + MAX, + MIN, + MEAN, + RANGE, + PERCENT, + DISTRIB, + DETERM, + OTHER, + VARIANCE, + }; + + /** + * A public read-only list of all the 'Statistical Qualifier Kind' enumerators. + * + * + * @generated + */ + public static final ListNote: 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 org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.BasicNFP_TypesPackage#eNS_URI + * @see #init() + * @generated + */ + private BasicNFP_TypesPackageImpl() { + super(eNS_URI, BasicNFP_TypesFactory.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 BasicNFP_TypesPackage#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 BasicNFP_TypesPackage init() { + if (isInited) return (BasicNFP_TypesPackage)EPackage.Registry.INSTANCE.getEPackage(BasicNFP_TypesPackage.eNS_URI); + + // Obtain or create and register package + BasicNFP_TypesPackageImpl theBasicNFP_TypesPackage = (BasicNFP_TypesPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof BasicNFP_TypesPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new BasicNFP_TypesPackageImpl()); + + isInited = true; + + // Initialize simple dependencies + UMLPackage.eINSTANCE.eClass(); + + // Obtain or create and register interdependencies + MARTEPackageImpl theMARTEPackage = (MARTEPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(MARTEPackage.eNS_URI) instanceof MARTEPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(MARTEPackage.eNS_URI) : MARTEPackage.eINSTANCE); + NFPsPackageImpl theNFPsPackage = (NFPsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(NFPsPackage.eNS_URI) instanceof NFPsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(NFPsPackage.eNS_URI) : NFPsPackage.eINSTANCE); + CoreElementsPackageImpl theCoreElementsPackage = (CoreElementsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CoreElementsPackage.eNS_URI) instanceof CoreElementsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CoreElementsPackage.eNS_URI) : CoreElementsPackage.eINSTANCE); + AllocPackageImpl theAllocPackage = (AllocPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(AllocPackage.eNS_URI) instanceof AllocPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(AllocPackage.eNS_URI) : AllocPackage.eINSTANCE); + TimePackageImpl theTimePackage = (TimePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TimePackage.eNS_URI) instanceof TimePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TimePackage.eNS_URI) : TimePackage.eINSTANCE); + GRMPackageImpl theGRMPackage = (GRMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(GRMPackage.eNS_URI) instanceof GRMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(GRMPackage.eNS_URI) : GRMPackage.eINSTANCE); + RSMPackageImpl theRSMPackage = (RSMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RSMPackage.eNS_URI) instanceof RSMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RSMPackage.eNS_URI) : RSMPackage.eINSTANCE); + VariablesPackageImpl theVariablesPackage = (VariablesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(VariablesPackage.eNS_URI) instanceof VariablesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(VariablesPackage.eNS_URI) : VariablesPackage.eINSTANCE); + OperatorsPackageImpl theOperatorsPackage = (OperatorsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(OperatorsPackage.eNS_URI) instanceof OperatorsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(OperatorsPackage.eNS_URI) : OperatorsPackage.eINSTANCE); + DataTypesPackageImpl theDataTypesPackage = (DataTypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(DataTypesPackage.eNS_URI) instanceof DataTypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(DataTypesPackage.eNS_URI) : DataTypesPackage.eINSTANCE); + HLAMPackageImpl theHLAMPackage = (HLAMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HLAMPackage.eNS_URI) instanceof HLAMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HLAMPackage.eNS_URI) : HLAMPackage.eINSTANCE); + HwComputingPackageImpl theHwComputingPackage = (HwComputingPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwComputingPackage.eNS_URI) instanceof HwComputingPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwComputingPackage.eNS_URI) : HwComputingPackage.eINSTANCE); + HwCommunicationPackageImpl theHwCommunicationPackage = (HwCommunicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwCommunicationPackage.eNS_URI) instanceof HwCommunicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwCommunicationPackage.eNS_URI) : HwCommunicationPackage.eINSTANCE); + HwStorageManagerPackageImpl theHwStorageManagerPackage = (HwStorageManagerPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwStorageManagerPackage.eNS_URI) instanceof HwStorageManagerPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwStorageManagerPackage.eNS_URI) : HwStorageManagerPackage.eINSTANCE); + HwMemoryPackageImpl theHwMemoryPackage = (HwMemoryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwMemoryPackage.eNS_URI) instanceof HwMemoryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwMemoryPackage.eNS_URI) : HwMemoryPackage.eINSTANCE); + HwTimingPackageImpl theHwTimingPackage = (HwTimingPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwTimingPackage.eNS_URI) instanceof HwTimingPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwTimingPackage.eNS_URI) : HwTimingPackage.eINSTANCE); + HwDevicePackageImpl theHwDevicePackage = (HwDevicePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwDevicePackage.eNS_URI) instanceof HwDevicePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwDevicePackage.eNS_URI) : HwDevicePackage.eINSTANCE); + HwGeneralPackageImpl theHwGeneralPackage = (HwGeneralPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwGeneralPackage.eNS_URI) instanceof HwGeneralPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwGeneralPackage.eNS_URI) : HwGeneralPackage.eINSTANCE); + HwLayoutPackageImpl theHwLayoutPackage = (HwLayoutPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwLayoutPackage.eNS_URI) instanceof HwLayoutPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwLayoutPackage.eNS_URI) : HwLayoutPackage.eINSTANCE); + HwPowerPackageImpl theHwPowerPackage = (HwPowerPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwPowerPackage.eNS_URI) instanceof HwPowerPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwPowerPackage.eNS_URI) : HwPowerPackage.eINSTANCE); + SW_ResourceCorePackageImpl theSW_ResourceCorePackage = (SW_ResourceCorePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SW_ResourceCorePackage.eNS_URI) instanceof SW_ResourceCorePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SW_ResourceCorePackage.eNS_URI) : SW_ResourceCorePackage.eINSTANCE); + SW_ConcurrencyPackageImpl theSW_ConcurrencyPackage = (SW_ConcurrencyPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SW_ConcurrencyPackage.eNS_URI) instanceof SW_ConcurrencyPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SW_ConcurrencyPackage.eNS_URI) : SW_ConcurrencyPackage.eINSTANCE); + SW_BrokeringPackageImpl theSW_BrokeringPackage = (SW_BrokeringPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SW_BrokeringPackage.eNS_URI) instanceof SW_BrokeringPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SW_BrokeringPackage.eNS_URI) : SW_BrokeringPackage.eINSTANCE); + SW_InteractionPackageImpl theSW_InteractionPackage = (SW_InteractionPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SW_InteractionPackage.eNS_URI) instanceof SW_InteractionPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SW_InteractionPackage.eNS_URI) : SW_InteractionPackage.eINSTANCE); + GCMPackageImpl theGCMPackage = (GCMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(GCMPackage.eNS_URI) instanceof GCMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(GCMPackage.eNS_URI) : GCMPackage.eINSTANCE); + GQAMPackageImpl theGQAMPackage = (GQAMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(GQAMPackage.eNS_URI) instanceof GQAMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(GQAMPackage.eNS_URI) : GQAMPackage.eINSTANCE); + SAMPackageImpl theSAMPackage = (SAMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SAMPackage.eNS_URI) instanceof SAMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SAMPackage.eNS_URI) : SAMPackage.eINSTANCE); + PAMPackageImpl thePAMPackage = (PAMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(PAMPackage.eNS_URI) instanceof PAMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(PAMPackage.eNS_URI) : PAMPackage.eINSTANCE); + MeasurementUnitsPackageImpl theMeasurementUnitsPackage = (MeasurementUnitsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(MeasurementUnitsPackage.eNS_URI) instanceof MeasurementUnitsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(MeasurementUnitsPackage.eNS_URI) : MeasurementUnitsPackage.eINSTANCE); + GRM_BasicTypesPackageImpl theGRM_BasicTypesPackage = (GRM_BasicTypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(GRM_BasicTypesPackage.eNS_URI) instanceof GRM_BasicTypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(GRM_BasicTypesPackage.eNS_URI) : GRM_BasicTypesPackage.eINSTANCE); + MARTE_DataTypesPackageImpl theMARTE_DataTypesPackage = (MARTE_DataTypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(MARTE_DataTypesPackage.eNS_URI) instanceof MARTE_DataTypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(MARTE_DataTypesPackage.eNS_URI) : MARTE_DataTypesPackage.eINSTANCE); + TimeTypesLibraryPackageImpl theTimeTypesLibraryPackage = (TimeTypesLibraryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TimeTypesLibraryPackage.eNS_URI) instanceof TimeTypesLibraryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TimeTypesLibraryPackage.eNS_URI) : TimeTypesLibraryPackage.eINSTANCE); + TimeLibraryPackageImpl theTimeLibraryPackage = (TimeLibraryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TimeLibraryPackage.eNS_URI) instanceof TimeLibraryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TimeLibraryPackage.eNS_URI) : TimeLibraryPackage.eINSTANCE); + RS_LibraryPackageImpl theRS_LibraryPackage = (RS_LibraryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RS_LibraryPackage.eNS_URI) instanceof RS_LibraryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RS_LibraryPackage.eNS_URI) : RS_LibraryPackage.eINSTANCE); + MARTE_PrimitivesTypesPackageImpl theMARTE_PrimitivesTypesPackage = (MARTE_PrimitivesTypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(MARTE_PrimitivesTypesPackage.eNS_URI) instanceof MARTE_PrimitivesTypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(MARTE_PrimitivesTypesPackage.eNS_URI) : MARTE_PrimitivesTypesPackage.eINSTANCE); + + // Create package meta-data objects + theBasicNFP_TypesPackage.createPackageContents(); + theMARTEPackage.createPackageContents(); + theNFPsPackage.createPackageContents(); + theCoreElementsPackage.createPackageContents(); + theAllocPackage.createPackageContents(); + theTimePackage.createPackageContents(); + theGRMPackage.createPackageContents(); + theRSMPackage.createPackageContents(); + theVariablesPackage.createPackageContents(); + theOperatorsPackage.createPackageContents(); + theDataTypesPackage.createPackageContents(); + theHLAMPackage.createPackageContents(); + theHwComputingPackage.createPackageContents(); + theHwCommunicationPackage.createPackageContents(); + theHwStorageManagerPackage.createPackageContents(); + theHwMemoryPackage.createPackageContents(); + theHwTimingPackage.createPackageContents(); + theHwDevicePackage.createPackageContents(); + theHwGeneralPackage.createPackageContents(); + theHwLayoutPackage.createPackageContents(); + theHwPowerPackage.createPackageContents(); + theSW_ResourceCorePackage.createPackageContents(); + theSW_ConcurrencyPackage.createPackageContents(); + theSW_BrokeringPackage.createPackageContents(); + theSW_InteractionPackage.createPackageContents(); + theGCMPackage.createPackageContents(); + theGQAMPackage.createPackageContents(); + theSAMPackage.createPackageContents(); + thePAMPackage.createPackageContents(); + theMeasurementUnitsPackage.createPackageContents(); + theGRM_BasicTypesPackage.createPackageContents(); + theMARTE_DataTypesPackage.createPackageContents(); + theTimeTypesLibraryPackage.createPackageContents(); + theTimeLibraryPackage.createPackageContents(); + theRS_LibraryPackage.createPackageContents(); + theMARTE_PrimitivesTypesPackage.createPackageContents(); + + // Initialize created meta-data + theBasicNFP_TypesPackage.initializePackageContents(); + theMARTEPackage.initializePackageContents(); + theNFPsPackage.initializePackageContents(); + theCoreElementsPackage.initializePackageContents(); + theAllocPackage.initializePackageContents(); + theTimePackage.initializePackageContents(); + theGRMPackage.initializePackageContents(); + theRSMPackage.initializePackageContents(); + theVariablesPackage.initializePackageContents(); + theOperatorsPackage.initializePackageContents(); + theDataTypesPackage.initializePackageContents(); + theHLAMPackage.initializePackageContents(); + theHwComputingPackage.initializePackageContents(); + theHwCommunicationPackage.initializePackageContents(); + theHwStorageManagerPackage.initializePackageContents(); + theHwMemoryPackage.initializePackageContents(); + theHwTimingPackage.initializePackageContents(); + theHwDevicePackage.initializePackageContents(); + theHwGeneralPackage.initializePackageContents(); + theHwLayoutPackage.initializePackageContents(); + theHwPowerPackage.initializePackageContents(); + theSW_ResourceCorePackage.initializePackageContents(); + theSW_ConcurrencyPackage.initializePackageContents(); + theSW_BrokeringPackage.initializePackageContents(); + theSW_InteractionPackage.initializePackageContents(); + theGCMPackage.initializePackageContents(); + theGQAMPackage.initializePackageContents(); + theSAMPackage.initializePackageContents(); + thePAMPackage.initializePackageContents(); + theMeasurementUnitsPackage.initializePackageContents(); + theGRM_BasicTypesPackage.initializePackageContents(); + theMARTE_DataTypesPackage.initializePackageContents(); + theTimeTypesLibraryPackage.initializePackageContents(); + theTimeLibraryPackage.initializePackageContents(); + theRS_LibraryPackage.initializePackageContents(); + theMARTE_PrimitivesTypesPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theBasicNFP_TypesPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(BasicNFP_TypesPackage.eNS_URI, theBasicNFP_TypesPackage); + return theBasicNFP_TypesPackage; + } + + /** + * + * + * @generated + */ + public EEnum getSourceKind() { + return sourceKindEEnum; + } + + /** + * + * + * @generated + */ + public EEnum getDirectionKind() { + return directionKindEEnum; + } + + /** + * + * + * @generated + */ + public EEnum getStatisticalQualifierKind() { + return statisticalQualifierKindEEnum; + } + + /** + * + * + * @generated + */ + public EDataType getNFP_CommonType() { + return nfP_CommonTypeEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getNFP_Boolean() { + return nfP_BooleanEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getNFP_Natural() { + return nfP_NaturalEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getNFP_String() { + return nfP_StringEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getNFP_Real() { + return nfP_RealEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getNFP_Integer() { + return nfP_IntegerEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getNFP_DateTime() { + return nfP_DateTimeEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getNFP_Duration() { + return nfP_DurationEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getNFP_DataTxRate() { + return nfP_DataTxRateEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getNFP_Frequency() { + return nfP_FrequencyEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getNFP_Power() { + return nfP_PowerEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getNFP_DataSize() { + return nfP_DataSizeEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getNFP_Energy() { + return nfP_EnergyEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getNFP_Length() { + return nfP_LengthEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getNFP_Area() { + return nfP_AreaEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getArrivalPattern() { + return arrivalPatternEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getPeriodicPattern() { + return periodicPatternEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getAperiodicPattern() { + return aperiodicPatternEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getClosedPattern() { + return closedPatternEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getSporadicPattern() { + return sporadicPatternEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getBurstPattern() { + return burstPatternEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getIrregularPattern() { + return irregularPatternEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getNFP_Percentage() { + return nfP_PercentageEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getOpenPattern() { + return openPatternEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getNFP_Price() { + return nfP_PriceEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getNFP_Weight() { + return nfP_WeightEDataType; + } + + /** + * + * + * @generated + */ + public BasicNFP_TypesFactory getBasicNFP_TypesFactory() { + return (BasicNFP_TypesFactory)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 enums + sourceKindEEnum = createEEnum(SOURCE_KIND); + directionKindEEnum = createEEnum(DIRECTION_KIND); + statisticalQualifierKindEEnum = createEEnum(STATISTICAL_QUALIFIER_KIND); + + // Create data types + nfP_CommonTypeEDataType = createEDataType(NFP_COMMON_TYPE); + nfP_BooleanEDataType = createEDataType(NFP_BOOLEAN); + nfP_NaturalEDataType = createEDataType(NFP_NATURAL); + nfP_StringEDataType = createEDataType(NFP_STRING); + nfP_RealEDataType = createEDataType(NFP_REAL); + nfP_IntegerEDataType = createEDataType(NFP_INTEGER); + nfP_DateTimeEDataType = createEDataType(NFP_DATE_TIME); + nfP_DurationEDataType = createEDataType(NFP_DURATION); + nfP_DataTxRateEDataType = createEDataType(NFP_DATA_TX_RATE); + nfP_FrequencyEDataType = createEDataType(NFP_FREQUENCY); + nfP_PowerEDataType = createEDataType(NFP_POWER); + nfP_DataSizeEDataType = createEDataType(NFP_DATA_SIZE); + nfP_EnergyEDataType = createEDataType(NFP_ENERGY); + nfP_LengthEDataType = createEDataType(NFP_LENGTH); + nfP_AreaEDataType = createEDataType(NFP_AREA); + arrivalPatternEDataType = createEDataType(ARRIVAL_PATTERN); + periodicPatternEDataType = createEDataType(PERIODIC_PATTERN); + aperiodicPatternEDataType = createEDataType(APERIODIC_PATTERN); + closedPatternEDataType = createEDataType(CLOSED_PATTERN); + sporadicPatternEDataType = createEDataType(SPORADIC_PATTERN); + burstPatternEDataType = createEDataType(BURST_PATTERN); + irregularPatternEDataType = createEDataType(IRREGULAR_PATTERN); + nfP_PercentageEDataType = createEDataType(NFP_PERCENTAGE); + openPatternEDataType = createEDataType(OPEN_PATTERN); + nfP_PriceEDataType = createEDataType(NFP_PRICE); + nfP_WeightEDataType = createEDataType(NFP_WEIGHT); + } + + /** + * + * + * @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); + + // Initialize enums and add enum literals + initEEnum(sourceKindEEnum, SourceKind.class, "SourceKind"); + addEEnumLiteral(sourceKindEEnum, SourceKind.EST); + addEEnumLiteral(sourceKindEEnum, SourceKind.MEAS); + addEEnumLiteral(sourceKindEEnum, SourceKind.CALC); + addEEnumLiteral(sourceKindEEnum, SourceKind.REQ); + + initEEnum(directionKindEEnum, DirectionKind.class, "DirectionKind"); + addEEnumLiteral(directionKindEEnum, DirectionKind.INCR); + addEEnumLiteral(directionKindEEnum, DirectionKind.DECR); + + initEEnum(statisticalQualifierKindEEnum, StatisticalQualifierKind.class, "StatisticalQualifierKind"); + addEEnumLiteral(statisticalQualifierKindEEnum, StatisticalQualifierKind.MAX); + addEEnumLiteral(statisticalQualifierKindEEnum, StatisticalQualifierKind.MIN); + addEEnumLiteral(statisticalQualifierKindEEnum, StatisticalQualifierKind.MEAN); + addEEnumLiteral(statisticalQualifierKindEEnum, StatisticalQualifierKind.RANGE); + addEEnumLiteral(statisticalQualifierKindEEnum, StatisticalQualifierKind.PERCENT); + addEEnumLiteral(statisticalQualifierKindEEnum, StatisticalQualifierKind.DISTRIB); + addEEnumLiteral(statisticalQualifierKindEEnum, StatisticalQualifierKind.DETERM); + addEEnumLiteral(statisticalQualifierKindEEnum, StatisticalQualifierKind.OTHER); + addEEnumLiteral(statisticalQualifierKindEEnum, StatisticalQualifierKind.VARIANCE); + + // Initialize data types + initEDataType(nfP_CommonTypeEDataType, String.class, "NFP_CommonType", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(nfP_BooleanEDataType, String.class, "NFP_Boolean", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(nfP_NaturalEDataType, String.class, "NFP_Natural", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(nfP_StringEDataType, String.class, "NFP_String", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(nfP_RealEDataType, String.class, "NFP_Real", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(nfP_IntegerEDataType, String.class, "NFP_Integer", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(nfP_DateTimeEDataType, String.class, "NFP_DateTime", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(nfP_DurationEDataType, String.class, "NFP_Duration", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(nfP_DataTxRateEDataType, String.class, "NFP_DataTxRate", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(nfP_FrequencyEDataType, String.class, "NFP_Frequency", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(nfP_PowerEDataType, String.class, "NFP_Power", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(nfP_DataSizeEDataType, String.class, "NFP_DataSize", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(nfP_EnergyEDataType, String.class, "NFP_Energy", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(nfP_LengthEDataType, String.class, "NFP_Length", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(nfP_AreaEDataType, String.class, "NFP_Area", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(arrivalPatternEDataType, String.class, "ArrivalPattern", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(periodicPatternEDataType, String.class, "PeriodicPattern", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(aperiodicPatternEDataType, String.class, "AperiodicPattern", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(closedPatternEDataType, String.class, "ClosedPattern", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(sporadicPatternEDataType, String.class, "SporadicPattern", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(burstPatternEDataType, String.class, "BurstPattern", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(irregularPatternEDataType, String.class, "IrregularPattern", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(nfP_PercentageEDataType, String.class, "NFP_Percentage", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(openPatternEDataType, String.class, "OpenPattern", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(nfP_PriceEDataType, String.class, "NFP_Price", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(nfP_WeightEDataType, String.class, "NFP_Weight", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + + // Create resource + createResource(eNS_URI); + } + +} //BasicNFP_TypesPackageImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/GRM_BasicTypes/GRM_BasicTypesFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/GRM_BasicTypes/GRM_BasicTypesFactory.java new file mode 100644 index 00000000000..8834bb26cb0 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/GRM_BasicTypes/GRM_BasicTypesFactory.java @@ -0,0 +1,44 @@ +/***************************************************************************** + * Copyright (c) 2010 CEA LIST. + * + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Chokri MRAIDHA (CEA LIST) chokri.mraidha@cea.fr - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes; + +import org.eclipse.emf.ecore.EFactory; + +/** + * + * The Factory for the model. + * It provides a create method for each non-abstract class of the model. + * + * @see org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.GRM_BasicTypesPackage + * @generated + */ +public interface GRM_BasicTypesFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + GRM_BasicTypesFactory eINSTANCE = org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.impl.GRM_BasicTypesFactoryImpl.init(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + GRM_BasicTypesPackage getGRM_BasicTypesPackage(); + +} //GRM_BasicTypesFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/GRM_BasicTypes/GRM_BasicTypesPackage.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/GRM_BasicTypes/GRM_BasicTypesPackage.java new file mode 100644 index 00000000000..3fc17ab74e6 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/GRM_BasicTypes/GRM_BasicTypesPackage.java @@ -0,0 +1,431 @@ +/***************************************************************************** + * Copyright (c) 2010 CEA LIST. + * + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Chokri MRAIDHA (CEA LIST) chokri.mraidha@cea.fr - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes; + +import org.eclipse.emf.ecore.EDataType; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EPackage; + +/** + * + * The Package for the model. + * It contains accessors for the meta objects to represent + *
+ * If the meaning of 'Sporadic' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #SPORADIC + * @model name="Sporadic" + * @generated + * @ordered + */ + public static final int SPORADIC_VALUE = 0; + + /** + * The 'Deferrable' literal value. + * + *+ * If the meaning of 'Deferrable' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #DEFERRABLE + * @model name="Deferrable" + * @generated + * @ordered + */ + public static final int DEFERRABLE_VALUE = 1; + + /** + * The 'Undef' literal value. + * + *+ * If the meaning of 'Undef' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #UNDEF + * @model name="Undef" + * @generated + * @ordered + */ + public static final int UNDEF_VALUE = 2; + + /** + * The 'Other' literal value. + * + *+ * If the meaning of 'Other' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #OTHER + * @model name="Other" + * @generated + * @ordered + */ + public static final int OTHER_VALUE = 3; + + /** + * An array of all the 'Periodic Server Kind' enumerators. + * + * + * @generated + */ + private static final PeriodicServerKind[] VALUES_ARRAY = + new PeriodicServerKind[] { + SPORADIC, + DEFERRABLE, + UNDEF, + OTHER, + }; + + /** + * A public read-only list of all the 'Periodic Server Kind' enumerators. + * + * + * @generated + */ + public static final List+ * If the meaning of 'FIFO' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #FIFO + * @model + * @generated + * @ordered + */ + public static final int FIFO_VALUE = 0; + + /** + * The 'No Preemption' literal value. + * + *+ * If the meaning of 'No Preemption' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #NO_PREEMPTION + * @model name="NoPreemption" + * @generated + * @ordered + */ + public static final int NO_PREEMPTION_VALUE = 1; + + /** + * The 'Priority Ceiling' literal value. + * + *+ * If the meaning of 'Priority Ceiling' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #PRIORITY_CEILING + * @model name="PriorityCeiling" + * @generated + * @ordered + */ + public static final int PRIORITY_CEILING_VALUE = 2; + + /** + * The 'Priority Inheritance' literal value. + * + *+ * If the meaning of 'Priority Inheritance' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #PRIORITY_INHERITANCE + * @model name="PriorityInheritance" + * @generated + * @ordered + */ + public static final int PRIORITY_INHERITANCE_VALUE = 3; + + /** + * The 'Stack Based' literal value. + * + *+ * If the meaning of 'Stack Based' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #STACK_BASED + * @model name="StackBased" + * @generated + * @ordered + */ + public static final int STACK_BASED_VALUE = 4; + + /** + * The 'Undef' literal value. + * + *+ * If the meaning of 'Undef' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #UNDEF + * @model name="Undef" + * @generated + * @ordered + */ + public static final int UNDEF_VALUE = 5; + + /** + * The 'Other' literal value. + * + *+ * If the meaning of 'Other' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #OTHER + * @model name="Other" + * @generated + * @ordered + */ + public static final int OTHER_VALUE = 6; + + /** + * An array of all the 'Protect Protocol Kind' enumerators. + * + * + * @generated + */ + private static final ProtectProtocolKind[] VALUES_ARRAY = + new ProtectProtocolKind[] { + FIFO, + NO_PREEMPTION, + PRIORITY_CEILING, + PRIORITY_INHERITANCE, + STACK_BASED, + UNDEF, + OTHER, + }; + + /** + * A public read-only list of all the 'Protect Protocol Kind' enumerators. + * + * + * @generated + */ + public static final List+ * If the meaning of 'Earliest Deadline First' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #EARLIEST_DEADLINE_FIRST + * @model name="EarliestDeadlineFirst" + * @generated + * @ordered + */ + public static final int EARLIEST_DEADLINE_FIRST_VALUE = 0; + + /** + * The 'FIFO' literal value. + * + *+ * If the meaning of 'FIFO' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #FIFO + * @model + * @generated + * @ordered + */ + public static final int FIFO_VALUE = 1; + + /** + * The 'Fixed Priority' literal value. + * + *+ * If the meaning of 'Fixed Priority' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #FIXED_PRIORITY + * @model name="FixedPriority" + * @generated + * @ordered + */ + public static final int FIXED_PRIORITY_VALUE = 2; + + /** + * The 'Least Laxity First' literal value. + * + *+ * If the meaning of 'Least Laxity First' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #LEAST_LAXITY_FIRST + * @model name="LeastLaxityFirst" + * @generated + * @ordered + */ + public static final int LEAST_LAXITY_FIRST_VALUE = 3; + + /** + * The 'Round Robin' literal value. + * + *+ * If the meaning of 'Round Robin' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #ROUND_ROBIN + * @model name="RoundRobin" + * @generated + * @ordered + */ + public static final int ROUND_ROBIN_VALUE = 4; + + /** + * The 'Time Table Driven' literal value. + * + *+ * If the meaning of 'Time Table Driven' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #TIME_TABLE_DRIVEN + * @model name="TimeTableDriven" + * @generated + * @ordered + */ + public static final int TIME_TABLE_DRIVEN_VALUE = 5; + + /** + * The 'Undef' literal value. + * + *+ * If the meaning of 'Undef' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #UNDEF + * @model name="Undef" + * @generated + * @ordered + */ + public static final int UNDEF_VALUE = 6; + + /** + * The 'Other' literal value. + * + *+ * If the meaning of 'Other' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #OTHER + * @model name="Other" + * @generated + * @ordered + */ + public static final int OTHER_VALUE = 7; + + /** + * An array of all the 'Sched Policy Kind' enumerators. + * + * + * @generated + */ + private static final SchedPolicyKind[] VALUES_ARRAY = + new SchedPolicyKind[] { + EARLIEST_DEADLINE_FIRST, + FIFO, + FIXED_PRIORITY, + LEAST_LAXITY_FIRST, + ROUND_ROBIN, + TIME_TABLE_DRIVEN, + UNDEF, + OTHER, + }; + + /** + * A public read-only list of all the 'Sched Policy Kind' enumerators. + * + * + * @generated + */ + public static final ListNote: 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 org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.GRM_BasicTypesPackage#eNS_URI + * @see #init() + * @generated + */ + private GRM_BasicTypesPackageImpl() { + super(eNS_URI, GRM_BasicTypesFactory.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 GRM_BasicTypesPackage#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 GRM_BasicTypesPackage init() { + if (isInited) return (GRM_BasicTypesPackage)EPackage.Registry.INSTANCE.getEPackage(GRM_BasicTypesPackage.eNS_URI); + + // Obtain or create and register package + GRM_BasicTypesPackageImpl theGRM_BasicTypesPackage = (GRM_BasicTypesPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof GRM_BasicTypesPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new GRM_BasicTypesPackageImpl()); + + isInited = true; + + // Initialize simple dependencies + UMLPackage.eINSTANCE.eClass(); + + // Obtain or create and register interdependencies + MARTEPackageImpl theMARTEPackage = (MARTEPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(MARTEPackage.eNS_URI) instanceof MARTEPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(MARTEPackage.eNS_URI) : MARTEPackage.eINSTANCE); + NFPsPackageImpl theNFPsPackage = (NFPsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(NFPsPackage.eNS_URI) instanceof NFPsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(NFPsPackage.eNS_URI) : NFPsPackage.eINSTANCE); + CoreElementsPackageImpl theCoreElementsPackage = (CoreElementsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CoreElementsPackage.eNS_URI) instanceof CoreElementsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CoreElementsPackage.eNS_URI) : CoreElementsPackage.eINSTANCE); + AllocPackageImpl theAllocPackage = (AllocPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(AllocPackage.eNS_URI) instanceof AllocPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(AllocPackage.eNS_URI) : AllocPackage.eINSTANCE); + TimePackageImpl theTimePackage = (TimePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TimePackage.eNS_URI) instanceof TimePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TimePackage.eNS_URI) : TimePackage.eINSTANCE); + GRMPackageImpl theGRMPackage = (GRMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(GRMPackage.eNS_URI) instanceof GRMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(GRMPackage.eNS_URI) : GRMPackage.eINSTANCE); + RSMPackageImpl theRSMPackage = (RSMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RSMPackage.eNS_URI) instanceof RSMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RSMPackage.eNS_URI) : RSMPackage.eINSTANCE); + VariablesPackageImpl theVariablesPackage = (VariablesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(VariablesPackage.eNS_URI) instanceof VariablesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(VariablesPackage.eNS_URI) : VariablesPackage.eINSTANCE); + OperatorsPackageImpl theOperatorsPackage = (OperatorsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(OperatorsPackage.eNS_URI) instanceof OperatorsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(OperatorsPackage.eNS_URI) : OperatorsPackage.eINSTANCE); + DataTypesPackageImpl theDataTypesPackage = (DataTypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(DataTypesPackage.eNS_URI) instanceof DataTypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(DataTypesPackage.eNS_URI) : DataTypesPackage.eINSTANCE); + HLAMPackageImpl theHLAMPackage = (HLAMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HLAMPackage.eNS_URI) instanceof HLAMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HLAMPackage.eNS_URI) : HLAMPackage.eINSTANCE); + HwComputingPackageImpl theHwComputingPackage = (HwComputingPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwComputingPackage.eNS_URI) instanceof HwComputingPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwComputingPackage.eNS_URI) : HwComputingPackage.eINSTANCE); + HwCommunicationPackageImpl theHwCommunicationPackage = (HwCommunicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwCommunicationPackage.eNS_URI) instanceof HwCommunicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwCommunicationPackage.eNS_URI) : HwCommunicationPackage.eINSTANCE); + HwStorageManagerPackageImpl theHwStorageManagerPackage = (HwStorageManagerPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwStorageManagerPackage.eNS_URI) instanceof HwStorageManagerPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwStorageManagerPackage.eNS_URI) : HwStorageManagerPackage.eINSTANCE); + HwMemoryPackageImpl theHwMemoryPackage = (HwMemoryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwMemoryPackage.eNS_URI) instanceof HwMemoryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwMemoryPackage.eNS_URI) : HwMemoryPackage.eINSTANCE); + HwTimingPackageImpl theHwTimingPackage = (HwTimingPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwTimingPackage.eNS_URI) instanceof HwTimingPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwTimingPackage.eNS_URI) : HwTimingPackage.eINSTANCE); + HwDevicePackageImpl theHwDevicePackage = (HwDevicePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwDevicePackage.eNS_URI) instanceof HwDevicePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwDevicePackage.eNS_URI) : HwDevicePackage.eINSTANCE); + HwGeneralPackageImpl theHwGeneralPackage = (HwGeneralPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwGeneralPackage.eNS_URI) instanceof HwGeneralPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwGeneralPackage.eNS_URI) : HwGeneralPackage.eINSTANCE); + HwLayoutPackageImpl theHwLayoutPackage = (HwLayoutPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwLayoutPackage.eNS_URI) instanceof HwLayoutPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwLayoutPackage.eNS_URI) : HwLayoutPackage.eINSTANCE); + HwPowerPackageImpl theHwPowerPackage = (HwPowerPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwPowerPackage.eNS_URI) instanceof HwPowerPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwPowerPackage.eNS_URI) : HwPowerPackage.eINSTANCE); + SW_ResourceCorePackageImpl theSW_ResourceCorePackage = (SW_ResourceCorePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SW_ResourceCorePackage.eNS_URI) instanceof SW_ResourceCorePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SW_ResourceCorePackage.eNS_URI) : SW_ResourceCorePackage.eINSTANCE); + SW_ConcurrencyPackageImpl theSW_ConcurrencyPackage = (SW_ConcurrencyPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SW_ConcurrencyPackage.eNS_URI) instanceof SW_ConcurrencyPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SW_ConcurrencyPackage.eNS_URI) : SW_ConcurrencyPackage.eINSTANCE); + SW_BrokeringPackageImpl theSW_BrokeringPackage = (SW_BrokeringPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SW_BrokeringPackage.eNS_URI) instanceof SW_BrokeringPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SW_BrokeringPackage.eNS_URI) : SW_BrokeringPackage.eINSTANCE); + SW_InteractionPackageImpl theSW_InteractionPackage = (SW_InteractionPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SW_InteractionPackage.eNS_URI) instanceof SW_InteractionPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SW_InteractionPackage.eNS_URI) : SW_InteractionPackage.eINSTANCE); + GCMPackageImpl theGCMPackage = (GCMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(GCMPackage.eNS_URI) instanceof GCMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(GCMPackage.eNS_URI) : GCMPackage.eINSTANCE); + GQAMPackageImpl theGQAMPackage = (GQAMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(GQAMPackage.eNS_URI) instanceof GQAMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(GQAMPackage.eNS_URI) : GQAMPackage.eINSTANCE); + SAMPackageImpl theSAMPackage = (SAMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SAMPackage.eNS_URI) instanceof SAMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SAMPackage.eNS_URI) : SAMPackage.eINSTANCE); + PAMPackageImpl thePAMPackage = (PAMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(PAMPackage.eNS_URI) instanceof PAMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(PAMPackage.eNS_URI) : PAMPackage.eINSTANCE); + MeasurementUnitsPackageImpl theMeasurementUnitsPackage = (MeasurementUnitsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(MeasurementUnitsPackage.eNS_URI) instanceof MeasurementUnitsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(MeasurementUnitsPackage.eNS_URI) : MeasurementUnitsPackage.eINSTANCE); + MARTE_DataTypesPackageImpl theMARTE_DataTypesPackage = (MARTE_DataTypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(MARTE_DataTypesPackage.eNS_URI) instanceof MARTE_DataTypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(MARTE_DataTypesPackage.eNS_URI) : MARTE_DataTypesPackage.eINSTANCE); + BasicNFP_TypesPackageImpl theBasicNFP_TypesPackage = (BasicNFP_TypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(BasicNFP_TypesPackage.eNS_URI) instanceof BasicNFP_TypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(BasicNFP_TypesPackage.eNS_URI) : BasicNFP_TypesPackage.eINSTANCE); + TimeTypesLibraryPackageImpl theTimeTypesLibraryPackage = (TimeTypesLibraryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TimeTypesLibraryPackage.eNS_URI) instanceof TimeTypesLibraryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TimeTypesLibraryPackage.eNS_URI) : TimeTypesLibraryPackage.eINSTANCE); + TimeLibraryPackageImpl theTimeLibraryPackage = (TimeLibraryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TimeLibraryPackage.eNS_URI) instanceof TimeLibraryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TimeLibraryPackage.eNS_URI) : TimeLibraryPackage.eINSTANCE); + RS_LibraryPackageImpl theRS_LibraryPackage = (RS_LibraryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RS_LibraryPackage.eNS_URI) instanceof RS_LibraryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RS_LibraryPackage.eNS_URI) : RS_LibraryPackage.eINSTANCE); + MARTE_PrimitivesTypesPackageImpl theMARTE_PrimitivesTypesPackage = (MARTE_PrimitivesTypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(MARTE_PrimitivesTypesPackage.eNS_URI) instanceof MARTE_PrimitivesTypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(MARTE_PrimitivesTypesPackage.eNS_URI) : MARTE_PrimitivesTypesPackage.eINSTANCE); + + // Create package meta-data objects + theGRM_BasicTypesPackage.createPackageContents(); + theMARTEPackage.createPackageContents(); + theNFPsPackage.createPackageContents(); + theCoreElementsPackage.createPackageContents(); + theAllocPackage.createPackageContents(); + theTimePackage.createPackageContents(); + theGRMPackage.createPackageContents(); + theRSMPackage.createPackageContents(); + theVariablesPackage.createPackageContents(); + theOperatorsPackage.createPackageContents(); + theDataTypesPackage.createPackageContents(); + theHLAMPackage.createPackageContents(); + theHwComputingPackage.createPackageContents(); + theHwCommunicationPackage.createPackageContents(); + theHwStorageManagerPackage.createPackageContents(); + theHwMemoryPackage.createPackageContents(); + theHwTimingPackage.createPackageContents(); + theHwDevicePackage.createPackageContents(); + theHwGeneralPackage.createPackageContents(); + theHwLayoutPackage.createPackageContents(); + theHwPowerPackage.createPackageContents(); + theSW_ResourceCorePackage.createPackageContents(); + theSW_ConcurrencyPackage.createPackageContents(); + theSW_BrokeringPackage.createPackageContents(); + theSW_InteractionPackage.createPackageContents(); + theGCMPackage.createPackageContents(); + theGQAMPackage.createPackageContents(); + theSAMPackage.createPackageContents(); + thePAMPackage.createPackageContents(); + theMeasurementUnitsPackage.createPackageContents(); + theMARTE_DataTypesPackage.createPackageContents(); + theBasicNFP_TypesPackage.createPackageContents(); + theTimeTypesLibraryPackage.createPackageContents(); + theTimeLibraryPackage.createPackageContents(); + theRS_LibraryPackage.createPackageContents(); + theMARTE_PrimitivesTypesPackage.createPackageContents(); + + // Initialize created meta-data + theGRM_BasicTypesPackage.initializePackageContents(); + theMARTEPackage.initializePackageContents(); + theNFPsPackage.initializePackageContents(); + theCoreElementsPackage.initializePackageContents(); + theAllocPackage.initializePackageContents(); + theTimePackage.initializePackageContents(); + theGRMPackage.initializePackageContents(); + theRSMPackage.initializePackageContents(); + theVariablesPackage.initializePackageContents(); + theOperatorsPackage.initializePackageContents(); + theDataTypesPackage.initializePackageContents(); + theHLAMPackage.initializePackageContents(); + theHwComputingPackage.initializePackageContents(); + theHwCommunicationPackage.initializePackageContents(); + theHwStorageManagerPackage.initializePackageContents(); + theHwMemoryPackage.initializePackageContents(); + theHwTimingPackage.initializePackageContents(); + theHwDevicePackage.initializePackageContents(); + theHwGeneralPackage.initializePackageContents(); + theHwLayoutPackage.initializePackageContents(); + theHwPowerPackage.initializePackageContents(); + theSW_ResourceCorePackage.initializePackageContents(); + theSW_ConcurrencyPackage.initializePackageContents(); + theSW_BrokeringPackage.initializePackageContents(); + theSW_InteractionPackage.initializePackageContents(); + theGCMPackage.initializePackageContents(); + theGQAMPackage.initializePackageContents(); + theSAMPackage.initializePackageContents(); + thePAMPackage.initializePackageContents(); + theMeasurementUnitsPackage.initializePackageContents(); + theMARTE_DataTypesPackage.initializePackageContents(); + theBasicNFP_TypesPackage.initializePackageContents(); + theTimeTypesLibraryPackage.initializePackageContents(); + theTimeLibraryPackage.initializePackageContents(); + theRS_LibraryPackage.initializePackageContents(); + theMARTE_PrimitivesTypesPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theGRM_BasicTypesPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(GRM_BasicTypesPackage.eNS_URI, theGRM_BasicTypesPackage); + return theGRM_BasicTypesPackage; + } + + /** + * + * + * @generated + */ + public EEnum getSchedPolicyKind() { + return schedPolicyKindEEnum; + } + + /** + * + * + * @generated + */ + public EEnum getProtectProtocolKind() { + return protectProtocolKindEEnum; + } + + /** + * + * + * @generated + */ + public EEnum getPeriodicServerKind() { + return periodicServerKindEEnum; + } + + /** + * + * + * @generated + */ + public EDataType getEDF_Parameters() { + return edF_ParametersEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getSchedParameters() { + return schedParametersEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getFixedPriorityParameters() { + return fixedPriorityParametersEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getPeriodicServerParameters() { + return periodicServerParametersEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getPoolingParameters() { + return poolingParametersEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getScheduleSpecification() { + return scheduleSpecificationEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getTableDrivenSchedule() { + return tableDrivenScheduleEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getTableEntryType() { + return tableEntryTypeEDataType; + } + + /** + * + * + * @generated + */ + public GRM_BasicTypesFactory getGRM_BasicTypesFactory() { + return (GRM_BasicTypesFactory)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 enums + schedPolicyKindEEnum = createEEnum(SCHED_POLICY_KIND); + protectProtocolKindEEnum = createEEnum(PROTECT_PROTOCOL_KIND); + periodicServerKindEEnum = createEEnum(PERIODIC_SERVER_KIND); + + // Create data types + edF_ParametersEDataType = createEDataType(EDF_PARAMETERS); + schedParametersEDataType = createEDataType(SCHED_PARAMETERS); + fixedPriorityParametersEDataType = createEDataType(FIXED_PRIORITY_PARAMETERS); + periodicServerParametersEDataType = createEDataType(PERIODIC_SERVER_PARAMETERS); + poolingParametersEDataType = createEDataType(POOLING_PARAMETERS); + scheduleSpecificationEDataType = createEDataType(SCHEDULE_SPECIFICATION); + tableDrivenScheduleEDataType = createEDataType(TABLE_DRIVEN_SCHEDULE); + tableEntryTypeEDataType = createEDataType(TABLE_ENTRY_TYPE); + } + + /** + * + * + * @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); + + // Initialize enums and add enum literals + initEEnum(schedPolicyKindEEnum, SchedPolicyKind.class, "SchedPolicyKind"); + addEEnumLiteral(schedPolicyKindEEnum, SchedPolicyKind.EARLIEST_DEADLINE_FIRST); + addEEnumLiteral(schedPolicyKindEEnum, SchedPolicyKind.FIFO); + addEEnumLiteral(schedPolicyKindEEnum, SchedPolicyKind.FIXED_PRIORITY); + addEEnumLiteral(schedPolicyKindEEnum, SchedPolicyKind.LEAST_LAXITY_FIRST); + addEEnumLiteral(schedPolicyKindEEnum, SchedPolicyKind.ROUND_ROBIN); + addEEnumLiteral(schedPolicyKindEEnum, SchedPolicyKind.TIME_TABLE_DRIVEN); + addEEnumLiteral(schedPolicyKindEEnum, SchedPolicyKind.UNDEF); + addEEnumLiteral(schedPolicyKindEEnum, SchedPolicyKind.OTHER); + + initEEnum(protectProtocolKindEEnum, ProtectProtocolKind.class, "ProtectProtocolKind"); + addEEnumLiteral(protectProtocolKindEEnum, ProtectProtocolKind.FIFO); + addEEnumLiteral(protectProtocolKindEEnum, ProtectProtocolKind.NO_PREEMPTION); + addEEnumLiteral(protectProtocolKindEEnum, ProtectProtocolKind.PRIORITY_CEILING); + addEEnumLiteral(protectProtocolKindEEnum, ProtectProtocolKind.PRIORITY_INHERITANCE); + addEEnumLiteral(protectProtocolKindEEnum, ProtectProtocolKind.STACK_BASED); + addEEnumLiteral(protectProtocolKindEEnum, ProtectProtocolKind.UNDEF); + addEEnumLiteral(protectProtocolKindEEnum, ProtectProtocolKind.OTHER); + + initEEnum(periodicServerKindEEnum, PeriodicServerKind.class, "PeriodicServerKind"); + addEEnumLiteral(periodicServerKindEEnum, PeriodicServerKind.SPORADIC); + addEEnumLiteral(periodicServerKindEEnum, PeriodicServerKind.DEFERRABLE); + addEEnumLiteral(periodicServerKindEEnum, PeriodicServerKind.UNDEF); + addEEnumLiteral(periodicServerKindEEnum, PeriodicServerKind.OTHER); + + // Initialize data types + initEDataType(edF_ParametersEDataType, String.class, "EDF_Parameters", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(schedParametersEDataType, String.class, "SchedParameters", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(fixedPriorityParametersEDataType, String.class, "FixedPriorityParameters", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(periodicServerParametersEDataType, String.class, "PeriodicServerParameters", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(poolingParametersEDataType, String.class, "PoolingParameters", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(scheduleSpecificationEDataType, String.class, "ScheduleSpecification", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(tableDrivenScheduleEDataType, String.class, "TableDrivenSchedule", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(tableEntryTypeEDataType, String.class, "TableEntryType", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + + // Create resource + createResource(eNS_URI); + } + +} //GRM_BasicTypesPackageImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MARTE_DataTypes/MARTE_DataTypesFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MARTE_DataTypes/MARTE_DataTypesFactory.java new file mode 100644 index 00000000000..4aa2d511e84 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MARTE_DataTypes/MARTE_DataTypesFactory.java @@ -0,0 +1,44 @@ +/***************************************************************************** + * Copyright (c) 2010 CEA LIST. + * + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Chokri MRAIDHA (CEA LIST) chokri.mraidha@cea.fr - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes; + +import org.eclipse.emf.ecore.EFactory; + +/** + * + * The Factory for the model. + * It provides a create method for each non-abstract class of the model. + * + * @see org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.MARTE_DataTypesPackage + * @generated + */ +public interface MARTE_DataTypesFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + MARTE_DataTypesFactory eINSTANCE = org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.impl.MARTE_DataTypesFactoryImpl.init(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + MARTE_DataTypesPackage getMARTE_DataTypesPackage(); + +} //MARTE_DataTypesFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MARTE_DataTypes/MARTE_DataTypesPackage.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MARTE_DataTypes/MARTE_DataTypesPackage.java new file mode 100644 index 00000000000..41eadc63686 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MARTE_DataTypes/MARTE_DataTypesPackage.java @@ -0,0 +1,495 @@ +/***************************************************************************** + * Copyright (c) 2010 CEA LIST. + * + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Chokri MRAIDHA (CEA LIST) chokri.mraidha@cea.fr - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes; + +import org.eclipse.emf.ecore.EDataType; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EPackage; + +/** + * + * The Package for the model. + * It contains accessors for the meta objects to represent + *
+ * If the meaning of 'Simplex' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #SIMPLEX + * @model name="simplex" + * @generated + * @ordered + */ + public static final int SIMPLEX_VALUE = 0; + + /** + * The 'Half Duplex' literal value. + * + *+ * If the meaning of 'Half Duplex' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #HALF_DUPLEX + * @model name="halfDuplex" + * @generated + * @ordered + */ + public static final int HALF_DUPLEX_VALUE = 1; + + /** + * The 'Full Duplex' literal value. + * + *+ * If the meaning of 'Full Duplex' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #FULL_DUPLEX + * @model name="fullDuplex" + * @generated + * @ordered + */ + public static final int FULL_DUPLEX_VALUE = 2; + + /** + * An array of all the 'Transm Mode Kind' enumerators. + * + * + * @generated + */ + private static final TransmModeKind[] VALUES_ARRAY = + new TransmModeKind[] { + SIMPLEX, + HALF_DUPLEX, + FULL_DUPLEX, + }; + + /** + * A public read-only list of all the 'Transm Mode Kind' enumerators. + * + * + * @generated + */ + public static final ListNote: 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 org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.MARTE_DataTypesPackage#eNS_URI + * @see #init() + * @generated + */ + private MARTE_DataTypesPackageImpl() { + super(eNS_URI, MARTE_DataTypesFactory.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 MARTE_DataTypesPackage#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 MARTE_DataTypesPackage init() { + if (isInited) return (MARTE_DataTypesPackage)EPackage.Registry.INSTANCE.getEPackage(MARTE_DataTypesPackage.eNS_URI); + + // Obtain or create and register package + MARTE_DataTypesPackageImpl theMARTE_DataTypesPackage = (MARTE_DataTypesPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof MARTE_DataTypesPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new MARTE_DataTypesPackageImpl()); + + isInited = true; + + // Initialize simple dependencies + UMLPackage.eINSTANCE.eClass(); + + // Obtain or create and register interdependencies + MARTEPackageImpl theMARTEPackage = (MARTEPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(MARTEPackage.eNS_URI) instanceof MARTEPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(MARTEPackage.eNS_URI) : MARTEPackage.eINSTANCE); + NFPsPackageImpl theNFPsPackage = (NFPsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(NFPsPackage.eNS_URI) instanceof NFPsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(NFPsPackage.eNS_URI) : NFPsPackage.eINSTANCE); + CoreElementsPackageImpl theCoreElementsPackage = (CoreElementsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CoreElementsPackage.eNS_URI) instanceof CoreElementsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CoreElementsPackage.eNS_URI) : CoreElementsPackage.eINSTANCE); + AllocPackageImpl theAllocPackage = (AllocPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(AllocPackage.eNS_URI) instanceof AllocPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(AllocPackage.eNS_URI) : AllocPackage.eINSTANCE); + TimePackageImpl theTimePackage = (TimePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TimePackage.eNS_URI) instanceof TimePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TimePackage.eNS_URI) : TimePackage.eINSTANCE); + GRMPackageImpl theGRMPackage = (GRMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(GRMPackage.eNS_URI) instanceof GRMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(GRMPackage.eNS_URI) : GRMPackage.eINSTANCE); + RSMPackageImpl theRSMPackage = (RSMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RSMPackage.eNS_URI) instanceof RSMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RSMPackage.eNS_URI) : RSMPackage.eINSTANCE); + VariablesPackageImpl theVariablesPackage = (VariablesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(VariablesPackage.eNS_URI) instanceof VariablesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(VariablesPackage.eNS_URI) : VariablesPackage.eINSTANCE); + OperatorsPackageImpl theOperatorsPackage = (OperatorsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(OperatorsPackage.eNS_URI) instanceof OperatorsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(OperatorsPackage.eNS_URI) : OperatorsPackage.eINSTANCE); + DataTypesPackageImpl theDataTypesPackage = (DataTypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(DataTypesPackage.eNS_URI) instanceof DataTypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(DataTypesPackage.eNS_URI) : DataTypesPackage.eINSTANCE); + HLAMPackageImpl theHLAMPackage = (HLAMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HLAMPackage.eNS_URI) instanceof HLAMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HLAMPackage.eNS_URI) : HLAMPackage.eINSTANCE); + HwComputingPackageImpl theHwComputingPackage = (HwComputingPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwComputingPackage.eNS_URI) instanceof HwComputingPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwComputingPackage.eNS_URI) : HwComputingPackage.eINSTANCE); + HwCommunicationPackageImpl theHwCommunicationPackage = (HwCommunicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwCommunicationPackage.eNS_URI) instanceof HwCommunicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwCommunicationPackage.eNS_URI) : HwCommunicationPackage.eINSTANCE); + HwStorageManagerPackageImpl theHwStorageManagerPackage = (HwStorageManagerPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwStorageManagerPackage.eNS_URI) instanceof HwStorageManagerPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwStorageManagerPackage.eNS_URI) : HwStorageManagerPackage.eINSTANCE); + HwMemoryPackageImpl theHwMemoryPackage = (HwMemoryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwMemoryPackage.eNS_URI) instanceof HwMemoryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwMemoryPackage.eNS_URI) : HwMemoryPackage.eINSTANCE); + HwTimingPackageImpl theHwTimingPackage = (HwTimingPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwTimingPackage.eNS_URI) instanceof HwTimingPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwTimingPackage.eNS_URI) : HwTimingPackage.eINSTANCE); + HwDevicePackageImpl theHwDevicePackage = (HwDevicePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwDevicePackage.eNS_URI) instanceof HwDevicePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwDevicePackage.eNS_URI) : HwDevicePackage.eINSTANCE); + HwGeneralPackageImpl theHwGeneralPackage = (HwGeneralPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwGeneralPackage.eNS_URI) instanceof HwGeneralPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwGeneralPackage.eNS_URI) : HwGeneralPackage.eINSTANCE); + HwLayoutPackageImpl theHwLayoutPackage = (HwLayoutPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwLayoutPackage.eNS_URI) instanceof HwLayoutPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwLayoutPackage.eNS_URI) : HwLayoutPackage.eINSTANCE); + HwPowerPackageImpl theHwPowerPackage = (HwPowerPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwPowerPackage.eNS_URI) instanceof HwPowerPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwPowerPackage.eNS_URI) : HwPowerPackage.eINSTANCE); + SW_ResourceCorePackageImpl theSW_ResourceCorePackage = (SW_ResourceCorePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SW_ResourceCorePackage.eNS_URI) instanceof SW_ResourceCorePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SW_ResourceCorePackage.eNS_URI) : SW_ResourceCorePackage.eINSTANCE); + SW_ConcurrencyPackageImpl theSW_ConcurrencyPackage = (SW_ConcurrencyPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SW_ConcurrencyPackage.eNS_URI) instanceof SW_ConcurrencyPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SW_ConcurrencyPackage.eNS_URI) : SW_ConcurrencyPackage.eINSTANCE); + SW_BrokeringPackageImpl theSW_BrokeringPackage = (SW_BrokeringPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SW_BrokeringPackage.eNS_URI) instanceof SW_BrokeringPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SW_BrokeringPackage.eNS_URI) : SW_BrokeringPackage.eINSTANCE); + SW_InteractionPackageImpl theSW_InteractionPackage = (SW_InteractionPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SW_InteractionPackage.eNS_URI) instanceof SW_InteractionPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SW_InteractionPackage.eNS_URI) : SW_InteractionPackage.eINSTANCE); + GCMPackageImpl theGCMPackage = (GCMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(GCMPackage.eNS_URI) instanceof GCMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(GCMPackage.eNS_URI) : GCMPackage.eINSTANCE); + GQAMPackageImpl theGQAMPackage = (GQAMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(GQAMPackage.eNS_URI) instanceof GQAMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(GQAMPackage.eNS_URI) : GQAMPackage.eINSTANCE); + SAMPackageImpl theSAMPackage = (SAMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SAMPackage.eNS_URI) instanceof SAMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SAMPackage.eNS_URI) : SAMPackage.eINSTANCE); + PAMPackageImpl thePAMPackage = (PAMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(PAMPackage.eNS_URI) instanceof PAMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(PAMPackage.eNS_URI) : PAMPackage.eINSTANCE); + MeasurementUnitsPackageImpl theMeasurementUnitsPackage = (MeasurementUnitsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(MeasurementUnitsPackage.eNS_URI) instanceof MeasurementUnitsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(MeasurementUnitsPackage.eNS_URI) : MeasurementUnitsPackage.eINSTANCE); + GRM_BasicTypesPackageImpl theGRM_BasicTypesPackage = (GRM_BasicTypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(GRM_BasicTypesPackage.eNS_URI) instanceof GRM_BasicTypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(GRM_BasicTypesPackage.eNS_URI) : GRM_BasicTypesPackage.eINSTANCE); + BasicNFP_TypesPackageImpl theBasicNFP_TypesPackage = (BasicNFP_TypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(BasicNFP_TypesPackage.eNS_URI) instanceof BasicNFP_TypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(BasicNFP_TypesPackage.eNS_URI) : BasicNFP_TypesPackage.eINSTANCE); + TimeTypesLibraryPackageImpl theTimeTypesLibraryPackage = (TimeTypesLibraryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TimeTypesLibraryPackage.eNS_URI) instanceof TimeTypesLibraryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TimeTypesLibraryPackage.eNS_URI) : TimeTypesLibraryPackage.eINSTANCE); + TimeLibraryPackageImpl theTimeLibraryPackage = (TimeLibraryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TimeLibraryPackage.eNS_URI) instanceof TimeLibraryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TimeLibraryPackage.eNS_URI) : TimeLibraryPackage.eINSTANCE); + RS_LibraryPackageImpl theRS_LibraryPackage = (RS_LibraryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RS_LibraryPackage.eNS_URI) instanceof RS_LibraryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RS_LibraryPackage.eNS_URI) : RS_LibraryPackage.eINSTANCE); + MARTE_PrimitivesTypesPackageImpl theMARTE_PrimitivesTypesPackage = (MARTE_PrimitivesTypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(MARTE_PrimitivesTypesPackage.eNS_URI) instanceof MARTE_PrimitivesTypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(MARTE_PrimitivesTypesPackage.eNS_URI) : MARTE_PrimitivesTypesPackage.eINSTANCE); + + // Create package meta-data objects + theMARTE_DataTypesPackage.createPackageContents(); + theMARTEPackage.createPackageContents(); + theNFPsPackage.createPackageContents(); + theCoreElementsPackage.createPackageContents(); + theAllocPackage.createPackageContents(); + theTimePackage.createPackageContents(); + theGRMPackage.createPackageContents(); + theRSMPackage.createPackageContents(); + theVariablesPackage.createPackageContents(); + theOperatorsPackage.createPackageContents(); + theDataTypesPackage.createPackageContents(); + theHLAMPackage.createPackageContents(); + theHwComputingPackage.createPackageContents(); + theHwCommunicationPackage.createPackageContents(); + theHwStorageManagerPackage.createPackageContents(); + theHwMemoryPackage.createPackageContents(); + theHwTimingPackage.createPackageContents(); + theHwDevicePackage.createPackageContents(); + theHwGeneralPackage.createPackageContents(); + theHwLayoutPackage.createPackageContents(); + theHwPowerPackage.createPackageContents(); + theSW_ResourceCorePackage.createPackageContents(); + theSW_ConcurrencyPackage.createPackageContents(); + theSW_BrokeringPackage.createPackageContents(); + theSW_InteractionPackage.createPackageContents(); + theGCMPackage.createPackageContents(); + theGQAMPackage.createPackageContents(); + theSAMPackage.createPackageContents(); + thePAMPackage.createPackageContents(); + theMeasurementUnitsPackage.createPackageContents(); + theGRM_BasicTypesPackage.createPackageContents(); + theBasicNFP_TypesPackage.createPackageContents(); + theTimeTypesLibraryPackage.createPackageContents(); + theTimeLibraryPackage.createPackageContents(); + theRS_LibraryPackage.createPackageContents(); + theMARTE_PrimitivesTypesPackage.createPackageContents(); + + // Initialize created meta-data + theMARTE_DataTypesPackage.initializePackageContents(); + theMARTEPackage.initializePackageContents(); + theNFPsPackage.initializePackageContents(); + theCoreElementsPackage.initializePackageContents(); + theAllocPackage.initializePackageContents(); + theTimePackage.initializePackageContents(); + theGRMPackage.initializePackageContents(); + theRSMPackage.initializePackageContents(); + theVariablesPackage.initializePackageContents(); + theOperatorsPackage.initializePackageContents(); + theDataTypesPackage.initializePackageContents(); + theHLAMPackage.initializePackageContents(); + theHwComputingPackage.initializePackageContents(); + theHwCommunicationPackage.initializePackageContents(); + theHwStorageManagerPackage.initializePackageContents(); + theHwMemoryPackage.initializePackageContents(); + theHwTimingPackage.initializePackageContents(); + theHwDevicePackage.initializePackageContents(); + theHwGeneralPackage.initializePackageContents(); + theHwLayoutPackage.initializePackageContents(); + theHwPowerPackage.initializePackageContents(); + theSW_ResourceCorePackage.initializePackageContents(); + theSW_ConcurrencyPackage.initializePackageContents(); + theSW_BrokeringPackage.initializePackageContents(); + theSW_InteractionPackage.initializePackageContents(); + theGCMPackage.initializePackageContents(); + theGQAMPackage.initializePackageContents(); + theSAMPackage.initializePackageContents(); + thePAMPackage.initializePackageContents(); + theMeasurementUnitsPackage.initializePackageContents(); + theGRM_BasicTypesPackage.initializePackageContents(); + theBasicNFP_TypesPackage.initializePackageContents(); + theTimeTypesLibraryPackage.initializePackageContents(); + theTimeLibraryPackage.initializePackageContents(); + theRS_LibraryPackage.initializePackageContents(); + theMARTE_PrimitivesTypesPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theMARTE_DataTypesPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(MARTE_DataTypesPackage.eNS_URI, theMARTE_DataTypesPackage); + return theMARTE_DataTypesPackage; + } + + /** + * + * + * @generated + */ + public EEnum getTransmModeKind() { + return transmModeKindEEnum; + } + + /** + * + * + * @generated + */ + public EDataType getIntegerVector() { + return integerVectorEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getIntegerMatrix() { + return integerMatrixEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getVSL_Expression() { + return vsL_ExpressionEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getIntegerInterval() { + return integerIntervalEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getUtilityType() { + return utilityTypeEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getArray() { + return arrayEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getRealnterval() { + return realntervalEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getNFP_FrequencyInterval() { + return nfP_FrequencyIntervalEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getInterval() { + return intervalEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getNFP_NaturalInterval() { + return nfP_NaturalIntervalEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getRealVector() { + return realVectorEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getRealMatrix() { + return realMatrixEDataType; + } + + /** + * + * + * @generated + */ + public MARTE_DataTypesFactory getMARTE_DataTypesFactory() { + return (MARTE_DataTypesFactory)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 enums + transmModeKindEEnum = createEEnum(TRANSM_MODE_KIND); + + // Create data types + integerVectorEDataType = createEDataType(INTEGER_VECTOR); + integerMatrixEDataType = createEDataType(INTEGER_MATRIX); + vsL_ExpressionEDataType = createEDataType(VSL_EXPRESSION); + integerIntervalEDataType = createEDataType(INTEGER_INTERVAL); + utilityTypeEDataType = createEDataType(UTILITY_TYPE); + arrayEDataType = createEDataType(ARRAY); + realntervalEDataType = createEDataType(REALNTERVAL); + nfP_FrequencyIntervalEDataType = createEDataType(NFP_FREQUENCY_INTERVAL); + intervalEDataType = createEDataType(INTERVAL); + nfP_NaturalIntervalEDataType = createEDataType(NFP_NATURAL_INTERVAL); + realVectorEDataType = createEDataType(REAL_VECTOR); + realMatrixEDataType = createEDataType(REAL_MATRIX); + } + + /** + * + * + * @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); + + // Initialize enums and add enum literals + initEEnum(transmModeKindEEnum, TransmModeKind.class, "TransmModeKind"); + addEEnumLiteral(transmModeKindEEnum, TransmModeKind.SIMPLEX); + addEEnumLiteral(transmModeKindEEnum, TransmModeKind.HALF_DUPLEX); + addEEnumLiteral(transmModeKindEEnum, TransmModeKind.FULL_DUPLEX); + + // Initialize data types + initEDataType(integerVectorEDataType, String.class, "IntegerVector", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(integerMatrixEDataType, String.class, "IntegerMatrix", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(vsL_ExpressionEDataType, String.class, "VSL_Expression", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(integerIntervalEDataType, String.class, "IntegerInterval", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(utilityTypeEDataType, String.class, "UtilityType", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(arrayEDataType, String.class, "Array", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(realntervalEDataType, String.class, "Realnterval", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(nfP_FrequencyIntervalEDataType, String.class, "NFP_FrequencyInterval", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(intervalEDataType, String.class, "Interval", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(nfP_NaturalIntervalEDataType, String.class, "NFP_NaturalInterval", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(realVectorEDataType, String.class, "RealVector", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(realMatrixEDataType, String.class, "RealMatrix", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + + // Create resource + createResource(eNS_URI); + } + +} //MARTE_DataTypesPackageImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MARTE_PrimitivesTypes/MARTE_PrimitivesTypesFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MARTE_PrimitivesTypes/MARTE_PrimitivesTypesFactory.java new file mode 100644 index 00000000000..0efd0f91ad0 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MARTE_PrimitivesTypes/MARTE_PrimitivesTypesFactory.java @@ -0,0 +1,44 @@ +/***************************************************************************** + * Copyright (c) 2010 CEA LIST. + * + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Chokri MRAIDHA (CEA LIST) chokri.mraidha@cea.fr - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes; + +import org.eclipse.emf.ecore.EFactory; + +/** + * + * The Factory for the model. + * It provides a create method for each non-abstract class of the model. + * + * @see org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.MARTE_PrimitivesTypesPackage + * @generated + */ +public interface MARTE_PrimitivesTypesFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + MARTE_PrimitivesTypesFactory eINSTANCE = org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.impl.MARTE_PrimitivesTypesFactoryImpl.init(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + MARTE_PrimitivesTypesPackage getMARTE_PrimitivesTypesPackage(); + +} //MARTE_PrimitivesTypesFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MARTE_PrimitivesTypes/MARTE_PrimitivesTypesPackage.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MARTE_PrimitivesTypes/MARTE_PrimitivesTypesPackage.java new file mode 100644 index 00000000000..1b556d59875 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MARTE_PrimitivesTypes/MARTE_PrimitivesTypesPackage.java @@ -0,0 +1,272 @@ +/***************************************************************************** + * Copyright (c) 2010 CEA LIST. + * + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Chokri MRAIDHA (CEA LIST) chokri.mraidha@cea.fr - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes; + +import org.eclipse.emf.ecore.EDataType; +import org.eclipse.emf.ecore.EPackage; + +/** + * + * The Package for the model. + * It contains accessors for the meta objects to represent + *
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 org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.MARTE_PrimitivesTypesPackage#eNS_URI + * @see #init() + * @generated + */ + private MARTE_PrimitivesTypesPackageImpl() { + super(eNS_URI, MARTE_PrimitivesTypesFactory.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 MARTE_PrimitivesTypesPackage#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 MARTE_PrimitivesTypesPackage init() { + if (isInited) return (MARTE_PrimitivesTypesPackage)EPackage.Registry.INSTANCE.getEPackage(MARTE_PrimitivesTypesPackage.eNS_URI); + + // Obtain or create and register package + MARTE_PrimitivesTypesPackageImpl theMARTE_PrimitivesTypesPackage = (MARTE_PrimitivesTypesPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof MARTE_PrimitivesTypesPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new MARTE_PrimitivesTypesPackageImpl()); + + isInited = true; + + // Initialize simple dependencies + UMLPackage.eINSTANCE.eClass(); + + // Obtain or create and register interdependencies + MARTEPackageImpl theMARTEPackage = (MARTEPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(MARTEPackage.eNS_URI) instanceof MARTEPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(MARTEPackage.eNS_URI) : MARTEPackage.eINSTANCE); + NFPsPackageImpl theNFPsPackage = (NFPsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(NFPsPackage.eNS_URI) instanceof NFPsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(NFPsPackage.eNS_URI) : NFPsPackage.eINSTANCE); + CoreElementsPackageImpl theCoreElementsPackage = (CoreElementsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CoreElementsPackage.eNS_URI) instanceof CoreElementsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CoreElementsPackage.eNS_URI) : CoreElementsPackage.eINSTANCE); + AllocPackageImpl theAllocPackage = (AllocPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(AllocPackage.eNS_URI) instanceof AllocPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(AllocPackage.eNS_URI) : AllocPackage.eINSTANCE); + TimePackageImpl theTimePackage = (TimePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TimePackage.eNS_URI) instanceof TimePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TimePackage.eNS_URI) : TimePackage.eINSTANCE); + GRMPackageImpl theGRMPackage = (GRMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(GRMPackage.eNS_URI) instanceof GRMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(GRMPackage.eNS_URI) : GRMPackage.eINSTANCE); + RSMPackageImpl theRSMPackage = (RSMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RSMPackage.eNS_URI) instanceof RSMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RSMPackage.eNS_URI) : RSMPackage.eINSTANCE); + VariablesPackageImpl theVariablesPackage = (VariablesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(VariablesPackage.eNS_URI) instanceof VariablesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(VariablesPackage.eNS_URI) : VariablesPackage.eINSTANCE); + OperatorsPackageImpl theOperatorsPackage = (OperatorsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(OperatorsPackage.eNS_URI) instanceof OperatorsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(OperatorsPackage.eNS_URI) : OperatorsPackage.eINSTANCE); + DataTypesPackageImpl theDataTypesPackage = (DataTypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(DataTypesPackage.eNS_URI) instanceof DataTypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(DataTypesPackage.eNS_URI) : DataTypesPackage.eINSTANCE); + HLAMPackageImpl theHLAMPackage = (HLAMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HLAMPackage.eNS_URI) instanceof HLAMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HLAMPackage.eNS_URI) : HLAMPackage.eINSTANCE); + HwComputingPackageImpl theHwComputingPackage = (HwComputingPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwComputingPackage.eNS_URI) instanceof HwComputingPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwComputingPackage.eNS_URI) : HwComputingPackage.eINSTANCE); + HwCommunicationPackageImpl theHwCommunicationPackage = (HwCommunicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwCommunicationPackage.eNS_URI) instanceof HwCommunicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwCommunicationPackage.eNS_URI) : HwCommunicationPackage.eINSTANCE); + HwStorageManagerPackageImpl theHwStorageManagerPackage = (HwStorageManagerPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwStorageManagerPackage.eNS_URI) instanceof HwStorageManagerPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwStorageManagerPackage.eNS_URI) : HwStorageManagerPackage.eINSTANCE); + HwMemoryPackageImpl theHwMemoryPackage = (HwMemoryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwMemoryPackage.eNS_URI) instanceof HwMemoryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwMemoryPackage.eNS_URI) : HwMemoryPackage.eINSTANCE); + HwTimingPackageImpl theHwTimingPackage = (HwTimingPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwTimingPackage.eNS_URI) instanceof HwTimingPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwTimingPackage.eNS_URI) : HwTimingPackage.eINSTANCE); + HwDevicePackageImpl theHwDevicePackage = (HwDevicePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwDevicePackage.eNS_URI) instanceof HwDevicePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwDevicePackage.eNS_URI) : HwDevicePackage.eINSTANCE); + HwGeneralPackageImpl theHwGeneralPackage = (HwGeneralPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwGeneralPackage.eNS_URI) instanceof HwGeneralPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwGeneralPackage.eNS_URI) : HwGeneralPackage.eINSTANCE); + HwLayoutPackageImpl theHwLayoutPackage = (HwLayoutPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwLayoutPackage.eNS_URI) instanceof HwLayoutPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwLayoutPackage.eNS_URI) : HwLayoutPackage.eINSTANCE); + HwPowerPackageImpl theHwPowerPackage = (HwPowerPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwPowerPackage.eNS_URI) instanceof HwPowerPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwPowerPackage.eNS_URI) : HwPowerPackage.eINSTANCE); + SW_ResourceCorePackageImpl theSW_ResourceCorePackage = (SW_ResourceCorePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SW_ResourceCorePackage.eNS_URI) instanceof SW_ResourceCorePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SW_ResourceCorePackage.eNS_URI) : SW_ResourceCorePackage.eINSTANCE); + SW_ConcurrencyPackageImpl theSW_ConcurrencyPackage = (SW_ConcurrencyPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SW_ConcurrencyPackage.eNS_URI) instanceof SW_ConcurrencyPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SW_ConcurrencyPackage.eNS_URI) : SW_ConcurrencyPackage.eINSTANCE); + SW_BrokeringPackageImpl theSW_BrokeringPackage = (SW_BrokeringPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SW_BrokeringPackage.eNS_URI) instanceof SW_BrokeringPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SW_BrokeringPackage.eNS_URI) : SW_BrokeringPackage.eINSTANCE); + SW_InteractionPackageImpl theSW_InteractionPackage = (SW_InteractionPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SW_InteractionPackage.eNS_URI) instanceof SW_InteractionPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SW_InteractionPackage.eNS_URI) : SW_InteractionPackage.eINSTANCE); + GCMPackageImpl theGCMPackage = (GCMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(GCMPackage.eNS_URI) instanceof GCMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(GCMPackage.eNS_URI) : GCMPackage.eINSTANCE); + GQAMPackageImpl theGQAMPackage = (GQAMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(GQAMPackage.eNS_URI) instanceof GQAMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(GQAMPackage.eNS_URI) : GQAMPackage.eINSTANCE); + SAMPackageImpl theSAMPackage = (SAMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SAMPackage.eNS_URI) instanceof SAMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SAMPackage.eNS_URI) : SAMPackage.eINSTANCE); + PAMPackageImpl thePAMPackage = (PAMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(PAMPackage.eNS_URI) instanceof PAMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(PAMPackage.eNS_URI) : PAMPackage.eINSTANCE); + MeasurementUnitsPackageImpl theMeasurementUnitsPackage = (MeasurementUnitsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(MeasurementUnitsPackage.eNS_URI) instanceof MeasurementUnitsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(MeasurementUnitsPackage.eNS_URI) : MeasurementUnitsPackage.eINSTANCE); + GRM_BasicTypesPackageImpl theGRM_BasicTypesPackage = (GRM_BasicTypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(GRM_BasicTypesPackage.eNS_URI) instanceof GRM_BasicTypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(GRM_BasicTypesPackage.eNS_URI) : GRM_BasicTypesPackage.eINSTANCE); + MARTE_DataTypesPackageImpl theMARTE_DataTypesPackage = (MARTE_DataTypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(MARTE_DataTypesPackage.eNS_URI) instanceof MARTE_DataTypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(MARTE_DataTypesPackage.eNS_URI) : MARTE_DataTypesPackage.eINSTANCE); + BasicNFP_TypesPackageImpl theBasicNFP_TypesPackage = (BasicNFP_TypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(BasicNFP_TypesPackage.eNS_URI) instanceof BasicNFP_TypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(BasicNFP_TypesPackage.eNS_URI) : BasicNFP_TypesPackage.eINSTANCE); + TimeTypesLibraryPackageImpl theTimeTypesLibraryPackage = (TimeTypesLibraryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TimeTypesLibraryPackage.eNS_URI) instanceof TimeTypesLibraryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TimeTypesLibraryPackage.eNS_URI) : TimeTypesLibraryPackage.eINSTANCE); + TimeLibraryPackageImpl theTimeLibraryPackage = (TimeLibraryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TimeLibraryPackage.eNS_URI) instanceof TimeLibraryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TimeLibraryPackage.eNS_URI) : TimeLibraryPackage.eINSTANCE); + RS_LibraryPackageImpl theRS_LibraryPackage = (RS_LibraryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RS_LibraryPackage.eNS_URI) instanceof RS_LibraryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RS_LibraryPackage.eNS_URI) : RS_LibraryPackage.eINSTANCE); + + // Create package meta-data objects + theMARTE_PrimitivesTypesPackage.createPackageContents(); + theMARTEPackage.createPackageContents(); + theNFPsPackage.createPackageContents(); + theCoreElementsPackage.createPackageContents(); + theAllocPackage.createPackageContents(); + theTimePackage.createPackageContents(); + theGRMPackage.createPackageContents(); + theRSMPackage.createPackageContents(); + theVariablesPackage.createPackageContents(); + theOperatorsPackage.createPackageContents(); + theDataTypesPackage.createPackageContents(); + theHLAMPackage.createPackageContents(); + theHwComputingPackage.createPackageContents(); + theHwCommunicationPackage.createPackageContents(); + theHwStorageManagerPackage.createPackageContents(); + theHwMemoryPackage.createPackageContents(); + theHwTimingPackage.createPackageContents(); + theHwDevicePackage.createPackageContents(); + theHwGeneralPackage.createPackageContents(); + theHwLayoutPackage.createPackageContents(); + theHwPowerPackage.createPackageContents(); + theSW_ResourceCorePackage.createPackageContents(); + theSW_ConcurrencyPackage.createPackageContents(); + theSW_BrokeringPackage.createPackageContents(); + theSW_InteractionPackage.createPackageContents(); + theGCMPackage.createPackageContents(); + theGQAMPackage.createPackageContents(); + theSAMPackage.createPackageContents(); + thePAMPackage.createPackageContents(); + theMeasurementUnitsPackage.createPackageContents(); + theGRM_BasicTypesPackage.createPackageContents(); + theMARTE_DataTypesPackage.createPackageContents(); + theBasicNFP_TypesPackage.createPackageContents(); + theTimeTypesLibraryPackage.createPackageContents(); + theTimeLibraryPackage.createPackageContents(); + theRS_LibraryPackage.createPackageContents(); + + // Initialize created meta-data + theMARTE_PrimitivesTypesPackage.initializePackageContents(); + theMARTEPackage.initializePackageContents(); + theNFPsPackage.initializePackageContents(); + theCoreElementsPackage.initializePackageContents(); + theAllocPackage.initializePackageContents(); + theTimePackage.initializePackageContents(); + theGRMPackage.initializePackageContents(); + theRSMPackage.initializePackageContents(); + theVariablesPackage.initializePackageContents(); + theOperatorsPackage.initializePackageContents(); + theDataTypesPackage.initializePackageContents(); + theHLAMPackage.initializePackageContents(); + theHwComputingPackage.initializePackageContents(); + theHwCommunicationPackage.initializePackageContents(); + theHwStorageManagerPackage.initializePackageContents(); + theHwMemoryPackage.initializePackageContents(); + theHwTimingPackage.initializePackageContents(); + theHwDevicePackage.initializePackageContents(); + theHwGeneralPackage.initializePackageContents(); + theHwLayoutPackage.initializePackageContents(); + theHwPowerPackage.initializePackageContents(); + theSW_ResourceCorePackage.initializePackageContents(); + theSW_ConcurrencyPackage.initializePackageContents(); + theSW_BrokeringPackage.initializePackageContents(); + theSW_InteractionPackage.initializePackageContents(); + theGCMPackage.initializePackageContents(); + theGQAMPackage.initializePackageContents(); + theSAMPackage.initializePackageContents(); + thePAMPackage.initializePackageContents(); + theMeasurementUnitsPackage.initializePackageContents(); + theGRM_BasicTypesPackage.initializePackageContents(); + theMARTE_DataTypesPackage.initializePackageContents(); + theBasicNFP_TypesPackage.initializePackageContents(); + theTimeTypesLibraryPackage.initializePackageContents(); + theTimeLibraryPackage.initializePackageContents(); + theRS_LibraryPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theMARTE_PrimitivesTypesPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(MARTE_PrimitivesTypesPackage.eNS_URI, theMARTE_PrimitivesTypesPackage); + return theMARTE_PrimitivesTypesPackage; + } + + /** + * + * + * @generated + */ + public EDataType getInteger() { + return integerEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getBoolean() { + return booleanEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getUnlimitedNatural() { + return unlimitedNaturalEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getString() { + return stringEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getDateTime() { + return dateTimeEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getReal() { + return realEDataType; + } + + /** + * + * + * @generated + */ + public MARTE_PrimitivesTypesFactory getMARTE_PrimitivesTypesFactory() { + return (MARTE_PrimitivesTypesFactory)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 data types + integerEDataType = createEDataType(INTEGER); + booleanEDataType = createEDataType(BOOLEAN); + unlimitedNaturalEDataType = createEDataType(UNLIMITED_NATURAL); + stringEDataType = createEDataType(STRING); + dateTimeEDataType = createEDataType(DATE_TIME); + realEDataType = createEDataType(REAL); + } + + /** + * + * + * @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); + + // Initialize data types + initEDataType(integerEDataType, int.class, "Integer", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(booleanEDataType, boolean.class, "Boolean", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(unlimitedNaturalEDataType, String.class, "UnlimitedNatural", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(stringEDataType, String.class, "String", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(dateTimeEDataType, String.class, "DateTime", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(realEDataType, String.class, "Real", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + + // Create resource + createResource(eNS_URI); + } + +} //MARTE_PrimitivesTypesPackageImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/AreaUnitKind.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/AreaUnitKind.java new file mode 100644 index 00000000000..ce5f5456e20 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/AreaUnitKind.java @@ -0,0 +1,219 @@ +/***************************************************************************** + * Copyright (c) 2010 CEA LIST. + * + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Chokri MRAIDHA (CEA LIST) chokri.mraidha@cea.fr - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.MARTE_Library.MeasurementUnits; + +import java.util.Arrays; +import java.util.Collections; +import java.util.List; + +import org.eclipse.emf.common.util.Enumerator; + +/** + * + * A representation of the literals of the enumeration 'Area Unit Kind', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.MeasurementUnitsPackage#getAreaUnitKind() + * @model + * @generated + */ +public enum AreaUnitKind implements Enumerator { + /** + * The 'Mm2' literal object. + * + * + * @see #MM2_VALUE + * @generated + * @ordered + */ + MM2(0, "mm2", "mm2"), + + /** + * The 'Um2' literal object. + * + * + * @see #UM2_VALUE + * @generated + * @ordered + */ + UM2(1, "um2", "um2"); + + /** + * The 'Mm2' literal value. + * + *
+ * If the meaning of 'Mm2' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #MM2 + * @model name="mm2" + * @generated + * @ordered + */ + public static final int MM2_VALUE = 0; + + /** + * The 'Um2' literal value. + * + *+ * If the meaning of 'Um2' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #UM2 + * @model name="um2" + * @generated + * @ordered + */ + public static final int UM2_VALUE = 1; + + /** + * An array of all the 'Area Unit Kind' enumerators. + * + * + * @generated + */ + private static final AreaUnitKind[] VALUES_ARRAY = + new AreaUnitKind[] { + MM2, + UM2, + }; + + /** + * A public read-only list of all the 'Area Unit Kind' enumerators. + * + * + * @generated + */ + public static final List+ * If the meaning of 'Bit' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #BIT + * @model name="bit" + * @generated + * @ordered + */ + public static final int BIT_VALUE = 0; + + /** + * The 'Byte' literal value. + * + *+ * If the meaning of 'Byte' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #BYTE + * @model name="Byte" + * @generated + * @ordered + */ + public static final int BYTE_VALUE = 1; + + /** + * The 'KB' literal value. + * + *+ * If the meaning of 'KB' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #KB + * @model + * @generated + * @ordered + */ + public static final int KB_VALUE = 2; + + /** + * The 'MB' literal value. + * + *+ * If the meaning of 'MB' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #MB + * @model + * @generated + * @ordered + */ + public static final int MB_VALUE = 3; + + /** + * The 'GB' literal value. + * + *+ * If the meaning of 'GB' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #GB + * @model + * @generated + * @ordered + */ + public static final int GB_VALUE = 4; + + /** + * An array of all the 'Data Size Unit Kind' enumerators. + * + * + * @generated + */ + private static final DataSizeUnitKind[] VALUES_ARRAY = + new DataSizeUnitKind[] { + BIT, + BYTE, + KB, + MB, + GB, + }; + + /** + * A public read-only list of all the 'Data Size Unit Kind' enumerators. + * + * + * @generated + */ + public static final List+ * If the meaning of 'Bper s' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #BPER_S + * @model name="b_per_s" + * @generated + * @ordered + */ + public static final int BPER_S_VALUE = 0; + + /** + * The 'Kb per s' literal value. + * + *+ * If the meaning of 'Kb per s' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #KB_PER_S + * @model name="Kb_per_s" + * @generated + * @ordered + */ + public static final int KB_PER_S_VALUE = 1; + + /** + * The 'Mb per s' literal value. + * + *+ * If the meaning of 'Mb per s' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #MB_PER_S + * @model name="Mb_per_s" + * @generated + * @ordered + */ + public static final int MB_PER_S_VALUE = 2; + + /** + * An array of all the 'Data Tx Rate Unit Kind' enumerators. + * + * + * @generated + */ + private static final DataTxRateUnitKind[] VALUES_ARRAY = + new DataTxRateUnitKind[] { + BPER_S, + KB_PER_S, + MB_PER_S, + }; + + /** + * A public read-only list of all the 'Data Tx Rate Unit Kind' enumerators. + * + * + * @generated + */ + public static final List+ * If the meaning of 'J' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #J + * @model + * @generated + * @ordered + */ + public static final int J_VALUE = 0; + + /** + * The 'KJ' literal value. + * + *+ * If the meaning of 'KJ' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #KJ + * @model + * @generated + * @ordered + */ + public static final int KJ_VALUE = 1; + + /** + * The 'Wh' literal value. + * + *+ * If the meaning of 'Wh' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #WH + * @model name="Wh" + * @generated + * @ordered + */ + public static final int WH_VALUE = 2; + + /** + * The 'KWh' literal value. + * + *+ * If the meaning of 'KWh' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #KWH + * @model name="KWh" + * @generated + * @ordered + */ + public static final int KWH_VALUE = 3; + + /** + * The 'MWh' literal value. + * + *+ * If the meaning of 'MWh' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #MWH + * @model name="mWh" + * @generated + * @ordered + */ + public static final int MWH_VALUE = 4; + + /** + * An array of all the 'Energy Unit Kind' enumerators. + * + * + * @generated + */ + private static final EnergyUnitKind[] VALUES_ARRAY = + new EnergyUnitKind[] { + J, + KJ, + WH, + KWH, + MWH, + }; + + /** + * A public read-only list of all the 'Energy Unit Kind' enumerators. + * + * + * @generated + */ + public static final List+ * If the meaning of 'Hz' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #HZ + * @model name="Hz" + * @generated + * @ordered + */ + public static final int HZ_VALUE = 0; + + /** + * The 'KHz' literal value. + * + *+ * If the meaning of 'KHz' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #KHZ + * @model name="KHz" + * @generated + * @ordered + */ + public static final int KHZ_VALUE = 1; + + /** + * The 'MHz' literal value. + * + *+ * If the meaning of 'MHz' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #MHZ + * @model name="MHz" + * @generated + * @ordered + */ + public static final int MHZ_VALUE = 2; + + /** + * The 'GHz' literal value. + * + *+ * If the meaning of 'GHz' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #GHZ + * @model name="GHz" + * @generated + * @ordered + */ + public static final int GHZ_VALUE = 3; + + /** + * The 'Rpm' literal value. + * + *+ * If the meaning of 'Rpm' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #RPM + * @model name="rpm" + * @generated + * @ordered + */ + public static final int RPM_VALUE = 4; + + /** + * An array of all the 'Frequency Unit Kind' enumerators. + * + * + * @generated + */ + private static final FrequencyUnitKind[] VALUES_ARRAY = + new FrequencyUnitKind[] { + HZ, + KHZ, + MHZ, + GHZ, + RPM, + }; + + /** + * A public read-only list of all the 'Frequency Unit Kind' enumerators. + * + * + * @generated + */ + public static final List+ * If the meaning of 'M' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #M + * @model name="m" + * @generated + * @ordered + */ + public static final int M_VALUE = 0; + + /** + * The 'Cm' literal value. + * + *+ * If the meaning of 'Cm' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #CM + * @model name="cm" + * @generated + * @ordered + */ + public static final int CM_VALUE = 1; + + /** + * The 'Mm' literal value. + * + *+ * If the meaning of 'Mm' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #MM + * @model name="mm" + * @generated + * @ordered + */ + public static final int MM_VALUE = 2; + + /** + * An array of all the 'Length Unit Kind' enumerators. + * + * + * @generated + */ + private static final LengthUnitKind[] VALUES_ARRAY = + new LengthUnitKind[] { + M, + CM, + MM, + }; + + /** + * A public read-only list of all the 'Length Unit Kind' enumerators. + * + * + * @generated + */ + public static final List+ * If the meaning of 'W' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #W + * @model + * @generated + * @ordered + */ + public static final int W_VALUE = 0; + + /** + * The 'MW' literal value. + * + *+ * If the meaning of 'MW' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #MW + * @model name="mW" + * @generated + * @ordered + */ + public static final int MW_VALUE = 1; + + /** + * The 'KW' literal value. + * + *+ * If the meaning of 'KW' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #KW + * @model + * @generated + * @ordered + */ + public static final int KW_VALUE = 2; + + /** + * An array of all the 'Power Unit Kind' enumerators. + * + * + * @generated + */ + private static final PowerUnitKind[] VALUES_ARRAY = + new PowerUnitKind[] { + W, + MW, + KW, + }; + + /** + * A public read-only list of all the 'Power Unit Kind' enumerators. + * + * + * @generated + */ + public static final List+ * If the meaning of 'S' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #S + * @model name="s" + * @generated + * @ordered + */ + public static final int S_VALUE = 0; + + /** + * The 'Tick' literal value. + * + *+ * If the meaning of 'Tick' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #TICK + * @model name="tick" + * @generated + * @ordered + */ + public static final int TICK_VALUE = 1; + + /** + * The 'Ms' literal value. + * + *+ * If the meaning of 'Ms' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #MS + * @model name="ms" + * @generated + * @ordered + */ + public static final int MS_VALUE = 2; + + /** + * The 'Us' literal value. + * + *+ * If the meaning of 'Us' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #US + * @model name="us" + * @generated + * @ordered + */ + public static final int US_VALUE = 3; + + /** + * The 'Min' literal value. + * + *+ * If the meaning of 'Min' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #MIN + * @model name="min" + * @generated + * @ordered + */ + public static final int MIN_VALUE = 4; + + /** + * The 'Hrs' literal value. + * + *+ * If the meaning of 'Hrs' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #HRS + * @model name="hrs" + * @generated + * @ordered + */ + public static final int HRS_VALUE = 5; + + /** + * The 'Day' literal value. + * + *+ * If the meaning of 'Day' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #DAY + * @model name="day" + * @generated + * @ordered + */ + public static final int DAY_VALUE = 6; + + /** + * An array of all the 'Time Unit Kind' enumerators. + * + * + * @generated + */ + private static final TimeUnitKind[] VALUES_ARRAY = + new TimeUnitKind[] { + S, + TICK, + MS, + US, + MIN, + HRS, + DAY, + }; + + /** + * A public read-only list of all the 'Time Unit Kind' enumerators. + * + * + * @generated + */ + public static final List+ * If the meaning of 'G' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #G + * @model name="g" + * @generated + * @ordered + */ + public static final int G_VALUE = 0; + + /** + * The 'Mg' literal value. + * + *+ * If the meaning of 'Mg' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #MG + * @model name="mg" + * @generated + * @ordered + */ + public static final int MG_VALUE = 1; + + /** + * The 'Kg' literal value. + * + *+ * If the meaning of 'Kg' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #KG + * @model name="kg" + * @generated + * @ordered + */ + public static final int KG_VALUE = 2; + + /** + * An array of all the 'Weight Unit Kind' enumerators. + * + * + * @generated + */ + private static final WeightUnitKind[] VALUES_ARRAY = + new WeightUnitKind[] { + G, + MG, + KG, + }; + + /** + * A public read-only list of all the 'Weight Unit Kind' enumerators. + * + * + * @generated + */ + public static final ListNote: 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 org.eclipse.papyrus.MARTE_Library.MeasurementUnits.MeasurementUnitsPackage#eNS_URI + * @see #init() + * @generated + */ + private MeasurementUnitsPackageImpl() { + super(eNS_URI, MeasurementUnitsFactory.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 MeasurementUnitsPackage#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 MeasurementUnitsPackage init() { + if (isInited) return (MeasurementUnitsPackage)EPackage.Registry.INSTANCE.getEPackage(MeasurementUnitsPackage.eNS_URI); + + // Obtain or create and register package + MeasurementUnitsPackageImpl theMeasurementUnitsPackage = (MeasurementUnitsPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof MeasurementUnitsPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new MeasurementUnitsPackageImpl()); + + isInited = true; + + // Initialize simple dependencies + UMLPackage.eINSTANCE.eClass(); + + // Obtain or create and register interdependencies + MARTEPackageImpl theMARTEPackage = (MARTEPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(MARTEPackage.eNS_URI) instanceof MARTEPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(MARTEPackage.eNS_URI) : MARTEPackage.eINSTANCE); + NFPsPackageImpl theNFPsPackage = (NFPsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(NFPsPackage.eNS_URI) instanceof NFPsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(NFPsPackage.eNS_URI) : NFPsPackage.eINSTANCE); + CoreElementsPackageImpl theCoreElementsPackage = (CoreElementsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CoreElementsPackage.eNS_URI) instanceof CoreElementsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CoreElementsPackage.eNS_URI) : CoreElementsPackage.eINSTANCE); + AllocPackageImpl theAllocPackage = (AllocPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(AllocPackage.eNS_URI) instanceof AllocPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(AllocPackage.eNS_URI) : AllocPackage.eINSTANCE); + TimePackageImpl theTimePackage = (TimePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TimePackage.eNS_URI) instanceof TimePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TimePackage.eNS_URI) : TimePackage.eINSTANCE); + GRMPackageImpl theGRMPackage = (GRMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(GRMPackage.eNS_URI) instanceof GRMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(GRMPackage.eNS_URI) : GRMPackage.eINSTANCE); + RSMPackageImpl theRSMPackage = (RSMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RSMPackage.eNS_URI) instanceof RSMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RSMPackage.eNS_URI) : RSMPackage.eINSTANCE); + VariablesPackageImpl theVariablesPackage = (VariablesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(VariablesPackage.eNS_URI) instanceof VariablesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(VariablesPackage.eNS_URI) : VariablesPackage.eINSTANCE); + OperatorsPackageImpl theOperatorsPackage = (OperatorsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(OperatorsPackage.eNS_URI) instanceof OperatorsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(OperatorsPackage.eNS_URI) : OperatorsPackage.eINSTANCE); + DataTypesPackageImpl theDataTypesPackage = (DataTypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(DataTypesPackage.eNS_URI) instanceof DataTypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(DataTypesPackage.eNS_URI) : DataTypesPackage.eINSTANCE); + HLAMPackageImpl theHLAMPackage = (HLAMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HLAMPackage.eNS_URI) instanceof HLAMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HLAMPackage.eNS_URI) : HLAMPackage.eINSTANCE); + HwComputingPackageImpl theHwComputingPackage = (HwComputingPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwComputingPackage.eNS_URI) instanceof HwComputingPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwComputingPackage.eNS_URI) : HwComputingPackage.eINSTANCE); + HwCommunicationPackageImpl theHwCommunicationPackage = (HwCommunicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwCommunicationPackage.eNS_URI) instanceof HwCommunicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwCommunicationPackage.eNS_URI) : HwCommunicationPackage.eINSTANCE); + HwStorageManagerPackageImpl theHwStorageManagerPackage = (HwStorageManagerPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwStorageManagerPackage.eNS_URI) instanceof HwStorageManagerPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwStorageManagerPackage.eNS_URI) : HwStorageManagerPackage.eINSTANCE); + HwMemoryPackageImpl theHwMemoryPackage = (HwMemoryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwMemoryPackage.eNS_URI) instanceof HwMemoryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwMemoryPackage.eNS_URI) : HwMemoryPackage.eINSTANCE); + HwTimingPackageImpl theHwTimingPackage = (HwTimingPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwTimingPackage.eNS_URI) instanceof HwTimingPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwTimingPackage.eNS_URI) : HwTimingPackage.eINSTANCE); + HwDevicePackageImpl theHwDevicePackage = (HwDevicePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwDevicePackage.eNS_URI) instanceof HwDevicePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwDevicePackage.eNS_URI) : HwDevicePackage.eINSTANCE); + HwGeneralPackageImpl theHwGeneralPackage = (HwGeneralPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwGeneralPackage.eNS_URI) instanceof HwGeneralPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwGeneralPackage.eNS_URI) : HwGeneralPackage.eINSTANCE); + HwLayoutPackageImpl theHwLayoutPackage = (HwLayoutPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwLayoutPackage.eNS_URI) instanceof HwLayoutPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwLayoutPackage.eNS_URI) : HwLayoutPackage.eINSTANCE); + HwPowerPackageImpl theHwPowerPackage = (HwPowerPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwPowerPackage.eNS_URI) instanceof HwPowerPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwPowerPackage.eNS_URI) : HwPowerPackage.eINSTANCE); + SW_ResourceCorePackageImpl theSW_ResourceCorePackage = (SW_ResourceCorePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SW_ResourceCorePackage.eNS_URI) instanceof SW_ResourceCorePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SW_ResourceCorePackage.eNS_URI) : SW_ResourceCorePackage.eINSTANCE); + SW_ConcurrencyPackageImpl theSW_ConcurrencyPackage = (SW_ConcurrencyPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SW_ConcurrencyPackage.eNS_URI) instanceof SW_ConcurrencyPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SW_ConcurrencyPackage.eNS_URI) : SW_ConcurrencyPackage.eINSTANCE); + SW_BrokeringPackageImpl theSW_BrokeringPackage = (SW_BrokeringPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SW_BrokeringPackage.eNS_URI) instanceof SW_BrokeringPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SW_BrokeringPackage.eNS_URI) : SW_BrokeringPackage.eINSTANCE); + SW_InteractionPackageImpl theSW_InteractionPackage = (SW_InteractionPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SW_InteractionPackage.eNS_URI) instanceof SW_InteractionPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SW_InteractionPackage.eNS_URI) : SW_InteractionPackage.eINSTANCE); + GCMPackageImpl theGCMPackage = (GCMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(GCMPackage.eNS_URI) instanceof GCMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(GCMPackage.eNS_URI) : GCMPackage.eINSTANCE); + GQAMPackageImpl theGQAMPackage = (GQAMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(GQAMPackage.eNS_URI) instanceof GQAMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(GQAMPackage.eNS_URI) : GQAMPackage.eINSTANCE); + SAMPackageImpl theSAMPackage = (SAMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SAMPackage.eNS_URI) instanceof SAMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SAMPackage.eNS_URI) : SAMPackage.eINSTANCE); + PAMPackageImpl thePAMPackage = (PAMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(PAMPackage.eNS_URI) instanceof PAMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(PAMPackage.eNS_URI) : PAMPackage.eINSTANCE); + GRM_BasicTypesPackageImpl theGRM_BasicTypesPackage = (GRM_BasicTypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(GRM_BasicTypesPackage.eNS_URI) instanceof GRM_BasicTypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(GRM_BasicTypesPackage.eNS_URI) : GRM_BasicTypesPackage.eINSTANCE); + MARTE_DataTypesPackageImpl theMARTE_DataTypesPackage = (MARTE_DataTypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(MARTE_DataTypesPackage.eNS_URI) instanceof MARTE_DataTypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(MARTE_DataTypesPackage.eNS_URI) : MARTE_DataTypesPackage.eINSTANCE); + BasicNFP_TypesPackageImpl theBasicNFP_TypesPackage = (BasicNFP_TypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(BasicNFP_TypesPackage.eNS_URI) instanceof BasicNFP_TypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(BasicNFP_TypesPackage.eNS_URI) : BasicNFP_TypesPackage.eINSTANCE); + TimeTypesLibraryPackageImpl theTimeTypesLibraryPackage = (TimeTypesLibraryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TimeTypesLibraryPackage.eNS_URI) instanceof TimeTypesLibraryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TimeTypesLibraryPackage.eNS_URI) : TimeTypesLibraryPackage.eINSTANCE); + TimeLibraryPackageImpl theTimeLibraryPackage = (TimeLibraryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TimeLibraryPackage.eNS_URI) instanceof TimeLibraryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TimeLibraryPackage.eNS_URI) : TimeLibraryPackage.eINSTANCE); + RS_LibraryPackageImpl theRS_LibraryPackage = (RS_LibraryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RS_LibraryPackage.eNS_URI) instanceof RS_LibraryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RS_LibraryPackage.eNS_URI) : RS_LibraryPackage.eINSTANCE); + MARTE_PrimitivesTypesPackageImpl theMARTE_PrimitivesTypesPackage = (MARTE_PrimitivesTypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(MARTE_PrimitivesTypesPackage.eNS_URI) instanceof MARTE_PrimitivesTypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(MARTE_PrimitivesTypesPackage.eNS_URI) : MARTE_PrimitivesTypesPackage.eINSTANCE); + + // Create package meta-data objects + theMeasurementUnitsPackage.createPackageContents(); + theMARTEPackage.createPackageContents(); + theNFPsPackage.createPackageContents(); + theCoreElementsPackage.createPackageContents(); + theAllocPackage.createPackageContents(); + theTimePackage.createPackageContents(); + theGRMPackage.createPackageContents(); + theRSMPackage.createPackageContents(); + theVariablesPackage.createPackageContents(); + theOperatorsPackage.createPackageContents(); + theDataTypesPackage.createPackageContents(); + theHLAMPackage.createPackageContents(); + theHwComputingPackage.createPackageContents(); + theHwCommunicationPackage.createPackageContents(); + theHwStorageManagerPackage.createPackageContents(); + theHwMemoryPackage.createPackageContents(); + theHwTimingPackage.createPackageContents(); + theHwDevicePackage.createPackageContents(); + theHwGeneralPackage.createPackageContents(); + theHwLayoutPackage.createPackageContents(); + theHwPowerPackage.createPackageContents(); + theSW_ResourceCorePackage.createPackageContents(); + theSW_ConcurrencyPackage.createPackageContents(); + theSW_BrokeringPackage.createPackageContents(); + theSW_InteractionPackage.createPackageContents(); + theGCMPackage.createPackageContents(); + theGQAMPackage.createPackageContents(); + theSAMPackage.createPackageContents(); + thePAMPackage.createPackageContents(); + theGRM_BasicTypesPackage.createPackageContents(); + theMARTE_DataTypesPackage.createPackageContents(); + theBasicNFP_TypesPackage.createPackageContents(); + theTimeTypesLibraryPackage.createPackageContents(); + theTimeLibraryPackage.createPackageContents(); + theRS_LibraryPackage.createPackageContents(); + theMARTE_PrimitivesTypesPackage.createPackageContents(); + + // Initialize created meta-data + theMeasurementUnitsPackage.initializePackageContents(); + theMARTEPackage.initializePackageContents(); + theNFPsPackage.initializePackageContents(); + theCoreElementsPackage.initializePackageContents(); + theAllocPackage.initializePackageContents(); + theTimePackage.initializePackageContents(); + theGRMPackage.initializePackageContents(); + theRSMPackage.initializePackageContents(); + theVariablesPackage.initializePackageContents(); + theOperatorsPackage.initializePackageContents(); + theDataTypesPackage.initializePackageContents(); + theHLAMPackage.initializePackageContents(); + theHwComputingPackage.initializePackageContents(); + theHwCommunicationPackage.initializePackageContents(); + theHwStorageManagerPackage.initializePackageContents(); + theHwMemoryPackage.initializePackageContents(); + theHwTimingPackage.initializePackageContents(); + theHwDevicePackage.initializePackageContents(); + theHwGeneralPackage.initializePackageContents(); + theHwLayoutPackage.initializePackageContents(); + theHwPowerPackage.initializePackageContents(); + theSW_ResourceCorePackage.initializePackageContents(); + theSW_ConcurrencyPackage.initializePackageContents(); + theSW_BrokeringPackage.initializePackageContents(); + theSW_InteractionPackage.initializePackageContents(); + theGCMPackage.initializePackageContents(); + theGQAMPackage.initializePackageContents(); + theSAMPackage.initializePackageContents(); + thePAMPackage.initializePackageContents(); + theGRM_BasicTypesPackage.initializePackageContents(); + theMARTE_DataTypesPackage.initializePackageContents(); + theBasicNFP_TypesPackage.initializePackageContents(); + theTimeTypesLibraryPackage.initializePackageContents(); + theTimeLibraryPackage.initializePackageContents(); + theRS_LibraryPackage.initializePackageContents(); + theMARTE_PrimitivesTypesPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theMeasurementUnitsPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(MeasurementUnitsPackage.eNS_URI, theMeasurementUnitsPackage); + return theMeasurementUnitsPackage; + } + + /** + * + * + * @generated + */ + public EEnum getTimeUnitKind() { + return timeUnitKindEEnum; + } + + /** + * + * + * @generated + */ + public EEnum getPowerUnitKind() { + return powerUnitKindEEnum; + } + + /** + * + * + * @generated + */ + public EEnum getFrequencyUnitKind() { + return frequencyUnitKindEEnum; + } + + /** + * + * + * @generated + */ + public EEnum getDataSizeUnitKind() { + return dataSizeUnitKindEEnum; + } + + /** + * + * + * @generated + */ + public EEnum getDataTxRateUnitKind() { + return dataTxRateUnitKindEEnum; + } + + /** + * + * + * @generated + */ + public EEnum getEnergyUnitKind() { + return energyUnitKindEEnum; + } + + /** + * + * + * @generated + */ + public EEnum getLengthUnitKind() { + return lengthUnitKindEEnum; + } + + /** + * + * + * @generated + */ + public EEnum getAreaUnitKind() { + return areaUnitKindEEnum; + } + + /** + * + * + * @generated + */ + public EEnum getWeightUnitKind() { + return weightUnitKindEEnum; + } + + /** + * + * + * @generated + */ + public MeasurementUnitsFactory getMeasurementUnitsFactory() { + return (MeasurementUnitsFactory)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 enums + timeUnitKindEEnum = createEEnum(TIME_UNIT_KIND); + powerUnitKindEEnum = createEEnum(POWER_UNIT_KIND); + frequencyUnitKindEEnum = createEEnum(FREQUENCY_UNIT_KIND); + dataSizeUnitKindEEnum = createEEnum(DATA_SIZE_UNIT_KIND); + dataTxRateUnitKindEEnum = createEEnum(DATA_TX_RATE_UNIT_KIND); + energyUnitKindEEnum = createEEnum(ENERGY_UNIT_KIND); + lengthUnitKindEEnum = createEEnum(LENGTH_UNIT_KIND); + areaUnitKindEEnum = createEEnum(AREA_UNIT_KIND); + weightUnitKindEEnum = createEEnum(WEIGHT_UNIT_KIND); + } + + /** + * + * + * @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); + + // Initialize enums and add enum literals + initEEnum(timeUnitKindEEnum, TimeUnitKind.class, "TimeUnitKind"); + addEEnumLiteral(timeUnitKindEEnum, TimeUnitKind.S); + addEEnumLiteral(timeUnitKindEEnum, TimeUnitKind.TICK); + addEEnumLiteral(timeUnitKindEEnum, TimeUnitKind.MS); + addEEnumLiteral(timeUnitKindEEnum, TimeUnitKind.US); + addEEnumLiteral(timeUnitKindEEnum, TimeUnitKind.MIN); + addEEnumLiteral(timeUnitKindEEnum, TimeUnitKind.HRS); + addEEnumLiteral(timeUnitKindEEnum, TimeUnitKind.DAY); + + initEEnum(powerUnitKindEEnum, PowerUnitKind.class, "PowerUnitKind"); + addEEnumLiteral(powerUnitKindEEnum, PowerUnitKind.W); + addEEnumLiteral(powerUnitKindEEnum, PowerUnitKind.MW); + addEEnumLiteral(powerUnitKindEEnum, PowerUnitKind.KW); + + initEEnum(frequencyUnitKindEEnum, FrequencyUnitKind.class, "FrequencyUnitKind"); + addEEnumLiteral(frequencyUnitKindEEnum, FrequencyUnitKind.HZ); + addEEnumLiteral(frequencyUnitKindEEnum, FrequencyUnitKind.KHZ); + addEEnumLiteral(frequencyUnitKindEEnum, FrequencyUnitKind.MHZ); + addEEnumLiteral(frequencyUnitKindEEnum, FrequencyUnitKind.GHZ); + addEEnumLiteral(frequencyUnitKindEEnum, FrequencyUnitKind.RPM); + + initEEnum(dataSizeUnitKindEEnum, DataSizeUnitKind.class, "DataSizeUnitKind"); + addEEnumLiteral(dataSizeUnitKindEEnum, DataSizeUnitKind.BIT); + addEEnumLiteral(dataSizeUnitKindEEnum, DataSizeUnitKind.BYTE); + addEEnumLiteral(dataSizeUnitKindEEnum, DataSizeUnitKind.KB); + addEEnumLiteral(dataSizeUnitKindEEnum, DataSizeUnitKind.MB); + addEEnumLiteral(dataSizeUnitKindEEnum, DataSizeUnitKind.GB); + + initEEnum(dataTxRateUnitKindEEnum, DataTxRateUnitKind.class, "DataTxRateUnitKind"); + addEEnumLiteral(dataTxRateUnitKindEEnum, DataTxRateUnitKind.BPER_S); + addEEnumLiteral(dataTxRateUnitKindEEnum, DataTxRateUnitKind.KB_PER_S); + addEEnumLiteral(dataTxRateUnitKindEEnum, DataTxRateUnitKind.MB_PER_S); + + initEEnum(energyUnitKindEEnum, EnergyUnitKind.class, "EnergyUnitKind"); + addEEnumLiteral(energyUnitKindEEnum, EnergyUnitKind.J); + addEEnumLiteral(energyUnitKindEEnum, EnergyUnitKind.KJ); + addEEnumLiteral(energyUnitKindEEnum, EnergyUnitKind.WH); + addEEnumLiteral(energyUnitKindEEnum, EnergyUnitKind.KWH); + addEEnumLiteral(energyUnitKindEEnum, EnergyUnitKind.MWH); + + initEEnum(lengthUnitKindEEnum, LengthUnitKind.class, "LengthUnitKind"); + addEEnumLiteral(lengthUnitKindEEnum, LengthUnitKind.M); + addEEnumLiteral(lengthUnitKindEEnum, LengthUnitKind.CM); + addEEnumLiteral(lengthUnitKindEEnum, LengthUnitKind.MM); + + initEEnum(areaUnitKindEEnum, AreaUnitKind.class, "AreaUnitKind"); + addEEnumLiteral(areaUnitKindEEnum, AreaUnitKind.MM2); + addEEnumLiteral(areaUnitKindEEnum, AreaUnitKind.UM2); + + initEEnum(weightUnitKindEEnum, WeightUnitKind.class, "WeightUnitKind"); + addEEnumLiteral(weightUnitKindEEnum, WeightUnitKind.G); + addEEnumLiteral(weightUnitKindEEnum, WeightUnitKind.MG); + addEEnumLiteral(weightUnitKindEEnum, WeightUnitKind.KG); + + // Create resource + createResource(eNS_URI); + } + +} //MeasurementUnitsPackageImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/RS_Library/RS_LibraryFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/RS_Library/RS_LibraryFactory.java new file mode 100644 index 00000000000..5ce5aab27ee --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/RS_Library/RS_LibraryFactory.java @@ -0,0 +1,44 @@ +/***************************************************************************** + * Copyright (c) 2010 CEA LIST. + * + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Chokri MRAIDHA (CEA LIST) chokri.mraidha@cea.fr - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.MARTE_Library.RS_Library; + +import org.eclipse.emf.ecore.EFactory; + +/** + * + * The Factory for the model. + * It provides a create method for each non-abstract class of the model. + * + * @see org.eclipse.papyrus.MARTE_Library.RS_Library.RS_LibraryPackage + * @generated + */ +public interface RS_LibraryFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + RS_LibraryFactory eINSTANCE = org.eclipse.papyrus.MARTE_Library.RS_Library.impl.RS_LibraryFactoryImpl.init(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + RS_LibraryPackage getRS_LibraryPackage(); + +} //RS_LibraryFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/RS_Library/RS_LibraryPackage.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/RS_Library/RS_LibraryPackage.java new file mode 100644 index 00000000000..a33fde2dcc6 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/RS_Library/RS_LibraryPackage.java @@ -0,0 +1,154 @@ +/***************************************************************************** + * Copyright (c) 2010 CEA LIST. + * + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Chokri MRAIDHA (CEA LIST) chokri.mraidha@cea.fr - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.MARTE_Library.RS_Library; + +import org.eclipse.emf.ecore.EDataType; +import org.eclipse.emf.ecore.EPackage; + +/** + * + * The Package for the model. + * It contains accessors for the meta objects to represent + *
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 org.eclipse.papyrus.MARTE_Library.RS_Library.RS_LibraryPackage#eNS_URI + * @see #init() + * @generated + */ + private RS_LibraryPackageImpl() { + super(eNS_URI, RS_LibraryFactory.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 RS_LibraryPackage#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 RS_LibraryPackage init() { + if (isInited) return (RS_LibraryPackage)EPackage.Registry.INSTANCE.getEPackage(RS_LibraryPackage.eNS_URI); + + // Obtain or create and register package + RS_LibraryPackageImpl theRS_LibraryPackage = (RS_LibraryPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof RS_LibraryPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new RS_LibraryPackageImpl()); + + isInited = true; + + // Initialize simple dependencies + UMLPackage.eINSTANCE.eClass(); + + // Obtain or create and register interdependencies + MARTEPackageImpl theMARTEPackage = (MARTEPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(MARTEPackage.eNS_URI) instanceof MARTEPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(MARTEPackage.eNS_URI) : MARTEPackage.eINSTANCE); + NFPsPackageImpl theNFPsPackage = (NFPsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(NFPsPackage.eNS_URI) instanceof NFPsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(NFPsPackage.eNS_URI) : NFPsPackage.eINSTANCE); + CoreElementsPackageImpl theCoreElementsPackage = (CoreElementsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CoreElementsPackage.eNS_URI) instanceof CoreElementsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CoreElementsPackage.eNS_URI) : CoreElementsPackage.eINSTANCE); + AllocPackageImpl theAllocPackage = (AllocPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(AllocPackage.eNS_URI) instanceof AllocPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(AllocPackage.eNS_URI) : AllocPackage.eINSTANCE); + TimePackageImpl theTimePackage = (TimePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TimePackage.eNS_URI) instanceof TimePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TimePackage.eNS_URI) : TimePackage.eINSTANCE); + GRMPackageImpl theGRMPackage = (GRMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(GRMPackage.eNS_URI) instanceof GRMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(GRMPackage.eNS_URI) : GRMPackage.eINSTANCE); + RSMPackageImpl theRSMPackage = (RSMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RSMPackage.eNS_URI) instanceof RSMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RSMPackage.eNS_URI) : RSMPackage.eINSTANCE); + VariablesPackageImpl theVariablesPackage = (VariablesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(VariablesPackage.eNS_URI) instanceof VariablesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(VariablesPackage.eNS_URI) : VariablesPackage.eINSTANCE); + OperatorsPackageImpl theOperatorsPackage = (OperatorsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(OperatorsPackage.eNS_URI) instanceof OperatorsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(OperatorsPackage.eNS_URI) : OperatorsPackage.eINSTANCE); + DataTypesPackageImpl theDataTypesPackage = (DataTypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(DataTypesPackage.eNS_URI) instanceof DataTypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(DataTypesPackage.eNS_URI) : DataTypesPackage.eINSTANCE); + HLAMPackageImpl theHLAMPackage = (HLAMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HLAMPackage.eNS_URI) instanceof HLAMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HLAMPackage.eNS_URI) : HLAMPackage.eINSTANCE); + HwComputingPackageImpl theHwComputingPackage = (HwComputingPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwComputingPackage.eNS_URI) instanceof HwComputingPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwComputingPackage.eNS_URI) : HwComputingPackage.eINSTANCE); + HwCommunicationPackageImpl theHwCommunicationPackage = (HwCommunicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwCommunicationPackage.eNS_URI) instanceof HwCommunicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwCommunicationPackage.eNS_URI) : HwCommunicationPackage.eINSTANCE); + HwStorageManagerPackageImpl theHwStorageManagerPackage = (HwStorageManagerPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwStorageManagerPackage.eNS_URI) instanceof HwStorageManagerPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwStorageManagerPackage.eNS_URI) : HwStorageManagerPackage.eINSTANCE); + HwMemoryPackageImpl theHwMemoryPackage = (HwMemoryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwMemoryPackage.eNS_URI) instanceof HwMemoryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwMemoryPackage.eNS_URI) : HwMemoryPackage.eINSTANCE); + HwTimingPackageImpl theHwTimingPackage = (HwTimingPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwTimingPackage.eNS_URI) instanceof HwTimingPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwTimingPackage.eNS_URI) : HwTimingPackage.eINSTANCE); + HwDevicePackageImpl theHwDevicePackage = (HwDevicePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwDevicePackage.eNS_URI) instanceof HwDevicePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwDevicePackage.eNS_URI) : HwDevicePackage.eINSTANCE); + HwGeneralPackageImpl theHwGeneralPackage = (HwGeneralPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwGeneralPackage.eNS_URI) instanceof HwGeneralPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwGeneralPackage.eNS_URI) : HwGeneralPackage.eINSTANCE); + HwLayoutPackageImpl theHwLayoutPackage = (HwLayoutPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwLayoutPackage.eNS_URI) instanceof HwLayoutPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwLayoutPackage.eNS_URI) : HwLayoutPackage.eINSTANCE); + HwPowerPackageImpl theHwPowerPackage = (HwPowerPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwPowerPackage.eNS_URI) instanceof HwPowerPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwPowerPackage.eNS_URI) : HwPowerPackage.eINSTANCE); + SW_ResourceCorePackageImpl theSW_ResourceCorePackage = (SW_ResourceCorePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SW_ResourceCorePackage.eNS_URI) instanceof SW_ResourceCorePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SW_ResourceCorePackage.eNS_URI) : SW_ResourceCorePackage.eINSTANCE); + SW_ConcurrencyPackageImpl theSW_ConcurrencyPackage = (SW_ConcurrencyPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SW_ConcurrencyPackage.eNS_URI) instanceof SW_ConcurrencyPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SW_ConcurrencyPackage.eNS_URI) : SW_ConcurrencyPackage.eINSTANCE); + SW_BrokeringPackageImpl theSW_BrokeringPackage = (SW_BrokeringPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SW_BrokeringPackage.eNS_URI) instanceof SW_BrokeringPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SW_BrokeringPackage.eNS_URI) : SW_BrokeringPackage.eINSTANCE); + SW_InteractionPackageImpl theSW_InteractionPackage = (SW_InteractionPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SW_InteractionPackage.eNS_URI) instanceof SW_InteractionPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SW_InteractionPackage.eNS_URI) : SW_InteractionPackage.eINSTANCE); + GCMPackageImpl theGCMPackage = (GCMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(GCMPackage.eNS_URI) instanceof GCMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(GCMPackage.eNS_URI) : GCMPackage.eINSTANCE); + GQAMPackageImpl theGQAMPackage = (GQAMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(GQAMPackage.eNS_URI) instanceof GQAMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(GQAMPackage.eNS_URI) : GQAMPackage.eINSTANCE); + SAMPackageImpl theSAMPackage = (SAMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SAMPackage.eNS_URI) instanceof SAMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SAMPackage.eNS_URI) : SAMPackage.eINSTANCE); + PAMPackageImpl thePAMPackage = (PAMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(PAMPackage.eNS_URI) instanceof PAMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(PAMPackage.eNS_URI) : PAMPackage.eINSTANCE); + MeasurementUnitsPackageImpl theMeasurementUnitsPackage = (MeasurementUnitsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(MeasurementUnitsPackage.eNS_URI) instanceof MeasurementUnitsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(MeasurementUnitsPackage.eNS_URI) : MeasurementUnitsPackage.eINSTANCE); + GRM_BasicTypesPackageImpl theGRM_BasicTypesPackage = (GRM_BasicTypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(GRM_BasicTypesPackage.eNS_URI) instanceof GRM_BasicTypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(GRM_BasicTypesPackage.eNS_URI) : GRM_BasicTypesPackage.eINSTANCE); + MARTE_DataTypesPackageImpl theMARTE_DataTypesPackage = (MARTE_DataTypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(MARTE_DataTypesPackage.eNS_URI) instanceof MARTE_DataTypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(MARTE_DataTypesPackage.eNS_URI) : MARTE_DataTypesPackage.eINSTANCE); + BasicNFP_TypesPackageImpl theBasicNFP_TypesPackage = (BasicNFP_TypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(BasicNFP_TypesPackage.eNS_URI) instanceof BasicNFP_TypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(BasicNFP_TypesPackage.eNS_URI) : BasicNFP_TypesPackage.eINSTANCE); + TimeTypesLibraryPackageImpl theTimeTypesLibraryPackage = (TimeTypesLibraryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TimeTypesLibraryPackage.eNS_URI) instanceof TimeTypesLibraryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TimeTypesLibraryPackage.eNS_URI) : TimeTypesLibraryPackage.eINSTANCE); + TimeLibraryPackageImpl theTimeLibraryPackage = (TimeLibraryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TimeLibraryPackage.eNS_URI) instanceof TimeLibraryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TimeLibraryPackage.eNS_URI) : TimeLibraryPackage.eINSTANCE); + MARTE_PrimitivesTypesPackageImpl theMARTE_PrimitivesTypesPackage = (MARTE_PrimitivesTypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(MARTE_PrimitivesTypesPackage.eNS_URI) instanceof MARTE_PrimitivesTypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(MARTE_PrimitivesTypesPackage.eNS_URI) : MARTE_PrimitivesTypesPackage.eINSTANCE); + + // Create package meta-data objects + theRS_LibraryPackage.createPackageContents(); + theMARTEPackage.createPackageContents(); + theNFPsPackage.createPackageContents(); + theCoreElementsPackage.createPackageContents(); + theAllocPackage.createPackageContents(); + theTimePackage.createPackageContents(); + theGRMPackage.createPackageContents(); + theRSMPackage.createPackageContents(); + theVariablesPackage.createPackageContents(); + theOperatorsPackage.createPackageContents(); + theDataTypesPackage.createPackageContents(); + theHLAMPackage.createPackageContents(); + theHwComputingPackage.createPackageContents(); + theHwCommunicationPackage.createPackageContents(); + theHwStorageManagerPackage.createPackageContents(); + theHwMemoryPackage.createPackageContents(); + theHwTimingPackage.createPackageContents(); + theHwDevicePackage.createPackageContents(); + theHwGeneralPackage.createPackageContents(); + theHwLayoutPackage.createPackageContents(); + theHwPowerPackage.createPackageContents(); + theSW_ResourceCorePackage.createPackageContents(); + theSW_ConcurrencyPackage.createPackageContents(); + theSW_BrokeringPackage.createPackageContents(); + theSW_InteractionPackage.createPackageContents(); + theGCMPackage.createPackageContents(); + theGQAMPackage.createPackageContents(); + theSAMPackage.createPackageContents(); + thePAMPackage.createPackageContents(); + theMeasurementUnitsPackage.createPackageContents(); + theGRM_BasicTypesPackage.createPackageContents(); + theMARTE_DataTypesPackage.createPackageContents(); + theBasicNFP_TypesPackage.createPackageContents(); + theTimeTypesLibraryPackage.createPackageContents(); + theTimeLibraryPackage.createPackageContents(); + theMARTE_PrimitivesTypesPackage.createPackageContents(); + + // Initialize created meta-data + theRS_LibraryPackage.initializePackageContents(); + theMARTEPackage.initializePackageContents(); + theNFPsPackage.initializePackageContents(); + theCoreElementsPackage.initializePackageContents(); + theAllocPackage.initializePackageContents(); + theTimePackage.initializePackageContents(); + theGRMPackage.initializePackageContents(); + theRSMPackage.initializePackageContents(); + theVariablesPackage.initializePackageContents(); + theOperatorsPackage.initializePackageContents(); + theDataTypesPackage.initializePackageContents(); + theHLAMPackage.initializePackageContents(); + theHwComputingPackage.initializePackageContents(); + theHwCommunicationPackage.initializePackageContents(); + theHwStorageManagerPackage.initializePackageContents(); + theHwMemoryPackage.initializePackageContents(); + theHwTimingPackage.initializePackageContents(); + theHwDevicePackage.initializePackageContents(); + theHwGeneralPackage.initializePackageContents(); + theHwLayoutPackage.initializePackageContents(); + theHwPowerPackage.initializePackageContents(); + theSW_ResourceCorePackage.initializePackageContents(); + theSW_ConcurrencyPackage.initializePackageContents(); + theSW_BrokeringPackage.initializePackageContents(); + theSW_InteractionPackage.initializePackageContents(); + theGCMPackage.initializePackageContents(); + theGQAMPackage.initializePackageContents(); + theSAMPackage.initializePackageContents(); + thePAMPackage.initializePackageContents(); + theMeasurementUnitsPackage.initializePackageContents(); + theGRM_BasicTypesPackage.initializePackageContents(); + theMARTE_DataTypesPackage.initializePackageContents(); + theBasicNFP_TypesPackage.initializePackageContents(); + theTimeTypesLibraryPackage.initializePackageContents(); + theTimeLibraryPackage.initializePackageContents(); + theMARTE_PrimitivesTypesPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theRS_LibraryPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(RS_LibraryPackage.eNS_URI, theRS_LibraryPackage); + return theRS_LibraryPackage; + } + + /** + * + * + * @generated + */ + public EDataType getTilerSpecification() { + return tilerSpecificationEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getShapeSpecification() { + return shapeSpecificationEDataType; + } + + /** + * + * + * @generated + */ + public RS_LibraryFactory getRS_LibraryFactory() { + return (RS_LibraryFactory)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 data types + tilerSpecificationEDataType = createEDataType(TILER_SPECIFICATION); + shapeSpecificationEDataType = createEDataType(SHAPE_SPECIFICATION); + } + + /** + * + * + * @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); + + // Initialize data types + initEDataType(tilerSpecificationEDataType, String.class, "TilerSpecification", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(shapeSpecificationEDataType, String.class, "ShapeSpecification", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + + // Create resource + createResource(eNS_URI); + } + +} //RS_LibraryPackageImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeLibrary/IdealClock.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeLibrary/IdealClock.java new file mode 100644 index 00000000000..45c01abcf7e --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeLibrary/IdealClock.java @@ -0,0 +1,37 @@ +/***************************************************************************** + * Copyright (c) 2010 CEA LIST. + * + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Chokri MRAIDHA (CEA LIST) chokri.mraidha@cea.fr - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.MARTE_Library.TimeLibrary; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Ideal Clock'. + * + * + * + * @see org.eclipse.papyrus.MARTE_Library.TimeLibrary.TimeLibraryPackage#getIdealClock() + * @model + * @generated + */ +public interface IdealClock extends EObject { + /** + * + * + * @model dataType="org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.Real" required="true" ordered="false" + * @generated + */ + String currentTime(); + +} // IdealClock diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeLibrary/LogicalTimeUnit.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeLibrary/LogicalTimeUnit.java new file mode 100644 index 00000000000..1786c8b3c41 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeLibrary/LogicalTimeUnit.java @@ -0,0 +1,192 @@ +/***************************************************************************** + * Copyright (c) 2010 CEA LIST. + * + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Chokri MRAIDHA (CEA LIST) chokri.mraidha@cea.fr - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.MARTE_Library.TimeLibrary; + +import java.util.Arrays; +import java.util.Collections; +import java.util.List; + +import org.eclipse.emf.common.util.Enumerator; + +/** + * + * A representation of the literals of the enumeration 'Logical Time Unit', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE_Library.TimeLibrary.TimeLibraryPackage#getLogicalTimeUnit() + * @model + * @generated + */ +public enum LogicalTimeUnit implements Enumerator { + /** + * The 'Tick' literal object. + * + * + * @see #TICK_VALUE + * @generated + * @ordered + */ + TICK(0, "tick", "tick"); + + /** + * The 'Tick' literal value. + * + *
+ * If the meaning of 'Tick' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #TICK + * @model name="tick" + * @generated + * @ordered + */ + public static final int TICK_VALUE = 0; + + /** + * An array of all the 'Logical Time Unit' enumerators. + * + * + * @generated + */ + private static final LogicalTimeUnit[] VALUES_ARRAY = + new LogicalTimeUnit[] { + TICK, + }; + + /** + * A public read-only list of all the 'Logical Time Unit' enumerators. + * + * + * @generated + */ + public static final List+ * If the meaning of 'S' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #S + * @model name="s" + * @generated + * @ordered + */ + public static final int S_VALUE = 0; + + /** + * The 'Ms' literal value. + * + *+ * If the meaning of 'Ms' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #MS + * @model name="ms" + * @generated + * @ordered + */ + public static final int MS_VALUE = 1; + + /** + * The 'Us' literal value. + * + *+ * If the meaning of 'Us' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #US + * @model name="us" + * @generated + * @ordered + */ + public static final int US_VALUE = 2; + + /** + * The 'Ns' literal value. + * + *+ * If the meaning of 'Ns' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #NS + * @model name="ns" + * @generated + * @ordered + */ + public static final int NS_VALUE = 3; + + /** + * The 'Min' literal value. + * + *+ * If the meaning of 'Min' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #MIN + * @model name="min" + * @generated + * @ordered + */ + public static final int MIN_VALUE = 4; + + /** + * The 'Hrs' literal value. + * + *+ * If the meaning of 'Hrs' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #HRS + * @model name="hrs" + * @generated + * @ordered + */ + public static final int HRS_VALUE = 5; + + /** + * The 'Day' literal value. + * + *+ * If the meaning of 'Day' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #DAY + * @model name="day" + * @generated + * @ordered + */ + public static final int DAY_VALUE = 6; + + /** + * An array of all the 'Time Unit Kind' enumerators. + * + * + * @generated + */ + private static final TimeUnitKind[] VALUES_ARRAY = + new TimeUnitKind[] { + S, + MS, + US, + NS, + MIN, + HRS, + DAY, + }; + + /** + * A public read-only list of all the 'Time Unit Kind' enumerators. + * + * + * @generated + */ + public static final List+ *
+ * + * @generated + */ +public class IdealClockImpl extends EObjectImpl implements IdealClock { + /** + * + * + * @generated + */ + protected IdealClockImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return TimeLibraryPackage.Literals.IDEAL_CLOCK; + } + + /** + * + * + * @generated + */ + public String currentTime() { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + +} //IdealClockImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeLibrary/impl/TimeLibraryFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeLibrary/impl/TimeLibraryFactoryImpl.java new file mode 100644 index 00000000000..f41857ad5bb --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeLibrary/impl/TimeLibraryFactoryImpl.java @@ -0,0 +1,225 @@ +/***************************************************************************** + * Copyright (c) 2010 CEA LIST. + * + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Chokri MRAIDHA (CEA LIST) chokri.mraidha@cea.fr - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.MARTE_Library.TimeLibrary.impl; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EDataType; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.impl.EFactoryImpl; + +import org.eclipse.emf.ecore.plugin.EcorePlugin; + +import org.eclipse.papyrus.MARTE_Library.TimeLibrary.*; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class TimeLibraryFactoryImpl extends EFactoryImpl implements TimeLibraryFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static TimeLibraryFactory init() { + try { + TimeLibraryFactory theTimeLibraryFactory = (TimeLibraryFactory)EPackage.Registry.INSTANCE.getEFactory("http:///MARTE_Library/TimeLibrary.ecore"); + if (theTimeLibraryFactory != null) { + return theTimeLibraryFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new TimeLibraryFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public TimeLibraryFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case TimeLibraryPackage.IDEAL_CLOCK: return createIdealClock(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + @Override + public Object createFromString(EDataType eDataType, String initialValue) { + switch (eDataType.getClassifierID()) { + case TimeLibraryPackage.TIME_UNIT_KIND: + return createTimeUnitKindFromString(eDataType, initialValue); + case TimeLibraryPackage.LOGICAL_TIME_UNIT: + return createLogicalTimeUnitFromString(eDataType, initialValue); + case TimeLibraryPackage.TIMED_VALUE_TYPE: + return createTimedValueTypeFromString(eDataType, initialValue); + case TimeLibraryPackage.CLOCKED_VALUE_SPECIFICATION: + return createClockedValueSpecificationFromString(eDataType, initialValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + @Override + public String convertToString(EDataType eDataType, Object instanceValue) { + switch (eDataType.getClassifierID()) { + case TimeLibraryPackage.TIME_UNIT_KIND: + return convertTimeUnitKindToString(eDataType, instanceValue); + case TimeLibraryPackage.LOGICAL_TIME_UNIT: + return convertLogicalTimeUnitToString(eDataType, instanceValue); + case TimeLibraryPackage.TIMED_VALUE_TYPE: + return convertTimedValueTypeToString(eDataType, instanceValue); + case TimeLibraryPackage.CLOCKED_VALUE_SPECIFICATION: + return convertClockedValueSpecificationToString(eDataType, instanceValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public IdealClock createIdealClock() { + IdealClockImpl idealClock = new IdealClockImpl(); + return idealClock; + } + + /** + * + * + * @generated + */ + public TimeUnitKind createTimeUnitKindFromString(EDataType eDataType, String initialValue) { + TimeUnitKind result = TimeUnitKind.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertTimeUnitKindToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public LogicalTimeUnit createLogicalTimeUnitFromString(EDataType eDataType, String initialValue) { + LogicalTimeUnit result = LogicalTimeUnit.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertLogicalTimeUnitToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public String createTimedValueTypeFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertTimedValueTypeToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public String createClockedValueSpecificationFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertClockedValueSpecificationToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public TimeLibraryPackage getTimeLibraryPackage() { + return (TimeLibraryPackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static TimeLibraryPackage getPackage() { + return TimeLibraryPackage.eINSTANCE; + } + +} //TimeLibraryFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeLibrary/impl/TimeLibraryPackageImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeLibrary/impl/TimeLibraryPackageImpl.java new file mode 100644 index 00000000000..79ee5edf3be --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeLibrary/impl/TimeLibraryPackageImpl.java @@ -0,0 +1,524 @@ +/***************************************************************************** + * Copyright (c) 2010 CEA LIST. + * + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Chokri MRAIDHA (CEA LIST) chokri.mraidha@cea.fr - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.MARTE_Library.TimeLibrary.impl; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EDataType; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.impl.EPackageImpl; + +import org.eclipse.papyrus.MARTE.MARTEPackage; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GQAMPackageImpl; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PAMPackage; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PAMPackageImpl; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SAMPackageImpl; + +import org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.RSMPackage; + +import org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.RSMPackageImpl; + +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.DataTypesPackage; + +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.impl.DataTypesPackageImpl; + +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators.OperatorsPackage; +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators.impl.OperatorsPackageImpl; +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.VariablesPackage; + +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.impl.VariablesPackageImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMPackageImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.HLAMPackageImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwGeneralPackage; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.impl.HwGeneralPackageImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwCommunicationPackage; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwCommunicationPackageImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingPackage; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwComputingPackageImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.HwDevicePackage; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.impl.HwDevicePackageImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemoryPackage; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwMemoryPackageImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwStorageManagerPackage; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.impl.HwStorageManagerPackageImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.HwTimingPackage; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.impl.HwTimingPackageImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwLayoutPackage; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.impl.HwLayoutPackageImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.HwPowerPackage; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.impl.HwPowerPackageImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.SW_BrokeringPackage; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.impl.SW_BrokeringPackageImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SW_ConcurrencyPackageImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SW_InteractionPackageImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SW_ResourceCorePackage; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.impl.SW_ResourceCorePackageImpl; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocPackage; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AllocPackageImpl; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.CoreElementsPackage; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.impl.CoreElementsPackageImpl; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GRMPackageImpl; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NFPsPackage; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.NFPsPackageImpl; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimePackageImpl; + +import org.eclipse.papyrus.MARTE.impl.MARTEPackageImpl; + +import org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.BasicNFP_TypesPackage; + +import org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl; + +import org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.GRM_BasicTypesPackage; + +import org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.impl.GRM_BasicTypesPackageImpl; + +import org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.MARTE_DataTypesPackage; + +import org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.impl.MARTE_DataTypesPackageImpl; + +import org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.MARTE_PrimitivesTypesPackage; + +import org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.impl.MARTE_PrimitivesTypesPackageImpl; + +import org.eclipse.papyrus.MARTE_Library.MeasurementUnits.MeasurementUnitsPackage; + +import org.eclipse.papyrus.MARTE_Library.MeasurementUnits.impl.MeasurementUnitsPackageImpl; + +import org.eclipse.papyrus.MARTE_Library.RS_Library.RS_LibraryPackage; + +import org.eclipse.papyrus.MARTE_Library.RS_Library.impl.RS_LibraryPackageImpl; + +import org.eclipse.papyrus.MARTE_Library.TimeLibrary.IdealClock; +import org.eclipse.papyrus.MARTE_Library.TimeLibrary.LogicalTimeUnit; +import org.eclipse.papyrus.MARTE_Library.TimeLibrary.TimeLibraryFactory; +import org.eclipse.papyrus.MARTE_Library.TimeLibrary.TimeLibraryPackage; +import org.eclipse.papyrus.MARTE_Library.TimeLibrary.TimeUnitKind; + +import org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.TimeTypesLibraryPackage; + +import org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.impl.TimeTypesLibraryPackageImpl; + +import org.eclipse.uml2.uml.UMLPackage; + +/** + * + * An implementation of the model Package. + * + * @generated + */ +public class TimeLibraryPackageImpl extends EPackageImpl implements TimeLibraryPackage { + /** + * + * + * @generated + */ + private EClass idealClockEClass = null; + + /** + * + * + * @generated + */ + private EEnum timeUnitKindEEnum = null; + + /** + * + * + * @generated + */ + private EEnum logicalTimeUnitEEnum = null; + + /** + * + * + * @generated + */ + private EDataType timedValueTypeEDataType = null; + + /** + * + * + * @generated + */ + private EDataType clockedValueSpecificationEDataType = 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 org.eclipse.papyrus.MARTE_Library.TimeLibrary.TimeLibraryPackage#eNS_URI + * @see #init() + * @generated + */ + private TimeLibraryPackageImpl() { + super(eNS_URI, TimeLibraryFactory.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 TimeLibraryPackage#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 TimeLibraryPackage init() {
+ if (isInited) return (TimeLibraryPackage)EPackage.Registry.INSTANCE.getEPackage(TimeLibraryPackage.eNS_URI);
+
+ // Obtain or create and register package
+ TimeLibraryPackageImpl theTimeLibraryPackage = (TimeLibraryPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof TimeLibraryPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new TimeLibraryPackageImpl());
+
+ isInited = true;
+
+ // Initialize simple dependencies
+ UMLPackage.eINSTANCE.eClass();
+
+ // Obtain or create and register interdependencies
+ MARTEPackageImpl theMARTEPackage = (MARTEPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(MARTEPackage.eNS_URI) instanceof MARTEPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(MARTEPackage.eNS_URI) : MARTEPackage.eINSTANCE);
+ NFPsPackageImpl theNFPsPackage = (NFPsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(NFPsPackage.eNS_URI) instanceof NFPsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(NFPsPackage.eNS_URI) : NFPsPackage.eINSTANCE);
+ CoreElementsPackageImpl theCoreElementsPackage = (CoreElementsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CoreElementsPackage.eNS_URI) instanceof CoreElementsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CoreElementsPackage.eNS_URI) : CoreElementsPackage.eINSTANCE);
+ AllocPackageImpl theAllocPackage = (AllocPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(AllocPackage.eNS_URI) instanceof AllocPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(AllocPackage.eNS_URI) : AllocPackage.eINSTANCE);
+ TimePackageImpl theTimePackage = (TimePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TimePackage.eNS_URI) instanceof TimePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TimePackage.eNS_URI) : TimePackage.eINSTANCE);
+ GRMPackageImpl theGRMPackage = (GRMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(GRMPackage.eNS_URI) instanceof GRMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(GRMPackage.eNS_URI) : GRMPackage.eINSTANCE);
+ RSMPackageImpl theRSMPackage = (RSMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RSMPackage.eNS_URI) instanceof RSMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RSMPackage.eNS_URI) : RSMPackage.eINSTANCE);
+ VariablesPackageImpl theVariablesPackage = (VariablesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(VariablesPackage.eNS_URI) instanceof VariablesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(VariablesPackage.eNS_URI) : VariablesPackage.eINSTANCE);
+ OperatorsPackageImpl theOperatorsPackage = (OperatorsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(OperatorsPackage.eNS_URI) instanceof OperatorsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(OperatorsPackage.eNS_URI) : OperatorsPackage.eINSTANCE);
+ DataTypesPackageImpl theDataTypesPackage = (DataTypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(DataTypesPackage.eNS_URI) instanceof DataTypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(DataTypesPackage.eNS_URI) : DataTypesPackage.eINSTANCE);
+ HLAMPackageImpl theHLAMPackage = (HLAMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HLAMPackage.eNS_URI) instanceof HLAMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HLAMPackage.eNS_URI) : HLAMPackage.eINSTANCE);
+ HwComputingPackageImpl theHwComputingPackage = (HwComputingPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwComputingPackage.eNS_URI) instanceof HwComputingPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwComputingPackage.eNS_URI) : HwComputingPackage.eINSTANCE);
+ HwCommunicationPackageImpl theHwCommunicationPackage = (HwCommunicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwCommunicationPackage.eNS_URI) instanceof HwCommunicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwCommunicationPackage.eNS_URI) : HwCommunicationPackage.eINSTANCE);
+ HwStorageManagerPackageImpl theHwStorageManagerPackage = (HwStorageManagerPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwStorageManagerPackage.eNS_URI) instanceof HwStorageManagerPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwStorageManagerPackage.eNS_URI) : HwStorageManagerPackage.eINSTANCE);
+ HwMemoryPackageImpl theHwMemoryPackage = (HwMemoryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwMemoryPackage.eNS_URI) instanceof HwMemoryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwMemoryPackage.eNS_URI) : HwMemoryPackage.eINSTANCE);
+ HwTimingPackageImpl theHwTimingPackage = (HwTimingPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwTimingPackage.eNS_URI) instanceof HwTimingPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwTimingPackage.eNS_URI) : HwTimingPackage.eINSTANCE);
+ HwDevicePackageImpl theHwDevicePackage = (HwDevicePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwDevicePackage.eNS_URI) instanceof HwDevicePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwDevicePackage.eNS_URI) : HwDevicePackage.eINSTANCE);
+ HwGeneralPackageImpl theHwGeneralPackage = (HwGeneralPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwGeneralPackage.eNS_URI) instanceof HwGeneralPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwGeneralPackage.eNS_URI) : HwGeneralPackage.eINSTANCE);
+ HwLayoutPackageImpl theHwLayoutPackage = (HwLayoutPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwLayoutPackage.eNS_URI) instanceof HwLayoutPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwLayoutPackage.eNS_URI) : HwLayoutPackage.eINSTANCE);
+ HwPowerPackageImpl theHwPowerPackage = (HwPowerPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwPowerPackage.eNS_URI) instanceof HwPowerPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwPowerPackage.eNS_URI) : HwPowerPackage.eINSTANCE);
+ SW_ResourceCorePackageImpl theSW_ResourceCorePackage = (SW_ResourceCorePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SW_ResourceCorePackage.eNS_URI) instanceof SW_ResourceCorePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SW_ResourceCorePackage.eNS_URI) : SW_ResourceCorePackage.eINSTANCE);
+ SW_ConcurrencyPackageImpl theSW_ConcurrencyPackage = (SW_ConcurrencyPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SW_ConcurrencyPackage.eNS_URI) instanceof SW_ConcurrencyPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SW_ConcurrencyPackage.eNS_URI) : SW_ConcurrencyPackage.eINSTANCE);
+ SW_BrokeringPackageImpl theSW_BrokeringPackage = (SW_BrokeringPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SW_BrokeringPackage.eNS_URI) instanceof SW_BrokeringPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SW_BrokeringPackage.eNS_URI) : SW_BrokeringPackage.eINSTANCE);
+ SW_InteractionPackageImpl theSW_InteractionPackage = (SW_InteractionPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SW_InteractionPackage.eNS_URI) instanceof SW_InteractionPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SW_InteractionPackage.eNS_URI) : SW_InteractionPackage.eINSTANCE);
+ GCMPackageImpl theGCMPackage = (GCMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(GCMPackage.eNS_URI) instanceof GCMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(GCMPackage.eNS_URI) : GCMPackage.eINSTANCE);
+ GQAMPackageImpl theGQAMPackage = (GQAMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(GQAMPackage.eNS_URI) instanceof GQAMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(GQAMPackage.eNS_URI) : GQAMPackage.eINSTANCE);
+ SAMPackageImpl theSAMPackage = (SAMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SAMPackage.eNS_URI) instanceof SAMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SAMPackage.eNS_URI) : SAMPackage.eINSTANCE);
+ PAMPackageImpl thePAMPackage = (PAMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(PAMPackage.eNS_URI) instanceof PAMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(PAMPackage.eNS_URI) : PAMPackage.eINSTANCE);
+ MeasurementUnitsPackageImpl theMeasurementUnitsPackage = (MeasurementUnitsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(MeasurementUnitsPackage.eNS_URI) instanceof MeasurementUnitsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(MeasurementUnitsPackage.eNS_URI) : MeasurementUnitsPackage.eINSTANCE);
+ GRM_BasicTypesPackageImpl theGRM_BasicTypesPackage = (GRM_BasicTypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(GRM_BasicTypesPackage.eNS_URI) instanceof GRM_BasicTypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(GRM_BasicTypesPackage.eNS_URI) : GRM_BasicTypesPackage.eINSTANCE);
+ MARTE_DataTypesPackageImpl theMARTE_DataTypesPackage = (MARTE_DataTypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(MARTE_DataTypesPackage.eNS_URI) instanceof MARTE_DataTypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(MARTE_DataTypesPackage.eNS_URI) : MARTE_DataTypesPackage.eINSTANCE);
+ BasicNFP_TypesPackageImpl theBasicNFP_TypesPackage = (BasicNFP_TypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(BasicNFP_TypesPackage.eNS_URI) instanceof BasicNFP_TypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(BasicNFP_TypesPackage.eNS_URI) : BasicNFP_TypesPackage.eINSTANCE);
+ TimeTypesLibraryPackageImpl theTimeTypesLibraryPackage = (TimeTypesLibraryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TimeTypesLibraryPackage.eNS_URI) instanceof TimeTypesLibraryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TimeTypesLibraryPackage.eNS_URI) : TimeTypesLibraryPackage.eINSTANCE);
+ RS_LibraryPackageImpl theRS_LibraryPackage = (RS_LibraryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RS_LibraryPackage.eNS_URI) instanceof RS_LibraryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RS_LibraryPackage.eNS_URI) : RS_LibraryPackage.eINSTANCE);
+ MARTE_PrimitivesTypesPackageImpl theMARTE_PrimitivesTypesPackage = (MARTE_PrimitivesTypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(MARTE_PrimitivesTypesPackage.eNS_URI) instanceof MARTE_PrimitivesTypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(MARTE_PrimitivesTypesPackage.eNS_URI) : MARTE_PrimitivesTypesPackage.eINSTANCE);
+
+ // Create package meta-data objects
+ theTimeLibraryPackage.createPackageContents();
+ theMARTEPackage.createPackageContents();
+ theNFPsPackage.createPackageContents();
+ theCoreElementsPackage.createPackageContents();
+ theAllocPackage.createPackageContents();
+ theTimePackage.createPackageContents();
+ theGRMPackage.createPackageContents();
+ theRSMPackage.createPackageContents();
+ theVariablesPackage.createPackageContents();
+ theOperatorsPackage.createPackageContents();
+ theDataTypesPackage.createPackageContents();
+ theHLAMPackage.createPackageContents();
+ theHwComputingPackage.createPackageContents();
+ theHwCommunicationPackage.createPackageContents();
+ theHwStorageManagerPackage.createPackageContents();
+ theHwMemoryPackage.createPackageContents();
+ theHwTimingPackage.createPackageContents();
+ theHwDevicePackage.createPackageContents();
+ theHwGeneralPackage.createPackageContents();
+ theHwLayoutPackage.createPackageContents();
+ theHwPowerPackage.createPackageContents();
+ theSW_ResourceCorePackage.createPackageContents();
+ theSW_ConcurrencyPackage.createPackageContents();
+ theSW_BrokeringPackage.createPackageContents();
+ theSW_InteractionPackage.createPackageContents();
+ theGCMPackage.createPackageContents();
+ theGQAMPackage.createPackageContents();
+ theSAMPackage.createPackageContents();
+ thePAMPackage.createPackageContents();
+ theMeasurementUnitsPackage.createPackageContents();
+ theGRM_BasicTypesPackage.createPackageContents();
+ theMARTE_DataTypesPackage.createPackageContents();
+ theBasicNFP_TypesPackage.createPackageContents();
+ theTimeTypesLibraryPackage.createPackageContents();
+ theRS_LibraryPackage.createPackageContents();
+ theMARTE_PrimitivesTypesPackage.createPackageContents();
+
+ // Initialize created meta-data
+ theTimeLibraryPackage.initializePackageContents();
+ theMARTEPackage.initializePackageContents();
+ theNFPsPackage.initializePackageContents();
+ theCoreElementsPackage.initializePackageContents();
+ theAllocPackage.initializePackageContents();
+ theTimePackage.initializePackageContents();
+ theGRMPackage.initializePackageContents();
+ theRSMPackage.initializePackageContents();
+ theVariablesPackage.initializePackageContents();
+ theOperatorsPackage.initializePackageContents();
+ theDataTypesPackage.initializePackageContents();
+ theHLAMPackage.initializePackageContents();
+ theHwComputingPackage.initializePackageContents();
+ theHwCommunicationPackage.initializePackageContents();
+ theHwStorageManagerPackage.initializePackageContents();
+ theHwMemoryPackage.initializePackageContents();
+ theHwTimingPackage.initializePackageContents();
+ theHwDevicePackage.initializePackageContents();
+ theHwGeneralPackage.initializePackageContents();
+ theHwLayoutPackage.initializePackageContents();
+ theHwPowerPackage.initializePackageContents();
+ theSW_ResourceCorePackage.initializePackageContents();
+ theSW_ConcurrencyPackage.initializePackageContents();
+ theSW_BrokeringPackage.initializePackageContents();
+ theSW_InteractionPackage.initializePackageContents();
+ theGCMPackage.initializePackageContents();
+ theGQAMPackage.initializePackageContents();
+ theSAMPackage.initializePackageContents();
+ thePAMPackage.initializePackageContents();
+ theMeasurementUnitsPackage.initializePackageContents();
+ theGRM_BasicTypesPackage.initializePackageContents();
+ theMARTE_DataTypesPackage.initializePackageContents();
+ theBasicNFP_TypesPackage.initializePackageContents();
+ theTimeTypesLibraryPackage.initializePackageContents();
+ theRS_LibraryPackage.initializePackageContents();
+ theMARTE_PrimitivesTypesPackage.initializePackageContents();
+
+ // Mark meta-data to indicate it can't be changed
+ theTimeLibraryPackage.freeze();
+
+
+ // Update the registry and return the package
+ EPackage.Registry.INSTANCE.put(TimeLibraryPackage.eNS_URI, theTimeLibraryPackage);
+ return theTimeLibraryPackage;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EClass getIdealClock() {
+ return idealClockEClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EEnum getTimeUnitKind() {
+ return timeUnitKindEEnum;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EEnum getLogicalTimeUnit() {
+ return logicalTimeUnitEEnum;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EDataType getTimedValueType() {
+ return timedValueTypeEDataType;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EDataType getClockedValueSpecification() {
+ return clockedValueSpecificationEDataType;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public TimeLibraryFactory getTimeLibraryFactory() {
+ return (TimeLibraryFactory)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
+ idealClockEClass = createEClass(IDEAL_CLOCK);
+
+ // Create enums
+ timeUnitKindEEnum = createEEnum(TIME_UNIT_KIND);
+ logicalTimeUnitEEnum = createEEnum(LOGICAL_TIME_UNIT);
+
+ // Create data types
+ timedValueTypeEDataType = createEDataType(TIMED_VALUE_TYPE);
+ clockedValueSpecificationEDataType = createEDataType(CLOCKED_VALUE_SPECIFICATION);
+ }
+
+ /**
+ *
+ *
+ * @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
+ MARTE_PrimitivesTypesPackage theMARTE_PrimitivesTypesPackage = (MARTE_PrimitivesTypesPackage)EPackage.Registry.INSTANCE.getEPackage(MARTE_PrimitivesTypesPackage.eNS_URI);
+
+ // Create type parameters
+
+ // Set bounds for type parameters
+
+ // Add supertypes to classes
+
+ // Initialize classes and features; add operations and parameters
+ initEClass(idealClockEClass, IdealClock.class, "IdealClock", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+
+ addEOperation(idealClockEClass, theMARTE_PrimitivesTypesPackage.getReal(), "currentTime", 1, 1, IS_UNIQUE, !IS_ORDERED);
+
+ // Initialize enums and add enum literals
+ initEEnum(timeUnitKindEEnum, TimeUnitKind.class, "TimeUnitKind");
+ addEEnumLiteral(timeUnitKindEEnum, TimeUnitKind.S);
+ addEEnumLiteral(timeUnitKindEEnum, TimeUnitKind.MS);
+ addEEnumLiteral(timeUnitKindEEnum, TimeUnitKind.US);
+ addEEnumLiteral(timeUnitKindEEnum, TimeUnitKind.NS);
+ addEEnumLiteral(timeUnitKindEEnum, TimeUnitKind.MIN);
+ addEEnumLiteral(timeUnitKindEEnum, TimeUnitKind.HRS);
+ addEEnumLiteral(timeUnitKindEEnum, TimeUnitKind.DAY);
+
+ initEEnum(logicalTimeUnitEEnum, LogicalTimeUnit.class, "LogicalTimeUnit");
+ addEEnumLiteral(logicalTimeUnitEEnum, LogicalTimeUnit.TICK);
+
+ // Initialize data types
+ initEDataType(timedValueTypeEDataType, String.class, "TimedValueType", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);
+ initEDataType(clockedValueSpecificationEDataType, String.class, "ClockedValueSpecification", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);
+
+ // Create resource
+ createResource(eNS_URI);
+ }
+
+} //TimeLibraryPackageImpl
diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeLibrary/util/TimeLibraryAdapterFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeLibrary/util/TimeLibraryAdapterFactory.java
new file mode 100644
index 00000000000..35112a106f1
--- /dev/null
+++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeLibrary/util/TimeLibraryAdapterFactory.java
@@ -0,0 +1,131 @@
+/*****************************************************************************
+ * Copyright (c) 2010 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Chokri MRAIDHA (CEA LIST) chokri.mraidha@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.MARTE_Library.TimeLibrary.util;
+
+import org.eclipse.emf.common.notify.Adapter;
+import org.eclipse.emf.common.notify.Notifier;
+
+import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
+
+import org.eclipse.emf.ecore.EObject;
+
+import org.eclipse.papyrus.MARTE_Library.TimeLibrary.*;
+
+/**
+ *
+ * The Adapter Factory for the model.
+ * It provides an adapter
+ * If the meaning of 'Start' literal object isn't clear,
+ * there really should be more of a description here...
+ *
+ * If the meaning of 'Finish' literal object isn't clear,
+ * there really should be more of a description here...
+ *
+ * If the meaning of 'Send' literal object isn't clear,
+ * there really should be more of a description here...
+ *
+ * If the meaning of 'Receive' literal object isn't clear,
+ * there really should be more of a description here...
+ *
+ * If the meaning of 'Consume' literal object isn't clear,
+ * there really should be more of a description here...
+ *
+ * If the meaning of 'Duration' literal object isn't clear,
+ * there really should be more of a description here...
+ *
+ * If the meaning of 'Instant' literal object isn't clear,
+ * there really should be more of a description here...
+ *
+ * If the meaning of 'Discrete' literal object isn't clear,
+ * there really should be more of a description here...
+ *
+ * If the meaning of 'Dense' literal object isn't clear,
+ * there really should be more of a description here...
+ *
+ * If the meaning of 'TAI' literal object isn't clear,
+ * there really should be more of a description here...
+ *
+ * If the meaning of 'UT0' literal object isn't clear,
+ * there really should be more of a description here...
+ *
+ * If the meaning of 'UT1' literal object isn't clear,
+ * there really should be more of a description here...
+ *
+ * If the meaning of 'UTC' literal object isn't clear,
+ * there really should be more of a description here...
+ *
+ * If the meaning of 'Local' literal object isn't clear,
+ * there really should be more of a description here...
+ *
+ * If the meaning of 'TT' literal object isn't clear,
+ * there really should be more of a description here...
+ *
+ * If the meaning of 'TBD' literal object isn't clear,
+ * there really should be more of a description here...
+ *
+ * If the meaning of 'TCG' literal object isn't clear,
+ * there really should be more of a description here...
+ *
+ * If the meaning of 'TCB' literal object isn't clear,
+ * there really should be more of a description here...
+ *
+ * If the meaning of 'Sidereal' literal object isn't clear,
+ * there really should be more of a description here...
+ *
+ * If the meaning of 'GPS' literal object isn't clear,
+ * there really should be more of a description here...
+ * 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 org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.TimeTypesLibraryPackage#eNS_URI
+ * @see #init()
+ * @generated
+ */
+ private TimeTypesLibraryPackageImpl() {
+ super(eNS_URI, TimeTypesLibraryFactory.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 TimeTypesLibraryPackage#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 TimeTypesLibraryPackage init() {
+ if (isInited) return (TimeTypesLibraryPackage)EPackage.Registry.INSTANCE.getEPackage(TimeTypesLibraryPackage.eNS_URI);
+
+ // Obtain or create and register package
+ TimeTypesLibraryPackageImpl theTimeTypesLibraryPackage = (TimeTypesLibraryPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof TimeTypesLibraryPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new TimeTypesLibraryPackageImpl());
+
+ isInited = true;
+
+ // Initialize simple dependencies
+ UMLPackage.eINSTANCE.eClass();
+
+ // Obtain or create and register interdependencies
+ MARTEPackageImpl theMARTEPackage = (MARTEPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(MARTEPackage.eNS_URI) instanceof MARTEPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(MARTEPackage.eNS_URI) : MARTEPackage.eINSTANCE);
+ NFPsPackageImpl theNFPsPackage = (NFPsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(NFPsPackage.eNS_URI) instanceof NFPsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(NFPsPackage.eNS_URI) : NFPsPackage.eINSTANCE);
+ CoreElementsPackageImpl theCoreElementsPackage = (CoreElementsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CoreElementsPackage.eNS_URI) instanceof CoreElementsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CoreElementsPackage.eNS_URI) : CoreElementsPackage.eINSTANCE);
+ AllocPackageImpl theAllocPackage = (AllocPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(AllocPackage.eNS_URI) instanceof AllocPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(AllocPackage.eNS_URI) : AllocPackage.eINSTANCE);
+ TimePackageImpl theTimePackage = (TimePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TimePackage.eNS_URI) instanceof TimePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TimePackage.eNS_URI) : TimePackage.eINSTANCE);
+ GRMPackageImpl theGRMPackage = (GRMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(GRMPackage.eNS_URI) instanceof GRMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(GRMPackage.eNS_URI) : GRMPackage.eINSTANCE);
+ RSMPackageImpl theRSMPackage = (RSMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RSMPackage.eNS_URI) instanceof RSMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RSMPackage.eNS_URI) : RSMPackage.eINSTANCE);
+ VariablesPackageImpl theVariablesPackage = (VariablesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(VariablesPackage.eNS_URI) instanceof VariablesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(VariablesPackage.eNS_URI) : VariablesPackage.eINSTANCE);
+ OperatorsPackageImpl theOperatorsPackage = (OperatorsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(OperatorsPackage.eNS_URI) instanceof OperatorsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(OperatorsPackage.eNS_URI) : OperatorsPackage.eINSTANCE);
+ DataTypesPackageImpl theDataTypesPackage = (DataTypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(DataTypesPackage.eNS_URI) instanceof DataTypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(DataTypesPackage.eNS_URI) : DataTypesPackage.eINSTANCE);
+ HLAMPackageImpl theHLAMPackage = (HLAMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HLAMPackage.eNS_URI) instanceof HLAMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HLAMPackage.eNS_URI) : HLAMPackage.eINSTANCE);
+ HwComputingPackageImpl theHwComputingPackage = (HwComputingPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwComputingPackage.eNS_URI) instanceof HwComputingPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwComputingPackage.eNS_URI) : HwComputingPackage.eINSTANCE);
+ HwCommunicationPackageImpl theHwCommunicationPackage = (HwCommunicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwCommunicationPackage.eNS_URI) instanceof HwCommunicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwCommunicationPackage.eNS_URI) : HwCommunicationPackage.eINSTANCE);
+ HwStorageManagerPackageImpl theHwStorageManagerPackage = (HwStorageManagerPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwStorageManagerPackage.eNS_URI) instanceof HwStorageManagerPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwStorageManagerPackage.eNS_URI) : HwStorageManagerPackage.eINSTANCE);
+ HwMemoryPackageImpl theHwMemoryPackage = (HwMemoryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwMemoryPackage.eNS_URI) instanceof HwMemoryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwMemoryPackage.eNS_URI) : HwMemoryPackage.eINSTANCE);
+ HwTimingPackageImpl theHwTimingPackage = (HwTimingPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwTimingPackage.eNS_URI) instanceof HwTimingPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwTimingPackage.eNS_URI) : HwTimingPackage.eINSTANCE);
+ HwDevicePackageImpl theHwDevicePackage = (HwDevicePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwDevicePackage.eNS_URI) instanceof HwDevicePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwDevicePackage.eNS_URI) : HwDevicePackage.eINSTANCE);
+ HwGeneralPackageImpl theHwGeneralPackage = (HwGeneralPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwGeneralPackage.eNS_URI) instanceof HwGeneralPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwGeneralPackage.eNS_URI) : HwGeneralPackage.eINSTANCE);
+ HwLayoutPackageImpl theHwLayoutPackage = (HwLayoutPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwLayoutPackage.eNS_URI) instanceof HwLayoutPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwLayoutPackage.eNS_URI) : HwLayoutPackage.eINSTANCE);
+ HwPowerPackageImpl theHwPowerPackage = (HwPowerPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HwPowerPackage.eNS_URI) instanceof HwPowerPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HwPowerPackage.eNS_URI) : HwPowerPackage.eINSTANCE);
+ SW_ResourceCorePackageImpl theSW_ResourceCorePackage = (SW_ResourceCorePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SW_ResourceCorePackage.eNS_URI) instanceof SW_ResourceCorePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SW_ResourceCorePackage.eNS_URI) : SW_ResourceCorePackage.eINSTANCE);
+ SW_ConcurrencyPackageImpl theSW_ConcurrencyPackage = (SW_ConcurrencyPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SW_ConcurrencyPackage.eNS_URI) instanceof SW_ConcurrencyPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SW_ConcurrencyPackage.eNS_URI) : SW_ConcurrencyPackage.eINSTANCE);
+ SW_BrokeringPackageImpl theSW_BrokeringPackage = (SW_BrokeringPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SW_BrokeringPackage.eNS_URI) instanceof SW_BrokeringPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SW_BrokeringPackage.eNS_URI) : SW_BrokeringPackage.eINSTANCE);
+ SW_InteractionPackageImpl theSW_InteractionPackage = (SW_InteractionPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SW_InteractionPackage.eNS_URI) instanceof SW_InteractionPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SW_InteractionPackage.eNS_URI) : SW_InteractionPackage.eINSTANCE);
+ GCMPackageImpl theGCMPackage = (GCMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(GCMPackage.eNS_URI) instanceof GCMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(GCMPackage.eNS_URI) : GCMPackage.eINSTANCE);
+ GQAMPackageImpl theGQAMPackage = (GQAMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(GQAMPackage.eNS_URI) instanceof GQAMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(GQAMPackage.eNS_URI) : GQAMPackage.eINSTANCE);
+ SAMPackageImpl theSAMPackage = (SAMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SAMPackage.eNS_URI) instanceof SAMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SAMPackage.eNS_URI) : SAMPackage.eINSTANCE);
+ PAMPackageImpl thePAMPackage = (PAMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(PAMPackage.eNS_URI) instanceof PAMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(PAMPackage.eNS_URI) : PAMPackage.eINSTANCE);
+ MeasurementUnitsPackageImpl theMeasurementUnitsPackage = (MeasurementUnitsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(MeasurementUnitsPackage.eNS_URI) instanceof MeasurementUnitsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(MeasurementUnitsPackage.eNS_URI) : MeasurementUnitsPackage.eINSTANCE);
+ GRM_BasicTypesPackageImpl theGRM_BasicTypesPackage = (GRM_BasicTypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(GRM_BasicTypesPackage.eNS_URI) instanceof GRM_BasicTypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(GRM_BasicTypesPackage.eNS_URI) : GRM_BasicTypesPackage.eINSTANCE);
+ MARTE_DataTypesPackageImpl theMARTE_DataTypesPackage = (MARTE_DataTypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(MARTE_DataTypesPackage.eNS_URI) instanceof MARTE_DataTypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(MARTE_DataTypesPackage.eNS_URI) : MARTE_DataTypesPackage.eINSTANCE);
+ BasicNFP_TypesPackageImpl theBasicNFP_TypesPackage = (BasicNFP_TypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(BasicNFP_TypesPackage.eNS_URI) instanceof BasicNFP_TypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(BasicNFP_TypesPackage.eNS_URI) : BasicNFP_TypesPackage.eINSTANCE);
+ TimeLibraryPackageImpl theTimeLibraryPackage = (TimeLibraryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TimeLibraryPackage.eNS_URI) instanceof TimeLibraryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TimeLibraryPackage.eNS_URI) : TimeLibraryPackage.eINSTANCE);
+ RS_LibraryPackageImpl theRS_LibraryPackage = (RS_LibraryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RS_LibraryPackage.eNS_URI) instanceof RS_LibraryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RS_LibraryPackage.eNS_URI) : RS_LibraryPackage.eINSTANCE);
+ MARTE_PrimitivesTypesPackageImpl theMARTE_PrimitivesTypesPackage = (MARTE_PrimitivesTypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(MARTE_PrimitivesTypesPackage.eNS_URI) instanceof MARTE_PrimitivesTypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(MARTE_PrimitivesTypesPackage.eNS_URI) : MARTE_PrimitivesTypesPackage.eINSTANCE);
+
+ // Create package meta-data objects
+ theTimeTypesLibraryPackage.createPackageContents();
+ theMARTEPackage.createPackageContents();
+ theNFPsPackage.createPackageContents();
+ theCoreElementsPackage.createPackageContents();
+ theAllocPackage.createPackageContents();
+ theTimePackage.createPackageContents();
+ theGRMPackage.createPackageContents();
+ theRSMPackage.createPackageContents();
+ theVariablesPackage.createPackageContents();
+ theOperatorsPackage.createPackageContents();
+ theDataTypesPackage.createPackageContents();
+ theHLAMPackage.createPackageContents();
+ theHwComputingPackage.createPackageContents();
+ theHwCommunicationPackage.createPackageContents();
+ theHwStorageManagerPackage.createPackageContents();
+ theHwMemoryPackage.createPackageContents();
+ theHwTimingPackage.createPackageContents();
+ theHwDevicePackage.createPackageContents();
+ theHwGeneralPackage.createPackageContents();
+ theHwLayoutPackage.createPackageContents();
+ theHwPowerPackage.createPackageContents();
+ theSW_ResourceCorePackage.createPackageContents();
+ theSW_ConcurrencyPackage.createPackageContents();
+ theSW_BrokeringPackage.createPackageContents();
+ theSW_InteractionPackage.createPackageContents();
+ theGCMPackage.createPackageContents();
+ theGQAMPackage.createPackageContents();
+ theSAMPackage.createPackageContents();
+ thePAMPackage.createPackageContents();
+ theMeasurementUnitsPackage.createPackageContents();
+ theGRM_BasicTypesPackage.createPackageContents();
+ theMARTE_DataTypesPackage.createPackageContents();
+ theBasicNFP_TypesPackage.createPackageContents();
+ theTimeLibraryPackage.createPackageContents();
+ theRS_LibraryPackage.createPackageContents();
+ theMARTE_PrimitivesTypesPackage.createPackageContents();
+
+ // Initialize created meta-data
+ theTimeTypesLibraryPackage.initializePackageContents();
+ theMARTEPackage.initializePackageContents();
+ theNFPsPackage.initializePackageContents();
+ theCoreElementsPackage.initializePackageContents();
+ theAllocPackage.initializePackageContents();
+ theTimePackage.initializePackageContents();
+ theGRMPackage.initializePackageContents();
+ theRSMPackage.initializePackageContents();
+ theVariablesPackage.initializePackageContents();
+ theOperatorsPackage.initializePackageContents();
+ theDataTypesPackage.initializePackageContents();
+ theHLAMPackage.initializePackageContents();
+ theHwComputingPackage.initializePackageContents();
+ theHwCommunicationPackage.initializePackageContents();
+ theHwStorageManagerPackage.initializePackageContents();
+ theHwMemoryPackage.initializePackageContents();
+ theHwTimingPackage.initializePackageContents();
+ theHwDevicePackage.initializePackageContents();
+ theHwGeneralPackage.initializePackageContents();
+ theHwLayoutPackage.initializePackageContents();
+ theHwPowerPackage.initializePackageContents();
+ theSW_ResourceCorePackage.initializePackageContents();
+ theSW_ConcurrencyPackage.initializePackageContents();
+ theSW_BrokeringPackage.initializePackageContents();
+ theSW_InteractionPackage.initializePackageContents();
+ theGCMPackage.initializePackageContents();
+ theGQAMPackage.initializePackageContents();
+ theSAMPackage.initializePackageContents();
+ thePAMPackage.initializePackageContents();
+ theMeasurementUnitsPackage.initializePackageContents();
+ theGRM_BasicTypesPackage.initializePackageContents();
+ theMARTE_DataTypesPackage.initializePackageContents();
+ theBasicNFP_TypesPackage.initializePackageContents();
+ theTimeLibraryPackage.initializePackageContents();
+ theRS_LibraryPackage.initializePackageContents();
+ theMARTE_PrimitivesTypesPackage.initializePackageContents();
+
+ // Mark meta-data to indicate it can't be changed
+ theTimeTypesLibraryPackage.freeze();
+
+
+ // Update the registry and return the package
+ EPackage.Registry.INSTANCE.put(TimeTypesLibraryPackage.eNS_URI, theTimeTypesLibraryPackage);
+ return theTimeTypesLibraryPackage;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EEnum getTimeNatureKind() {
+ return timeNatureKindEEnum;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EEnum getTimeInterpretationKind() {
+ return timeInterpretationKindEEnum;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EEnum getEventKind() {
+ return eventKindEEnum;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EEnum getTimeStandardKind() {
+ return timeStandardKindEEnum;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public TimeTypesLibraryFactory getTimeTypesLibraryFactory() {
+ return (TimeTypesLibraryFactory)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 enums
+ timeNatureKindEEnum = createEEnum(TIME_NATURE_KIND);
+ timeInterpretationKindEEnum = createEEnum(TIME_INTERPRETATION_KIND);
+ eventKindEEnum = createEEnum(EVENT_KIND);
+ timeStandardKindEEnum = createEEnum(TIME_STANDARD_KIND);
+ }
+
+ /**
+ *
+ *
+ * @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);
+
+ // Initialize enums and add enum literals
+ initEEnum(timeNatureKindEEnum, TimeNatureKind.class, "TimeNatureKind");
+ addEEnumLiteral(timeNatureKindEEnum, TimeNatureKind.DISCRETE);
+ addEEnumLiteral(timeNatureKindEEnum, TimeNatureKind.DENSE);
+
+ initEEnum(timeInterpretationKindEEnum, TimeInterpretationKind.class, "TimeInterpretationKind");
+ addEEnumLiteral(timeInterpretationKindEEnum, TimeInterpretationKind.DURATION);
+ addEEnumLiteral(timeInterpretationKindEEnum, TimeInterpretationKind.INSTANT);
+
+ initEEnum(eventKindEEnum, EventKind.class, "EventKind");
+ addEEnumLiteral(eventKindEEnum, EventKind.START);
+ addEEnumLiteral(eventKindEEnum, EventKind.FINISH);
+ addEEnumLiteral(eventKindEEnum, EventKind.SEND);
+ addEEnumLiteral(eventKindEEnum, EventKind.RECEIVE);
+ addEEnumLiteral(eventKindEEnum, EventKind.CONSUME);
+
+ initEEnum(timeStandardKindEEnum, TimeStandardKind.class, "TimeStandardKind");
+ addEEnumLiteral(timeStandardKindEEnum, TimeStandardKind.TAI);
+ addEEnumLiteral(timeStandardKindEEnum, TimeStandardKind.UT0);
+ addEEnumLiteral(timeStandardKindEEnum, TimeStandardKind.UT1);
+ addEEnumLiteral(timeStandardKindEEnum, TimeStandardKind.UTC);
+ addEEnumLiteral(timeStandardKindEEnum, TimeStandardKind.LOCAL);
+ addEEnumLiteral(timeStandardKindEEnum, TimeStandardKind.TT);
+ addEEnumLiteral(timeStandardKindEEnum, TimeStandardKind.TBD);
+ addEEnumLiteral(timeStandardKindEEnum, TimeStandardKind.TCG);
+ addEEnumLiteral(timeStandardKindEEnum, TimeStandardKind.TCB);
+ addEEnumLiteral(timeStandardKindEEnum, TimeStandardKind.SIDEREAL);
+ addEEnumLiteral(timeStandardKindEEnum, TimeStandardKind.GPS);
+
+ // Create resource
+ createResource(eNS_URI);
+ }
+
+} //TimeTypesLibraryPackageImpl
--
cgit v1.2.3
createXXX
method for each class of the model.
+ *
+ * @see org.eclipse.papyrus.MARTE_Library.TimeLibrary.TimeLibraryPackage
+ * @generated
+ */
+public class TimeLibraryAdapterFactory extends AdapterFactoryImpl {
+ /**
+ * The cached model package.
+ *
+ *
+ * @generated
+ */
+ protected static TimeLibraryPackage modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory.
+ *
+ *
+ * @generated
+ */
+ public TimeLibraryAdapterFactory() {
+ if (modelPackage == null) {
+ modelPackage = TimeLibraryPackage.eINSTANCE;
+ }
+ }
+
+ /**
+ * Returns whether this factory is applicable for the type of the object.
+ *
+ * This implementation returns true
if the object is either the model's package or is an instance object of the model.
+ *
+ * @return whether this factory is applicable for the type of the object.
+ * @generated
+ */
+ @Override
+ public boolean isFactoryForType(Object object) {
+ if (object == modelPackage) {
+ return true;
+ }
+ if (object instanceof EObject) {
+ return ((EObject)object).eClass().getEPackage() == modelPackage;
+ }
+ return false;
+ }
+
+ /**
+ * The switch that delegates to the createXXX
methods.
+ *
+ *
+ * @generated
+ */
+ protected TimeLibrarySwitchtarget
.
+ *
+ *
+ * @param target the object to adapt.
+ * @return the adapter for the target
.
+ * @generated
+ */
+ @Override
+ public Adapter createAdapter(Notifier target) {
+ return modelSwitch.doSwitch((EObject)target);
+ }
+
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE_Library.TimeLibrary.IdealClock Ideal Clock}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.MARTE_Library.TimeLibrary.IdealClock
+ * @generated
+ */
+ public Adapter createIdealClockAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for the default case.
+ *
+ * This default implementation returns null.
+ *
+ * @return the new adapter.
+ * @generated
+ */
+ public Adapter createEObjectAdapter() {
+ return null;
+ }
+
+} //TimeLibraryAdapterFactory
diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeLibrary/util/TimeLibrarySwitch.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeLibrary/util/TimeLibrarySwitch.java
new file mode 100644
index 00000000000..32e69f42b30
--- /dev/null
+++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeLibrary/util/TimeLibrarySwitch.java
@@ -0,0 +1,137 @@
+/*****************************************************************************
+ * Copyright (c) 2010 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Chokri MRAIDHA (CEA LIST) chokri.mraidha@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.MARTE_Library.TimeLibrary.util;
+
+import java.util.List;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+
+import org.eclipse.papyrus.MARTE_Library.TimeLibrary.*;
+
+/**
+ *
+ * The Switch for the model's inheritance hierarchy.
+ * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
+ * to invoke the caseXXX
method for each class of the model,
+ * starting with the actual class of the object
+ * and proceeding up the inheritance hierarchy
+ * until a non-null result is returned,
+ * which is the result of the switch.
+ *
+ * @see org.eclipse.papyrus.MARTE_Library.TimeLibrary.TimeLibraryPackage
+ * @generated
+ */
+public class TimeLibrarySwitchcaseXXX
for each class of the model until one returns a non null result; it yields that result.
+ *
+ *
+ * @return the first non-null result returned by a caseXXX
call.
+ * @generated
+ */
+ public T doSwitch(EObject theEObject) {
+ return doSwitch(theEObject.eClass(), theEObject);
+ }
+
+ /**
+ * Calls caseXXX
for each class of the model until one returns a non null result; it yields that result.
+ *
+ *
+ * @return the first non-null result returned by a caseXXX
call.
+ * @generated
+ */
+ protected T doSwitch(EClass theEClass, EObject theEObject) {
+ if (theEClass.eContainer() == modelPackage) {
+ return doSwitch(theEClass.getClassifierID(), theEObject);
+ }
+ else {
+ ListcaseXXX
for each class of the model until one returns a non null result; it yields that result.
+ *
+ *
+ * @return the first non-null result returned by a caseXXX
call.
+ * @generated
+ */
+ protected T doSwitch(int classifierID, EObject theEObject) {
+ switch (classifierID) {
+ case TimeLibraryPackage.IDEAL_CLOCK: {
+ IdealClock idealClock = (IdealClock)theEObject;
+ T result = caseIdealClock(idealClock);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ default: return defaultCase(theEObject);
+ }
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Ideal Clock'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Ideal Clock'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseIdealClock(IdealClock object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'EObject'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch, but this is the last case anyway.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'EObject'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject)
+ * @generated
+ */
+ public T defaultCase(EObject object) {
+ return null;
+ }
+
+} //TimeLibrarySwitch
diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeTypesLibrary/EventKind.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeTypesLibrary/EventKind.java
new file mode 100644
index 00000000000..aa8cefae116
--- /dev/null
+++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeTypesLibrary/EventKind.java
@@ -0,0 +1,300 @@
+/*****************************************************************************
+ * Copyright (c) 2010 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Chokri MRAIDHA (CEA LIST) chokri.mraidha@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.emf.common.util.Enumerator;
+
+/**
+ *
+ * A representation of the literals of the enumeration 'Event Kind',
+ * and utility methods for working with them.
+ *
+ * @see org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.TimeTypesLibraryPackage#getEventKind()
+ * @model
+ * @generated
+ */
+public enum EventKind implements Enumerator {
+ /**
+ * The 'Start' literal object.
+ *
+ *
+ * @see #START_VALUE
+ * @generated
+ * @ordered
+ */
+ START(0, "start", "start"),
+
+ /**
+ * The 'Finish' literal object.
+ *
+ *
+ * @see #FINISH_VALUE
+ * @generated
+ * @ordered
+ */
+ FINISH(1, "finish", "finish"),
+
+ /**
+ * The 'Send' literal object.
+ *
+ *
+ * @see #SEND_VALUE
+ * @generated
+ * @ordered
+ */
+ SEND(2, "send", "send"),
+
+ /**
+ * The 'Receive' literal object.
+ *
+ *
+ * @see #RECEIVE_VALUE
+ * @generated
+ * @ordered
+ */
+ RECEIVE(3, "receive", "receive"),
+
+ /**
+ * The 'Consume' literal object.
+ *
+ *
+ * @see #CONSUME_VALUE
+ * @generated
+ * @ordered
+ */
+ CONSUME(4, "consume", "consume");
+
+ /**
+ * The 'Start' literal value.
+ *
+ *
+ *
+ *
+ * @see org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.TimeTypesLibraryFactory
+ * @model kind="package"
+ * @generated
+ */
+public interface TimeTypesLibraryPackage extends EPackage {
+ /**
+ * The package name.
+ *
+ *
+ * @generated
+ */
+ String eNAME = "TimeTypesLibrary";
+
+ /**
+ * The package namespace URI.
+ *
+ *
+ * @generated
+ */
+ String eNS_URI = "http:///MARTE_Library/TimeTypesLibrary.ecore";
+
+ /**
+ * The package namespace name.
+ *
+ *
+ * @generated
+ */
+ String eNS_PREFIX = "MARTE_Library.TimeTypesLibrary";
+
+ /**
+ * The singleton instance of the package.
+ *
+ *
+ * @generated
+ */
+ TimeTypesLibraryPackage eINSTANCE = org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.impl.TimeTypesLibraryPackageImpl.init();
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.TimeNatureKind Time Nature Kind}' enum.
+ *
+ *
+ * @see org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.TimeNatureKind
+ * @see org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.impl.TimeTypesLibraryPackageImpl#getTimeNatureKind()
+ * @generated
+ */
+ int TIME_NATURE_KIND = 0;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.TimeInterpretationKind Time Interpretation Kind}' enum.
+ *
+ *
+ * @see org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.TimeInterpretationKind
+ * @see org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.impl.TimeTypesLibraryPackageImpl#getTimeInterpretationKind()
+ * @generated
+ */
+ int TIME_INTERPRETATION_KIND = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.EventKind Event Kind}' enum.
+ *
+ *
+ * @see org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.EventKind
+ * @see org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.impl.TimeTypesLibraryPackageImpl#getEventKind()
+ * @generated
+ */
+ int EVENT_KIND = 2;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.TimeStandardKind Time Standard Kind}' enum.
+ *
+ *
+ * @see org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.TimeStandardKind
+ * @see org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.impl.TimeTypesLibraryPackageImpl#getTimeStandardKind()
+ * @generated
+ */
+ int TIME_STANDARD_KIND = 3;
+
+
+ /**
+ * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.TimeNatureKind Time Nature Kind}'.
+ *
+ *
+ * @return the meta object for enum 'Time Nature Kind'.
+ * @see org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.TimeNatureKind
+ * @generated
+ */
+ EEnum getTimeNatureKind();
+
+ /**
+ * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.TimeInterpretationKind Time Interpretation Kind}'.
+ *
+ *
+ * @return the meta object for enum 'Time Interpretation Kind'.
+ * @see org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.TimeInterpretationKind
+ * @generated
+ */
+ EEnum getTimeInterpretationKind();
+
+ /**
+ * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.EventKind Event Kind}'.
+ *
+ *
+ * @return the meta object for enum 'Event Kind'.
+ * @see org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.EventKind
+ * @generated
+ */
+ EEnum getEventKind();
+
+ /**
+ * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.TimeStandardKind Time Standard Kind}'.
+ *
+ *
+ * @return the meta object for enum 'Time Standard Kind'.
+ * @see org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.TimeStandardKind
+ * @generated
+ */
+ EEnum getTimeStandardKind();
+
+ /**
+ * Returns the factory that creates the instances of the model.
+ *
+ *
+ * @return the factory that creates the instances of the model.
+ * @generated
+ */
+ TimeTypesLibraryFactory getTimeTypesLibraryFactory();
+
+ /**
+ *
+ * Defines literals for the meta objects that represent
+ *
+ *
+ *
+ * @generated
+ */
+ interface Literals {
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.TimeNatureKind Time Nature Kind}' enum.
+ *
+ *
+ * @see org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.TimeNatureKind
+ * @see org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.impl.TimeTypesLibraryPackageImpl#getTimeNatureKind()
+ * @generated
+ */
+ EEnum TIME_NATURE_KIND = eINSTANCE.getTimeNatureKind();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.TimeInterpretationKind Time Interpretation Kind}' enum.
+ *
+ *
+ * @see org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.TimeInterpretationKind
+ * @see org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.impl.TimeTypesLibraryPackageImpl#getTimeInterpretationKind()
+ * @generated
+ */
+ EEnum TIME_INTERPRETATION_KIND = eINSTANCE.getTimeInterpretationKind();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.EventKind Event Kind}' enum.
+ *
+ *
+ * @see org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.EventKind
+ * @see org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.impl.TimeTypesLibraryPackageImpl#getEventKind()
+ * @generated
+ */
+ EEnum EVENT_KIND = eINSTANCE.getEventKind();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.TimeStandardKind Time Standard Kind}' enum.
+ *
+ *
+ * @see org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.TimeStandardKind
+ * @see org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.impl.TimeTypesLibraryPackageImpl#getTimeStandardKind()
+ * @generated
+ */
+ EEnum TIME_STANDARD_KIND = eINSTANCE.getTimeStandardKind();
+
+ }
+
+} //TimeTypesLibraryPackage
diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeTypesLibrary/impl/TimeTypesLibraryFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeTypesLibrary/impl/TimeTypesLibraryFactoryImpl.java
new file mode 100644
index 00000000000..54162acd287
--- /dev/null
+++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeTypesLibrary/impl/TimeTypesLibraryFactoryImpl.java
@@ -0,0 +1,218 @@
+/*****************************************************************************
+ * Copyright (c) 2010 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Chokri MRAIDHA (CEA LIST) chokri.mraidha@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.impl;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EDataType;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+
+import org.eclipse.emf.ecore.impl.EFactoryImpl;
+
+import org.eclipse.emf.ecore.plugin.EcorePlugin;
+
+import org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.*;
+
+/**
+ *
+ * An implementation of the model Factory.
+ *
+ * @generated
+ */
+public class TimeTypesLibraryFactoryImpl extends EFactoryImpl implements TimeTypesLibraryFactory {
+ /**
+ * Creates the default factory implementation.
+ *
+ *
+ * @generated
+ */
+ public static TimeTypesLibraryFactory init() {
+ try {
+ TimeTypesLibraryFactory theTimeTypesLibraryFactory = (TimeTypesLibraryFactory)EPackage.Registry.INSTANCE.getEFactory("http:///MARTE_Library/TimeTypesLibrary.ecore");
+ if (theTimeTypesLibraryFactory != null) {
+ return theTimeTypesLibraryFactory;
+ }
+ }
+ catch (Exception exception) {
+ EcorePlugin.INSTANCE.log(exception);
+ }
+ return new TimeTypesLibraryFactoryImpl();
+ }
+
+ /**
+ * Creates an instance of the factory.
+ *
+ *
+ * @generated
+ */
+ public TimeTypesLibraryFactoryImpl() {
+ super();
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ @Override
+ public EObject create(EClass eClass) {
+ switch (eClass.getClassifierID()) {
+ default:
+ throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ @Override
+ public Object createFromString(EDataType eDataType, String initialValue) {
+ switch (eDataType.getClassifierID()) {
+ case TimeTypesLibraryPackage.TIME_NATURE_KIND:
+ return createTimeNatureKindFromString(eDataType, initialValue);
+ case TimeTypesLibraryPackage.TIME_INTERPRETATION_KIND:
+ return createTimeInterpretationKindFromString(eDataType, initialValue);
+ case TimeTypesLibraryPackage.EVENT_KIND:
+ return createEventKindFromString(eDataType, initialValue);
+ case TimeTypesLibraryPackage.TIME_STANDARD_KIND:
+ return createTimeStandardKindFromString(eDataType, initialValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ @Override
+ public String convertToString(EDataType eDataType, Object instanceValue) {
+ switch (eDataType.getClassifierID()) {
+ case TimeTypesLibraryPackage.TIME_NATURE_KIND:
+ return convertTimeNatureKindToString(eDataType, instanceValue);
+ case TimeTypesLibraryPackage.TIME_INTERPRETATION_KIND:
+ return convertTimeInterpretationKindToString(eDataType, instanceValue);
+ case TimeTypesLibraryPackage.EVENT_KIND:
+ return convertEventKindToString(eDataType, instanceValue);
+ case TimeTypesLibraryPackage.TIME_STANDARD_KIND:
+ return convertTimeStandardKindToString(eDataType, instanceValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public TimeNatureKind createTimeNatureKindFromString(EDataType eDataType, String initialValue) {
+ TimeNatureKind result = TimeNatureKind.get(initialValue);
+ if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
+ return result;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String convertTimeNatureKindToString(EDataType eDataType, Object instanceValue) {
+ return instanceValue == null ? null : instanceValue.toString();
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public TimeInterpretationKind createTimeInterpretationKindFromString(EDataType eDataType, String initialValue) {
+ TimeInterpretationKind result = TimeInterpretationKind.get(initialValue);
+ if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
+ return result;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String convertTimeInterpretationKindToString(EDataType eDataType, Object instanceValue) {
+ return instanceValue == null ? null : instanceValue.toString();
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EventKind createEventKindFromString(EDataType eDataType, String initialValue) {
+ EventKind result = EventKind.get(initialValue);
+ if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
+ return result;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String convertEventKindToString(EDataType eDataType, Object instanceValue) {
+ return instanceValue == null ? null : instanceValue.toString();
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public TimeStandardKind createTimeStandardKindFromString(EDataType eDataType, String initialValue) {
+ TimeStandardKind result = TimeStandardKind.get(initialValue);
+ if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
+ return result;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String convertTimeStandardKindToString(EDataType eDataType, Object instanceValue) {
+ return instanceValue == null ? null : instanceValue.toString();
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public TimeTypesLibraryPackage getTimeTypesLibraryPackage() {
+ return (TimeTypesLibraryPackage)getEPackage();
+ }
+
+ /**
+ *
+ *
+ * @deprecated
+ * @generated
+ */
+ @Deprecated
+ public static TimeTypesLibraryPackage getPackage() {
+ return TimeTypesLibraryPackage.eINSTANCE;
+ }
+
+} //TimeTypesLibraryFactoryImpl
diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeTypesLibrary/impl/TimeTypesLibraryPackageImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeTypesLibrary/impl/TimeTypesLibraryPackageImpl.java
new file mode 100644
index 00000000000..5d6dfc80ef0
--- /dev/null
+++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeTypesLibrary/impl/TimeTypesLibraryPackageImpl.java
@@ -0,0 +1,500 @@
+/*****************************************************************************
+ * Copyright (c) 2010 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Chokri MRAIDHA (CEA LIST) chokri.mraidha@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.impl;
+
+import org.eclipse.emf.ecore.EEnum;
+import org.eclipse.emf.ecore.EPackage;
+
+import org.eclipse.emf.ecore.impl.EPackageImpl;
+
+import org.eclipse.papyrus.MARTE.MARTEPackage;
+
+import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage;
+
+import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GQAMPackageImpl;
+
+import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PAMPackage;
+
+import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PAMPackageImpl;
+
+import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage;
+
+import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SAMPackageImpl;
+
+import org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.RSMPackage;
+
+import org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.RSMPackageImpl;
+
+import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.DataTypesPackage;
+
+import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.impl.DataTypesPackageImpl;
+
+import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators.OperatorsPackage;
+import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators.impl.OperatorsPackageImpl;
+import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.VariablesPackage;
+
+import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.impl.VariablesPackageImpl;
+
+import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage;
+
+import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMPackageImpl;
+
+import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage;
+
+import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.HLAMPackageImpl;
+
+import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwGeneralPackage;
+
+import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.impl.HwGeneralPackageImpl;
+
+import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwCommunicationPackage;
+
+import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwCommunicationPackageImpl;
+
+import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingPackage;
+
+import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwComputingPackageImpl;
+
+import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.HwDevicePackage;
+
+import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.impl.HwDevicePackageImpl;
+
+import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemoryPackage;
+
+import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwMemoryPackageImpl;
+
+import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwStorageManagerPackage;
+
+import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.impl.HwStorageManagerPackageImpl;
+
+import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.HwTimingPackage;
+
+import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.impl.HwTimingPackageImpl;
+
+import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwLayoutPackage;
+
+import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.impl.HwLayoutPackageImpl;
+
+import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.HwPowerPackage;
+
+import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.impl.HwPowerPackageImpl;
+
+import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.SW_BrokeringPackage;
+
+import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.impl.SW_BrokeringPackageImpl;
+
+import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage;
+
+import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SW_ConcurrencyPackageImpl;
+
+import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage;
+
+import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SW_InteractionPackageImpl;
+
+import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SW_ResourceCorePackage;
+
+import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.impl.SW_ResourceCorePackageImpl;
+
+import org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocPackage;
+
+import org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AllocPackageImpl;
+
+import org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.CoreElementsPackage;
+
+import org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.impl.CoreElementsPackageImpl;
+
+import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage;
+
+import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GRMPackageImpl;
+
+import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NFPsPackage;
+
+import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.NFPsPackageImpl;
+
+import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage;
+
+import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimePackageImpl;
+
+import org.eclipse.papyrus.MARTE.impl.MARTEPackageImpl;
+
+import org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.BasicNFP_TypesPackage;
+
+import org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl;
+
+import org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.GRM_BasicTypesPackage;
+
+import org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.impl.GRM_BasicTypesPackageImpl;
+
+import org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.MARTE_DataTypesPackage;
+
+import org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.impl.MARTE_DataTypesPackageImpl;
+
+import org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.MARTE_PrimitivesTypesPackage;
+
+import org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.impl.MARTE_PrimitivesTypesPackageImpl;
+
+import org.eclipse.papyrus.MARTE_Library.MeasurementUnits.MeasurementUnitsPackage;
+
+import org.eclipse.papyrus.MARTE_Library.MeasurementUnits.impl.MeasurementUnitsPackageImpl;
+
+import org.eclipse.papyrus.MARTE_Library.RS_Library.RS_LibraryPackage;
+
+import org.eclipse.papyrus.MARTE_Library.RS_Library.impl.RS_LibraryPackageImpl;
+
+import org.eclipse.papyrus.MARTE_Library.TimeLibrary.TimeLibraryPackage;
+
+import org.eclipse.papyrus.MARTE_Library.TimeLibrary.impl.TimeLibraryPackageImpl;
+
+import org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.EventKind;
+import org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.TimeInterpretationKind;
+import org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.TimeNatureKind;
+import org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.TimeStandardKind;
+import org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.TimeTypesLibraryFactory;
+import org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.TimeTypesLibraryPackage;
+
+import org.eclipse.uml2.uml.UMLPackage;
+
+/**
+ *
+ * An implementation of the model Package.
+ *
+ * @generated
+ */
+public class TimeTypesLibraryPackageImpl extends EPackageImpl implements TimeTypesLibraryPackage {
+ /**
+ *
+ *
+ * @generated
+ */
+ private EEnum timeNatureKindEEnum = null;
+
+ /**
+ *
+ *
+ * @generated
+ */
+ private EEnum timeInterpretationKindEEnum = null;
+
+ /**
+ *
+ *
+ * @generated
+ */
+ private EEnum eventKindEEnum = null;
+
+ /**
+ *
+ *
+ * @generated
+ */
+ private EEnum timeStandardKindEEnum = 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.
+ *