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 + * + * + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.BasicNFP_TypesFactory + * @model kind="package" + * @generated + */ +public interface BasicNFP_TypesPackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "BasicNFP_Types"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "http:///MARTE_Library/BasicNFP_Types.ecore"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "MARTE_Library.BasicNFP_Types"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + BasicNFP_TypesPackage eINSTANCE = org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.SourceKind Source Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.SourceKind + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getSourceKind() + * @generated + */ + int SOURCE_KIND = 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.DirectionKind Direction Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.DirectionKind + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getDirectionKind() + * @generated + */ + int DIRECTION_KIND = 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.StatisticalQualifierKind Statistical Qualifier Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.StatisticalQualifierKind + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getStatisticalQualifierKind() + * @generated + */ + int STATISTICAL_QUALIFIER_KIND = 2; + + /** + * The meta object id for the 'NFP Common Type' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getNFP_CommonType() + * @generated + */ + int NFP_COMMON_TYPE = 3; + + /** + * The meta object id for the 'NFP Boolean' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getNFP_Boolean() + * @generated + */ + int NFP_BOOLEAN = 4; + + /** + * The meta object id for the 'NFP Natural' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getNFP_Natural() + * @generated + */ + int NFP_NATURAL = 5; + + /** + * The meta object id for the 'NFP String' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getNFP_String() + * @generated + */ + int NFP_STRING = 6; + + /** + * The meta object id for the 'NFP Real' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getNFP_Real() + * @generated + */ + int NFP_REAL = 7; + + /** + * The meta object id for the 'NFP Integer' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getNFP_Integer() + * @generated + */ + int NFP_INTEGER = 8; + + /** + * The meta object id for the 'NFP Date Time' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getNFP_DateTime() + * @generated + */ + int NFP_DATE_TIME = 9; + + /** + * The meta object id for the 'NFP Duration' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getNFP_Duration() + * @generated + */ + int NFP_DURATION = 10; + + /** + * The meta object id for the 'NFP Data Tx Rate' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getNFP_DataTxRate() + * @generated + */ + int NFP_DATA_TX_RATE = 11; + + /** + * The meta object id for the 'NFP Frequency' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getNFP_Frequency() + * @generated + */ + int NFP_FREQUENCY = 12; + + /** + * The meta object id for the 'NFP Power' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getNFP_Power() + * @generated + */ + int NFP_POWER = 13; + + /** + * The meta object id for the 'NFP Data Size' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getNFP_DataSize() + * @generated + */ + int NFP_DATA_SIZE = 14; + + /** + * The meta object id for the 'NFP Energy' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getNFP_Energy() + * @generated + */ + int NFP_ENERGY = 15; + + /** + * The meta object id for the 'NFP Length' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getNFP_Length() + * @generated + */ + int NFP_LENGTH = 16; + + /** + * The meta object id for the 'NFP Area' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getNFP_Area() + * @generated + */ + int NFP_AREA = 17; + + /** + * The meta object id for the 'Arrival Pattern' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getArrivalPattern() + * @generated + */ + int ARRIVAL_PATTERN = 18; + + /** + * The meta object id for the 'Periodic Pattern' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getPeriodicPattern() + * @generated + */ + int PERIODIC_PATTERN = 19; + + /** + * The meta object id for the 'Aperiodic Pattern' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getAperiodicPattern() + * @generated + */ + int APERIODIC_PATTERN = 20; + + /** + * The meta object id for the 'Closed Pattern' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getClosedPattern() + * @generated + */ + int CLOSED_PATTERN = 21; + + /** + * The meta object id for the 'Sporadic Pattern' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getSporadicPattern() + * @generated + */ + int SPORADIC_PATTERN = 22; + + /** + * The meta object id for the 'Burst Pattern' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getBurstPattern() + * @generated + */ + int BURST_PATTERN = 23; + + /** + * The meta object id for the 'Irregular Pattern' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getIrregularPattern() + * @generated + */ + int IRREGULAR_PATTERN = 24; + + /** + * The meta object id for the 'NFP Percentage' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getNFP_Percentage() + * @generated + */ + int NFP_PERCENTAGE = 25; + + /** + * The meta object id for the 'Open Pattern' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getOpenPattern() + * @generated + */ + int OPEN_PATTERN = 26; + + /** + * The meta object id for the 'NFP Price' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getNFP_Price() + * @generated + */ + int NFP_PRICE = 27; + + /** + * The meta object id for the 'NFP Weight' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getNFP_Weight() + * @generated + */ + int NFP_WEIGHT = 28; + + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.SourceKind Source Kind}'. + * + * + * @return the meta object for enum 'Source Kind'. + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.SourceKind + * @generated + */ + EEnum getSourceKind(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.DirectionKind Direction Kind}'. + * + * + * @return the meta object for enum 'Direction Kind'. + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.DirectionKind + * @generated + */ + EEnum getDirectionKind(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.StatisticalQualifierKind Statistical Qualifier Kind}'. + * + * + * @return the meta object for enum 'Statistical Qualifier Kind'. + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.StatisticalQualifierKind + * @generated + */ + EEnum getStatisticalQualifierKind(); + + /** + * Returns the meta object for data type '{@link java.lang.String NFP Common Type}'. + * + * + * @return the meta object for data type 'NFP Common Type'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getNFP_CommonType(); + + /** + * Returns the meta object for data type '{@link java.lang.String NFP Boolean}'. + * + * + * @return the meta object for data type 'NFP Boolean'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getNFP_Boolean(); + + /** + * Returns the meta object for data type '{@link java.lang.String NFP Natural}'. + * + * + * @return the meta object for data type 'NFP Natural'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getNFP_Natural(); + + /** + * Returns the meta object for data type '{@link java.lang.String NFP String}'. + * + * + * @return the meta object for data type 'NFP String'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getNFP_String(); + + /** + * Returns the meta object for data type '{@link java.lang.String NFP Real}'. + * + * + * @return the meta object for data type 'NFP Real'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getNFP_Real(); + + /** + * Returns the meta object for data type '{@link java.lang.String NFP Integer}'. + * + * + * @return the meta object for data type 'NFP Integer'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getNFP_Integer(); + + /** + * Returns the meta object for data type '{@link java.lang.String NFP Date Time}'. + * + * + * @return the meta object for data type 'NFP Date Time'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getNFP_DateTime(); + + /** + * Returns the meta object for data type '{@link java.lang.String NFP Duration}'. + * + * + * @return the meta object for data type 'NFP Duration'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getNFP_Duration(); + + /** + * Returns the meta object for data type '{@link java.lang.String NFP Data Tx Rate}'. + * + * + * @return the meta object for data type 'NFP Data Tx Rate'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getNFP_DataTxRate(); + + /** + * Returns the meta object for data type '{@link java.lang.String NFP Frequency}'. + * + * + * @return the meta object for data type 'NFP Frequency'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getNFP_Frequency(); + + /** + * Returns the meta object for data type '{@link java.lang.String NFP Power}'. + * + * + * @return the meta object for data type 'NFP Power'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getNFP_Power(); + + /** + * Returns the meta object for data type '{@link java.lang.String NFP Data Size}'. + * + * + * @return the meta object for data type 'NFP Data Size'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getNFP_DataSize(); + + /** + * Returns the meta object for data type '{@link java.lang.String NFP Energy}'. + * + * + * @return the meta object for data type 'NFP Energy'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getNFP_Energy(); + + /** + * Returns the meta object for data type '{@link java.lang.String NFP Length}'. + * + * + * @return the meta object for data type 'NFP Length'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getNFP_Length(); + + /** + * Returns the meta object for data type '{@link java.lang.String NFP Area}'. + * + * + * @return the meta object for data type 'NFP Area'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getNFP_Area(); + + /** + * Returns the meta object for data type '{@link java.lang.String Arrival Pattern}'. + * + * + * @return the meta object for data type 'Arrival Pattern'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getArrivalPattern(); + + /** + * Returns the meta object for data type '{@link java.lang.String Periodic Pattern}'. + * + * + * @return the meta object for data type 'Periodic Pattern'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getPeriodicPattern(); + + /** + * Returns the meta object for data type '{@link java.lang.String Aperiodic Pattern}'. + * + * + * @return the meta object for data type 'Aperiodic Pattern'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getAperiodicPattern(); + + /** + * Returns the meta object for data type '{@link java.lang.String Closed Pattern}'. + * + * + * @return the meta object for data type 'Closed Pattern'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getClosedPattern(); + + /** + * Returns the meta object for data type '{@link java.lang.String Sporadic Pattern}'. + * + * + * @return the meta object for data type 'Sporadic Pattern'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getSporadicPattern(); + + /** + * Returns the meta object for data type '{@link java.lang.String Burst Pattern}'. + * + * + * @return the meta object for data type 'Burst Pattern'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getBurstPattern(); + + /** + * Returns the meta object for data type '{@link java.lang.String Irregular Pattern}'. + * + * + * @return the meta object for data type 'Irregular Pattern'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getIrregularPattern(); + + /** + * Returns the meta object for data type '{@link java.lang.String NFP Percentage}'. + * + * + * @return the meta object for data type 'NFP Percentage'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getNFP_Percentage(); + + /** + * Returns the meta object for data type '{@link java.lang.String Open Pattern}'. + * + * + * @return the meta object for data type 'Open Pattern'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getOpenPattern(); + + /** + * Returns the meta object for data type '{@link java.lang.String NFP Price}'. + * + * + * @return the meta object for data type 'NFP Price'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getNFP_Price(); + + /** + * Returns the meta object for data type '{@link java.lang.String NFP Weight}'. + * + * + * @return the meta object for data type 'NFP Weight'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getNFP_Weight(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + BasicNFP_TypesFactory getBasicNFP_TypesFactory(); + + /** + * + * Defines literals for the meta objects that represent + * + * + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.SourceKind Source Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.SourceKind + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getSourceKind() + * @generated + */ + EEnum SOURCE_KIND = eINSTANCE.getSourceKind(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.DirectionKind Direction Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.DirectionKind + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getDirectionKind() + * @generated + */ + EEnum DIRECTION_KIND = eINSTANCE.getDirectionKind(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.StatisticalQualifierKind Statistical Qualifier Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.StatisticalQualifierKind + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getStatisticalQualifierKind() + * @generated + */ + EEnum STATISTICAL_QUALIFIER_KIND = eINSTANCE.getStatisticalQualifierKind(); + + /** + * The meta object literal for the 'NFP Common Type' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getNFP_CommonType() + * @generated + */ + EDataType NFP_COMMON_TYPE = eINSTANCE.getNFP_CommonType(); + + /** + * The meta object literal for the 'NFP Boolean' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getNFP_Boolean() + * @generated + */ + EDataType NFP_BOOLEAN = eINSTANCE.getNFP_Boolean(); + + /** + * The meta object literal for the 'NFP Natural' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getNFP_Natural() + * @generated + */ + EDataType NFP_NATURAL = eINSTANCE.getNFP_Natural(); + + /** + * The meta object literal for the 'NFP String' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getNFP_String() + * @generated + */ + EDataType NFP_STRING = eINSTANCE.getNFP_String(); + + /** + * The meta object literal for the 'NFP Real' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getNFP_Real() + * @generated + */ + EDataType NFP_REAL = eINSTANCE.getNFP_Real(); + + /** + * The meta object literal for the 'NFP Integer' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getNFP_Integer() + * @generated + */ + EDataType NFP_INTEGER = eINSTANCE.getNFP_Integer(); + + /** + * The meta object literal for the 'NFP Date Time' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getNFP_DateTime() + * @generated + */ + EDataType NFP_DATE_TIME = eINSTANCE.getNFP_DateTime(); + + /** + * The meta object literal for the 'NFP Duration' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getNFP_Duration() + * @generated + */ + EDataType NFP_DURATION = eINSTANCE.getNFP_Duration(); + + /** + * The meta object literal for the 'NFP Data Tx Rate' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getNFP_DataTxRate() + * @generated + */ + EDataType NFP_DATA_TX_RATE = eINSTANCE.getNFP_DataTxRate(); + + /** + * The meta object literal for the 'NFP Frequency' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getNFP_Frequency() + * @generated + */ + EDataType NFP_FREQUENCY = eINSTANCE.getNFP_Frequency(); + + /** + * The meta object literal for the 'NFP Power' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getNFP_Power() + * @generated + */ + EDataType NFP_POWER = eINSTANCE.getNFP_Power(); + + /** + * The meta object literal for the 'NFP Data Size' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getNFP_DataSize() + * @generated + */ + EDataType NFP_DATA_SIZE = eINSTANCE.getNFP_DataSize(); + + /** + * The meta object literal for the 'NFP Energy' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getNFP_Energy() + * @generated + */ + EDataType NFP_ENERGY = eINSTANCE.getNFP_Energy(); + + /** + * The meta object literal for the 'NFP Length' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getNFP_Length() + * @generated + */ + EDataType NFP_LENGTH = eINSTANCE.getNFP_Length(); + + /** + * The meta object literal for the 'NFP Area' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getNFP_Area() + * @generated + */ + EDataType NFP_AREA = eINSTANCE.getNFP_Area(); + + /** + * The meta object literal for the 'Arrival Pattern' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getArrivalPattern() + * @generated + */ + EDataType ARRIVAL_PATTERN = eINSTANCE.getArrivalPattern(); + + /** + * The meta object literal for the 'Periodic Pattern' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getPeriodicPattern() + * @generated + */ + EDataType PERIODIC_PATTERN = eINSTANCE.getPeriodicPattern(); + + /** + * The meta object literal for the 'Aperiodic Pattern' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getAperiodicPattern() + * @generated + */ + EDataType APERIODIC_PATTERN = eINSTANCE.getAperiodicPattern(); + + /** + * The meta object literal for the 'Closed Pattern' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getClosedPattern() + * @generated + */ + EDataType CLOSED_PATTERN = eINSTANCE.getClosedPattern(); + + /** + * The meta object literal for the 'Sporadic Pattern' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getSporadicPattern() + * @generated + */ + EDataType SPORADIC_PATTERN = eINSTANCE.getSporadicPattern(); + + /** + * The meta object literal for the 'Burst Pattern' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getBurstPattern() + * @generated + */ + EDataType BURST_PATTERN = eINSTANCE.getBurstPattern(); + + /** + * The meta object literal for the 'Irregular Pattern' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getIrregularPattern() + * @generated + */ + EDataType IRREGULAR_PATTERN = eINSTANCE.getIrregularPattern(); + + /** + * The meta object literal for the 'NFP Percentage' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getNFP_Percentage() + * @generated + */ + EDataType NFP_PERCENTAGE = eINSTANCE.getNFP_Percentage(); + + /** + * The meta object literal for the 'Open Pattern' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getOpenPattern() + * @generated + */ + EDataType OPEN_PATTERN = eINSTANCE.getOpenPattern(); + + /** + * The meta object literal for the 'NFP Price' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getNFP_Price() + * @generated + */ + EDataType NFP_PRICE = eINSTANCE.getNFP_Price(); + + /** + * The meta object literal for the 'NFP Weight' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.impl.BasicNFP_TypesPackageImpl#getNFP_Weight() + * @generated + */ + EDataType NFP_WEIGHT = eINSTANCE.getNFP_Weight(); + + } + +} //BasicNFP_TypesPackage diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/BasicNFP_Types/DirectionKind.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/BasicNFP_Types/DirectionKind.java new file mode 100644 index 00000000000..23a49bdfd49 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/BasicNFP_Types/DirectionKind.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.BasicNFP_Types; + +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 'Direction Kind', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.BasicNFP_TypesPackage#getDirectionKind() + * @model + * @generated + */ +public enum DirectionKind implements Enumerator { + /** + * The 'Incr' literal object. + * + * + * @see #INCR_VALUE + * @generated + * @ordered + */ + INCR(0, "incr", "incr"), + + /** + * The 'Decr' literal object. + * + * + * @see #DECR_VALUE + * @generated + * @ordered + */ + DECR(1, "decr", "decr"); + + /** + * The 'Incr' literal value. + * + *

+ * 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 VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Direction Kind' literal with the specified literal value. + * + * + * @generated + */ + public static DirectionKind get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + DirectionKind result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Direction Kind' literal with the specified name. + * + * + * @generated + */ + public static DirectionKind getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + DirectionKind result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Direction Kind' literal with the specified integer value. + * + * + * @generated + */ + public static DirectionKind get(int value) { + switch (value) { + case INCR_VALUE: return INCR; + case DECR_VALUE: return DECR; + } + return null; + } + + /** + * + * + * @generated + */ + private final int value; + + /** + * + * + * @generated + */ + private final String name; + + /** + * + * + * @generated + */ + private final String literal; + + /** + * Only this class can construct instances. + * + * + * @generated + */ + private DirectionKind(int value, String name, String literal) { + this.value = value; + this.name = name; + this.literal = literal; + } + + /** + * + * + * @generated + */ + public int getValue() { + return value; + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public String getLiteral() { + return literal; + } + + /** + * Returns the literal value of the enumerator, which is its string representation. + * + * + * @generated + */ + @Override + public String toString() { + return literal; + } + +} //DirectionKind diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/BasicNFP_Types/SourceKind.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/BasicNFP_Types/SourceKind.java new file mode 100644 index 00000000000..12366fdb11e --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/BasicNFP_Types/SourceKind.java @@ -0,0 +1,273 @@ +/***************************************************************************** + * 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 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 'Source Kind', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.BasicNFP_TypesPackage#getSourceKind() + * @model + * @generated + */ +public enum SourceKind implements Enumerator { + /** + * The 'Est' literal object. + * + * + * @see #EST_VALUE + * @generated + * @ordered + */ + EST(0, "est", "est"), + + /** + * The 'Meas' literal object. + * + * + * @see #MEAS_VALUE + * @generated + * @ordered + */ + MEAS(1, "meas", "meas"), + + /** + * The 'Calc' literal object. + * + * + * @see #CALC_VALUE + * @generated + * @ordered + */ + CALC(2, "calc", "calc"), + + /** + * The 'Req' literal object. + * + * + * @see #REQ_VALUE + * @generated + * @ordered + */ + REQ(3, "req", "req"); + + /** + * The 'Est' literal value. + * + *

+ * 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 VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Source Kind' literal with the specified literal value. + * + * + * @generated + */ + public static SourceKind get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + SourceKind result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Source Kind' literal with the specified name. + * + * + * @generated + */ + public static SourceKind getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + SourceKind result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Source Kind' literal with the specified integer value. + * + * + * @generated + */ + public static SourceKind get(int value) { + switch (value) { + case EST_VALUE: return EST; + case MEAS_VALUE: return MEAS; + case CALC_VALUE: return CALC; + case REQ_VALUE: return REQ; + } + return null; + } + + /** + * + * + * @generated + */ + private final int value; + + /** + * + * + * @generated + */ + private final String name; + + /** + * + * + * @generated + */ + private final String literal; + + /** + * Only this class can construct instances. + * + * + * @generated + */ + private SourceKind(int value, String name, String literal) { + this.value = value; + this.name = name; + this.literal = literal; + } + + /** + * + * + * @generated + */ + public int getValue() { + return value; + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public String getLiteral() { + return literal; + } + + /** + * Returns the literal value of the enumerator, which is its string representation. + * + * + * @generated + */ + @Override + public String toString() { + return literal; + } + +} //SourceKind diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/BasicNFP_Types/StatisticalQualifierKind.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/BasicNFP_Types/StatisticalQualifierKind.java new file mode 100644 index 00000000000..ba9458c6f16 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/BasicNFP_Types/StatisticalQualifierKind.java @@ -0,0 +1,408 @@ +/***************************************************************************** + * 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 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 'Statistical Qualifier Kind', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.BasicNFP_TypesPackage#getStatisticalQualifierKind() + * @model + * @generated + */ +public enum StatisticalQualifierKind implements Enumerator { + /** + * The 'Max' literal object. + * + * + * @see #MAX_VALUE + * @generated + * @ordered + */ + MAX(0, "max", "max"), + + /** + * The 'Min' literal object. + * + * + * @see #MIN_VALUE + * @generated + * @ordered + */ + MIN(1, "min", "min"), + + /** + * The 'Mean' literal object. + * + * + * @see #MEAN_VALUE + * @generated + * @ordered + */ + MEAN(2, "mean", "mean"), + + /** + * The 'Range' literal object. + * + * + * @see #RANGE_VALUE + * @generated + * @ordered + */ + RANGE(3, "range", "range"), + + /** + * The 'Percent' literal object. + * + * + * @see #PERCENT_VALUE + * @generated + * @ordered + */ + PERCENT(4, "percent", "percent"), + + /** + * The 'Distrib' literal object. + * + * + * @see #DISTRIB_VALUE + * @generated + * @ordered + */ + DISTRIB(5, "distrib", "distrib"), + + /** + * The 'Determ' literal object. + * + * + * @see #DETERM_VALUE + * @generated + * @ordered + */ + DETERM(6, "determ", "determ"), + + /** + * The 'Other' literal object. + * + * + * @see #OTHER_VALUE + * @generated + * @ordered + */ + OTHER(7, "other", "other"), + + /** + * The 'Variance' literal object. + * + * + * @see #VARIANCE_VALUE + * @generated + * @ordered + */ + VARIANCE(8, "variance", "variance"); + + /** + * The 'Max' literal value. + * + *

+ * 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 List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Statistical Qualifier Kind' literal with the specified literal value. + * + * + * @generated + */ + public static StatisticalQualifierKind get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + StatisticalQualifierKind result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Statistical Qualifier Kind' literal with the specified name. + * + * + * @generated + */ + public static StatisticalQualifierKind getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + StatisticalQualifierKind result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Statistical Qualifier Kind' literal with the specified integer value. + * + * + * @generated + */ + public static StatisticalQualifierKind get(int value) { + switch (value) { + case MAX_VALUE: return MAX; + case MIN_VALUE: return MIN; + case MEAN_VALUE: return MEAN; + case RANGE_VALUE: return RANGE; + case PERCENT_VALUE: return PERCENT; + case DISTRIB_VALUE: return DISTRIB; + case DETERM_VALUE: return DETERM; + case OTHER_VALUE: return OTHER; + case VARIANCE_VALUE: return VARIANCE; + } + return null; + } + + /** + * + * + * @generated + */ + private final int value; + + /** + * + * + * @generated + */ + private final String name; + + /** + * + * + * @generated + */ + private final String literal; + + /** + * Only this class can construct instances. + * + * + * @generated + */ + private StatisticalQualifierKind(int value, String name, String literal) { + this.value = value; + this.name = name; + this.literal = literal; + } + + /** + * + * + * @generated + */ + public int getValue() { + return value; + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public String getLiteral() { + return literal; + } + + /** + * Returns the literal value of the enumerator, which is its string representation. + * + * + * @generated + */ + @Override + public String toString() { + return literal; + } + +} //StatisticalQualifierKind diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/BasicNFP_Types/impl/BasicNFP_TypesFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/BasicNFP_Types/impl/BasicNFP_TypesFactoryImpl.java new file mode 100644 index 00000000000..57ba7c77b18 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/BasicNFP_Types/impl/BasicNFP_TypesFactoryImpl.java @@ -0,0 +1,766 @@ +/***************************************************************************** + * 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.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.BasicNFP_Types.*; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class BasicNFP_TypesFactoryImpl extends EFactoryImpl implements BasicNFP_TypesFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static BasicNFP_TypesFactory init() { + try { + BasicNFP_TypesFactory theBasicNFP_TypesFactory = (BasicNFP_TypesFactory)EPackage.Registry.INSTANCE.getEFactory("http:///MARTE_Library/BasicNFP_Types.ecore"); + if (theBasicNFP_TypesFactory != null) { + return theBasicNFP_TypesFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new BasicNFP_TypesFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public BasicNFP_TypesFactoryImpl() { + 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 BasicNFP_TypesPackage.SOURCE_KIND: + return createSourceKindFromString(eDataType, initialValue); + case BasicNFP_TypesPackage.DIRECTION_KIND: + return createDirectionKindFromString(eDataType, initialValue); + case BasicNFP_TypesPackage.STATISTICAL_QUALIFIER_KIND: + return createStatisticalQualifierKindFromString(eDataType, initialValue); + case BasicNFP_TypesPackage.NFP_COMMON_TYPE: + return createNFP_CommonTypeFromString(eDataType, initialValue); + case BasicNFP_TypesPackage.NFP_BOOLEAN: + return createNFP_BooleanFromString(eDataType, initialValue); + case BasicNFP_TypesPackage.NFP_NATURAL: + return createNFP_NaturalFromString(eDataType, initialValue); + case BasicNFP_TypesPackage.NFP_STRING: + return createNFP_StringFromString(eDataType, initialValue); + case BasicNFP_TypesPackage.NFP_REAL: + return createNFP_RealFromString(eDataType, initialValue); + case BasicNFP_TypesPackage.NFP_INTEGER: + return createNFP_IntegerFromString(eDataType, initialValue); + case BasicNFP_TypesPackage.NFP_DATE_TIME: + return createNFP_DateTimeFromString(eDataType, initialValue); + case BasicNFP_TypesPackage.NFP_DURATION: + return createNFP_DurationFromString(eDataType, initialValue); + case BasicNFP_TypesPackage.NFP_DATA_TX_RATE: + return createNFP_DataTxRateFromString(eDataType, initialValue); + case BasicNFP_TypesPackage.NFP_FREQUENCY: + return createNFP_FrequencyFromString(eDataType, initialValue); + case BasicNFP_TypesPackage.NFP_POWER: + return createNFP_PowerFromString(eDataType, initialValue); + case BasicNFP_TypesPackage.NFP_DATA_SIZE: + return createNFP_DataSizeFromString(eDataType, initialValue); + case BasicNFP_TypesPackage.NFP_ENERGY: + return createNFP_EnergyFromString(eDataType, initialValue); + case BasicNFP_TypesPackage.NFP_LENGTH: + return createNFP_LengthFromString(eDataType, initialValue); + case BasicNFP_TypesPackage.NFP_AREA: + return createNFP_AreaFromString(eDataType, initialValue); + case BasicNFP_TypesPackage.ARRIVAL_PATTERN: + return createArrivalPatternFromString(eDataType, initialValue); + case BasicNFP_TypesPackage.PERIODIC_PATTERN: + return createPeriodicPatternFromString(eDataType, initialValue); + case BasicNFP_TypesPackage.APERIODIC_PATTERN: + return createAperiodicPatternFromString(eDataType, initialValue); + case BasicNFP_TypesPackage.CLOSED_PATTERN: + return createClosedPatternFromString(eDataType, initialValue); + case BasicNFP_TypesPackage.SPORADIC_PATTERN: + return createSporadicPatternFromString(eDataType, initialValue); + case BasicNFP_TypesPackage.BURST_PATTERN: + return createBurstPatternFromString(eDataType, initialValue); + case BasicNFP_TypesPackage.IRREGULAR_PATTERN: + return createIrregularPatternFromString(eDataType, initialValue); + case BasicNFP_TypesPackage.NFP_PERCENTAGE: + return createNFP_PercentageFromString(eDataType, initialValue); + case BasicNFP_TypesPackage.OPEN_PATTERN: + return createOpenPatternFromString(eDataType, initialValue); + case BasicNFP_TypesPackage.NFP_PRICE: + return createNFP_PriceFromString(eDataType, initialValue); + case BasicNFP_TypesPackage.NFP_WEIGHT: + return createNFP_WeightFromString(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 BasicNFP_TypesPackage.SOURCE_KIND: + return convertSourceKindToString(eDataType, instanceValue); + case BasicNFP_TypesPackage.DIRECTION_KIND: + return convertDirectionKindToString(eDataType, instanceValue); + case BasicNFP_TypesPackage.STATISTICAL_QUALIFIER_KIND: + return convertStatisticalQualifierKindToString(eDataType, instanceValue); + case BasicNFP_TypesPackage.NFP_COMMON_TYPE: + return convertNFP_CommonTypeToString(eDataType, instanceValue); + case BasicNFP_TypesPackage.NFP_BOOLEAN: + return convertNFP_BooleanToString(eDataType, instanceValue); + case BasicNFP_TypesPackage.NFP_NATURAL: + return convertNFP_NaturalToString(eDataType, instanceValue); + case BasicNFP_TypesPackage.NFP_STRING: + return convertNFP_StringToString(eDataType, instanceValue); + case BasicNFP_TypesPackage.NFP_REAL: + return convertNFP_RealToString(eDataType, instanceValue); + case BasicNFP_TypesPackage.NFP_INTEGER: + return convertNFP_IntegerToString(eDataType, instanceValue); + case BasicNFP_TypesPackage.NFP_DATE_TIME: + return convertNFP_DateTimeToString(eDataType, instanceValue); + case BasicNFP_TypesPackage.NFP_DURATION: + return convertNFP_DurationToString(eDataType, instanceValue); + case BasicNFP_TypesPackage.NFP_DATA_TX_RATE: + return convertNFP_DataTxRateToString(eDataType, instanceValue); + case BasicNFP_TypesPackage.NFP_FREQUENCY: + return convertNFP_FrequencyToString(eDataType, instanceValue); + case BasicNFP_TypesPackage.NFP_POWER: + return convertNFP_PowerToString(eDataType, instanceValue); + case BasicNFP_TypesPackage.NFP_DATA_SIZE: + return convertNFP_DataSizeToString(eDataType, instanceValue); + case BasicNFP_TypesPackage.NFP_ENERGY: + return convertNFP_EnergyToString(eDataType, instanceValue); + case BasicNFP_TypesPackage.NFP_LENGTH: + return convertNFP_LengthToString(eDataType, instanceValue); + case BasicNFP_TypesPackage.NFP_AREA: + return convertNFP_AreaToString(eDataType, instanceValue); + case BasicNFP_TypesPackage.ARRIVAL_PATTERN: + return convertArrivalPatternToString(eDataType, instanceValue); + case BasicNFP_TypesPackage.PERIODIC_PATTERN: + return convertPeriodicPatternToString(eDataType, instanceValue); + case BasicNFP_TypesPackage.APERIODIC_PATTERN: + return convertAperiodicPatternToString(eDataType, instanceValue); + case BasicNFP_TypesPackage.CLOSED_PATTERN: + return convertClosedPatternToString(eDataType, instanceValue); + case BasicNFP_TypesPackage.SPORADIC_PATTERN: + return convertSporadicPatternToString(eDataType, instanceValue); + case BasicNFP_TypesPackage.BURST_PATTERN: + return convertBurstPatternToString(eDataType, instanceValue); + case BasicNFP_TypesPackage.IRREGULAR_PATTERN: + return convertIrregularPatternToString(eDataType, instanceValue); + case BasicNFP_TypesPackage.NFP_PERCENTAGE: + return convertNFP_PercentageToString(eDataType, instanceValue); + case BasicNFP_TypesPackage.OPEN_PATTERN: + return convertOpenPatternToString(eDataType, instanceValue); + case BasicNFP_TypesPackage.NFP_PRICE: + return convertNFP_PriceToString(eDataType, instanceValue); + case BasicNFP_TypesPackage.NFP_WEIGHT: + return convertNFP_WeightToString(eDataType, instanceValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public SourceKind createSourceKindFromString(EDataType eDataType, String initialValue) { + SourceKind result = SourceKind.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertSourceKindToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public DirectionKind createDirectionKindFromString(EDataType eDataType, String initialValue) { + DirectionKind result = DirectionKind.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertDirectionKindToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public StatisticalQualifierKind createStatisticalQualifierKindFromString(EDataType eDataType, String initialValue) { + StatisticalQualifierKind result = StatisticalQualifierKind.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertStatisticalQualifierKindToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public String createNFP_CommonTypeFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertNFP_CommonTypeToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public String createNFP_BooleanFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertNFP_BooleanToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public String createNFP_NaturalFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertNFP_NaturalToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public String createNFP_StringFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertNFP_StringToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public String createNFP_RealFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertNFP_RealToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public String createNFP_IntegerFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertNFP_IntegerToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public String createNFP_DateTimeFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertNFP_DateTimeToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public String createNFP_DurationFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertNFP_DurationToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public String createNFP_DataTxRateFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertNFP_DataTxRateToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public String createNFP_FrequencyFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertNFP_FrequencyToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public String createNFP_PowerFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertNFP_PowerToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public String createNFP_DataSizeFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertNFP_DataSizeToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public String createNFP_EnergyFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertNFP_EnergyToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public String createNFP_LengthFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertNFP_LengthToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public String createNFP_AreaFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertNFP_AreaToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public String createArrivalPatternFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertArrivalPatternToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public String createPeriodicPatternFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertPeriodicPatternToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public String createAperiodicPatternFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertAperiodicPatternToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public String createClosedPatternFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertClosedPatternToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public String createSporadicPatternFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertSporadicPatternToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public String createBurstPatternFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertBurstPatternToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public String createIrregularPatternFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertIrregularPatternToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public String createNFP_PercentageFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertNFP_PercentageToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public String createOpenPatternFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertOpenPatternToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public String createNFP_PriceFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertNFP_PriceToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public String createNFP_WeightFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertNFP_WeightToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public BasicNFP_TypesPackage getBasicNFP_TypesPackage() { + return (BasicNFP_TypesPackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static BasicNFP_TypesPackage getPackage() { + return BasicNFP_TypesPackage.eINSTANCE; + } + +} //BasicNFP_TypesFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/BasicNFP_Types/impl/BasicNFP_TypesPackageImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/BasicNFP_Types/impl/BasicNFP_TypesPackageImpl.java new file mode 100644 index 00000000000..75be2e22a74 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/BasicNFP_Types/impl/BasicNFP_TypesPackageImpl.java @@ -0,0 +1,948 @@ +/***************************************************************************** + * 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.impl; + +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_TypesFactory; +import org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.BasicNFP_TypesPackage; +import org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.DirectionKind; +import org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.SourceKind; +import org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.StatisticalQualifierKind; + +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.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 BasicNFP_TypesPackageImpl extends EPackageImpl implements BasicNFP_TypesPackage { + /** + * + * + * @generated + */ + private EEnum sourceKindEEnum = null; + + /** + * + * + * @generated + */ + private EEnum directionKindEEnum = null; + + /** + * + * + * @generated + */ + private EEnum statisticalQualifierKindEEnum = null; + + /** + * + * + * @generated + */ + private EDataType nfP_CommonTypeEDataType = null; + + /** + * + * + * @generated + */ + private EDataType nfP_BooleanEDataType = null; + + /** + * + * + * @generated + */ + private EDataType nfP_NaturalEDataType = null; + + /** + * + * + * @generated + */ + private EDataType nfP_StringEDataType = null; + + /** + * + * + * @generated + */ + private EDataType nfP_RealEDataType = null; + + /** + * + * + * @generated + */ + private EDataType nfP_IntegerEDataType = null; + + /** + * + * + * @generated + */ + private EDataType nfP_DateTimeEDataType = null; + + /** + * + * + * @generated + */ + private EDataType nfP_DurationEDataType = null; + + /** + * + * + * @generated + */ + private EDataType nfP_DataTxRateEDataType = null; + + /** + * + * + * @generated + */ + private EDataType nfP_FrequencyEDataType = null; + + /** + * + * + * @generated + */ + private EDataType nfP_PowerEDataType = null; + + /** + * + * + * @generated + */ + private EDataType nfP_DataSizeEDataType = null; + + /** + * + * + * @generated + */ + private EDataType nfP_EnergyEDataType = null; + + /** + * + * + * @generated + */ + private EDataType nfP_LengthEDataType = null; + + /** + * + * + * @generated + */ + private EDataType nfP_AreaEDataType = null; + + /** + * + * + * @generated + */ + private EDataType arrivalPatternEDataType = null; + + /** + * + * + * @generated + */ + private EDataType periodicPatternEDataType = null; + + /** + * + * + * @generated + */ + private EDataType aperiodicPatternEDataType = null; + + /** + * + * + * @generated + */ + private EDataType closedPatternEDataType = null; + + /** + * + * + * @generated + */ + private EDataType sporadicPatternEDataType = null; + + /** + * + * + * @generated + */ + private EDataType burstPatternEDataType = null; + + /** + * + * + * @generated + */ + private EDataType irregularPatternEDataType = null; + + /** + * + * + * @generated + */ + private EDataType nfP_PercentageEDataType = null; + + /** + * + * + * @generated + */ + private EDataType openPatternEDataType = null; + + /** + * + * + * @generated + */ + private EDataType nfP_PriceEDataType = null; + + /** + * + * + * @generated + */ + private EDataType nfP_WeightEDataType = 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.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 + *

    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @see org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.GRM_BasicTypesFactory + * @model kind="package" + * @generated + */ +public interface GRM_BasicTypesPackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "GRM_BasicTypes"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "http:///MARTE_Library/GRM_BasicTypes.ecore"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "MARTE_Library.GRM_BasicTypes"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + GRM_BasicTypesPackage eINSTANCE = org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.impl.GRM_BasicTypesPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.SchedPolicyKind Sched Policy Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.SchedPolicyKind + * @see org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.impl.GRM_BasicTypesPackageImpl#getSchedPolicyKind() + * @generated + */ + int SCHED_POLICY_KIND = 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.ProtectProtocolKind Protect Protocol Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.ProtectProtocolKind + * @see org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.impl.GRM_BasicTypesPackageImpl#getProtectProtocolKind() + * @generated + */ + int PROTECT_PROTOCOL_KIND = 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.PeriodicServerKind Periodic Server Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.PeriodicServerKind + * @see org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.impl.GRM_BasicTypesPackageImpl#getPeriodicServerKind() + * @generated + */ + int PERIODIC_SERVER_KIND = 2; + + /** + * The meta object id for the 'EDF Parameters' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.impl.GRM_BasicTypesPackageImpl#getEDF_Parameters() + * @generated + */ + int EDF_PARAMETERS = 3; + + /** + * The meta object id for the 'Sched Parameters' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.impl.GRM_BasicTypesPackageImpl#getSchedParameters() + * @generated + */ + int SCHED_PARAMETERS = 4; + + /** + * The meta object id for the 'Fixed Priority Parameters' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.impl.GRM_BasicTypesPackageImpl#getFixedPriorityParameters() + * @generated + */ + int FIXED_PRIORITY_PARAMETERS = 5; + + /** + * The meta object id for the 'Periodic Server Parameters' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.impl.GRM_BasicTypesPackageImpl#getPeriodicServerParameters() + * @generated + */ + int PERIODIC_SERVER_PARAMETERS = 6; + + /** + * The meta object id for the 'Pooling Parameters' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.impl.GRM_BasicTypesPackageImpl#getPoolingParameters() + * @generated + */ + int POOLING_PARAMETERS = 7; + + /** + * The meta object id for the 'Schedule Specification' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.impl.GRM_BasicTypesPackageImpl#getScheduleSpecification() + * @generated + */ + int SCHEDULE_SPECIFICATION = 8; + + /** + * The meta object id for the 'Table Driven Schedule' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.impl.GRM_BasicTypesPackageImpl#getTableDrivenSchedule() + * @generated + */ + int TABLE_DRIVEN_SCHEDULE = 9; + + /** + * The meta object id for the 'Table Entry Type' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.impl.GRM_BasicTypesPackageImpl#getTableEntryType() + * @generated + */ + int TABLE_ENTRY_TYPE = 10; + + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.SchedPolicyKind Sched Policy Kind}'. + * + * + * @return the meta object for enum 'Sched Policy Kind'. + * @see org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.SchedPolicyKind + * @generated + */ + EEnum getSchedPolicyKind(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.ProtectProtocolKind Protect Protocol Kind}'. + * + * + * @return the meta object for enum 'Protect Protocol Kind'. + * @see org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.ProtectProtocolKind + * @generated + */ + EEnum getProtectProtocolKind(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.PeriodicServerKind Periodic Server Kind}'. + * + * + * @return the meta object for enum 'Periodic Server Kind'. + * @see org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.PeriodicServerKind + * @generated + */ + EEnum getPeriodicServerKind(); + + /** + * Returns the meta object for data type '{@link java.lang.String EDF Parameters}'. + * + * + * @return the meta object for data type 'EDF Parameters'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getEDF_Parameters(); + + /** + * Returns the meta object for data type '{@link java.lang.String Sched Parameters}'. + * + * + * @return the meta object for data type 'Sched Parameters'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getSchedParameters(); + + /** + * Returns the meta object for data type '{@link java.lang.String Fixed Priority Parameters}'. + * + * + * @return the meta object for data type 'Fixed Priority Parameters'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getFixedPriorityParameters(); + + /** + * Returns the meta object for data type '{@link java.lang.String Periodic Server Parameters}'. + * + * + * @return the meta object for data type 'Periodic Server Parameters'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getPeriodicServerParameters(); + + /** + * Returns the meta object for data type '{@link java.lang.String Pooling Parameters}'. + * + * + * @return the meta object for data type 'Pooling Parameters'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getPoolingParameters(); + + /** + * Returns the meta object for data type '{@link java.lang.String Schedule Specification}'. + * + * + * @return the meta object for data type 'Schedule Specification'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getScheduleSpecification(); + + /** + * Returns the meta object for data type '{@link java.lang.String Table Driven Schedule}'. + * + * + * @return the meta object for data type 'Table Driven Schedule'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getTableDrivenSchedule(); + + /** + * Returns the meta object for data type '{@link java.lang.String Table Entry Type}'. + * + * + * @return the meta object for data type 'Table Entry Type'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getTableEntryType(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + GRM_BasicTypesFactory getGRM_BasicTypesFactory(); + + /** + * + * Defines literals for the meta objects that represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.SchedPolicyKind Sched Policy Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.SchedPolicyKind + * @see org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.impl.GRM_BasicTypesPackageImpl#getSchedPolicyKind() + * @generated + */ + EEnum SCHED_POLICY_KIND = eINSTANCE.getSchedPolicyKind(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.ProtectProtocolKind Protect Protocol Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.ProtectProtocolKind + * @see org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.impl.GRM_BasicTypesPackageImpl#getProtectProtocolKind() + * @generated + */ + EEnum PROTECT_PROTOCOL_KIND = eINSTANCE.getProtectProtocolKind(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.PeriodicServerKind Periodic Server Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.PeriodicServerKind + * @see org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.impl.GRM_BasicTypesPackageImpl#getPeriodicServerKind() + * @generated + */ + EEnum PERIODIC_SERVER_KIND = eINSTANCE.getPeriodicServerKind(); + + /** + * The meta object literal for the 'EDF Parameters' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.impl.GRM_BasicTypesPackageImpl#getEDF_Parameters() + * @generated + */ + EDataType EDF_PARAMETERS = eINSTANCE.getEDF_Parameters(); + + /** + * The meta object literal for the 'Sched Parameters' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.impl.GRM_BasicTypesPackageImpl#getSchedParameters() + * @generated + */ + EDataType SCHED_PARAMETERS = eINSTANCE.getSchedParameters(); + + /** + * The meta object literal for the 'Fixed Priority Parameters' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.impl.GRM_BasicTypesPackageImpl#getFixedPriorityParameters() + * @generated + */ + EDataType FIXED_PRIORITY_PARAMETERS = eINSTANCE.getFixedPriorityParameters(); + + /** + * The meta object literal for the 'Periodic Server Parameters' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.impl.GRM_BasicTypesPackageImpl#getPeriodicServerParameters() + * @generated + */ + EDataType PERIODIC_SERVER_PARAMETERS = eINSTANCE.getPeriodicServerParameters(); + + /** + * The meta object literal for the 'Pooling Parameters' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.impl.GRM_BasicTypesPackageImpl#getPoolingParameters() + * @generated + */ + EDataType POOLING_PARAMETERS = eINSTANCE.getPoolingParameters(); + + /** + * The meta object literal for the 'Schedule Specification' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.impl.GRM_BasicTypesPackageImpl#getScheduleSpecification() + * @generated + */ + EDataType SCHEDULE_SPECIFICATION = eINSTANCE.getScheduleSpecification(); + + /** + * The meta object literal for the 'Table Driven Schedule' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.impl.GRM_BasicTypesPackageImpl#getTableDrivenSchedule() + * @generated + */ + EDataType TABLE_DRIVEN_SCHEDULE = eINSTANCE.getTableDrivenSchedule(); + + /** + * The meta object literal for the 'Table Entry Type' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.impl.GRM_BasicTypesPackageImpl#getTableEntryType() + * @generated + */ + EDataType TABLE_ENTRY_TYPE = eINSTANCE.getTableEntryType(); + + } + +} //GRM_BasicTypesPackage diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/GRM_BasicTypes/PeriodicServerKind.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/GRM_BasicTypes/PeriodicServerKind.java new file mode 100644 index 00000000000..1b185044011 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/GRM_BasicTypes/PeriodicServerKind.java @@ -0,0 +1,273 @@ +/***************************************************************************** + * 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 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 'Periodic Server Kind', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.GRM_BasicTypesPackage#getPeriodicServerKind() + * @model + * @generated + */ +public enum PeriodicServerKind implements Enumerator { + /** + * The 'Sporadic' literal object. + * + * + * @see #SPORADIC_VALUE + * @generated + * @ordered + */ + SPORADIC(0, "Sporadic", "Sporadic"), + + /** + * The 'Deferrable' literal object. + * + * + * @see #DEFERRABLE_VALUE + * @generated + * @ordered + */ + DEFERRABLE(1, "Deferrable", "Deferrable"), + + /** + * The 'Undef' literal object. + * + * + * @see #UNDEF_VALUE + * @generated + * @ordered + */ + UNDEF(2, "Undef", "Undef"), + + /** + * The 'Other' literal object. + * + * + * @see #OTHER_VALUE + * @generated + * @ordered + */ + OTHER(3, "Other", "Other"); + + /** + * The 'Sporadic' literal value. + * + *

+ * 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 VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Periodic Server Kind' literal with the specified literal value. + * + * + * @generated + */ + public static PeriodicServerKind get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + PeriodicServerKind result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Periodic Server Kind' literal with the specified name. + * + * + * @generated + */ + public static PeriodicServerKind getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + PeriodicServerKind result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Periodic Server Kind' literal with the specified integer value. + * + * + * @generated + */ + public static PeriodicServerKind get(int value) { + switch (value) { + case SPORADIC_VALUE: return SPORADIC; + case DEFERRABLE_VALUE: return DEFERRABLE; + case UNDEF_VALUE: return UNDEF; + case OTHER_VALUE: return OTHER; + } + return null; + } + + /** + * + * + * @generated + */ + private final int value; + + /** + * + * + * @generated + */ + private final String name; + + /** + * + * + * @generated + */ + private final String literal; + + /** + * Only this class can construct instances. + * + * + * @generated + */ + private PeriodicServerKind(int value, String name, String literal) { + this.value = value; + this.name = name; + this.literal = literal; + } + + /** + * + * + * @generated + */ + public int getValue() { + return value; + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public String getLiteral() { + return literal; + } + + /** + * Returns the literal value of the enumerator, which is its string representation. + * + * + * @generated + */ + @Override + public String toString() { + return literal; + } + +} //PeriodicServerKind diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/GRM_BasicTypes/ProtectProtocolKind.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/GRM_BasicTypes/ProtectProtocolKind.java new file mode 100644 index 00000000000..3cf33890737 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/GRM_BasicTypes/ProtectProtocolKind.java @@ -0,0 +1,354 @@ +/***************************************************************************** + * 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 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 'Protect Protocol Kind', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.GRM_BasicTypesPackage#getProtectProtocolKind() + * @model + * @generated + */ +public enum ProtectProtocolKind implements Enumerator { + /** + * The 'FIFO' literal object. + * + * + * @see #FIFO_VALUE + * @generated + * @ordered + */ + FIFO(0, "FIFO", "FIFO"), + + /** + * The 'No Preemption' literal object. + * + * + * @see #NO_PREEMPTION_VALUE + * @generated + * @ordered + */ + NO_PREEMPTION(1, "NoPreemption", "NoPreemption"), + + /** + * The 'Priority Ceiling' literal object. + * + * + * @see #PRIORITY_CEILING_VALUE + * @generated + * @ordered + */ + PRIORITY_CEILING(2, "PriorityCeiling", "PriorityCeiling"), + + /** + * The 'Priority Inheritance' literal object. + * + * + * @see #PRIORITY_INHERITANCE_VALUE + * @generated + * @ordered + */ + PRIORITY_INHERITANCE(3, "PriorityInheritance", "PriorityInheritance"), + + /** + * The 'Stack Based' literal object. + * + * + * @see #STACK_BASED_VALUE + * @generated + * @ordered + */ + STACK_BASED(4, "StackBased", "StackBased"), + + /** + * The 'Undef' literal object. + * + * + * @see #UNDEF_VALUE + * @generated + * @ordered + */ + UNDEF(5, "Undef", "Undef"), + + /** + * The 'Other' literal object. + * + * + * @see #OTHER_VALUE + * @generated + * @ordered + */ + OTHER(6, "Other", "Other"); + + /** + * 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 = 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 VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Protect Protocol Kind' literal with the specified literal value. + * + * + * @generated + */ + public static ProtectProtocolKind get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + ProtectProtocolKind result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Protect Protocol Kind' literal with the specified name. + * + * + * @generated + */ + public static ProtectProtocolKind getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + ProtectProtocolKind result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Protect Protocol Kind' literal with the specified integer value. + * + * + * @generated + */ + public static ProtectProtocolKind get(int value) { + switch (value) { + case FIFO_VALUE: return FIFO; + case NO_PREEMPTION_VALUE: return NO_PREEMPTION; + case PRIORITY_CEILING_VALUE: return PRIORITY_CEILING; + case PRIORITY_INHERITANCE_VALUE: return PRIORITY_INHERITANCE; + case STACK_BASED_VALUE: return STACK_BASED; + case UNDEF_VALUE: return UNDEF; + case OTHER_VALUE: return OTHER; + } + return null; + } + + /** + * + * + * @generated + */ + private final int value; + + /** + * + * + * @generated + */ + private final String name; + + /** + * + * + * @generated + */ + private final String literal; + + /** + * Only this class can construct instances. + * + * + * @generated + */ + private ProtectProtocolKind(int value, String name, String literal) { + this.value = value; + this.name = name; + this.literal = literal; + } + + /** + * + * + * @generated + */ + public int getValue() { + return value; + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public String getLiteral() { + return literal; + } + + /** + * Returns the literal value of the enumerator, which is its string representation. + * + * + * @generated + */ + @Override + public String toString() { + return literal; + } + +} //ProtectProtocolKind diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/GRM_BasicTypes/SchedPolicyKind.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/GRM_BasicTypes/SchedPolicyKind.java new file mode 100644 index 00000000000..47d75804e75 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/GRM_BasicTypes/SchedPolicyKind.java @@ -0,0 +1,381 @@ +/***************************************************************************** + * 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 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 'Sched Policy Kind', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.GRM_BasicTypesPackage#getSchedPolicyKind() + * @model + * @generated + */ +public enum SchedPolicyKind implements Enumerator { + /** + * The 'Earliest Deadline First' literal object. + * + * + * @see #EARLIEST_DEADLINE_FIRST_VALUE + * @generated + * @ordered + */ + EARLIEST_DEADLINE_FIRST(0, "EarliestDeadlineFirst", "EarliestDeadlineFirst"), + + /** + * The 'FIFO' literal object. + * + * + * @see #FIFO_VALUE + * @generated + * @ordered + */ + FIFO(1, "FIFO", "FIFO"), + + /** + * The 'Fixed Priority' literal object. + * + * + * @see #FIXED_PRIORITY_VALUE + * @generated + * @ordered + */ + FIXED_PRIORITY(2, "FixedPriority", "FixedPriority"), + + /** + * The 'Least Laxity First' literal object. + * + * + * @see #LEAST_LAXITY_FIRST_VALUE + * @generated + * @ordered + */ + LEAST_LAXITY_FIRST(3, "LeastLaxityFirst", "LeastLaxityFirst"), + + /** + * The 'Round Robin' literal object. + * + * + * @see #ROUND_ROBIN_VALUE + * @generated + * @ordered + */ + ROUND_ROBIN(4, "RoundRobin", "RoundRobin"), + + /** + * The 'Time Table Driven' literal object. + * + * + * @see #TIME_TABLE_DRIVEN_VALUE + * @generated + * @ordered + */ + TIME_TABLE_DRIVEN(5, "TimeTableDriven", "TimeTableDriven"), + + /** + * The 'Undef' literal object. + * + * + * @see #UNDEF_VALUE + * @generated + * @ordered + */ + UNDEF(6, "Undef", "Undef"), + + /** + * The 'Other' literal object. + * + * + * @see #OTHER_VALUE + * @generated + * @ordered + */ + OTHER(7, "Other", "Other"); + + /** + * The 'Earliest Deadline First' literal value. + * + *

+ * 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 List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Sched Policy Kind' literal with the specified literal value. + * + * + * @generated + */ + public static SchedPolicyKind get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + SchedPolicyKind result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Sched Policy Kind' literal with the specified name. + * + * + * @generated + */ + public static SchedPolicyKind getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + SchedPolicyKind result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Sched Policy Kind' literal with the specified integer value. + * + * + * @generated + */ + public static SchedPolicyKind get(int value) { + switch (value) { + case EARLIEST_DEADLINE_FIRST_VALUE: return EARLIEST_DEADLINE_FIRST; + case FIFO_VALUE: return FIFO; + case FIXED_PRIORITY_VALUE: return FIXED_PRIORITY; + case LEAST_LAXITY_FIRST_VALUE: return LEAST_LAXITY_FIRST; + case ROUND_ROBIN_VALUE: return ROUND_ROBIN; + case TIME_TABLE_DRIVEN_VALUE: return TIME_TABLE_DRIVEN; + case UNDEF_VALUE: return UNDEF; + case OTHER_VALUE: return OTHER; + } + return null; + } + + /** + * + * + * @generated + */ + private final int value; + + /** + * + * + * @generated + */ + private final String name; + + /** + * + * + * @generated + */ + private final String literal; + + /** + * Only this class can construct instances. + * + * + * @generated + */ + private SchedPolicyKind(int value, String name, String literal) { + this.value = value; + this.name = name; + this.literal = literal; + } + + /** + * + * + * @generated + */ + public int getValue() { + return value; + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public String getLiteral() { + return literal; + } + + /** + * Returns the literal value of the enumerator, which is its string representation. + * + * + * @generated + */ + @Override + public String toString() { + return literal; + } + +} //SchedPolicyKind diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/GRM_BasicTypes/impl/GRM_BasicTypesFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/GRM_BasicTypes/impl/GRM_BasicTypesFactoryImpl.java new file mode 100644 index 00000000000..1f128468ee1 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/GRM_BasicTypes/impl/GRM_BasicTypesFactoryImpl.java @@ -0,0 +1,370 @@ +/***************************************************************************** + * 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.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.GRM_BasicTypes.*; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class GRM_BasicTypesFactoryImpl extends EFactoryImpl implements GRM_BasicTypesFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static GRM_BasicTypesFactory init() { + try { + GRM_BasicTypesFactory theGRM_BasicTypesFactory = (GRM_BasicTypesFactory)EPackage.Registry.INSTANCE.getEFactory("http:///MARTE_Library/GRM_BasicTypes.ecore"); + if (theGRM_BasicTypesFactory != null) { + return theGRM_BasicTypesFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new GRM_BasicTypesFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public GRM_BasicTypesFactoryImpl() { + 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 GRM_BasicTypesPackage.SCHED_POLICY_KIND: + return createSchedPolicyKindFromString(eDataType, initialValue); + case GRM_BasicTypesPackage.PROTECT_PROTOCOL_KIND: + return createProtectProtocolKindFromString(eDataType, initialValue); + case GRM_BasicTypesPackage.PERIODIC_SERVER_KIND: + return createPeriodicServerKindFromString(eDataType, initialValue); + case GRM_BasicTypesPackage.EDF_PARAMETERS: + return createEDF_ParametersFromString(eDataType, initialValue); + case GRM_BasicTypesPackage.SCHED_PARAMETERS: + return createSchedParametersFromString(eDataType, initialValue); + case GRM_BasicTypesPackage.FIXED_PRIORITY_PARAMETERS: + return createFixedPriorityParametersFromString(eDataType, initialValue); + case GRM_BasicTypesPackage.PERIODIC_SERVER_PARAMETERS: + return createPeriodicServerParametersFromString(eDataType, initialValue); + case GRM_BasicTypesPackage.POOLING_PARAMETERS: + return createPoolingParametersFromString(eDataType, initialValue); + case GRM_BasicTypesPackage.SCHEDULE_SPECIFICATION: + return createScheduleSpecificationFromString(eDataType, initialValue); + case GRM_BasicTypesPackage.TABLE_DRIVEN_SCHEDULE: + return createTableDrivenScheduleFromString(eDataType, initialValue); + case GRM_BasicTypesPackage.TABLE_ENTRY_TYPE: + return createTableEntryTypeFromString(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 GRM_BasicTypesPackage.SCHED_POLICY_KIND: + return convertSchedPolicyKindToString(eDataType, instanceValue); + case GRM_BasicTypesPackage.PROTECT_PROTOCOL_KIND: + return convertProtectProtocolKindToString(eDataType, instanceValue); + case GRM_BasicTypesPackage.PERIODIC_SERVER_KIND: + return convertPeriodicServerKindToString(eDataType, instanceValue); + case GRM_BasicTypesPackage.EDF_PARAMETERS: + return convertEDF_ParametersToString(eDataType, instanceValue); + case GRM_BasicTypesPackage.SCHED_PARAMETERS: + return convertSchedParametersToString(eDataType, instanceValue); + case GRM_BasicTypesPackage.FIXED_PRIORITY_PARAMETERS: + return convertFixedPriorityParametersToString(eDataType, instanceValue); + case GRM_BasicTypesPackage.PERIODIC_SERVER_PARAMETERS: + return convertPeriodicServerParametersToString(eDataType, instanceValue); + case GRM_BasicTypesPackage.POOLING_PARAMETERS: + return convertPoolingParametersToString(eDataType, instanceValue); + case GRM_BasicTypesPackage.SCHEDULE_SPECIFICATION: + return convertScheduleSpecificationToString(eDataType, instanceValue); + case GRM_BasicTypesPackage.TABLE_DRIVEN_SCHEDULE: + return convertTableDrivenScheduleToString(eDataType, instanceValue); + case GRM_BasicTypesPackage.TABLE_ENTRY_TYPE: + return convertTableEntryTypeToString(eDataType, instanceValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public SchedPolicyKind createSchedPolicyKindFromString(EDataType eDataType, String initialValue) { + SchedPolicyKind result = SchedPolicyKind.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertSchedPolicyKindToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public ProtectProtocolKind createProtectProtocolKindFromString(EDataType eDataType, String initialValue) { + ProtectProtocolKind result = ProtectProtocolKind.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertProtectProtocolKindToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public PeriodicServerKind createPeriodicServerKindFromString(EDataType eDataType, String initialValue) { + PeriodicServerKind result = PeriodicServerKind.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertPeriodicServerKindToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public String createEDF_ParametersFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertEDF_ParametersToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public String createSchedParametersFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertSchedParametersToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public String createFixedPriorityParametersFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertFixedPriorityParametersToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public String createPeriodicServerParametersFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertPeriodicServerParametersToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public String createPoolingParametersFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertPoolingParametersToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public String createScheduleSpecificationFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertScheduleSpecificationToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public String createTableDrivenScheduleFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertTableDrivenScheduleToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public String createTableEntryTypeFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertTableEntryTypeToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public GRM_BasicTypesPackage getGRM_BasicTypesPackage() { + return (GRM_BasicTypesPackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static GRM_BasicTypesPackage getPackage() { + return GRM_BasicTypesPackage.eINSTANCE; + } + +} //GRM_BasicTypesFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/GRM_BasicTypes/impl/GRM_BasicTypesPackageImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/GRM_BasicTypes/impl/GRM_BasicTypesPackageImpl.java new file mode 100644 index 00000000000..3199ea83564 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/GRM_BasicTypes/impl/GRM_BasicTypesPackageImpl.java @@ -0,0 +1,628 @@ +/***************************************************************************** + * 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.impl; + +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_BasicTypesFactory; +import org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.GRM_BasicTypesPackage; +import org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.PeriodicServerKind; +import org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.ProtectProtocolKind; +import org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.SchedPolicyKind; + +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.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 GRM_BasicTypesPackageImpl extends EPackageImpl implements GRM_BasicTypesPackage { + /** + * + * + * @generated + */ + private EEnum schedPolicyKindEEnum = null; + + /** + * + * + * @generated + */ + private EEnum protectProtocolKindEEnum = null; + + /** + * + * + * @generated + */ + private EEnum periodicServerKindEEnum = null; + + /** + * + * + * @generated + */ + private EDataType edF_ParametersEDataType = null; + + /** + * + * + * @generated + */ + private EDataType schedParametersEDataType = null; + + /** + * + * + * @generated + */ + private EDataType fixedPriorityParametersEDataType = null; + + /** + * + * + * @generated + */ + private EDataType periodicServerParametersEDataType = null; + + /** + * + * + * @generated + */ + private EDataType poolingParametersEDataType = null; + + /** + * + * + * @generated + */ + private EDataType scheduleSpecificationEDataType = null; + + /** + * + * + * @generated + */ + private EDataType tableDrivenScheduleEDataType = null; + + /** + * + * + * @generated + */ + private EDataType tableEntryTypeEDataType = 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.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 + *

    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @see org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.MARTE_DataTypesFactory + * @model kind="package" + * @generated + */ +public interface MARTE_DataTypesPackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "MARTE_DataTypes"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "http:///MARTE_Library/MARTE_DataTypes.ecore"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "MARTE_Library.MARTE_DataTypes"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + MARTE_DataTypesPackage eINSTANCE = org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.impl.MARTE_DataTypesPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.TransmModeKind Transm Mode Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.TransmModeKind + * @see org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.impl.MARTE_DataTypesPackageImpl#getTransmModeKind() + * @generated + */ + int TRANSM_MODE_KIND = 0; + + /** + * The meta object id for the 'Integer Vector' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.impl.MARTE_DataTypesPackageImpl#getIntegerVector() + * @generated + */ + int INTEGER_VECTOR = 1; + + /** + * The meta object id for the 'Integer Matrix' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.impl.MARTE_DataTypesPackageImpl#getIntegerMatrix() + * @generated + */ + int INTEGER_MATRIX = 2; + + /** + * The meta object id for the 'VSL Expression' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.impl.MARTE_DataTypesPackageImpl#getVSL_Expression() + * @generated + */ + int VSL_EXPRESSION = 3; + + /** + * The meta object id for the 'Integer Interval' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.impl.MARTE_DataTypesPackageImpl#getIntegerInterval() + * @generated + */ + int INTEGER_INTERVAL = 4; + + /** + * The meta object id for the 'Utility Type' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.impl.MARTE_DataTypesPackageImpl#getUtilityType() + * @generated + */ + int UTILITY_TYPE = 5; + + /** + * The meta object id for the 'Array' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.impl.MARTE_DataTypesPackageImpl#getArray() + * @generated + */ + int ARRAY = 6; + + /** + * The meta object id for the 'Realnterval' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.impl.MARTE_DataTypesPackageImpl#getRealnterval() + * @generated + */ + int REALNTERVAL = 7; + + /** + * The meta object id for the 'NFP Frequency Interval' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.impl.MARTE_DataTypesPackageImpl#getNFP_FrequencyInterval() + * @generated + */ + int NFP_FREQUENCY_INTERVAL = 8; + + /** + * The meta object id for the 'Interval' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.impl.MARTE_DataTypesPackageImpl#getInterval() + * @generated + */ + int INTERVAL = 9; + + /** + * The meta object id for the 'NFP Natural Interval' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.impl.MARTE_DataTypesPackageImpl#getNFP_NaturalInterval() + * @generated + */ + int NFP_NATURAL_INTERVAL = 10; + + /** + * The meta object id for the 'Real Vector' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.impl.MARTE_DataTypesPackageImpl#getRealVector() + * @generated + */ + int REAL_VECTOR = 11; + + /** + * The meta object id for the 'Real Matrix' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.impl.MARTE_DataTypesPackageImpl#getRealMatrix() + * @generated + */ + int REAL_MATRIX = 12; + + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.TransmModeKind Transm Mode Kind}'. + * + * + * @return the meta object for enum 'Transm Mode Kind'. + * @see org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.TransmModeKind + * @generated + */ + EEnum getTransmModeKind(); + + /** + * Returns the meta object for data type '{@link java.lang.String Integer Vector}'. + * + * + * @return the meta object for data type 'Integer Vector'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getIntegerVector(); + + /** + * Returns the meta object for data type '{@link java.lang.String Integer Matrix}'. + * + * + * @return the meta object for data type 'Integer Matrix'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getIntegerMatrix(); + + /** + * Returns the meta object for data type '{@link java.lang.String VSL Expression}'. + * + * + * @return the meta object for data type 'VSL Expression'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getVSL_Expression(); + + /** + * Returns the meta object for data type '{@link java.lang.String Integer Interval}'. + * + * + * @return the meta object for data type 'Integer Interval'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getIntegerInterval(); + + /** + * Returns the meta object for data type '{@link java.lang.String Utility Type}'. + * + * + * @return the meta object for data type 'Utility Type'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getUtilityType(); + + /** + * Returns the meta object for data type '{@link java.lang.String Array}'. + * + * + * @return the meta object for data type 'Array'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getArray(); + + /** + * Returns the meta object for data type '{@link java.lang.String Realnterval}'. + * + * + * @return the meta object for data type 'Realnterval'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getRealnterval(); + + /** + * Returns the meta object for data type '{@link java.lang.String NFP Frequency Interval}'. + * + * + * @return the meta object for data type 'NFP Frequency Interval'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getNFP_FrequencyInterval(); + + /** + * Returns the meta object for data type '{@link java.lang.String Interval}'. + * + * + * @return the meta object for data type 'Interval'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getInterval(); + + /** + * Returns the meta object for data type '{@link java.lang.String NFP Natural Interval}'. + * + * + * @return the meta object for data type 'NFP Natural Interval'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getNFP_NaturalInterval(); + + /** + * Returns the meta object for data type '{@link java.lang.String Real Vector}'. + * + * + * @return the meta object for data type 'Real Vector'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getRealVector(); + + /** + * Returns the meta object for data type '{@link java.lang.String Real Matrix}'. + * + * + * @return the meta object for data type 'Real Matrix'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getRealMatrix(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + MARTE_DataTypesFactory getMARTE_DataTypesFactory(); + + /** + * + * Defines literals for the meta objects that represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.TransmModeKind Transm Mode Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.TransmModeKind + * @see org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.impl.MARTE_DataTypesPackageImpl#getTransmModeKind() + * @generated + */ + EEnum TRANSM_MODE_KIND = eINSTANCE.getTransmModeKind(); + + /** + * The meta object literal for the 'Integer Vector' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.impl.MARTE_DataTypesPackageImpl#getIntegerVector() + * @generated + */ + EDataType INTEGER_VECTOR = eINSTANCE.getIntegerVector(); + + /** + * The meta object literal for the 'Integer Matrix' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.impl.MARTE_DataTypesPackageImpl#getIntegerMatrix() + * @generated + */ + EDataType INTEGER_MATRIX = eINSTANCE.getIntegerMatrix(); + + /** + * The meta object literal for the 'VSL Expression' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.impl.MARTE_DataTypesPackageImpl#getVSL_Expression() + * @generated + */ + EDataType VSL_EXPRESSION = eINSTANCE.getVSL_Expression(); + + /** + * The meta object literal for the 'Integer Interval' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.impl.MARTE_DataTypesPackageImpl#getIntegerInterval() + * @generated + */ + EDataType INTEGER_INTERVAL = eINSTANCE.getIntegerInterval(); + + /** + * The meta object literal for the 'Utility Type' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.impl.MARTE_DataTypesPackageImpl#getUtilityType() + * @generated + */ + EDataType UTILITY_TYPE = eINSTANCE.getUtilityType(); + + /** + * The meta object literal for the 'Array' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.impl.MARTE_DataTypesPackageImpl#getArray() + * @generated + */ + EDataType ARRAY = eINSTANCE.getArray(); + + /** + * The meta object literal for the 'Realnterval' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.impl.MARTE_DataTypesPackageImpl#getRealnterval() + * @generated + */ + EDataType REALNTERVAL = eINSTANCE.getRealnterval(); + + /** + * The meta object literal for the 'NFP Frequency Interval' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.impl.MARTE_DataTypesPackageImpl#getNFP_FrequencyInterval() + * @generated + */ + EDataType NFP_FREQUENCY_INTERVAL = eINSTANCE.getNFP_FrequencyInterval(); + + /** + * The meta object literal for the 'Interval' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.impl.MARTE_DataTypesPackageImpl#getInterval() + * @generated + */ + EDataType INTERVAL = eINSTANCE.getInterval(); + + /** + * The meta object literal for the 'NFP Natural Interval' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.impl.MARTE_DataTypesPackageImpl#getNFP_NaturalInterval() + * @generated + */ + EDataType NFP_NATURAL_INTERVAL = eINSTANCE.getNFP_NaturalInterval(); + + /** + * The meta object literal for the 'Real Vector' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.impl.MARTE_DataTypesPackageImpl#getRealVector() + * @generated + */ + EDataType REAL_VECTOR = eINSTANCE.getRealVector(); + + /** + * The meta object literal for the 'Real Matrix' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.impl.MARTE_DataTypesPackageImpl#getRealMatrix() + * @generated + */ + EDataType REAL_MATRIX = eINSTANCE.getRealMatrix(); + + } + +} //MARTE_DataTypesPackage diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MARTE_DataTypes/TransmModeKind.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MARTE_DataTypes/TransmModeKind.java new file mode 100644 index 00000000000..8aa74e6f50c --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MARTE_DataTypes/TransmModeKind.java @@ -0,0 +1,246 @@ +/***************************************************************************** + * 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 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 'Transm Mode Kind', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.MARTE_DataTypesPackage#getTransmModeKind() + * @model + * @generated + */ +public enum TransmModeKind implements Enumerator { + /** + * The 'Simplex' literal object. + * + * + * @see #SIMPLEX_VALUE + * @generated + * @ordered + */ + SIMPLEX(0, "simplex", "simplex"), + + /** + * The 'Half Duplex' literal object. + * + * + * @see #HALF_DUPLEX_VALUE + * @generated + * @ordered + */ + HALF_DUPLEX(1, "halfDuplex", "halfDuplex"), + + /** + * The 'Full Duplex' literal object. + * + * + * @see #FULL_DUPLEX_VALUE + * @generated + * @ordered + */ + FULL_DUPLEX(2, "fullDuplex", "fullDuplex"); + + /** + * The 'Simplex' literal value. + * + *

+ * 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 List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Transm Mode Kind' literal with the specified literal value. + * + * + * @generated + */ + public static TransmModeKind get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + TransmModeKind result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Transm Mode Kind' literal with the specified name. + * + * + * @generated + */ + public static TransmModeKind getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + TransmModeKind result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Transm Mode Kind' literal with the specified integer value. + * + * + * @generated + */ + public static TransmModeKind get(int value) { + switch (value) { + case SIMPLEX_VALUE: return SIMPLEX; + case HALF_DUPLEX_VALUE: return HALF_DUPLEX; + case FULL_DUPLEX_VALUE: return FULL_DUPLEX; + } + return null; + } + + /** + * + * + * @generated + */ + private final int value; + + /** + * + * + * @generated + */ + private final String name; + + /** + * + * + * @generated + */ + private final String literal; + + /** + * Only this class can construct instances. + * + * + * @generated + */ + private TransmModeKind(int value, String name, String literal) { + this.value = value; + this.name = name; + this.literal = literal; + } + + /** + * + * + * @generated + */ + public int getValue() { + return value; + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public String getLiteral() { + return literal; + } + + /** + * Returns the literal value of the enumerator, which is its string representation. + * + * + * @generated + */ + @Override + public String toString() { + return literal; + } + +} //TransmModeKind diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MARTE_DataTypes/impl/MARTE_DataTypesFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MARTE_DataTypes/impl/MARTE_DataTypesFactoryImpl.java new file mode 100644 index 00000000000..95d48a0d7a8 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MARTE_DataTypes/impl/MARTE_DataTypesFactoryImpl.java @@ -0,0 +1,410 @@ +/***************************************************************************** + * 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.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.MARTE_DataTypes.*; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class MARTE_DataTypesFactoryImpl extends EFactoryImpl implements MARTE_DataTypesFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static MARTE_DataTypesFactory init() { + try { + MARTE_DataTypesFactory theMARTE_DataTypesFactory = (MARTE_DataTypesFactory)EPackage.Registry.INSTANCE.getEFactory("http:///MARTE_Library/MARTE_DataTypes.ecore"); + if (theMARTE_DataTypesFactory != null) { + return theMARTE_DataTypesFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new MARTE_DataTypesFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public MARTE_DataTypesFactoryImpl() { + 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 MARTE_DataTypesPackage.TRANSM_MODE_KIND: + return createTransmModeKindFromString(eDataType, initialValue); + case MARTE_DataTypesPackage.INTEGER_VECTOR: + return createIntegerVectorFromString(eDataType, initialValue); + case MARTE_DataTypesPackage.INTEGER_MATRIX: + return createIntegerMatrixFromString(eDataType, initialValue); + case MARTE_DataTypesPackage.VSL_EXPRESSION: + return createVSL_ExpressionFromString(eDataType, initialValue); + case MARTE_DataTypesPackage.INTEGER_INTERVAL: + return createIntegerIntervalFromString(eDataType, initialValue); + case MARTE_DataTypesPackage.UTILITY_TYPE: + return createUtilityTypeFromString(eDataType, initialValue); + case MARTE_DataTypesPackage.ARRAY: + return createArrayFromString(eDataType, initialValue); + case MARTE_DataTypesPackage.REALNTERVAL: + return createRealntervalFromString(eDataType, initialValue); + case MARTE_DataTypesPackage.NFP_FREQUENCY_INTERVAL: + return createNFP_FrequencyIntervalFromString(eDataType, initialValue); + case MARTE_DataTypesPackage.INTERVAL: + return createIntervalFromString(eDataType, initialValue); + case MARTE_DataTypesPackage.NFP_NATURAL_INTERVAL: + return createNFP_NaturalIntervalFromString(eDataType, initialValue); + case MARTE_DataTypesPackage.REAL_VECTOR: + return createRealVectorFromString(eDataType, initialValue); + case MARTE_DataTypesPackage.REAL_MATRIX: + return createRealMatrixFromString(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 MARTE_DataTypesPackage.TRANSM_MODE_KIND: + return convertTransmModeKindToString(eDataType, instanceValue); + case MARTE_DataTypesPackage.INTEGER_VECTOR: + return convertIntegerVectorToString(eDataType, instanceValue); + case MARTE_DataTypesPackage.INTEGER_MATRIX: + return convertIntegerMatrixToString(eDataType, instanceValue); + case MARTE_DataTypesPackage.VSL_EXPRESSION: + return convertVSL_ExpressionToString(eDataType, instanceValue); + case MARTE_DataTypesPackage.INTEGER_INTERVAL: + return convertIntegerIntervalToString(eDataType, instanceValue); + case MARTE_DataTypesPackage.UTILITY_TYPE: + return convertUtilityTypeToString(eDataType, instanceValue); + case MARTE_DataTypesPackage.ARRAY: + return convertArrayToString(eDataType, instanceValue); + case MARTE_DataTypesPackage.REALNTERVAL: + return convertRealntervalToString(eDataType, instanceValue); + case MARTE_DataTypesPackage.NFP_FREQUENCY_INTERVAL: + return convertNFP_FrequencyIntervalToString(eDataType, instanceValue); + case MARTE_DataTypesPackage.INTERVAL: + return convertIntervalToString(eDataType, instanceValue); + case MARTE_DataTypesPackage.NFP_NATURAL_INTERVAL: + return convertNFP_NaturalIntervalToString(eDataType, instanceValue); + case MARTE_DataTypesPackage.REAL_VECTOR: + return convertRealVectorToString(eDataType, instanceValue); + case MARTE_DataTypesPackage.REAL_MATRIX: + return convertRealMatrixToString(eDataType, instanceValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public TransmModeKind createTransmModeKindFromString(EDataType eDataType, String initialValue) { + TransmModeKind result = TransmModeKind.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertTransmModeKindToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public String createIntegerVectorFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertIntegerVectorToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public String createIntegerMatrixFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertIntegerMatrixToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public String createVSL_ExpressionFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertVSL_ExpressionToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public String createIntegerIntervalFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertIntegerIntervalToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public String createUtilityTypeFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertUtilityTypeToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public String createArrayFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertArrayToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public String createRealntervalFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertRealntervalToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public String createNFP_FrequencyIntervalFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertNFP_FrequencyIntervalToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public String createIntervalFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertIntervalToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public String createNFP_NaturalIntervalFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertNFP_NaturalIntervalToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public String createRealVectorFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertRealVectorToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public String createRealMatrixFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertRealMatrixToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public MARTE_DataTypesPackage getMARTE_DataTypesPackage() { + return (MARTE_DataTypesPackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static MARTE_DataTypesPackage getPackage() { + return MARTE_DataTypesPackage.eINSTANCE; + } + +} //MARTE_DataTypesFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MARTE_DataTypes/impl/MARTE_DataTypesPackageImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MARTE_DataTypes/impl/MARTE_DataTypesPackageImpl.java new file mode 100644 index 00000000000..2231a9bf242 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MARTE_DataTypes/impl/MARTE_DataTypesPackageImpl.java @@ -0,0 +1,644 @@ +/***************************************************************************** + * 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.impl; + +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_DataTypesFactory; +import org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.MARTE_DataTypesPackage; +import org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.TransmModeKind; + +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.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 MARTE_DataTypesPackageImpl extends EPackageImpl implements MARTE_DataTypesPackage { + /** + * + * + * @generated + */ + private EEnum transmModeKindEEnum = null; + + /** + * + * + * @generated + */ + private EDataType integerVectorEDataType = null; + + /** + * + * + * @generated + */ + private EDataType integerMatrixEDataType = null; + + /** + * + * + * @generated + */ + private EDataType vsL_ExpressionEDataType = null; + + /** + * + * + * @generated + */ + private EDataType integerIntervalEDataType = null; + + /** + * + * + * @generated + */ + private EDataType utilityTypeEDataType = null; + + /** + * + * + * @generated + */ + private EDataType arrayEDataType = null; + + /** + * + * + * @generated + */ + private EDataType realntervalEDataType = null; + + /** + * + * + * @generated + */ + private EDataType nfP_FrequencyIntervalEDataType = null; + + /** + * + * + * @generated + */ + private EDataType intervalEDataType = null; + + /** + * + * + * @generated + */ + private EDataType nfP_NaturalIntervalEDataType = null; + + /** + * + * + * @generated + */ + private EDataType realVectorEDataType = null; + + /** + * + * + * @generated + */ + private EDataType realMatrixEDataType = 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.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 + *

    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @see org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.MARTE_PrimitivesTypesFactory + * @model kind="package" + * @generated + */ +public interface MARTE_PrimitivesTypesPackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "MARTE_PrimitivesTypes"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "http:///MARTE_Library/MARTE_PrimitivesTypes.ecore"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "MARTE_Library.MARTE_PrimitivesTypes"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + MARTE_PrimitivesTypesPackage eINSTANCE = org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.impl.MARTE_PrimitivesTypesPackageImpl.init(); + + /** + * The meta object id for the 'Integer' data type. + * + * + * @see org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.impl.MARTE_PrimitivesTypesPackageImpl#getInteger() + * @generated + */ + int INTEGER = 0; + + /** + * The meta object id for the 'Boolean' data type. + * + * + * @see org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.impl.MARTE_PrimitivesTypesPackageImpl#getBoolean() + * @generated + */ + int BOOLEAN = 1; + + /** + * The meta object id for the 'Unlimited Natural' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.impl.MARTE_PrimitivesTypesPackageImpl#getUnlimitedNatural() + * @generated + */ + int UNLIMITED_NATURAL = 2; + + /** + * The meta object id for the 'String' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.impl.MARTE_PrimitivesTypesPackageImpl#getString() + * @generated + */ + int STRING = 3; + + /** + * The meta object id for the 'Date Time' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.impl.MARTE_PrimitivesTypesPackageImpl#getDateTime() + * @generated + */ + int DATE_TIME = 4; + + /** + * The meta object id for the 'Real' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.impl.MARTE_PrimitivesTypesPackageImpl#getReal() + * @generated + */ + int REAL = 5; + + + /** + * Returns the meta object for data type 'Integer'. + * + * + * @return the meta object for data type 'Integer'. + * @model instanceClass="int" + * @generated + */ + EDataType getInteger(); + + /** + * Returns the meta object for data type 'Boolean'. + * + * + * @return the meta object for data type 'Boolean'. + * @model instanceClass="boolean" + * @generated + */ + EDataType getBoolean(); + + /** + * Returns the meta object for data type '{@link java.lang.String Unlimited Natural}'. + * + * + * @return the meta object for data type 'Unlimited Natural'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getUnlimitedNatural(); + + /** + * Returns the meta object for data type '{@link java.lang.String String}'. + * + * + * @return the meta object for data type 'String'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getString(); + + /** + * Returns the meta object for data type '{@link java.lang.String Date Time}'. + * + * + * @return the meta object for data type 'Date Time'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getDateTime(); + + /** + * Returns the meta object for data type '{@link java.lang.String Real}'. + * + * + * @return the meta object for data type 'Real'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getReal(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + MARTE_PrimitivesTypesFactory getMARTE_PrimitivesTypesFactory(); + + /** + * + * Defines literals for the meta objects that represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @generated + */ + interface Literals { + /** + * The meta object literal for the 'Integer' data type. + * + * + * @see org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.impl.MARTE_PrimitivesTypesPackageImpl#getInteger() + * @generated + */ + EDataType INTEGER = eINSTANCE.getInteger(); + + /** + * The meta object literal for the 'Boolean' data type. + * + * + * @see org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.impl.MARTE_PrimitivesTypesPackageImpl#getBoolean() + * @generated + */ + EDataType BOOLEAN = eINSTANCE.getBoolean(); + + /** + * The meta object literal for the 'Unlimited Natural' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.impl.MARTE_PrimitivesTypesPackageImpl#getUnlimitedNatural() + * @generated + */ + EDataType UNLIMITED_NATURAL = eINSTANCE.getUnlimitedNatural(); + + /** + * The meta object literal for the 'String' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.impl.MARTE_PrimitivesTypesPackageImpl#getString() + * @generated + */ + EDataType STRING = eINSTANCE.getString(); + + /** + * The meta object literal for the 'Date Time' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.impl.MARTE_PrimitivesTypesPackageImpl#getDateTime() + * @generated + */ + EDataType DATE_TIME = eINSTANCE.getDateTime(); + + /** + * The meta object literal for the 'Real' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.impl.MARTE_PrimitivesTypesPackageImpl#getReal() + * @generated + */ + EDataType REAL = eINSTANCE.getReal(); + + } + +} //MARTE_PrimitivesTypesPackage diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MARTE_PrimitivesTypes/impl/MARTE_PrimitivesTypesFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MARTE_PrimitivesTypes/impl/MARTE_PrimitivesTypesFactoryImpl.java new file mode 100644 index 00000000000..48e5c123825 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MARTE_PrimitivesTypes/impl/MARTE_PrimitivesTypesFactoryImpl.java @@ -0,0 +1,254 @@ +/***************************************************************************** + * 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.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.MARTE_PrimitivesTypes.*; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class MARTE_PrimitivesTypesFactoryImpl extends EFactoryImpl implements MARTE_PrimitivesTypesFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static MARTE_PrimitivesTypesFactory init() { + try { + MARTE_PrimitivesTypesFactory theMARTE_PrimitivesTypesFactory = (MARTE_PrimitivesTypesFactory)EPackage.Registry.INSTANCE.getEFactory("http:///MARTE_Library/MARTE_PrimitivesTypes.ecore"); + if (theMARTE_PrimitivesTypesFactory != null) { + return theMARTE_PrimitivesTypesFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new MARTE_PrimitivesTypesFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public MARTE_PrimitivesTypesFactoryImpl() { + 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 MARTE_PrimitivesTypesPackage.INTEGER: + return createIntegerFromString(eDataType, initialValue); + case MARTE_PrimitivesTypesPackage.BOOLEAN: + return createBooleanFromString(eDataType, initialValue); + case MARTE_PrimitivesTypesPackage.UNLIMITED_NATURAL: + return createUnlimitedNaturalFromString(eDataType, initialValue); + case MARTE_PrimitivesTypesPackage.STRING: + return createStringFromString(eDataType, initialValue); + case MARTE_PrimitivesTypesPackage.DATE_TIME: + return createDateTimeFromString(eDataType, initialValue); + case MARTE_PrimitivesTypesPackage.REAL: + return createRealFromString(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 MARTE_PrimitivesTypesPackage.INTEGER: + return convertIntegerToString(eDataType, instanceValue); + case MARTE_PrimitivesTypesPackage.BOOLEAN: + return convertBooleanToString(eDataType, instanceValue); + case MARTE_PrimitivesTypesPackage.UNLIMITED_NATURAL: + return convertUnlimitedNaturalToString(eDataType, instanceValue); + case MARTE_PrimitivesTypesPackage.STRING: + return convertStringToString(eDataType, instanceValue); + case MARTE_PrimitivesTypesPackage.DATE_TIME: + return convertDateTimeToString(eDataType, instanceValue); + case MARTE_PrimitivesTypesPackage.REAL: + return convertRealToString(eDataType, instanceValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public Integer createIntegerFromString(EDataType eDataType, String initialValue) { + return (Integer)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertIntegerToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public Boolean createBooleanFromString(EDataType eDataType, String initialValue) { + return (Boolean)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertBooleanToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public String createUnlimitedNaturalFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertUnlimitedNaturalToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public String createStringFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertStringToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public String createDateTimeFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertDateTimeToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public String createRealFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertRealToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public MARTE_PrimitivesTypesPackage getMARTE_PrimitivesTypesPackage() { + return (MARTE_PrimitivesTypesPackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static MARTE_PrimitivesTypesPackage getPackage() { + return MARTE_PrimitivesTypesPackage.eINSTANCE; + } + +} //MARTE_PrimitivesTypesFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MARTE_PrimitivesTypes/impl/MARTE_PrimitivesTypesPackageImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MARTE_PrimitivesTypes/impl/MARTE_PrimitivesTypesPackageImpl.java new file mode 100644 index 00000000000..9b50e3be9b6 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MARTE_PrimitivesTypes/impl/MARTE_PrimitivesTypesPackageImpl.java @@ -0,0 +1,509 @@ +/***************************************************************************** + * 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.impl; + +import org.eclipse.emf.ecore.EDataType; +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_PrimitivesTypesFactory; +import org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.MARTE_PrimitivesTypesPackage; + +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.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 MARTE_PrimitivesTypesPackageImpl extends EPackageImpl implements MARTE_PrimitivesTypesPackage { + /** + * + * + * @generated + */ + private EDataType integerEDataType = null; + + /** + * + * + * @generated + */ + private EDataType booleanEDataType = null; + + /** + * + * + * @generated + */ + private EDataType unlimitedNaturalEDataType = null; + + /** + * + * + * @generated + */ + private EDataType stringEDataType = null; + + /** + * + * + * @generated + */ + private EDataType dateTimeEDataType = null; + + /** + * + * + * @generated + */ + private EDataType realEDataType = 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.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 VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Area Unit Kind' literal with the specified literal value. + * + * + * @generated + */ + public static AreaUnitKind get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + AreaUnitKind result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Area Unit Kind' literal with the specified name. + * + * + * @generated + */ + public static AreaUnitKind getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + AreaUnitKind result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Area Unit Kind' literal with the specified integer value. + * + * + * @generated + */ + public static AreaUnitKind get(int value) { + switch (value) { + case MM2_VALUE: return MM2; + case UM2_VALUE: return UM2; + } + return null; + } + + /** + * + * + * @generated + */ + private final int value; + + /** + * + * + * @generated + */ + private final String name; + + /** + * + * + * @generated + */ + private final String literal; + + /** + * Only this class can construct instances. + * + * + * @generated + */ + private AreaUnitKind(int value, String name, String literal) { + this.value = value; + this.name = name; + this.literal = literal; + } + + /** + * + * + * @generated + */ + public int getValue() { + return value; + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public String getLiteral() { + return literal; + } + + /** + * Returns the literal value of the enumerator, which is its string representation. + * + * + * @generated + */ + @Override + public String toString() { + return literal; + } + +} //AreaUnitKind diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/DataSizeUnitKind.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/DataSizeUnitKind.java new file mode 100644 index 00000000000..366ca8e2336 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/DataSizeUnitKind.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.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 'Data Size Unit Kind', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.MeasurementUnitsPackage#getDataSizeUnitKind() + * @model + * @generated + */ +public enum DataSizeUnitKind implements Enumerator { + /** + * The 'Bit' literal object. + * + * + * @see #BIT_VALUE + * @generated + * @ordered + */ + BIT(0, "bit", "bit"), + + /** + * The 'Byte' literal object. + * + * + * @see #BYTE_VALUE + * @generated + * @ordered + */ + BYTE(1, "Byte", "Byte"), + + /** + * The 'KB' literal object. + * + * + * @see #KB_VALUE + * @generated + * @ordered + */ + KB(2, "KB", "KB"), + + /** + * The 'MB' literal object. + * + * + * @see #MB_VALUE + * @generated + * @ordered + */ + MB(3, "MB", "MB"), + + /** + * The 'GB' literal object. + * + * + * @see #GB_VALUE + * @generated + * @ordered + */ + GB(4, "GB", "GB"); + + /** + * The 'Bit' literal value. + * + *

+ * 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 VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Data Size Unit Kind' literal with the specified literal value. + * + * + * @generated + */ + public static DataSizeUnitKind get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + DataSizeUnitKind result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Data Size Unit Kind' literal with the specified name. + * + * + * @generated + */ + public static DataSizeUnitKind getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + DataSizeUnitKind result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Data Size Unit Kind' literal with the specified integer value. + * + * + * @generated + */ + public static DataSizeUnitKind get(int value) { + switch (value) { + case BIT_VALUE: return BIT; + case BYTE_VALUE: return BYTE; + case KB_VALUE: return KB; + case MB_VALUE: return MB; + case GB_VALUE: return GB; + } + return null; + } + + /** + * + * + * @generated + */ + private final int value; + + /** + * + * + * @generated + */ + private final String name; + + /** + * + * + * @generated + */ + private final String literal; + + /** + * Only this class can construct instances. + * + * + * @generated + */ + private DataSizeUnitKind(int value, String name, String literal) { + this.value = value; + this.name = name; + this.literal = literal; + } + + /** + * + * + * @generated + */ + public int getValue() { + return value; + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public String getLiteral() { + return literal; + } + + /** + * Returns the literal value of the enumerator, which is its string representation. + * + * + * @generated + */ + @Override + public String toString() { + return literal; + } + +} //DataSizeUnitKind diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/DataTxRateUnitKind.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/DataTxRateUnitKind.java new file mode 100644 index 00000000000..39247539e85 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/DataTxRateUnitKind.java @@ -0,0 +1,246 @@ +/***************************************************************************** + * 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 'Data Tx Rate Unit Kind', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.MeasurementUnitsPackage#getDataTxRateUnitKind() + * @model + * @generated + */ +public enum DataTxRateUnitKind implements Enumerator { + /** + * The 'Bper s' literal object. + * + * + * @see #BPER_S_VALUE + * @generated + * @ordered + */ + BPER_S(0, "b_per_s", "b_per_s"), + + /** + * The 'Kb per s' literal object. + * + * + * @see #KB_PER_S_VALUE + * @generated + * @ordered + */ + KB_PER_S(1, "Kb_per_s", "Kb_per_s"), + + /** + * The 'Mb per s' literal object. + * + * + * @see #MB_PER_S_VALUE + * @generated + * @ordered + */ + MB_PER_S(2, "Mb_per_s", "Mb_per_s"); + + /** + * The 'Bper s' literal value. + * + *

+ * 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 VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Data Tx Rate Unit Kind' literal with the specified literal value. + * + * + * @generated + */ + public static DataTxRateUnitKind get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + DataTxRateUnitKind result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Data Tx Rate Unit Kind' literal with the specified name. + * + * + * @generated + */ + public static DataTxRateUnitKind getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + DataTxRateUnitKind result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Data Tx Rate Unit Kind' literal with the specified integer value. + * + * + * @generated + */ + public static DataTxRateUnitKind get(int value) { + switch (value) { + case BPER_S_VALUE: return BPER_S; + case KB_PER_S_VALUE: return KB_PER_S; + case MB_PER_S_VALUE: return MB_PER_S; + } + return null; + } + + /** + * + * + * @generated + */ + private final int value; + + /** + * + * + * @generated + */ + private final String name; + + /** + * + * + * @generated + */ + private final String literal; + + /** + * Only this class can construct instances. + * + * + * @generated + */ + private DataTxRateUnitKind(int value, String name, String literal) { + this.value = value; + this.name = name; + this.literal = literal; + } + + /** + * + * + * @generated + */ + public int getValue() { + return value; + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public String getLiteral() { + return literal; + } + + /** + * Returns the literal value of the enumerator, which is its string representation. + * + * + * @generated + */ + @Override + public String toString() { + return literal; + } + +} //DataTxRateUnitKind diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/EnergyUnitKind.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/EnergyUnitKind.java new file mode 100644 index 00000000000..8b1f7862ede --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/EnergyUnitKind.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.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 'Energy Unit Kind', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.MeasurementUnitsPackage#getEnergyUnitKind() + * @model + * @generated + */ +public enum EnergyUnitKind implements Enumerator { + /** + * The 'J' literal object. + * + * + * @see #J_VALUE + * @generated + * @ordered + */ + J(0, "J", "J"), + + /** + * The 'KJ' literal object. + * + * + * @see #KJ_VALUE + * @generated + * @ordered + */ + KJ(1, "KJ", "KJ"), + + /** + * The 'Wh' literal object. + * + * + * @see #WH_VALUE + * @generated + * @ordered + */ + WH(2, "Wh", "Wh"), + + /** + * The 'KWh' literal object. + * + * + * @see #KWH_VALUE + * @generated + * @ordered + */ + KWH(3, "KWh", "KWh"), + + /** + * The 'MWh' literal object. + * + * + * @see #MWH_VALUE + * @generated + * @ordered + */ + MWH(4, "mWh", "mWh"); + + /** + * The 'J' literal value. + * + *

+ * 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 VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Energy Unit Kind' literal with the specified literal value. + * + * + * @generated + */ + public static EnergyUnitKind get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + EnergyUnitKind result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Energy Unit Kind' literal with the specified name. + * + * + * @generated + */ + public static EnergyUnitKind getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + EnergyUnitKind result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Energy Unit Kind' literal with the specified integer value. + * + * + * @generated + */ + public static EnergyUnitKind get(int value) { + switch (value) { + case J_VALUE: return J; + case KJ_VALUE: return KJ; + case WH_VALUE: return WH; + case KWH_VALUE: return KWH; + case MWH_VALUE: return MWH; + } + return null; + } + + /** + * + * + * @generated + */ + private final int value; + + /** + * + * + * @generated + */ + private final String name; + + /** + * + * + * @generated + */ + private final String literal; + + /** + * Only this class can construct instances. + * + * + * @generated + */ + private EnergyUnitKind(int value, String name, String literal) { + this.value = value; + this.name = name; + this.literal = literal; + } + + /** + * + * + * @generated + */ + public int getValue() { + return value; + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public String getLiteral() { + return literal; + } + + /** + * Returns the literal value of the enumerator, which is its string representation. + * + * + * @generated + */ + @Override + public String toString() { + return literal; + } + +} //EnergyUnitKind diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/FrequencyUnitKind.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/FrequencyUnitKind.java new file mode 100644 index 00000000000..3b09f537b84 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/FrequencyUnitKind.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.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 'Frequency Unit Kind', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.MeasurementUnitsPackage#getFrequencyUnitKind() + * @model + * @generated + */ +public enum FrequencyUnitKind implements Enumerator { + /** + * The 'Hz' literal object. + * + * + * @see #HZ_VALUE + * @generated + * @ordered + */ + HZ(0, "Hz", "Hz"), + + /** + * The 'KHz' literal object. + * + * + * @see #KHZ_VALUE + * @generated + * @ordered + */ + KHZ(1, "KHz", "KHz"), + + /** + * The 'MHz' literal object. + * + * + * @see #MHZ_VALUE + * @generated + * @ordered + */ + MHZ(2, "MHz", "MHz"), + + /** + * The 'GHz' literal object. + * + * + * @see #GHZ_VALUE + * @generated + * @ordered + */ + GHZ(3, "GHz", "GHz"), + + /** + * The 'Rpm' literal object. + * + * + * @see #RPM_VALUE + * @generated + * @ordered + */ + RPM(4, "rpm", "rpm"); + + /** + * The 'Hz' literal value. + * + *

+ * 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 VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Frequency Unit Kind' literal with the specified literal value. + * + * + * @generated + */ + public static FrequencyUnitKind get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + FrequencyUnitKind result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Frequency Unit Kind' literal with the specified name. + * + * + * @generated + */ + public static FrequencyUnitKind getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + FrequencyUnitKind result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Frequency Unit Kind' literal with the specified integer value. + * + * + * @generated + */ + public static FrequencyUnitKind get(int value) { + switch (value) { + case HZ_VALUE: return HZ; + case KHZ_VALUE: return KHZ; + case MHZ_VALUE: return MHZ; + case GHZ_VALUE: return GHZ; + case RPM_VALUE: return RPM; + } + return null; + } + + /** + * + * + * @generated + */ + private final int value; + + /** + * + * + * @generated + */ + private final String name; + + /** + * + * + * @generated + */ + private final String literal; + + /** + * Only this class can construct instances. + * + * + * @generated + */ + private FrequencyUnitKind(int value, String name, String literal) { + this.value = value; + this.name = name; + this.literal = literal; + } + + /** + * + * + * @generated + */ + public int getValue() { + return value; + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public String getLiteral() { + return literal; + } + + /** + * Returns the literal value of the enumerator, which is its string representation. + * + * + * @generated + */ + @Override + public String toString() { + return literal; + } + +} //FrequencyUnitKind diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/LengthUnitKind.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/LengthUnitKind.java new file mode 100644 index 00000000000..92f8b46301c --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/LengthUnitKind.java @@ -0,0 +1,246 @@ +/***************************************************************************** + * 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 'Length Unit Kind', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.MeasurementUnitsPackage#getLengthUnitKind() + * @model + * @generated + */ +public enum LengthUnitKind implements Enumerator { + /** + * The 'M' literal object. + * + * + * @see #M_VALUE + * @generated + * @ordered + */ + M(0, "m", "m"), + + /** + * The 'Cm' literal object. + * + * + * @see #CM_VALUE + * @generated + * @ordered + */ + CM(1, "cm", "cm"), + + /** + * The 'Mm' literal object. + * + * + * @see #MM_VALUE + * @generated + * @ordered + */ + MM(2, "mm", "mm"); + + /** + * The 'M' literal value. + * + *

+ * 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 VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Length Unit Kind' literal with the specified literal value. + * + * + * @generated + */ + public static LengthUnitKind get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + LengthUnitKind result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Length Unit Kind' literal with the specified name. + * + * + * @generated + */ + public static LengthUnitKind getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + LengthUnitKind result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Length Unit Kind' literal with the specified integer value. + * + * + * @generated + */ + public static LengthUnitKind get(int value) { + switch (value) { + case M_VALUE: return M; + case CM_VALUE: return CM; + case MM_VALUE: return MM; + } + return null; + } + + /** + * + * + * @generated + */ + private final int value; + + /** + * + * + * @generated + */ + private final String name; + + /** + * + * + * @generated + */ + private final String literal; + + /** + * Only this class can construct instances. + * + * + * @generated + */ + private LengthUnitKind(int value, String name, String literal) { + this.value = value; + this.name = name; + this.literal = literal; + } + + /** + * + * + * @generated + */ + public int getValue() { + return value; + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public String getLiteral() { + return literal; + } + + /** + * Returns the literal value of the enumerator, which is its string representation. + * + * + * @generated + */ + @Override + public String toString() { + return literal; + } + +} //LengthUnitKind diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/MeasurementUnitsFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/MeasurementUnitsFactory.java new file mode 100644 index 00000000000..e32425d5408 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/MeasurementUnitsFactory.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.MeasurementUnits; + +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.MeasurementUnits.MeasurementUnitsPackage + * @generated + */ +public interface MeasurementUnitsFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + MeasurementUnitsFactory eINSTANCE = org.eclipse.papyrus.MARTE_Library.MeasurementUnits.impl.MeasurementUnitsFactoryImpl.init(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + MeasurementUnitsPackage getMeasurementUnitsPackage(); + +} //MeasurementUnitsFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/MeasurementUnitsPackage.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/MeasurementUnitsPackage.java new file mode 100644 index 00000000000..e48cda67cfe --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/MeasurementUnitsPackage.java @@ -0,0 +1,362 @@ +/***************************************************************************** + * 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 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 + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.MeasurementUnitsFactory + * @model kind="package" + * @generated + */ +public interface MeasurementUnitsPackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "MeasurementUnits"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "http:///MARTE_Library/MeasurementUnits.ecore"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "MARTE_Library.MeasurementUnits"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + MeasurementUnitsPackage eINSTANCE = org.eclipse.papyrus.MARTE_Library.MeasurementUnits.impl.MeasurementUnitsPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE_Library.MeasurementUnits.TimeUnitKind Time Unit Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.TimeUnitKind + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.impl.MeasurementUnitsPackageImpl#getTimeUnitKind() + * @generated + */ + int TIME_UNIT_KIND = 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE_Library.MeasurementUnits.PowerUnitKind Power Unit Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.PowerUnitKind + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.impl.MeasurementUnitsPackageImpl#getPowerUnitKind() + * @generated + */ + int POWER_UNIT_KIND = 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE_Library.MeasurementUnits.FrequencyUnitKind Frequency Unit Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.FrequencyUnitKind + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.impl.MeasurementUnitsPackageImpl#getFrequencyUnitKind() + * @generated + */ + int FREQUENCY_UNIT_KIND = 2; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE_Library.MeasurementUnits.DataSizeUnitKind Data Size Unit Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.DataSizeUnitKind + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.impl.MeasurementUnitsPackageImpl#getDataSizeUnitKind() + * @generated + */ + int DATA_SIZE_UNIT_KIND = 3; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE_Library.MeasurementUnits.DataTxRateUnitKind Data Tx Rate Unit Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.DataTxRateUnitKind + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.impl.MeasurementUnitsPackageImpl#getDataTxRateUnitKind() + * @generated + */ + int DATA_TX_RATE_UNIT_KIND = 4; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE_Library.MeasurementUnits.EnergyUnitKind Energy Unit Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.EnergyUnitKind + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.impl.MeasurementUnitsPackageImpl#getEnergyUnitKind() + * @generated + */ + int ENERGY_UNIT_KIND = 5; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE_Library.MeasurementUnits.LengthUnitKind Length Unit Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.LengthUnitKind + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.impl.MeasurementUnitsPackageImpl#getLengthUnitKind() + * @generated + */ + int LENGTH_UNIT_KIND = 6; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE_Library.MeasurementUnits.AreaUnitKind Area Unit Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.AreaUnitKind + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.impl.MeasurementUnitsPackageImpl#getAreaUnitKind() + * @generated + */ + int AREA_UNIT_KIND = 7; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE_Library.MeasurementUnits.WeightUnitKind Weight Unit Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.WeightUnitKind + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.impl.MeasurementUnitsPackageImpl#getWeightUnitKind() + * @generated + */ + int WEIGHT_UNIT_KIND = 8; + + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE_Library.MeasurementUnits.TimeUnitKind Time Unit Kind}'. + * + * + * @return the meta object for enum 'Time Unit Kind'. + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.TimeUnitKind + * @generated + */ + EEnum getTimeUnitKind(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE_Library.MeasurementUnits.PowerUnitKind Power Unit Kind}'. + * + * + * @return the meta object for enum 'Power Unit Kind'. + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.PowerUnitKind + * @generated + */ + EEnum getPowerUnitKind(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE_Library.MeasurementUnits.FrequencyUnitKind Frequency Unit Kind}'. + * + * + * @return the meta object for enum 'Frequency Unit Kind'. + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.FrequencyUnitKind + * @generated + */ + EEnum getFrequencyUnitKind(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE_Library.MeasurementUnits.DataSizeUnitKind Data Size Unit Kind}'. + * + * + * @return the meta object for enum 'Data Size Unit Kind'. + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.DataSizeUnitKind + * @generated + */ + EEnum getDataSizeUnitKind(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE_Library.MeasurementUnits.DataTxRateUnitKind Data Tx Rate Unit Kind}'. + * + * + * @return the meta object for enum 'Data Tx Rate Unit Kind'. + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.DataTxRateUnitKind + * @generated + */ + EEnum getDataTxRateUnitKind(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE_Library.MeasurementUnits.EnergyUnitKind Energy Unit Kind}'. + * + * + * @return the meta object for enum 'Energy Unit Kind'. + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.EnergyUnitKind + * @generated + */ + EEnum getEnergyUnitKind(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE_Library.MeasurementUnits.LengthUnitKind Length Unit Kind}'. + * + * + * @return the meta object for enum 'Length Unit Kind'. + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.LengthUnitKind + * @generated + */ + EEnum getLengthUnitKind(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE_Library.MeasurementUnits.AreaUnitKind Area Unit Kind}'. + * + * + * @return the meta object for enum 'Area Unit Kind'. + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.AreaUnitKind + * @generated + */ + EEnum getAreaUnitKind(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE_Library.MeasurementUnits.WeightUnitKind Weight Unit Kind}'. + * + * + * @return the meta object for enum 'Weight Unit Kind'. + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.WeightUnitKind + * @generated + */ + EEnum getWeightUnitKind(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + MeasurementUnitsFactory getMeasurementUnitsFactory(); + + /** + * + * Defines literals for the meta objects that represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE_Library.MeasurementUnits.TimeUnitKind Time Unit Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.TimeUnitKind + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.impl.MeasurementUnitsPackageImpl#getTimeUnitKind() + * @generated + */ + EEnum TIME_UNIT_KIND = eINSTANCE.getTimeUnitKind(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE_Library.MeasurementUnits.PowerUnitKind Power Unit Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.PowerUnitKind + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.impl.MeasurementUnitsPackageImpl#getPowerUnitKind() + * @generated + */ + EEnum POWER_UNIT_KIND = eINSTANCE.getPowerUnitKind(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE_Library.MeasurementUnits.FrequencyUnitKind Frequency Unit Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.FrequencyUnitKind + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.impl.MeasurementUnitsPackageImpl#getFrequencyUnitKind() + * @generated + */ + EEnum FREQUENCY_UNIT_KIND = eINSTANCE.getFrequencyUnitKind(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE_Library.MeasurementUnits.DataSizeUnitKind Data Size Unit Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.DataSizeUnitKind + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.impl.MeasurementUnitsPackageImpl#getDataSizeUnitKind() + * @generated + */ + EEnum DATA_SIZE_UNIT_KIND = eINSTANCE.getDataSizeUnitKind(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE_Library.MeasurementUnits.DataTxRateUnitKind Data Tx Rate Unit Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.DataTxRateUnitKind + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.impl.MeasurementUnitsPackageImpl#getDataTxRateUnitKind() + * @generated + */ + EEnum DATA_TX_RATE_UNIT_KIND = eINSTANCE.getDataTxRateUnitKind(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE_Library.MeasurementUnits.EnergyUnitKind Energy Unit Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.EnergyUnitKind + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.impl.MeasurementUnitsPackageImpl#getEnergyUnitKind() + * @generated + */ + EEnum ENERGY_UNIT_KIND = eINSTANCE.getEnergyUnitKind(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE_Library.MeasurementUnits.LengthUnitKind Length Unit Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.LengthUnitKind + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.impl.MeasurementUnitsPackageImpl#getLengthUnitKind() + * @generated + */ + EEnum LENGTH_UNIT_KIND = eINSTANCE.getLengthUnitKind(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE_Library.MeasurementUnits.AreaUnitKind Area Unit Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.AreaUnitKind + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.impl.MeasurementUnitsPackageImpl#getAreaUnitKind() + * @generated + */ + EEnum AREA_UNIT_KIND = eINSTANCE.getAreaUnitKind(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE_Library.MeasurementUnits.WeightUnitKind Weight Unit Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.WeightUnitKind + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.impl.MeasurementUnitsPackageImpl#getWeightUnitKind() + * @generated + */ + EEnum WEIGHT_UNIT_KIND = eINSTANCE.getWeightUnitKind(); + + } + +} //MeasurementUnitsPackage diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/PowerUnitKind.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/PowerUnitKind.java new file mode 100644 index 00000000000..f4a4449aa93 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/PowerUnitKind.java @@ -0,0 +1,246 @@ +/***************************************************************************** + * 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 'Power Unit Kind', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.MeasurementUnitsPackage#getPowerUnitKind() + * @model + * @generated + */ +public enum PowerUnitKind implements Enumerator { + /** + * The 'W' literal object. + * + * + * @see #W_VALUE + * @generated + * @ordered + */ + W(0, "W", "W"), + + /** + * The 'MW' literal object. + * + * + * @see #MW_VALUE + * @generated + * @ordered + */ + MW(1, "mW", "mW"), + + /** + * The 'KW' literal object. + * + * + * @see #KW_VALUE + * @generated + * @ordered + */ + KW(2, "KW", "KW"); + + /** + * The 'W' literal value. + * + *

+ * 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 VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Power Unit Kind' literal with the specified literal value. + * + * + * @generated + */ + public static PowerUnitKind get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + PowerUnitKind result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Power Unit Kind' literal with the specified name. + * + * + * @generated + */ + public static PowerUnitKind getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + PowerUnitKind result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Power Unit Kind' literal with the specified integer value. + * + * + * @generated + */ + public static PowerUnitKind get(int value) { + switch (value) { + case W_VALUE: return W; + case MW_VALUE: return MW; + case KW_VALUE: return KW; + } + return null; + } + + /** + * + * + * @generated + */ + private final int value; + + /** + * + * + * @generated + */ + private final String name; + + /** + * + * + * @generated + */ + private final String literal; + + /** + * Only this class can construct instances. + * + * + * @generated + */ + private PowerUnitKind(int value, String name, String literal) { + this.value = value; + this.name = name; + this.literal = literal; + } + + /** + * + * + * @generated + */ + public int getValue() { + return value; + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public String getLiteral() { + return literal; + } + + /** + * Returns the literal value of the enumerator, which is its string representation. + * + * + * @generated + */ + @Override + public String toString() { + return literal; + } + +} //PowerUnitKind diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/TimeUnitKind.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/TimeUnitKind.java new file mode 100644 index 00000000000..24a08308bd3 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/TimeUnitKind.java @@ -0,0 +1,354 @@ +/***************************************************************************** + * 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 'Time Unit Kind', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.MeasurementUnitsPackage#getTimeUnitKind() + * @model + * @generated + */ +public enum TimeUnitKind implements Enumerator { + /** + * The 'S' literal object. + * + * + * @see #S_VALUE + * @generated + * @ordered + */ + S(0, "s", "s"), + + /** + * The 'Tick' literal object. + * + * + * @see #TICK_VALUE + * @generated + * @ordered + */ + TICK(1, "tick", "tick"), + + /** + * The 'Ms' literal object. + * + * + * @see #MS_VALUE + * @generated + * @ordered + */ + MS(2, "ms", "ms"), + + /** + * The 'Us' literal object. + * + * + * @see #US_VALUE + * @generated + * @ordered + */ + US(3, "us", "us"), + + /** + * The 'Min' literal object. + * + * + * @see #MIN_VALUE + * @generated + * @ordered + */ + MIN(4, "min", "min"), + + /** + * The 'Hrs' literal object. + * + * + * @see #HRS_VALUE + * @generated + * @ordered + */ + HRS(5, "hrs", "hrs"), + + /** + * The 'Day' literal object. + * + * + * @see #DAY_VALUE + * @generated + * @ordered + */ + DAY(6, "day", "day"); + + /** + * The 'S' literal value. + * + *

+ * 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 VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Time Unit Kind' literal with the specified literal value. + * + * + * @generated + */ + public static TimeUnitKind get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + TimeUnitKind result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Time Unit Kind' literal with the specified name. + * + * + * @generated + */ + public static TimeUnitKind getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + TimeUnitKind result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Time Unit Kind' literal with the specified integer value. + * + * + * @generated + */ + public static TimeUnitKind get(int value) { + switch (value) { + case S_VALUE: return S; + case TICK_VALUE: return TICK; + case MS_VALUE: return MS; + case US_VALUE: return US; + case MIN_VALUE: return MIN; + case HRS_VALUE: return HRS; + case DAY_VALUE: return DAY; + } + return null; + } + + /** + * + * + * @generated + */ + private final int value; + + /** + * + * + * @generated + */ + private final String name; + + /** + * + * + * @generated + */ + private final String literal; + + /** + * Only this class can construct instances. + * + * + * @generated + */ + private TimeUnitKind(int value, String name, String literal) { + this.value = value; + this.name = name; + this.literal = literal; + } + + /** + * + * + * @generated + */ + public int getValue() { + return value; + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public String getLiteral() { + return literal; + } + + /** + * Returns the literal value of the enumerator, which is its string representation. + * + * + * @generated + */ + @Override + public String toString() { + return literal; + } + +} //TimeUnitKind diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/WeightUnitKind.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/WeightUnitKind.java new file mode 100644 index 00000000000..77d52f69822 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/WeightUnitKind.java @@ -0,0 +1,246 @@ +/***************************************************************************** + * 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 'Weight Unit Kind', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE_Library.MeasurementUnits.MeasurementUnitsPackage#getWeightUnitKind() + * @model + * @generated + */ +public enum WeightUnitKind implements Enumerator { + /** + * The 'G' literal object. + * + * + * @see #G_VALUE + * @generated + * @ordered + */ + G(0, "g", "g"), + + /** + * The 'Mg' literal object. + * + * + * @see #MG_VALUE + * @generated + * @ordered + */ + MG(1, "mg", "mg"), + + /** + * The 'Kg' literal object. + * + * + * @see #KG_VALUE + * @generated + * @ordered + */ + KG(2, "kg", "kg"); + + /** + * The 'G' literal value. + * + *

+ * 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 List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Weight Unit Kind' literal with the specified literal value. + * + * + * @generated + */ + public static WeightUnitKind get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + WeightUnitKind result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Weight Unit Kind' literal with the specified name. + * + * + * @generated + */ + public static WeightUnitKind getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + WeightUnitKind result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Weight Unit Kind' literal with the specified integer value. + * + * + * @generated + */ + public static WeightUnitKind get(int value) { + switch (value) { + case G_VALUE: return G; + case MG_VALUE: return MG; + case KG_VALUE: return KG; + } + return null; + } + + /** + * + * + * @generated + */ + private final int value; + + /** + * + * + * @generated + */ + private final String name; + + /** + * + * + * @generated + */ + private final String literal; + + /** + * Only this class can construct instances. + * + * + * @generated + */ + private WeightUnitKind(int value, String name, String literal) { + this.value = value; + this.name = name; + this.literal = literal; + } + + /** + * + * + * @generated + */ + public int getValue() { + return value; + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public String getLiteral() { + return literal; + } + + /** + * Returns the literal value of the enumerator, which is its string representation. + * + * + * @generated + */ + @Override + public String toString() { + return literal; + } + +} //WeightUnitKind diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/impl/MeasurementUnitsFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/impl/MeasurementUnitsFactoryImpl.java new file mode 100644 index 00000000000..ef1fe02aa0a --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/impl/MeasurementUnitsFactoryImpl.java @@ -0,0 +1,338 @@ +/***************************************************************************** + * 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.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.MeasurementUnits.*; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class MeasurementUnitsFactoryImpl extends EFactoryImpl implements MeasurementUnitsFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static MeasurementUnitsFactory init() { + try { + MeasurementUnitsFactory theMeasurementUnitsFactory = (MeasurementUnitsFactory)EPackage.Registry.INSTANCE.getEFactory("http:///MARTE_Library/MeasurementUnits.ecore"); + if (theMeasurementUnitsFactory != null) { + return theMeasurementUnitsFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new MeasurementUnitsFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public MeasurementUnitsFactoryImpl() { + 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 MeasurementUnitsPackage.TIME_UNIT_KIND: + return createTimeUnitKindFromString(eDataType, initialValue); + case MeasurementUnitsPackage.POWER_UNIT_KIND: + return createPowerUnitKindFromString(eDataType, initialValue); + case MeasurementUnitsPackage.FREQUENCY_UNIT_KIND: + return createFrequencyUnitKindFromString(eDataType, initialValue); + case MeasurementUnitsPackage.DATA_SIZE_UNIT_KIND: + return createDataSizeUnitKindFromString(eDataType, initialValue); + case MeasurementUnitsPackage.DATA_TX_RATE_UNIT_KIND: + return createDataTxRateUnitKindFromString(eDataType, initialValue); + case MeasurementUnitsPackage.ENERGY_UNIT_KIND: + return createEnergyUnitKindFromString(eDataType, initialValue); + case MeasurementUnitsPackage.LENGTH_UNIT_KIND: + return createLengthUnitKindFromString(eDataType, initialValue); + case MeasurementUnitsPackage.AREA_UNIT_KIND: + return createAreaUnitKindFromString(eDataType, initialValue); + case MeasurementUnitsPackage.WEIGHT_UNIT_KIND: + return createWeightUnitKindFromString(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 MeasurementUnitsPackage.TIME_UNIT_KIND: + return convertTimeUnitKindToString(eDataType, instanceValue); + case MeasurementUnitsPackage.POWER_UNIT_KIND: + return convertPowerUnitKindToString(eDataType, instanceValue); + case MeasurementUnitsPackage.FREQUENCY_UNIT_KIND: + return convertFrequencyUnitKindToString(eDataType, instanceValue); + case MeasurementUnitsPackage.DATA_SIZE_UNIT_KIND: + return convertDataSizeUnitKindToString(eDataType, instanceValue); + case MeasurementUnitsPackage.DATA_TX_RATE_UNIT_KIND: + return convertDataTxRateUnitKindToString(eDataType, instanceValue); + case MeasurementUnitsPackage.ENERGY_UNIT_KIND: + return convertEnergyUnitKindToString(eDataType, instanceValue); + case MeasurementUnitsPackage.LENGTH_UNIT_KIND: + return convertLengthUnitKindToString(eDataType, instanceValue); + case MeasurementUnitsPackage.AREA_UNIT_KIND: + return convertAreaUnitKindToString(eDataType, instanceValue); + case MeasurementUnitsPackage.WEIGHT_UNIT_KIND: + return convertWeightUnitKindToString(eDataType, instanceValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @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 PowerUnitKind createPowerUnitKindFromString(EDataType eDataType, String initialValue) { + PowerUnitKind result = PowerUnitKind.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertPowerUnitKindToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public FrequencyUnitKind createFrequencyUnitKindFromString(EDataType eDataType, String initialValue) { + FrequencyUnitKind result = FrequencyUnitKind.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertFrequencyUnitKindToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public DataSizeUnitKind createDataSizeUnitKindFromString(EDataType eDataType, String initialValue) { + DataSizeUnitKind result = DataSizeUnitKind.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertDataSizeUnitKindToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public DataTxRateUnitKind createDataTxRateUnitKindFromString(EDataType eDataType, String initialValue) { + DataTxRateUnitKind result = DataTxRateUnitKind.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertDataTxRateUnitKindToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public EnergyUnitKind createEnergyUnitKindFromString(EDataType eDataType, String initialValue) { + EnergyUnitKind result = EnergyUnitKind.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertEnergyUnitKindToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public LengthUnitKind createLengthUnitKindFromString(EDataType eDataType, String initialValue) { + LengthUnitKind result = LengthUnitKind.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertLengthUnitKindToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public AreaUnitKind createAreaUnitKindFromString(EDataType eDataType, String initialValue) { + AreaUnitKind result = AreaUnitKind.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertAreaUnitKindToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public WeightUnitKind createWeightUnitKindFromString(EDataType eDataType, String initialValue) { + WeightUnitKind result = WeightUnitKind.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertWeightUnitKindToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public MeasurementUnitsPackage getMeasurementUnitsPackage() { + return (MeasurementUnitsPackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static MeasurementUnitsPackage getPackage() { + return MeasurementUnitsPackage.eINSTANCE; + } + +} //MeasurementUnitsFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/impl/MeasurementUnitsPackageImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/impl/MeasurementUnitsPackageImpl.java new file mode 100644 index 00000000000..6aced6bbc58 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/MeasurementUnits/impl/MeasurementUnitsPackageImpl.java @@ -0,0 +1,616 @@ +/***************************************************************************** + * 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.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.AreaUnitKind; +import org.eclipse.papyrus.MARTE_Library.MeasurementUnits.DataSizeUnitKind; +import org.eclipse.papyrus.MARTE_Library.MeasurementUnits.DataTxRateUnitKind; +import org.eclipse.papyrus.MARTE_Library.MeasurementUnits.EnergyUnitKind; +import org.eclipse.papyrus.MARTE_Library.MeasurementUnits.FrequencyUnitKind; +import org.eclipse.papyrus.MARTE_Library.MeasurementUnits.LengthUnitKind; +import org.eclipse.papyrus.MARTE_Library.MeasurementUnits.MeasurementUnitsFactory; +import org.eclipse.papyrus.MARTE_Library.MeasurementUnits.MeasurementUnitsPackage; +import org.eclipse.papyrus.MARTE_Library.MeasurementUnits.PowerUnitKind; +import org.eclipse.papyrus.MARTE_Library.MeasurementUnits.TimeUnitKind; +import org.eclipse.papyrus.MARTE_Library.MeasurementUnits.WeightUnitKind; + +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.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 MeasurementUnitsPackageImpl extends EPackageImpl implements MeasurementUnitsPackage { + /** + * + * + * @generated + */ + private EEnum timeUnitKindEEnum = null; + + /** + * + * + * @generated + */ + private EEnum powerUnitKindEEnum = null; + + /** + * + * + * @generated + */ + private EEnum frequencyUnitKindEEnum = null; + + /** + * + * + * @generated + */ + private EEnum dataSizeUnitKindEEnum = null; + + /** + * + * + * @generated + */ + private EEnum dataTxRateUnitKindEEnum = null; + + /** + * + * + * @generated + */ + private EEnum energyUnitKindEEnum = null; + + /** + * + * + * @generated + */ + private EEnum lengthUnitKindEEnum = null; + + /** + * + * + * @generated + */ + private EEnum areaUnitKindEEnum = null; + + /** + * + * + * @generated + */ + private EEnum weightUnitKindEEnum = 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.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 + *

    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @see org.eclipse.papyrus.MARTE_Library.RS_Library.RS_LibraryFactory + * @model kind="package" + * @generated + */ +public interface RS_LibraryPackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "RS_Library"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "http:///MARTE_Library/RS_Library.ecore"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "MARTE_Library.RS_Library"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + RS_LibraryPackage eINSTANCE = org.eclipse.papyrus.MARTE_Library.RS_Library.impl.RS_LibraryPackageImpl.init(); + + /** + * The meta object id for the 'Tiler Specification' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.RS_Library.impl.RS_LibraryPackageImpl#getTilerSpecification() + * @generated + */ + int TILER_SPECIFICATION = 0; + + /** + * The meta object id for the 'Shape Specification' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.RS_Library.impl.RS_LibraryPackageImpl#getShapeSpecification() + * @generated + */ + int SHAPE_SPECIFICATION = 1; + + + /** + * Returns the meta object for data type '{@link java.lang.String Tiler Specification}'. + * + * + * @return the meta object for data type 'Tiler Specification'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getTilerSpecification(); + + /** + * Returns the meta object for data type '{@link java.lang.String Shape Specification}'. + * + * + * @return the meta object for data type 'Shape Specification'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getShapeSpecification(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + RS_LibraryFactory getRS_LibraryFactory(); + + /** + * + * Defines literals for the meta objects that represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @generated + */ + interface Literals { + /** + * The meta object literal for the 'Tiler Specification' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.RS_Library.impl.RS_LibraryPackageImpl#getTilerSpecification() + * @generated + */ + EDataType TILER_SPECIFICATION = eINSTANCE.getTilerSpecification(); + + /** + * The meta object literal for the 'Shape Specification' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.RS_Library.impl.RS_LibraryPackageImpl#getShapeSpecification() + * @generated + */ + EDataType SHAPE_SPECIFICATION = eINSTANCE.getShapeSpecification(); + + } + +} //RS_LibraryPackage diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/RS_Library/impl/RS_LibraryFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/RS_Library/impl/RS_LibraryFactoryImpl.java new file mode 100644 index 00000000000..00ad7d6b348 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/RS_Library/impl/RS_LibraryFactoryImpl.java @@ -0,0 +1,166 @@ +/***************************************************************************** + * 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.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.RS_Library.*; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class RS_LibraryFactoryImpl extends EFactoryImpl implements RS_LibraryFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static RS_LibraryFactory init() { + try { + RS_LibraryFactory theRS_LibraryFactory = (RS_LibraryFactory)EPackage.Registry.INSTANCE.getEFactory("http:///MARTE_Library/RS_Library.ecore"); + if (theRS_LibraryFactory != null) { + return theRS_LibraryFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new RS_LibraryFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public RS_LibraryFactoryImpl() { + 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 RS_LibraryPackage.TILER_SPECIFICATION: + return createTilerSpecificationFromString(eDataType, initialValue); + case RS_LibraryPackage.SHAPE_SPECIFICATION: + return createShapeSpecificationFromString(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 RS_LibraryPackage.TILER_SPECIFICATION: + return convertTilerSpecificationToString(eDataType, instanceValue); + case RS_LibraryPackage.SHAPE_SPECIFICATION: + return convertShapeSpecificationToString(eDataType, instanceValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public String createTilerSpecificationFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertTilerSpecificationToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public String createShapeSpecificationFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertShapeSpecificationToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public RS_LibraryPackage getRS_LibraryPackage() { + return (RS_LibraryPackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static RS_LibraryPackage getPackage() { + return RS_LibraryPackage.eINSTANCE; + } + +} //RS_LibraryFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/RS_Library/impl/RS_LibraryPackageImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/RS_Library/impl/RS_LibraryPackageImpl.java new file mode 100644 index 00000000000..60751a25b60 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/RS_Library/impl/RS_LibraryPackageImpl.java @@ -0,0 +1,437 @@ +/***************************************************************************** + * 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.impl; + +import org.eclipse.emf.ecore.EDataType; +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_LibraryFactory; +import org.eclipse.papyrus.MARTE_Library.RS_Library.RS_LibraryPackage; + +import org.eclipse.papyrus.MARTE_Library.TimeLibrary.TimeLibraryPackage; + +import org.eclipse.papyrus.MARTE_Library.TimeLibrary.impl.TimeLibraryPackageImpl; + +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 RS_LibraryPackageImpl extends EPackageImpl implements RS_LibraryPackage { + /** + * + * + * @generated + */ + private EDataType tilerSpecificationEDataType = null; + + /** + * + * + * @generated + */ + private EDataType shapeSpecificationEDataType = 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.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 VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Logical Time Unit' literal with the specified literal value. + * + * + * @generated + */ + public static LogicalTimeUnit get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + LogicalTimeUnit result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Logical Time Unit' literal with the specified name. + * + * + * @generated + */ + public static LogicalTimeUnit getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + LogicalTimeUnit result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Logical Time Unit' literal with the specified integer value. + * + * + * @generated + */ + public static LogicalTimeUnit get(int value) { + switch (value) { + case TICK_VALUE: return TICK; + } + return null; + } + + /** + * + * + * @generated + */ + private final int value; + + /** + * + * + * @generated + */ + private final String name; + + /** + * + * + * @generated + */ + private final String literal; + + /** + * Only this class can construct instances. + * + * + * @generated + */ + private LogicalTimeUnit(int value, String name, String literal) { + this.value = value; + this.name = name; + this.literal = literal; + } + + /** + * + * + * @generated + */ + public int getValue() { + return value; + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public String getLiteral() { + return literal; + } + + /** + * Returns the literal value of the enumerator, which is its string representation. + * + * + * @generated + */ + @Override + public String toString() { + return literal; + } + +} //LogicalTimeUnit diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeLibrary/TimeLibraryFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeLibrary/TimeLibraryFactory.java new file mode 100644 index 00000000000..4464c080866 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeLibrary/TimeLibraryFactory.java @@ -0,0 +1,53 @@ +/***************************************************************************** + * 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.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.TimeLibrary.TimeLibraryPackage + * @generated + */ +public interface TimeLibraryFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + TimeLibraryFactory eINSTANCE = org.eclipse.papyrus.MARTE_Library.TimeLibrary.impl.TimeLibraryFactoryImpl.init(); + + /** + * Returns a new object of class 'Ideal Clock'. + * + * + * @return a new object of class 'Ideal Clock'. + * @generated + */ + IdealClock createIdealClock(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + TimeLibraryPackage getTimeLibraryPackage(); + +} //TimeLibraryFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeLibrary/TimeLibraryPackage.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeLibrary/TimeLibraryPackage.java new file mode 100644 index 00000000000..df24b71d4a6 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeLibrary/TimeLibraryPackage.java @@ -0,0 +1,255 @@ +/***************************************************************************** + * 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.EClass; +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 + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @see org.eclipse.papyrus.MARTE_Library.TimeLibrary.TimeLibraryFactory + * @model kind="package" + * @generated + */ +public interface TimeLibraryPackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "TimeLibrary"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "http:///MARTE_Library/TimeLibrary.ecore"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "MARTE_Library.TimeLibrary"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + TimeLibraryPackage eINSTANCE = org.eclipse.papyrus.MARTE_Library.TimeLibrary.impl.TimeLibraryPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE_Library.TimeLibrary.impl.IdealClockImpl Ideal Clock}' class. + * + * + * @see org.eclipse.papyrus.MARTE_Library.TimeLibrary.impl.IdealClockImpl + * @see org.eclipse.papyrus.MARTE_Library.TimeLibrary.impl.TimeLibraryPackageImpl#getIdealClock() + * @generated + */ + int IDEAL_CLOCK = 0; + + /** + * The number of structural features of the 'Ideal Clock' class. + * + * + * @generated + * @ordered + */ + int IDEAL_CLOCK_FEATURE_COUNT = 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE_Library.TimeLibrary.TimeUnitKind Time Unit Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE_Library.TimeLibrary.TimeUnitKind + * @see org.eclipse.papyrus.MARTE_Library.TimeLibrary.impl.TimeLibraryPackageImpl#getTimeUnitKind() + * @generated + */ + int TIME_UNIT_KIND = 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE_Library.TimeLibrary.LogicalTimeUnit Logical Time Unit}' enum. + * + * + * @see org.eclipse.papyrus.MARTE_Library.TimeLibrary.LogicalTimeUnit + * @see org.eclipse.papyrus.MARTE_Library.TimeLibrary.impl.TimeLibraryPackageImpl#getLogicalTimeUnit() + * @generated + */ + int LOGICAL_TIME_UNIT = 2; + + /** + * The meta object id for the 'Timed Value Type' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.TimeLibrary.impl.TimeLibraryPackageImpl#getTimedValueType() + * @generated + */ + int TIMED_VALUE_TYPE = 3; + + /** + * The meta object id for the 'Clocked Value Specification' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.TimeLibrary.impl.TimeLibraryPackageImpl#getClockedValueSpecification() + * @generated + */ + int CLOCKED_VALUE_SPECIFICATION = 4; + + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE_Library.TimeLibrary.IdealClock Ideal Clock}'. + * + * + * @return the meta object for class 'Ideal Clock'. + * @see org.eclipse.papyrus.MARTE_Library.TimeLibrary.IdealClock + * @generated + */ + EClass getIdealClock(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE_Library.TimeLibrary.TimeUnitKind Time Unit Kind}'. + * + * + * @return the meta object for enum 'Time Unit Kind'. + * @see org.eclipse.papyrus.MARTE_Library.TimeLibrary.TimeUnitKind + * @generated + */ + EEnum getTimeUnitKind(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE_Library.TimeLibrary.LogicalTimeUnit Logical Time Unit}'. + * + * + * @return the meta object for enum 'Logical Time Unit'. + * @see org.eclipse.papyrus.MARTE_Library.TimeLibrary.LogicalTimeUnit + * @generated + */ + EEnum getLogicalTimeUnit(); + + /** + * Returns the meta object for data type '{@link java.lang.String Timed Value Type}'. + * + * + * @return the meta object for data type 'Timed Value Type'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getTimedValueType(); + + /** + * Returns the meta object for data type '{@link java.lang.String Clocked Value Specification}'. + * + * + * @return the meta object for data type 'Clocked Value Specification'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getClockedValueSpecification(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + TimeLibraryFactory getTimeLibraryFactory(); + + /** + * + * Defines literals for the meta objects that represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE_Library.TimeLibrary.impl.IdealClockImpl Ideal Clock}' class. + * + * + * @see org.eclipse.papyrus.MARTE_Library.TimeLibrary.impl.IdealClockImpl + * @see org.eclipse.papyrus.MARTE_Library.TimeLibrary.impl.TimeLibraryPackageImpl#getIdealClock() + * @generated + */ + EClass IDEAL_CLOCK = eINSTANCE.getIdealClock(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE_Library.TimeLibrary.TimeUnitKind Time Unit Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE_Library.TimeLibrary.TimeUnitKind + * @see org.eclipse.papyrus.MARTE_Library.TimeLibrary.impl.TimeLibraryPackageImpl#getTimeUnitKind() + * @generated + */ + EEnum TIME_UNIT_KIND = eINSTANCE.getTimeUnitKind(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE_Library.TimeLibrary.LogicalTimeUnit Logical Time Unit}' enum. + * + * + * @see org.eclipse.papyrus.MARTE_Library.TimeLibrary.LogicalTimeUnit + * @see org.eclipse.papyrus.MARTE_Library.TimeLibrary.impl.TimeLibraryPackageImpl#getLogicalTimeUnit() + * @generated + */ + EEnum LOGICAL_TIME_UNIT = eINSTANCE.getLogicalTimeUnit(); + + /** + * The meta object literal for the 'Timed Value Type' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.TimeLibrary.impl.TimeLibraryPackageImpl#getTimedValueType() + * @generated + */ + EDataType TIMED_VALUE_TYPE = eINSTANCE.getTimedValueType(); + + /** + * The meta object literal for the 'Clocked Value Specification' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE_Library.TimeLibrary.impl.TimeLibraryPackageImpl#getClockedValueSpecification() + * @generated + */ + EDataType CLOCKED_VALUE_SPECIFICATION = eINSTANCE.getClockedValueSpecification(); + + } + +} //TimeLibraryPackage diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeLibrary/TimeUnitKind.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeLibrary/TimeUnitKind.java new file mode 100644 index 00000000000..191af822567 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeLibrary/TimeUnitKind.java @@ -0,0 +1,354 @@ +/***************************************************************************** + * 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 'Time Unit Kind', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE_Library.TimeLibrary.TimeLibraryPackage#getTimeUnitKind() + * @model + * @generated + */ +public enum TimeUnitKind implements Enumerator { + /** + * The 'S' literal object. + * + * + * @see #S_VALUE + * @generated + * @ordered + */ + S(0, "s", "s"), + + /** + * The 'Ms' literal object. + * + * + * @see #MS_VALUE + * @generated + * @ordered + */ + MS(1, "ms", "ms"), + + /** + * The 'Us' literal object. + * + * + * @see #US_VALUE + * @generated + * @ordered + */ + US(2, "us", "us"), + + /** + * The 'Ns' literal object. + * + * + * @see #NS_VALUE + * @generated + * @ordered + */ + NS(3, "ns", "ns"), + + /** + * The 'Min' literal object. + * + * + * @see #MIN_VALUE + * @generated + * @ordered + */ + MIN(4, "min", "min"), + + /** + * The 'Hrs' literal object. + * + * + * @see #HRS_VALUE + * @generated + * @ordered + */ + HRS(5, "hrs", "hrs"), + + /** + * The 'Day' literal object. + * + * + * @see #DAY_VALUE + * @generated + * @ordered + */ + DAY(6, "day", "day"); + + /** + * The 'S' literal value. + * + *

+ * 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 VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Time Unit Kind' literal with the specified literal value. + * + * + * @generated + */ + public static TimeUnitKind get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + TimeUnitKind result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Time Unit Kind' literal with the specified name. + * + * + * @generated + */ + public static TimeUnitKind getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + TimeUnitKind result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Time Unit Kind' literal with the specified integer value. + * + * + * @generated + */ + public static TimeUnitKind get(int value) { + switch (value) { + case S_VALUE: return S; + case MS_VALUE: return MS; + case US_VALUE: return US; + case NS_VALUE: return NS; + case MIN_VALUE: return MIN; + case HRS_VALUE: return HRS; + case DAY_VALUE: return DAY; + } + return null; + } + + /** + * + * + * @generated + */ + private final int value; + + /** + * + * + * @generated + */ + private final String name; + + /** + * + * + * @generated + */ + private final String literal; + + /** + * Only this class can construct instances. + * + * + * @generated + */ + private TimeUnitKind(int value, String name, String literal) { + this.value = value; + this.name = name; + this.literal = literal; + } + + /** + * + * + * @generated + */ + public int getValue() { + return value; + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public String getLiteral() { + return literal; + } + + /** + * Returns the literal value of the enumerator, which is its string representation. + * + * + * @generated + */ + @Override + public String toString() { + return literal; + } + +} //TimeUnitKind diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeLibrary/impl/IdealClockImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeLibrary/impl/IdealClockImpl.java new file mode 100644 index 00000000000..33c3ea5dae8 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeLibrary/impl/IdealClockImpl.java @@ -0,0 +1,63 @@ +/***************************************************************************** + * 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.impl.EObjectImpl; + +import org.eclipse.papyrus.MARTE_Library.TimeLibrary.IdealClock; +import org.eclipse.papyrus.MARTE_Library.TimeLibrary.TimeLibraryPackage; + +/** + * + * An implementation of the model object 'Ideal Clock'. + * + *

+ *

+ * + * @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 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 TimeLibrarySwitch modelSwitch = + new TimeLibrarySwitch() { + @Override + public Adapter caseIdealClock(IdealClock object) { + return createIdealClockAdapter(); + } + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the target. + * + * + * @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 TimeLibrarySwitch { + /** + * The cached model package + * + * + * @generated + */ + protected static TimeLibraryPackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public TimeLibrarySwitch() { + if (modelPackage == null) { + modelPackage = TimeLibraryPackage.eINSTANCE; + } + } + + /** + * 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 + */ + 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 { + List eSuperTypes = theEClass.getESuperTypes(); + return + eSuperTypes.isEmpty() ? + defaultCase(theEObject) : + doSwitch(eSuperTypes.get(0), 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(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. + * + *

+ * If the meaning of 'Start' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #START + * @model name="start" + * @generated + * @ordered + */ + public static final int START_VALUE = 0; + + /** + * The 'Finish' literal value. + * + *

+ * If the meaning of 'Finish' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #FINISH + * @model name="finish" + * @generated + * @ordered + */ + public static final int FINISH_VALUE = 1; + + /** + * The 'Send' literal value. + * + *

+ * If the meaning of 'Send' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #SEND + * @model name="send" + * @generated + * @ordered + */ + public static final int SEND_VALUE = 2; + + /** + * The 'Receive' literal value. + * + *

+ * If the meaning of 'Receive' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #RECEIVE + * @model name="receive" + * @generated + * @ordered + */ + public static final int RECEIVE_VALUE = 3; + + /** + * The 'Consume' literal value. + * + *

+ * If the meaning of 'Consume' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #CONSUME + * @model name="consume" + * @generated + * @ordered + */ + public static final int CONSUME_VALUE = 4; + + /** + * An array of all the 'Event Kind' enumerators. + * + * + * @generated + */ + private static final EventKind[] VALUES_ARRAY = + new EventKind[] { + START, + FINISH, + SEND, + RECEIVE, + CONSUME, + }; + + /** + * A public read-only list of all the 'Event Kind' enumerators. + * + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Event Kind' literal with the specified literal value. + * + * + * @generated + */ + public static EventKind get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + EventKind result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Event Kind' literal with the specified name. + * + * + * @generated + */ + public static EventKind getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + EventKind result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Event Kind' literal with the specified integer value. + * + * + * @generated + */ + public static EventKind get(int value) { + switch (value) { + case START_VALUE: return START; + case FINISH_VALUE: return FINISH; + case SEND_VALUE: return SEND; + case RECEIVE_VALUE: return RECEIVE; + case CONSUME_VALUE: return CONSUME; + } + return null; + } + + /** + * + * + * @generated + */ + private final int value; + + /** + * + * + * @generated + */ + private final String name; + + /** + * + * + * @generated + */ + private final String literal; + + /** + * Only this class can construct instances. + * + * + * @generated + */ + private EventKind(int value, String name, String literal) { + this.value = value; + this.name = name; + this.literal = literal; + } + + /** + * + * + * @generated + */ + public int getValue() { + return value; + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public String getLiteral() { + return literal; + } + + /** + * Returns the literal value of the enumerator, which is its string representation. + * + * + * @generated + */ + @Override + public String toString() { + return literal; + } + +} //EventKind diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeTypesLibrary/TimeInterpretationKind.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeTypesLibrary/TimeInterpretationKind.java new file mode 100644 index 00000000000..a10fa3ab249 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeTypesLibrary/TimeInterpretationKind.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.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 'Time Interpretation Kind', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.TimeTypesLibraryPackage#getTimeInterpretationKind() + * @model + * @generated + */ +public enum TimeInterpretationKind implements Enumerator { + /** + * The 'Duration' literal object. + * + * + * @see #DURATION_VALUE + * @generated + * @ordered + */ + DURATION(0, "duration", "duration"), + + /** + * The 'Instant' literal object. + * + * + * @see #INSTANT_VALUE + * @generated + * @ordered + */ + INSTANT(1, "instant", "instant"); + + /** + * The 'Duration' literal value. + * + *

+ * If the meaning of 'Duration' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #DURATION + * @model name="duration" + * @generated + * @ordered + */ + public static final int DURATION_VALUE = 0; + + /** + * The 'Instant' literal value. + * + *

+ * If the meaning of 'Instant' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #INSTANT + * @model name="instant" + * @generated + * @ordered + */ + public static final int INSTANT_VALUE = 1; + + /** + * An array of all the 'Time Interpretation Kind' enumerators. + * + * + * @generated + */ + private static final TimeInterpretationKind[] VALUES_ARRAY = + new TimeInterpretationKind[] { + DURATION, + INSTANT, + }; + + /** + * A public read-only list of all the 'Time Interpretation Kind' enumerators. + * + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Time Interpretation Kind' literal with the specified literal value. + * + * + * @generated + */ + public static TimeInterpretationKind get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + TimeInterpretationKind result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Time Interpretation Kind' literal with the specified name. + * + * + * @generated + */ + public static TimeInterpretationKind getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + TimeInterpretationKind result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Time Interpretation Kind' literal with the specified integer value. + * + * + * @generated + */ + public static TimeInterpretationKind get(int value) { + switch (value) { + case DURATION_VALUE: return DURATION; + case INSTANT_VALUE: return INSTANT; + } + return null; + } + + /** + * + * + * @generated + */ + private final int value; + + /** + * + * + * @generated + */ + private final String name; + + /** + * + * + * @generated + */ + private final String literal; + + /** + * Only this class can construct instances. + * + * + * @generated + */ + private TimeInterpretationKind(int value, String name, String literal) { + this.value = value; + this.name = name; + this.literal = literal; + } + + /** + * + * + * @generated + */ + public int getValue() { + return value; + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public String getLiteral() { + return literal; + } + + /** + * Returns the literal value of the enumerator, which is its string representation. + * + * + * @generated + */ + @Override + public String toString() { + return literal; + } + +} //TimeInterpretationKind diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeTypesLibrary/TimeNatureKind.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeTypesLibrary/TimeNatureKind.java new file mode 100644 index 00000000000..2f3e80efb16 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeTypesLibrary/TimeNatureKind.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.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 'Time Nature Kind', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.TimeTypesLibraryPackage#getTimeNatureKind() + * @model + * @generated + */ +public enum TimeNatureKind implements Enumerator { + /** + * The 'Discrete' literal object. + * + * + * @see #DISCRETE_VALUE + * @generated + * @ordered + */ + DISCRETE(0, "discrete", "discrete"), + + /** + * The 'Dense' literal object. + * + * + * @see #DENSE_VALUE + * @generated + * @ordered + */ + DENSE(1, "dense", "dense"); + + /** + * The 'Discrete' literal value. + * + *

+ * If the meaning of 'Discrete' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #DISCRETE + * @model name="discrete" + * @generated + * @ordered + */ + public static final int DISCRETE_VALUE = 0; + + /** + * The 'Dense' literal value. + * + *

+ * If the meaning of 'Dense' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #DENSE + * @model name="dense" + * @generated + * @ordered + */ + public static final int DENSE_VALUE = 1; + + /** + * An array of all the 'Time Nature Kind' enumerators. + * + * + * @generated + */ + private static final TimeNatureKind[] VALUES_ARRAY = + new TimeNatureKind[] { + DISCRETE, + DENSE, + }; + + /** + * A public read-only list of all the 'Time Nature Kind' enumerators. + * + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Time Nature Kind' literal with the specified literal value. + * + * + * @generated + */ + public static TimeNatureKind get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + TimeNatureKind result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Time Nature Kind' literal with the specified name. + * + * + * @generated + */ + public static TimeNatureKind getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + TimeNatureKind result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Time Nature Kind' literal with the specified integer value. + * + * + * @generated + */ + public static TimeNatureKind get(int value) { + switch (value) { + case DISCRETE_VALUE: return DISCRETE; + case DENSE_VALUE: return DENSE; + } + return null; + } + + /** + * + * + * @generated + */ + private final int value; + + /** + * + * + * @generated + */ + private final String name; + + /** + * + * + * @generated + */ + private final String literal; + + /** + * Only this class can construct instances. + * + * + * @generated + */ + private TimeNatureKind(int value, String name, String literal) { + this.value = value; + this.name = name; + this.literal = literal; + } + + /** + * + * + * @generated + */ + public int getValue() { + return value; + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public String getLiteral() { + return literal; + } + + /** + * Returns the literal value of the enumerator, which is its string representation. + * + * + * @generated + */ + @Override + public String toString() { + return literal; + } + +} //TimeNatureKind diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeTypesLibrary/TimeStandardKind.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeTypesLibrary/TimeStandardKind.java new file mode 100644 index 00000000000..c815a26663d --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeTypesLibrary/TimeStandardKind.java @@ -0,0 +1,462 @@ +/***************************************************************************** + * 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 'Time Standard Kind', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.TimeTypesLibraryPackage#getTimeStandardKind() + * @model + * @generated + */ +public enum TimeStandardKind implements Enumerator { + /** + * The 'TAI' literal object. + * + * + * @see #TAI_VALUE + * @generated + * @ordered + */ + TAI(0, "TAI", "TAI"), + + /** + * The 'UT0' literal object. + * + * + * @see #UT0_VALUE + * @generated + * @ordered + */ + UT0(1, "UT0", "UT0"), + + /** + * The 'UT1' literal object. + * + * + * @see #UT1_VALUE + * @generated + * @ordered + */ + UT1(2, "UT1", "UT1"), + + /** + * The 'UTC' literal object. + * + * + * @see #UTC_VALUE + * @generated + * @ordered + */ + UTC(3, "UTC", "UTC"), + + /** + * The 'Local' literal object. + * + * + * @see #LOCAL_VALUE + * @generated + * @ordered + */ + LOCAL(4, "Local", "Local"), + + /** + * The 'TT' literal object. + * + * + * @see #TT_VALUE + * @generated + * @ordered + */ + TT(5, "TT", "TT"), + + /** + * The 'TBD' literal object. + * + * + * @see #TBD_VALUE + * @generated + * @ordered + */ + TBD(6, "TBD", "TBD"), + + /** + * The 'TCG' literal object. + * + * + * @see #TCG_VALUE + * @generated + * @ordered + */ + TCG(7, "TCG", "TCG"), + + /** + * The 'TCB' literal object. + * + * + * @see #TCB_VALUE + * @generated + * @ordered + */ + TCB(8, "TCB", "TCB"), + + /** + * The 'Sidereal' literal object. + * + * + * @see #SIDEREAL_VALUE + * @generated + * @ordered + */ + SIDEREAL(9, "Sidereal", "Sidereal"), + + /** + * The 'GPS' literal object. + * + * + * @see #GPS_VALUE + * @generated + * @ordered + */ + GPS(10, "GPS", "GPS"); + + /** + * The 'TAI' literal value. + * + *

+ * If the meaning of 'TAI' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #TAI + * @model + * @generated + * @ordered + */ + public static final int TAI_VALUE = 0; + + /** + * The 'UT0' literal value. + * + *

+ * If the meaning of 'UT0' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #UT0 + * @model + * @generated + * @ordered + */ + public static final int UT0_VALUE = 1; + + /** + * The 'UT1' literal value. + * + *

+ * If the meaning of 'UT1' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #UT1 + * @model + * @generated + * @ordered + */ + public static final int UT1_VALUE = 2; + + /** + * The 'UTC' literal value. + * + *

+ * If the meaning of 'UTC' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #UTC + * @model + * @generated + * @ordered + */ + public static final int UTC_VALUE = 3; + + /** + * The 'Local' literal value. + * + *

+ * If the meaning of 'Local' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #LOCAL + * @model name="Local" + * @generated + * @ordered + */ + public static final int LOCAL_VALUE = 4; + + /** + * The 'TT' literal value. + * + *

+ * If the meaning of 'TT' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #TT + * @model + * @generated + * @ordered + */ + public static final int TT_VALUE = 5; + + /** + * The 'TBD' literal value. + * + *

+ * If the meaning of 'TBD' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #TBD + * @model + * @generated + * @ordered + */ + public static final int TBD_VALUE = 6; + + /** + * The 'TCG' literal value. + * + *

+ * If the meaning of 'TCG' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #TCG + * @model + * @generated + * @ordered + */ + public static final int TCG_VALUE = 7; + + /** + * The 'TCB' literal value. + * + *

+ * If the meaning of 'TCB' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #TCB + * @model + * @generated + * @ordered + */ + public static final int TCB_VALUE = 8; + + /** + * The 'Sidereal' literal value. + * + *

+ * If the meaning of 'Sidereal' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #SIDEREAL + * @model name="Sidereal" + * @generated + * @ordered + */ + public static final int SIDEREAL_VALUE = 9; + + /** + * The 'GPS' literal value. + * + *

+ * If the meaning of 'GPS' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #GPS + * @model + * @generated + * @ordered + */ + public static final int GPS_VALUE = 10; + + /** + * An array of all the 'Time Standard Kind' enumerators. + * + * + * @generated + */ + private static final TimeStandardKind[] VALUES_ARRAY = + new TimeStandardKind[] { + TAI, + UT0, + UT1, + UTC, + LOCAL, + TT, + TBD, + TCG, + TCB, + SIDEREAL, + GPS, + }; + + /** + * A public read-only list of all the 'Time Standard Kind' enumerators. + * + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Time Standard Kind' literal with the specified literal value. + * + * + * @generated + */ + public static TimeStandardKind get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + TimeStandardKind result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Time Standard Kind' literal with the specified name. + * + * + * @generated + */ + public static TimeStandardKind getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + TimeStandardKind result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Time Standard Kind' literal with the specified integer value. + * + * + * @generated + */ + public static TimeStandardKind get(int value) { + switch (value) { + case TAI_VALUE: return TAI; + case UT0_VALUE: return UT0; + case UT1_VALUE: return UT1; + case UTC_VALUE: return UTC; + case LOCAL_VALUE: return LOCAL; + case TT_VALUE: return TT; + case TBD_VALUE: return TBD; + case TCG_VALUE: return TCG; + case TCB_VALUE: return TCB; + case SIDEREAL_VALUE: return SIDEREAL; + case GPS_VALUE: return GPS; + } + return null; + } + + /** + * + * + * @generated + */ + private final int value; + + /** + * + * + * @generated + */ + private final String name; + + /** + * + * + * @generated + */ + private final String literal; + + /** + * Only this class can construct instances. + * + * + * @generated + */ + private TimeStandardKind(int value, String name, String literal) { + this.value = value; + this.name = name; + this.literal = literal; + } + + /** + * + * + * @generated + */ + public int getValue() { + return value; + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public String getLiteral() { + return literal; + } + + /** + * Returns the literal value of the enumerator, which is its string representation. + * + * + * @generated + */ + @Override + public String toString() { + return literal; + } + +} //TimeStandardKind diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeTypesLibrary/TimeTypesLibraryFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeTypesLibrary/TimeTypesLibraryFactory.java new file mode 100644 index 00000000000..d3c1952164c --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeTypesLibrary/TimeTypesLibraryFactory.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.TimeTypesLibrary; + +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.TimeTypesLibrary.TimeTypesLibraryPackage + * @generated + */ +public interface TimeTypesLibraryFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + TimeTypesLibraryFactory eINSTANCE = org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.impl.TimeTypesLibraryFactoryImpl.init(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + TimeTypesLibraryPackage getTimeTypesLibraryPackage(); + +} //TimeTypesLibraryFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeTypesLibrary/TimeTypesLibraryPackage.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeTypesLibrary/TimeTypesLibraryPackage.java new file mode 100644 index 00000000000..dfbfefb733b --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE_Library/TimeTypesLibrary/TimeTypesLibraryPackage.java @@ -0,0 +1,212 @@ +/***************************************************************************** + * 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 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 + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @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 + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @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. + *

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