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 --- .../org/eclipse/papyrus/MARTE/MARTEFactory.java | 44 + .../org/eclipse/papyrus/MARTE/MARTEPackage.java | 122 + .../MARTE_AnalysisModel/GQAM/GQAMFactory.java | 197 + .../MARTE_AnalysisModel/GQAM/GQAMPackage.java | 5128 ++++++++++++++++++++ .../MARTE/MARTE_AnalysisModel/GQAM/GaAcqStep.java | 89 + .../GQAM/GaAnalysisContext.java | 89 + .../MARTE_AnalysisModel/GQAM/GaCommChannel.java | 88 + .../MARTE/MARTE_AnalysisModel/GQAM/GaCommHost.java | 71 + .../MARTE/MARTE_AnalysisModel/GQAM/GaCommStep.java | 28 + .../MARTE_AnalysisModel/GQAM/GaEventTrace.java | 144 + .../MARTE/MARTE_AnalysisModel/GQAM/GaExecHost.java | 233 + .../MARTE_AnalysisModel/GQAM/GaLatencyObs.java | 102 + .../MARTE/MARTE_AnalysisModel/GQAM/GaRelStep.java | 89 + .../GQAM/GaRequestedService.java | 61 + .../GQAM/GaResourcesPlatform.java | 84 + .../MARTE/MARTE_AnalysisModel/GQAM/GaScenario.java | 266 + .../MARTE/MARTE_AnalysisModel/GQAM/GaStep.java | 346 ++ .../MARTE/MARTE_AnalysisModel/GQAM/GaTimedObs.java | 102 + .../GQAM/GaWorkloadBehavior.java | 99 + .../MARTE_AnalysisModel/GQAM/GaWorkloadEvent.java | 199 + .../GQAM/GaWorkloadGenerator.java | 91 + .../MARTE/MARTE_AnalysisModel/GQAM/LaxityKind.java | 246 + .../GQAM/impl/GQAMFactoryImpl.java | 333 ++ .../GQAM/impl/GQAMPackageImpl.java | 1563 ++++++ .../GQAM/impl/GaAcqStepImpl.java | 236 + .../GQAM/impl/GaAnalysisContextImpl.java | 333 ++ .../GQAM/impl/GaCommChannelImpl.java | 229 + .../GQAM/impl/GaCommHostImpl.java | 671 +++ .../GQAM/impl/GaCommStepImpl.java | 50 + .../GQAM/impl/GaEventTraceImpl.java | 345 ++ .../GQAM/impl/GaExecHostImpl.java | 688 +++ .../GQAM/impl/GaLatencyObsImpl.java | 266 + .../GQAM/impl/GaRelStepImpl.java | 236 + .../GQAM/impl/GaRequestedServiceImpl.java | 168 + .../GQAM/impl/GaResourcesPlatformImpl.java | 212 + .../GQAM/impl/GaScenarioImpl.java | 1108 +++++ .../MARTE_AnalysisModel/GQAM/impl/GaStepImpl.java | 848 ++++ .../GQAM/impl/GaTimedObsImpl.java | 253 + .../GQAM/impl/GaWorkloadBehaviorImpl.java | 246 + .../GQAM/impl/GaWorkloadEventImpl.java | 481 ++ .../GQAM/impl/GaWorkloadGeneratorImpl.java | 237 + .../GQAM/util/GQAMAdapterFactory.java | 652 +++ .../GQAM/util/GQAMResourceFactoryImpl.java | 63 + .../GQAM/util/GQAMResourceImpl.java | 39 + .../MARTE_AnalysisModel/GQAM/util/GQAMSwitch.java | 712 +++ .../GQAM/util/GQAMXMLProcessor.java | 61 + .../MARTE/MARTE_AnalysisModel/PAM/PAMFactory.java | 98 + .../MARTE/MARTE_AnalysisModel/PAM/PAMPackage.java | 2419 +++++++++ .../MARTE/MARTE_AnalysisModel/PAM/PaCommStep.java | 29 + .../MARTE_AnalysisModel/PAM/PaLogicalResource.java | 115 + .../MARTE_AnalysisModel/PAM/PaRequestedStep.java | 29 + .../MARTE_AnalysisModel/PAM/PaResPassStep.java | 91 + .../MARTE_AnalysisModel/PAM/PaRunTInstance.java | 230 + .../MARTE/MARTE_AnalysisModel/PAM/PaStep.java | 133 + .../PAM/impl/PAMFactoryImpl.java | 161 + .../PAM/impl/PAMPackageImpl.java | 731 +++ .../PAM/impl/PaCommStepImpl.java | 50 + .../PAM/impl/PaLogicalResourceImpl.java | 283 ++ .../PAM/impl/PaRequestedStepImpl.java | 203 + .../PAM/impl/PaResPassStepImpl.java | 238 + .../PAM/impl/PaRunTInstanceImpl.java | 523 ++ .../MARTE_AnalysisModel/PAM/impl/PaStepImpl.java | 327 ++ .../PAM/util/PAMAdapterFactory.java | 376 ++ .../PAM/util/PAMResourceFactoryImpl.java | 63 + .../PAM/util/PAMResourceImpl.java | 39 + .../MARTE_AnalysisModel/PAM/util/PAMSwitch.java | 398 ++ .../PAM/util/PAMXMLProcessor.java | 61 + .../SAM/OptimallityCriterionKind.java | 300 ++ .../MARTE/MARTE_AnalysisModel/SAM/SAMFactory.java | 116 + .../MARTE/MARTE_AnalysisModel/SAM/SAMPackage.java | 2890 +++++++++++ .../MARTE_AnalysisModel/SAM/SaAnalysisContext.java | 91 + .../MARTE/MARTE_AnalysisModel/SAM/SaCommHost.java | 88 + .../MARTE/MARTE_AnalysisModel/SAM/SaCommStep.java | 144 + .../MARTE_AnalysisModel/SAM/SaEndtoEndFlow.java | 172 + .../MARTE/MARTE_AnalysisModel/SAM/SaExecHost.java | 169 + .../MARTE/MARTE_AnalysisModel/SAM/SaSchedObs.java | 87 + .../MARTE_AnalysisModel/SAM/SaSharedResource.java | 151 + .../MARTE/MARTE_AnalysisModel/SAM/SaStep.java | 298 ++ .../SAM/impl/SAMFactoryImpl.java | 234 + .../SAM/impl/SAMPackageImpl.java | 1046 ++++ .../SAM/impl/SaAnalysisContextImpl.java | 230 + .../SAM/impl/SaCommHostImpl.java | 229 + .../SAM/impl/SaCommStepImpl.java | 346 ++ .../SAM/impl/SaEndtoEndFlowImpl.java | 407 ++ .../SAM/impl/SaExecHostImpl.java | 391 ++ .../SAM/impl/SaSchedObsImpl.java | 232 + .../SAM/impl/SaSharedResourceImpl.java | 362 ++ .../MARTE_AnalysisModel/SAM/impl/SaStepImpl.java | 658 +++ .../SAM/util/SAMAdapterFactory.java | 624 +++ .../SAM/util/SAMResourceFactoryImpl.java | 63 + .../SAM/util/SAMResourceImpl.java | 39 + .../MARTE_AnalysisModel/SAM/util/SAMSwitch.java | 622 +++ .../SAM/util/SAMXMLProcessor.java | 61 + .../MARTE/MARTE_Annexes/RSM/DefaultLink.java | 28 + .../MARTE/MARTE_Annexes/RSM/Distribute.java | 142 + .../MARTE/MARTE_Annexes/RSM/InterRepetition.java | 88 + .../MARTE/MARTE_Annexes/RSM/LinkTopology.java | 63 + .../MARTE/MARTE_Annexes/RSM/RSMFactory.java | 98 + .../MARTE/MARTE_Annexes/RSM/RSMPackage.java | 889 ++++ .../papyrus/MARTE/MARTE_Annexes/RSM/Reshape.java | 87 + .../papyrus/MARTE/MARTE_Annexes/RSM/Shaped.java | 90 + .../papyrus/MARTE/MARTE_Annexes/RSM/Tiler.java | 169 + .../MARTE_Annexes/RSM/impl/DefaultLinkImpl.java | 50 + .../MARTE_Annexes/RSM/impl/DistributeImpl.java | 337 ++ .../RSM/impl/InterRepetitionImpl.java | 227 + .../MARTE_Annexes/RSM/impl/LinkTopologyImpl.java | 169 + .../MARTE_Annexes/RSM/impl/RSMFactoryImpl.java | 161 + .../MARTE_Annexes/RSM/impl/RSMPackageImpl.java | 739 +++ .../MARTE/MARTE_Annexes/RSM/impl/ReshapeImpl.java | 227 + .../MARTE/MARTE_Annexes/RSM/impl/ShapedImpl.java | 237 + .../MARTE/MARTE_Annexes/RSM/impl/TilerImpl.java | 398 ++ .../MARTE_Annexes/RSM/util/RSMAdapterFactory.java | 259 + .../RSM/util/RSMResourceFactoryImpl.java | 63 + .../MARTE_Annexes/RSM/util/RSMResourceImpl.java | 39 + .../MARTE/MARTE_Annexes/RSM/util/RSMSwitch.java | 285 ++ .../MARTE_Annexes/RSM/util/RSMXMLProcessor.java | 61 + .../VSL/DataTypes/BoundedSubtype.java | 199 + .../MARTE_Annexes/VSL/DataTypes/ChoiceType.java | 110 + .../VSL/DataTypes/CollectionType.java | 91 + .../VSL/DataTypes/DataTypesFactory.java | 89 + .../VSL/DataTypes/DataTypesPackage.java | 709 +++ .../MARTE_Annexes/VSL/DataTypes/IntervalType.java | 91 + .../MARTE_Annexes/VSL/DataTypes/TupleType.java | 83 + .../VSL/DataTypes/impl/BoundedSubtypeImpl.java | 460 ++ .../VSL/DataTypes/impl/ChoiceTypeImpl.java | 271 ++ .../VSL/DataTypes/impl/CollectionTypeImpl.java | 230 + .../VSL/DataTypes/impl/DataTypesFactoryImpl.java | 150 + .../VSL/DataTypes/impl/DataTypesPackageImpl.java | 677 +++ .../VSL/DataTypes/impl/IntervalTypeImpl.java | 230 + .../VSL/DataTypes/impl/TupleTypeImpl.java | 211 + .../DataTypes/util/DataTypesAdapterFactory.java | 203 + .../util/DataTypesResourceFactoryImpl.java | 63 + .../VSL/DataTypes/util/DataTypesResourceImpl.java | 39 + .../VSL/DataTypes/util/DataTypesSwitch.java | 221 + .../VSL/DataTypes/util/DataTypesXMLProcessor.java | 61 + .../MARTE_Annexes/VSL/Operators/Operator.java | 110 + .../VSL/Operators/OperatorsFactory.java | 46 + .../VSL/Operators/OperatorsPackage.java | 210 + .../VSL/Operators/impl/OperatorImpl.java | 285 ++ .../VSL/Operators/impl/OperatorsFactoryImpl.java | 99 + .../VSL/Operators/impl/OperatorsPackageImpl.java | 457 ++ .../Operators/util/OperatorsAdapterFactory.java | 124 + .../util/OperatorsResourceFactoryImpl.java | 56 + .../VSL/Operators/util/OperatorsResourceImpl.java | 32 + .../VSL/Operators/util/OperatorsSwitch.java | 130 + .../VSL/Operators/util/OperatorsXMLProcessor.java | 54 + .../VSL/Variables/ExpressionContext.java | 63 + .../MARTE/MARTE_Annexes/VSL/Variables/Var.java | 94 + .../VSL/Variables/VariableDirectionKind.java | 246 + .../VSL/Variables/VariablesFactory.java | 62 + .../VSL/Variables/VariablesPackage.java | 287 ++ .../VSL/Variables/impl/ExpressionContextImpl.java | 169 + .../MARTE_Annexes/VSL/Variables/impl/VarImpl.java | 238 + .../VSL/Variables/impl/VariablesFactoryImpl.java | 168 + .../VSL/Variables/impl/VariablesPackageImpl.java | 509 ++ .../Variables/util/VariablesAdapterFactory.java | 149 + .../util/VariablesResourceFactoryImpl.java | 63 + .../VSL/Variables/util/VariablesResourceImpl.java | 39 + .../VSL/Variables/util/VariablesSwitch.java | 158 + .../VSL/Variables/util/VariablesXMLProcessor.java | 61 + .../MARTE_DesignModel/GCM/ClientServerFeature.java | 94 + .../MARTE_DesignModel/GCM/ClientServerKind.java | 246 + .../MARTE_DesignModel/GCM/ClientServerPort.java | 189 + .../GCM/ClientServerSpecification.java | 63 + .../MARTE/MARTE_DesignModel/GCM/DataEvent.java | 91 + .../MARTE/MARTE_DesignModel/GCM/DataPool.java | 149 + .../GCM/DataPoolOrderingKind.java | 246 + .../MARTE_DesignModel/GCM/FlowDirectionKind.java | 246 + .../MARTE/MARTE_DesignModel/GCM/FlowPort.java | 121 + .../MARTE/MARTE_DesignModel/GCM/FlowProperty.java | 94 + .../MARTE_DesignModel/GCM/FlowSpecification.java | 63 + .../MARTE/MARTE_DesignModel/GCM/GCMFactory.java | 143 + .../GCM/GCMInvocatingBehavior.java | 119 + .../MARTE_DesignModel/GCM/GCMInvocationAction.java | 91 + .../MARTE/MARTE_DesignModel/GCM/GCMPackage.java | 1456 ++++++ .../MARTE/MARTE_DesignModel/GCM/GCMTrigger.java | 91 + .../GCM/PortSpecificationKind.java | 246 + .../GCM/impl/ClientServerFeatureImpl.java | 238 + .../GCM/impl/ClientServerPortImpl.java | 512 ++ .../GCM/impl/ClientServerSpecificationImpl.java | 169 + .../MARTE_DesignModel/GCM/impl/DataEventImpl.java | 230 + .../MARTE_DesignModel/GCM/impl/DataPoolImpl.java | 359 ++ .../MARTE_DesignModel/GCM/impl/FlowPortImpl.java | 343 ++ .../GCM/impl/FlowPropertyImpl.java | 238 + .../GCM/impl/FlowSpecificationImpl.java | 169 + .../MARTE_DesignModel/GCM/impl/GCMFactoryImpl.java | 339 ++ .../GCM/impl/GCMInvocatingBehaviorImpl.java | 281 ++ .../GCM/impl/GCMInvocationActionImpl.java | 230 + .../MARTE_DesignModel/GCM/impl/GCMPackageImpl.java | 1054 ++++ .../MARTE_DesignModel/GCM/impl/GCMTriggerImpl.java | 230 + .../GCM/util/GCMAdapterFactory.java | 311 ++ .../GCM/util/GCMResourceFactoryImpl.java | 63 + .../GCM/util/GCMResourceImpl.java | 39 + .../MARTE_DesignModel/GCM/util/GCMSwitch.java | 347 ++ .../GCM/util/GCMXMLProcessor.java | 61 + .../HLAM/CallConcurrencyKind.java | 246 + .../MARTE_DesignModel/HLAM/ConcurrencyKind.java | 246 + .../MARTE_DesignModel/HLAM/ExecutionKind.java | 246 + .../MARTE/MARTE_DesignModel/HLAM/HLAMFactory.java | 98 + .../MARTE/MARTE_DesignModel/HLAM/HLAMPackage.java | 1655 +++++++ .../MARTE_DesignModel/HLAM/PoolMgtPolicyKind.java | 300 ++ .../MARTE/MARTE_DesignModel/HLAM/PpUnit.java | 120 + .../MARTE/MARTE_DesignModel/HLAM/RtAction.java | 176 + .../MARTE/MARTE_DesignModel/HLAM/RtFeature.java | 194 + .../MARTE/MARTE_DesignModel/HLAM/RtService.java | 181 + .../MARTE_DesignModel/HLAM/RtSpecification.java | 336 ++ .../MARTE/MARTE_DesignModel/HLAM/RtUnit.java | 371 ++ .../HLAM/SynchronizationKind.java | 300 ++ .../HLAM/impl/HLAMFactoryImpl.java | 308 ++ .../HLAM/impl/HLAMPackageImpl.java | 1147 +++++ .../MARTE_DesignModel/HLAM/impl/PpUnitImpl.java | 292 ++ .../MARTE_DesignModel/HLAM/impl/RtActionImpl.java | 407 ++ .../MARTE_DesignModel/HLAM/impl/RtFeatureImpl.java | 481 ++ .../MARTE_DesignModel/HLAM/impl/RtServiceImpl.java | 402 ++ .../HLAM/impl/RtSpecificationImpl.java | 723 +++ .../MARTE_DesignModel/HLAM/impl/RtUnitImpl.java | 794 +++ .../HLAM/util/HLAMAdapterFactory.java | 221 + .../HLAM/util/HLAMResourceFactoryImpl.java | 63 + .../HLAM/util/HLAMResourceImpl.java | 39 + .../MARTE_DesignModel/HLAM/util/HLAMSwitch.java | 242 + .../HLAM/util/HLAMXMLProcessor.java | 61 + .../HRM/HwGeneral/HwGeneralFactory.java | 62 + .../HRM/HwGeneral/HwGeneralPackage.java | 524 ++ .../HRM/HwGeneral/HwResource.java | 160 + .../HRM/HwGeneral/HwResourceService.java | 88 + .../HRM/HwGeneral/impl/HwGeneralFactoryImpl.java | 117 + .../HRM/HwGeneral/impl/HwGeneralPackageImpl.java | 565 +++ .../HRM/HwGeneral/impl/HwResourceImpl.java | 395 ++ .../HRM/HwGeneral/impl/HwResourceServiceImpl.java | 229 + .../HwGeneral/util/HwGeneralAdapterFactory.java | 188 + .../util/HwGeneralResourceFactoryImpl.java | 63 + .../HRM/HwGeneral/util/HwGeneralResourceImpl.java | 39 + .../HRM/HwGeneral/util/HwGeneralSwitch.java | 193 + .../HRM/HwGeneral/util/HwGeneralXMLProcessor.java | 61 + .../HRM/HwLogical/HwCommunication/HwArbiter.java | 53 + .../HRM/HwLogical/HwCommunication/HwBridge.java | 51 + .../HRM/HwLogical/HwCommunication/HwBus.java | 141 + .../HwCommunication/HwCommunicationFactory.java | 98 + .../HwCommunication/HwCommunicationPackage.java | 1601 ++++++ .../HwCommunication/HwCommunicationResource.java | 29 + .../HRM/HwLogical/HwCommunication/HwEndPoint.java | 53 + .../HRM/HwLogical/HwCommunication/HwMedia.java | 82 + .../HwCommunication/impl/HwArbiterImpl.java | 176 + .../HwCommunication/impl/HwBridgeImpl.java | 143 + .../HwLogical/HwCommunication/impl/HwBusImpl.java | 335 ++ .../impl/HwCommunicationFactoryImpl.java | 161 + .../impl/HwCommunicationPackageImpl.java | 642 +++ .../impl/HwCommunicationResourceImpl.java | 52 + .../HwCommunication/impl/HwEndPointImpl.java | 250 + .../HwCommunication/impl/HwMediaImpl.java | 557 +++ .../util/HwCommunicationAdapterFactory.java | 318 ++ .../util/HwCommunicationResourceFactoryImpl.java | 63 + .../util/HwCommunicationResourceImpl.java | 39 + .../util/HwCommunicationSwitch.java | 350 ++ .../util/HwCommunicationXMLProcessor.java | 61 + .../HRM/HwLogical/HwComputing/HwASIC.java | 28 + .../HwLogical/HwComputing/HwBranchPredictor.java | 29 + .../HwLogical/HwComputing/HwComputingFactory.java | 98 + .../HwLogical/HwComputing/HwComputingPackage.java | 1952 ++++++++ .../HwLogical/HwComputing/HwComputingResource.java | 63 + .../HRM/HwLogical/HwComputing/HwISA.java | 118 + .../HRM/HwLogical/HwComputing/HwPLD.java | 208 + .../HRM/HwLogical/HwComputing/HwProcessor.java | 322 ++ .../HRM/HwLogical/HwComputing/ISA_Type.java | 327 ++ .../HRM/HwLogical/HwComputing/PLD_Class.java | 327 ++ .../HRM/HwLogical/HwComputing/PLD_Technology.java | 300 ++ .../HRM/HwLogical/HwComputing/impl/HwASICImpl.java | 50 + .../HwComputing/impl/HwBranchPredictorImpl.java | 52 + .../HwComputing/impl/HwComputingFactoryImpl.java | 282 ++ .../HwComputing/impl/HwComputingPackageImpl.java | 966 ++++ .../HwComputing/impl/HwComputingResourceImpl.java | 339 ++ .../HRM/HwLogical/HwComputing/impl/HwISAImpl.java | 284 ++ .../HRM/HwLogical/HwComputing/impl/HwPLDImpl.java | 468 ++ .../HwComputing/impl/HwProcessorImpl.java | 738 +++ .../util/HwComputingAdapterFactory.java | 299 ++ .../util/HwComputingResourceFactoryImpl.java | 63 + .../HwComputing/util/HwComputingResourceImpl.java | 39 + .../HwComputing/util/HwComputingSwitch.java | 331 ++ .../HwComputing/util/HwComputingXMLProcessor.java | 61 + .../HRM/HwLogical/HwDevice/HWActuator.java | 28 + .../HRM/HwLogical/HwDevice/HWSensor.java | 28 + .../HRM/HwLogical/HwDevice/HwDevice.java | 31 + .../HRM/HwLogical/HwDevice/HwDeviceFactory.java | 89 + .../HRM/HwLogical/HwDevice/HwDevicePackage.java | 1009 ++++ .../HRM/HwLogical/HwDevice/HwI_O.java | 28 + .../HRM/HwLogical/HwDevice/HwSupport.java | 28 + .../HwLogical/HwDevice/impl/HWActuatorImpl.java | 50 + .../HRM/HwLogical/HwDevice/impl/HWSensorImpl.java | 50 + .../HwDevice/impl/HwDeviceFactoryImpl.java | 150 + .../HRM/HwLogical/HwDevice/impl/HwDeviceImpl.java | 285 ++ .../HwDevice/impl/HwDevicePackageImpl.java | 517 ++ .../HRM/HwLogical/HwDevice/impl/HwI_OImpl.java | 50 + .../HRM/HwLogical/HwDevice/impl/HwSupportImpl.java | 50 + .../HwDevice/util/HwDeviceAdapterFactory.java | 281 ++ .../HwDevice/util/HwDeviceResourceFactoryImpl.java | 63 + .../HwDevice/util/HwDeviceResourceImpl.java | 39 + .../HwLogical/HwDevice/util/HwDeviceSwitch.java | 313 ++ .../HwDevice/util/HwDeviceXMLProcessor.java | 61 + .../HwLogical/HwStorage/HwMemory/CacheType.java | 300 ++ .../HRM/HwLogical/HwStorage/HwMemory/HwCache.java | 177 + .../HRM/HwLogical/HwStorage/HwMemory/HwDrive.java | 87 + .../HRM/HwLogical/HwStorage/HwMemory/HwMemory.java | 136 + .../HwStorage/HwMemory/HwMemoryFactory.java | 89 + .../HwStorage/HwMemory/HwMemoryPackage.java | 1857 +++++++ .../HRM/HwLogical/HwStorage/HwMemory/HwRAM.java | 201 + .../HRM/HwLogical/HwStorage/HwMemory/HwROM.java | 90 + .../HRM/HwLogical/HwStorage/HwMemory/ROM_Type.java | 354 ++ .../HwLogical/HwStorage/HwMemory/Repl_Policy.java | 327 ++ .../HwLogical/HwStorage/HwMemory/WritePolicy.java | 273 ++ .../HwStorage/HwMemory/impl/HwCacheImpl.java | 392 ++ .../HwStorage/HwMemory/impl/HwDriveImpl.java | 235 + .../HwMemory/impl/HwMemoryFactoryImpl.java | 339 ++ .../HwStorage/HwMemory/impl/HwMemoryImpl.java | 415 ++ .../HwMemory/impl/HwMemoryPackageImpl.java | 918 ++++ .../HwStorage/HwMemory/impl/HwRAMImpl.java | 445 ++ .../HwStorage/HwMemory/impl/HwROMImpl.java | 228 + .../HwMemory/util/HwMemoryAdapterFactory.java | 262 + .../HwMemory/util/HwMemoryResourceFactoryImpl.java | 63 + .../HwMemory/util/HwMemoryResourceImpl.java | 39 + .../HwStorage/HwMemory/util/HwMemorySwitch.java | 290 ++ .../HwMemory/util/HwMemoryXMLProcessor.java | 61 + .../HwStorage/HwStorageManager/HwDMA.java | 109 + .../HwStorage/HwStorageManager/HwMMU.java | 161 + .../HwStorageManager/HwStorageManager.java | 57 + .../HwStorageManager/HwStorageManagerFactory.java | 71 + .../HwStorageManager/HwStorageManagerPackage.java | 897 ++++ .../HwStorage/HwStorageManager/impl/HwDMAImpl.java | 384 ++ .../HwStorage/HwStorageManager/impl/HwMMUImpl.java | 369 ++ .../impl/HwStorageManagerFactoryImpl.java | 128 + .../impl/HwStorageManagerImpl.java | 253 + .../impl/HwStorageManagerPackageImpl.java | 603 +++ .../util/HwStorageManagerAdapterFactory.java | 265 + .../util/HwStorageManagerResourceFactoryImpl.java | 63 + .../util/HwStorageManagerResourceImpl.java | 39 + .../util/HwStorageManagerSwitch.java | 275 ++ .../util/HwStorageManagerXMLProcessor.java | 61 + .../HRM/HwLogical/HwTiming/HwClock.java | 28 + .../HRM/HwLogical/HwTiming/HwTimer.java | 114 + .../HRM/HwLogical/HwTiming/HwTimingFactory.java | 71 + .../HRM/HwLogical/HwTiming/HwTimingPackage.java | 675 +++ .../HRM/HwLogical/HwTiming/HwTimingResource.java | 31 + .../HRM/HwLogical/HwTiming/impl/HwClockImpl.java | 50 + .../HRM/HwLogical/HwTiming/impl/HwTimerImpl.java | 289 ++ .../HwTiming/impl/HwTimingFactoryImpl.java | 128 + .../HwTiming/impl/HwTimingPackageImpl.java | 509 ++ .../HwTiming/impl/HwTimingResourceImpl.java | 52 + .../HwTiming/util/HwTimingAdapterFactory.java | 226 + .../HwTiming/util/HwTimingResourceFactoryImpl.java | 63 + .../HwTiming/util/HwTimingResourceImpl.java | 39 + .../HwLogical/HwTiming/util/HwTimingSwitch.java | 240 + .../HwTiming/util/HwTimingXMLProcessor.java | 61 + .../HRM/HwPhysical/HwLayout/ComponentKind.java | 354 ++ .../HRM/HwPhysical/HwLayout/ComponentState.java | 273 ++ .../HRM/HwPhysical/HwLayout/ConditionType.java | 354 ++ .../HRM/HwPhysical/HwLayout/HwComponent.java | 331 ++ .../HRM/HwPhysical/HwLayout/HwLayoutFactory.java | 53 + .../HRM/HwPhysical/HwLayout/HwLayoutPackage.java | 748 +++ .../HwPhysical/HwLayout/impl/HwComponentImpl.java | 776 +++ .../HwLayout/impl/HwLayoutFactoryImpl.java | 227 + .../HwLayout/impl/HwLayoutPackageImpl.java | 723 +++ .../HwLayout/util/HwLayoutAdapterFactory.java | 171 + .../HwLayout/util/HwLayoutResourceFactoryImpl.java | 63 + .../HwLayout/util/HwLayoutResourceImpl.java | 39 + .../HwPhysical/HwLayout/util/HwLayoutSwitch.java | 173 + .../HwLayout/util/HwLayoutXMLProcessor.java | 61 + .../HRM/HwPhysical/HwPower/HwCoolingSupply.java | 61 + .../HRM/HwPhysical/HwPower/HwPowerFactory.java | 62 + .../HRM/HwPhysical/HwPower/HwPowerPackage.java | 743 +++ .../HRM/HwPhysical/HwPower/HwPowerSupply.java | 88 + .../HwPower/impl/HwCoolingSupplyImpl.java | 175 + .../HwPower/impl/HwPowerFactoryImpl.java | 117 + .../HwPower/impl/HwPowerPackageImpl.java | 484 ++ .../HwPhysical/HwPower/impl/HwPowerSupplyImpl.java | 229 + .../HwPower/util/HwPowerAdapterFactory.java | 209 + .../HwPower/util/HwPowerResourceFactoryImpl.java | 63 + .../HwPower/util/HwPowerResourceImpl.java | 39 + .../HRM/HwPhysical/HwPower/util/HwPowerSwitch.java | 215 + .../HwPower/util/HwPowerXMLProcessor.java | 61 + .../SRM/SW_Brokering/AccessPolicyKind.java | 300 ++ .../SRM/SW_Brokering/DeviceBroker.java | 198 + .../SRM/SW_Brokering/MemoryBroker.java | 188 + .../SRM/SW_Brokering/SW_BrokeringFactory.java | 62 + .../SRM/SW_Brokering/SW_BrokeringPackage.java | 905 ++++ .../SRM/SW_Brokering/impl/DeviceBrokerImpl.java | 444 ++ .../SRM/SW_Brokering/impl/MemoryBrokerImpl.java | 424 ++ .../SW_Brokering/impl/SW_BrokeringFactoryImpl.java | 168 + .../SW_Brokering/impl/SW_BrokeringPackageImpl.java | 658 +++ .../util/SW_BrokeringAdapterFactory.java | 189 + .../util/SW_BrokeringResourceFactoryImpl.java | 63 + .../util/SW_BrokeringResourceImpl.java | 39 + .../SRM/SW_Brokering/util/SW_BrokeringSwitch.java | 196 + .../util/SW_BrokeringXMLProcessor.java | 61 + .../SRM/SW_Concurrency/Alarm.java | 80 + .../SRM/SW_Concurrency/EntryPoint.java | 90 + .../SRM/SW_Concurrency/InterruptKind.java | 300 ++ .../SRM/SW_Concurrency/InterruptResource.java | 162 + .../SRM/SW_Concurrency/MemoryPartition.java | 135 + .../SRM/SW_Concurrency/SW_ConcurrencyFactory.java | 98 + .../SRM/SW_Concurrency/SW_ConcurrencyPackage.java | 2931 +++++++++++ .../SRM/SW_Concurrency/SwConcurrentResource.java | 366 ++ .../SRM/SW_Concurrency/SwSchedulableResource.java | 223 + .../SRM/SW_Concurrency/SwTimerResource.java | 63 + .../SRM/SW_Concurrency/impl/AlarmImpl.java | 216 + .../SRM/SW_Concurrency/impl/EntryPointImpl.java | 238 + .../SW_Concurrency/impl/InterruptResourceImpl.java | 374 ++ .../SW_Concurrency/impl/MemoryPartitionImpl.java | 315 ++ .../impl/SW_ConcurrencyFactoryImpl.java | 212 + .../impl/SW_ConcurrencyPackageImpl.java | 1093 +++++ .../impl/SwConcurrentResourceImpl.java | 784 +++ .../impl/SwSchedulableResourceImpl.java | 782 +++ .../SW_Concurrency/impl/SwTimerResourceImpl.java | 170 + .../util/SW_ConcurrencyAdapterFactory.java | 356 ++ .../util/SW_ConcurrencyResourceFactoryImpl.java | 63 + .../util/SW_ConcurrencyResourceImpl.java | 39 + .../SW_Concurrency/util/SW_ConcurrencySwitch.java | 381 ++ .../util/SW_ConcurrencyXMLProcessor.java | 61 + .../ConcurrentAccessProtocolKind.java | 300 ++ .../SRM/SW_Interaction/MessageComResource.java | 192 + .../SRM/SW_Interaction/MessageResourceKind.java | 300 ++ .../MutualExclusionResourceKind.java | 300 ++ .../SRM/SW_Interaction/NotificationKind.java | 300 ++ .../SRM/SW_Interaction/NotificationResource.java | 199 + .../SW_Interaction/NotificationResourceKind.java | 273 ++ .../SRM/SW_Interaction/QueuePolicyKind.java | 300 ++ .../SRM/SW_Interaction/SW_InteractionFactory.java | 80 + .../SRM/SW_Interaction/SW_InteractionPackage.java | 2628 ++++++++++ .../SRM/SW_Interaction/SharedDataComResource.java | 70 + .../SW_Interaction/SwCommunicationResource.java | 29 + .../SRM/SW_Interaction/SwInteractionResource.java | 139 + .../SW_Interaction/SwMutualExclusionResource.java | 150 + .../SW_Interaction/SwSynchronizationResource.java | 29 + .../impl/MessageComResourceImpl.java | 429 ++ .../impl/NotificationResourceImpl.java | 443 ++ .../impl/SW_InteractionFactoryImpl.java | 310 ++ .../impl/SW_InteractionPackageImpl.java | 1006 ++++ .../impl/SharedDataComResourceImpl.java | 178 + .../impl/SwCommunicationResourceImpl.java | 582 +++ .../impl/SwInteractionResourceImpl.java | 327 ++ .../impl/SwMutualExclusionResourceImpl.java | 661 +++ .../impl/SwSynchronizationResourceImpl.java | 50 + .../util/SW_InteractionAdapterFactory.java | 355 ++ .../util/SW_InteractionResourceFactoryImpl.java | 63 + .../util/SW_InteractionResourceImpl.java | 39 + .../SW_Interaction/util/SW_InteractionSwitch.java | 395 ++ .../util/SW_InteractionXMLProcessor.java | 61 + .../SW_ResourceCore/SW_ResourceCoreFactory.java | 53 + .../SW_ResourceCore/SW_ResourceCorePackage.java | 524 ++ .../SRM/SW_ResourceCore/SwAccessService.java | 90 + .../SRM/SW_ResourceCore/SwResource.java | 151 + .../impl/SW_ResourceCoreFactoryImpl.java | 106 + .../impl/SW_ResourceCorePackageImpl.java | 541 +++ .../SW_ResourceCore/impl/SwAccessServiceImpl.java | 238 + .../SRM/SW_ResourceCore/impl/SwResourceImpl.java | 348 ++ .../util/SW_ResourceCoreAdapterFactory.java | 188 + .../util/SW_ResourceCoreResourceFactoryImpl.java | 63 + .../util/SW_ResourceCoreResourceImpl.java | 39 + .../util/SW_ResourceCoreSwitch.java | 193 + .../util/SW_ResourceCoreXMLProcessor.java | 61 + .../MARTE_Foundations/Alloc/AllocFactory.java | 89 + .../MARTE_Foundations/Alloc/AllocPackage.java | 944 ++++ .../MARTE/MARTE_Foundations/Alloc/Allocate.java | 144 + .../Alloc/AllocateActivityGroup.java | 91 + .../MARTE/MARTE_Foundations/Alloc/Allocated.java | 129 + .../MARTE_Foundations/Alloc/AllocationEndKind.java | 273 ++ .../MARTE_Foundations/Alloc/AllocationKind.java | 246 + .../MARTE_Foundations/Alloc/AllocationNature.java | 219 + .../MARTE/MARTE_Foundations/Alloc/Assign.java | 179 + .../MARTE_Foundations/Alloc/AssignmentKind.java | 246 + .../MARTE_Foundations/Alloc/AssignmentNature.java | 219 + .../MARTE/MARTE_Foundations/Alloc/NfpRefine.java | 84 + .../Alloc/impl/AllocFactoryImpl.java | 297 ++ .../Alloc/impl/AllocPackageImpl.java | 830 ++++ .../Alloc/impl/AllocateActivityGroupImpl.java | 237 + .../MARTE_Foundations/Alloc/impl/AllocateImpl.java | 336 ++ .../Alloc/impl/AllocatedImpl.java | 359 ++ .../MARTE_Foundations/Alloc/impl/AssignImpl.java | 405 ++ .../Alloc/impl/NfpRefineImpl.java | 212 + .../Alloc/util/AllocAdapterFactory.java | 203 + .../Alloc/util/AllocResourceFactoryImpl.java | 63 + .../Alloc/util/AllocResourceImpl.java | 39 + .../MARTE_Foundations/Alloc/util/AllocSwitch.java | 221 + .../Alloc/util/AllocXMLProcessor.java | 61 + .../CoreElements/Configuration.java | 109 + .../CoreElements/CoreElementsFactory.java | 80 + .../CoreElements/CoreElementsPackage.java | 417 ++ .../MARTE/MARTE_Foundations/CoreElements/Mode.java | 63 + .../CoreElements/ModeBehavior.java | 63 + .../CoreElements/ModeTransition.java | 63 + .../CoreElements/impl/ConfigurationImpl.java | 271 ++ .../CoreElements/impl/CoreElementsFactoryImpl.java | 139 + .../CoreElements/impl/CoreElementsPackageImpl.java | 556 +++ .../CoreElements/impl/ModeBehaviorImpl.java | 169 + .../CoreElements/impl/ModeImpl.java | 169 + .../CoreElements/impl/ModeTransitionImpl.java | 169 + .../util/CoreElementsAdapterFactory.java | 185 + .../util/CoreElementsResourceFactoryImpl.java | 63 + .../util/CoreElementsResourceImpl.java | 39 + .../CoreElements/util/CoreElementsSwitch.java | 200 + .../util/CoreElementsXMLProcessor.java | 61 + .../MARTE/MARTE_Foundations/GRM/Acquire.java | 60 + .../MARTE/MARTE_Foundations/GRM/ClockResource.java | 28 + .../GRM/CommunicationEndPoint.java | 60 + .../MARTE_Foundations/GRM/CommunicationMedia.java | 173 + .../MARTE_Foundations/GRM/ComputingResource.java | 28 + .../MARTE_Foundations/GRM/ConcurrencyResource.java | 28 + .../MARTE_Foundations/GRM/DeviceResource.java | 28 + .../MARTE/MARTE_Foundations/GRM/GRMFactory.java | 224 + .../MARTE/MARTE_Foundations/GRM/GRMPackage.java | 3644 ++++++++++++++ .../MARTE/MARTE_Foundations/GRM/GrService.java | 202 + .../GRM/MutualExclusionResource.java | 148 + .../MARTE_Foundations/GRM/ProcessingResource.java | 88 + .../MARTE/MARTE_Foundations/GRM/Release.java | 28 + .../MARTE/MARTE_Foundations/GRM/Resource.java | 257 + .../MARTE/MARTE_Foundations/GRM/ResourceUsage.java | 201 + .../MARTE_Foundations/GRM/SchedulableResource.java | 109 + .../MARTE/MARTE_Foundations/GRM/Scheduler.java | 231 + .../MARTE_Foundations/GRM/SecondaryScheduler.java | 53 + .../MARTE_Foundations/GRM/StorageResource.java | 60 + .../GRM/SynchronizationResource.java | 28 + .../MARTE/MARTE_Foundations/GRM/TimerResource.java | 87 + .../MARTE_Foundations/GRM/TimingResource.java | 28 + .../MARTE_Foundations/GRM/impl/AcquireImpl.java | 173 + .../GRM/impl/ClockResourceImpl.java | 50 + .../GRM/impl/CommunicationEndPointImpl.java | 173 + .../GRM/impl/CommunicationMediaImpl.java | 407 ++ .../GRM/impl/ComputingResourceImpl.java | 50 + .../GRM/impl/ConcurrencyResourceImpl.java | 50 + .../GRM/impl/DeviceResourceImpl.java | 50 + .../MARTE_Foundations/GRM/impl/GRMFactoryImpl.java | 315 ++ .../MARTE_Foundations/GRM/impl/GRMPackageImpl.java | 1420 ++++++ .../MARTE_Foundations/GRM/impl/GrServiceImpl.java | 474 ++ .../GRM/impl/MutualExclusionResourceImpl.java | 398 ++ .../GRM/impl/ProcessingResourceImpl.java | 235 + .../MARTE_Foundations/GRM/impl/ReleaseImpl.java | 50 + .../MARTE_Foundations/GRM/impl/ResourceImpl.java | 589 +++ .../GRM/impl/ResourceUsageImpl.java | 476 ++ .../GRM/impl/SchedulableResourceImpl.java | 366 ++ .../MARTE_Foundations/GRM/impl/SchedulerImpl.java | 547 +++ .../GRM/impl/SecondarySchedulerImpl.java | 176 + .../GRM/impl/StorageResourceImpl.java | 173 + .../GRM/impl/SynchronizationResourceImpl.java | 50 + .../GRM/impl/TimerResourceImpl.java | 227 + .../GRM/impl/TimingResourceImpl.java | 50 + .../GRM/util/GRMAdapterFactory.java | 473 ++ .../GRM/util/GRMResourceFactoryImpl.java | 63 + .../GRM/util/GRMResourceImpl.java | 39 + .../MARTE_Foundations/GRM/util/GRMSwitch.java | 559 +++ .../GRM/util/GRMXMLProcessor.java | 61 + .../MARTE_Foundations/NFPs/ConstraintKind.java | 246 + .../MARTE/MARTE_Foundations/NFPs/Dimension.java | 126 + .../MARTE/MARTE_Foundations/NFPs/NFPsFactory.java | 89 + .../MARTE/MARTE_Foundations/NFPs/NFPsPackage.java | 760 +++ .../papyrus/MARTE/MARTE_Foundations/NFPs/Nfp.java | 63 + .../MARTE_Foundations/NFPs/NfpConstraint.java | 114 + .../MARTE/MARTE_Foundations/NFPs/NfpType.java | 117 + .../papyrus/MARTE/MARTE_Foundations/NFPs/Unit.java | 144 + .../MARTE_Foundations/NFPs/impl/DimensionImpl.java | 315 ++ .../NFPs/impl/NFPsFactoryImpl.java | 201 + .../NFPs/impl/NFPsPackageImpl.java | 748 +++ .../NFPs/impl/NfpConstraintImpl.java | 281 ++ .../MARTE/MARTE_Foundations/NFPs/impl/NfpImpl.java | 169 + .../MARTE_Foundations/NFPs/impl/NfpTypeImpl.java | 290 ++ .../MARTE_Foundations/NFPs/impl/UnitImpl.java | 351 ++ .../NFPs/util/NFPsAdapterFactory.java | 223 + .../NFPs/util/NFPsResourceFactoryImpl.java | 63 + .../NFPs/util/NFPsResourceImpl.java | 39 + .../MARTE_Foundations/NFPs/util/NFPsSwitch.java | 239 + .../NFPs/util/NFPsXMLProcessor.java | 61 + .../MARTE/MARTE_Foundations/Time/Clock.java | 207 + .../MARTE_Foundations/Time/ClockConstraint.java | 115 + .../MARTE/MARTE_Foundations/Time/ClockType.java | 314 ++ .../MARTE/MARTE_Foundations/Time/TimeFactory.java | 134 + .../MARTE/MARTE_Foundations/Time/TimePackage.java | 1678 +++++++ .../MARTE_Foundations/Time/TimedConstraint.java | 66 + .../MARTE/MARTE_Foundations/Time/TimedDomain.java | 63 + .../Time/TimedDurationObservation.java | 84 + .../MARTE/MARTE_Foundations/Time/TimedElement.java | 53 + .../MARTE/MARTE_Foundations/Time/TimedEvent.java | 116 + .../Time/TimedInstantObservation.java | 93 + .../MARTE_Foundations/Time/TimedProcessing.java | 200 + .../Time/TimedValueSpecification.java | 93 + .../Time/impl/ClockConstraintImpl.java | 358 ++ .../MARTE_Foundations/Time/impl/ClockImpl.java | 484 ++ .../MARTE_Foundations/Time/impl/ClockTypeImpl.java | 715 +++ .../Time/impl/TimeFactoryImpl.java | 205 + .../Time/impl/TimePackageImpl.java | 1057 ++++ .../Time/impl/TimedConstraintImpl.java | 252 + .../Time/impl/TimedDomainImpl.java | 169 + .../Time/impl/TimedDurationObservationImpl.java | 227 + .../Time/impl/TimedElementImpl.java | 145 + .../Time/impl/TimedEventImpl.java | 316 ++ .../Time/impl/TimedInstantObservationImpl.java | 238 + .../Time/impl/TimedProcessingImpl.java | 491 ++ .../Time/impl/TimedValueSpecificationImpl.java | 238 + .../Time/util/TimeAdapterFactory.java | 331 ++ .../Time/util/TimeResourceFactoryImpl.java | 63 + .../Time/util/TimeResourceImpl.java | 39 + .../MARTE_Foundations/Time/util/TimeSwitch.java | 373 ++ .../Time/util/TimeXMLProcessor.java | 61 + .../src/org/eclipse/papyrus/MARTE/dummy.java | 167 + .../papyrus/MARTE/impl/MARTEFactoryImpl.java | 146 + .../papyrus/MARTE/impl/MARTEPackageImpl.java | 480 ++ .../eclipse/papyrus/MARTE/utils/MarteResource.java | 10 + .../eclipse/papyrus/MARTE/utils/MarteUtils.java | 33 + .../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 ++ 662 files changed, 186723 insertions(+) create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTEFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTEPackage.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GQAMFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GQAMPackage.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaAcqStep.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaAnalysisContext.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaCommChannel.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaCommHost.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaCommStep.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaEventTrace.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaExecHost.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaLatencyObs.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaRelStep.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaRequestedService.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaResourcesPlatform.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaScenario.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaStep.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaTimedObs.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaWorkloadBehavior.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaWorkloadEvent.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaWorkloadGenerator.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/LaxityKind.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GQAMFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GQAMPackageImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaAcqStepImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaAnalysisContextImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaCommChannelImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaCommHostImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaCommStepImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaEventTraceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaExecHostImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaLatencyObsImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaRelStepImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaRequestedServiceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaResourcesPlatformImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaScenarioImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaStepImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaTimedObsImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaWorkloadBehaviorImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaWorkloadEventImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaWorkloadGeneratorImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/util/GQAMAdapterFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/util/GQAMResourceFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/util/GQAMResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/util/GQAMSwitch.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/util/GQAMXMLProcessor.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/PAMFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/PAMPackage.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/PaCommStep.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/PaLogicalResource.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/PaRequestedStep.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/PaResPassStep.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/PaRunTInstance.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/PaStep.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/impl/PAMFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/impl/PAMPackageImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/impl/PaCommStepImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/impl/PaLogicalResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/impl/PaRequestedStepImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/impl/PaResPassStepImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/impl/PaRunTInstanceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/impl/PaStepImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/util/PAMAdapterFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/util/PAMResourceFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/util/PAMResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/util/PAMSwitch.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/util/PAMXMLProcessor.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/OptimallityCriterionKind.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/SAMFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/SAMPackage.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/SaAnalysisContext.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/SaCommHost.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/SaCommStep.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/SaEndtoEndFlow.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/SaExecHost.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/SaSchedObs.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/SaSharedResource.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/SaStep.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/impl/SAMFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/impl/SAMPackageImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/impl/SaAnalysisContextImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/impl/SaCommHostImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/impl/SaCommStepImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/impl/SaEndtoEndFlowImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/impl/SaExecHostImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/impl/SaSchedObsImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/impl/SaSharedResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/impl/SaStepImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/util/SAMAdapterFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/util/SAMResourceFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/util/SAMResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/util/SAMSwitch.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/util/SAMXMLProcessor.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/DefaultLink.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/Distribute.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/InterRepetition.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/LinkTopology.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/RSMFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/RSMPackage.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/Reshape.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/Shaped.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/Tiler.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/impl/DefaultLinkImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/impl/DistributeImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/impl/InterRepetitionImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/impl/LinkTopologyImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/impl/RSMFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/impl/RSMPackageImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/impl/ReshapeImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/impl/ShapedImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/impl/TilerImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/util/RSMAdapterFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/util/RSMResourceFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/util/RSMResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/util/RSMSwitch.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/util/RSMXMLProcessor.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/BoundedSubtype.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/ChoiceType.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/CollectionType.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/DataTypesFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/DataTypesPackage.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/IntervalType.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/TupleType.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/impl/BoundedSubtypeImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/impl/ChoiceTypeImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/impl/CollectionTypeImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/impl/DataTypesFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/impl/DataTypesPackageImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/impl/IntervalTypeImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/impl/TupleTypeImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/util/DataTypesAdapterFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/util/DataTypesResourceFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/util/DataTypesResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/util/DataTypesSwitch.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/util/DataTypesXMLProcessor.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Operators/Operator.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Operators/OperatorsFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Operators/OperatorsPackage.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Operators/impl/OperatorImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Operators/impl/OperatorsFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Operators/impl/OperatorsPackageImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Operators/util/OperatorsAdapterFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Operators/util/OperatorsResourceFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Operators/util/OperatorsResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Operators/util/OperatorsSwitch.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Operators/util/OperatorsXMLProcessor.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/ExpressionContext.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/Var.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/VariableDirectionKind.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/VariablesFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/VariablesPackage.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/impl/ExpressionContextImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/impl/VarImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/impl/VariablesFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/impl/VariablesPackageImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/util/VariablesAdapterFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/util/VariablesResourceFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/util/VariablesResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/util/VariablesSwitch.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/util/VariablesXMLProcessor.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/ClientServerFeature.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/ClientServerKind.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/ClientServerPort.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/ClientServerSpecification.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/DataEvent.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/DataPool.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/DataPoolOrderingKind.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/FlowDirectionKind.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/FlowPort.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/FlowProperty.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/FlowSpecification.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/GCMFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/GCMInvocatingBehavior.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/GCMInvocationAction.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/GCMPackage.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/GCMTrigger.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/PortSpecificationKind.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/ClientServerFeatureImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/ClientServerPortImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/ClientServerSpecificationImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/DataEventImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/DataPoolImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/FlowPortImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/FlowPropertyImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/FlowSpecificationImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/GCMFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/GCMInvocatingBehaviorImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/GCMInvocationActionImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/GCMPackageImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/GCMTriggerImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/util/GCMAdapterFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/util/GCMResourceFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/util/GCMResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/util/GCMSwitch.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/util/GCMXMLProcessor.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/CallConcurrencyKind.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/ConcurrencyKind.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/ExecutionKind.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/HLAMFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/HLAMPackage.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/PoolMgtPolicyKind.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/PpUnit.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/RtAction.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/RtFeature.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/RtService.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/RtSpecification.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/RtUnit.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/SynchronizationKind.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/impl/HLAMFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/impl/HLAMPackageImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/impl/PpUnitImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/impl/RtActionImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/impl/RtFeatureImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/impl/RtServiceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/impl/RtSpecificationImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/impl/RtUnitImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/util/HLAMAdapterFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/util/HLAMResourceFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/util/HLAMResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/util/HLAMSwitch.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/util/HLAMXMLProcessor.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/HwGeneralFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/HwGeneralPackage.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/HwResource.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/HwResourceService.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/impl/HwGeneralFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/impl/HwGeneralPackageImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/impl/HwResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/impl/HwResourceServiceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/util/HwGeneralAdapterFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/util/HwGeneralResourceFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/util/HwGeneralResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/util/HwGeneralSwitch.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/util/HwGeneralXMLProcessor.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/HwArbiter.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/HwBridge.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/HwBus.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/HwCommunicationFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/HwCommunicationPackage.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/HwCommunicationResource.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/HwEndPoint.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/HwMedia.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/impl/HwArbiterImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/impl/HwBridgeImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/impl/HwBusImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/impl/HwCommunicationFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/impl/HwCommunicationPackageImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/impl/HwCommunicationResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/impl/HwEndPointImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/impl/HwMediaImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/util/HwCommunicationAdapterFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/util/HwCommunicationResourceFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/util/HwCommunicationResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/util/HwCommunicationSwitch.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/util/HwCommunicationXMLProcessor.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/HwASIC.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/HwBranchPredictor.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/HwComputingFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/HwComputingPackage.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/HwComputingResource.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/HwISA.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/HwPLD.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/HwProcessor.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/ISA_Type.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/PLD_Class.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/PLD_Technology.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/impl/HwASICImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/impl/HwBranchPredictorImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/impl/HwComputingFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/impl/HwComputingPackageImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/impl/HwComputingResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/impl/HwISAImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/impl/HwPLDImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/impl/HwProcessorImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/util/HwComputingAdapterFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/util/HwComputingResourceFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/util/HwComputingResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/util/HwComputingSwitch.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/util/HwComputingXMLProcessor.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/HWActuator.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/HWSensor.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/HwDevice.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/HwDeviceFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/HwDevicePackage.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/HwI_O.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/HwSupport.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/impl/HWActuatorImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/impl/HWSensorImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/impl/HwDeviceFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/impl/HwDeviceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/impl/HwDevicePackageImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/impl/HwI_OImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/impl/HwSupportImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/util/HwDeviceAdapterFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/util/HwDeviceResourceFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/util/HwDeviceResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/util/HwDeviceSwitch.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/util/HwDeviceXMLProcessor.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/CacheType.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/HwCache.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/HwDrive.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/HwMemory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/HwMemoryFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/HwMemoryPackage.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/HwRAM.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/HwROM.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/ROM_Type.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/Repl_Policy.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/WritePolicy.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/impl/HwCacheImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/impl/HwDriveImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/impl/HwMemoryFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/impl/HwMemoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/impl/HwMemoryPackageImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/impl/HwRAMImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/impl/HwROMImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/util/HwMemoryAdapterFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/util/HwMemoryResourceFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/util/HwMemoryResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/util/HwMemorySwitch.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/util/HwMemoryXMLProcessor.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/HwDMA.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/HwMMU.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/HwStorageManager.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/HwStorageManagerFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/HwStorageManagerPackage.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/impl/HwDMAImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/impl/HwMMUImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/impl/HwStorageManagerFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/impl/HwStorageManagerImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/impl/HwStorageManagerPackageImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/util/HwStorageManagerAdapterFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/util/HwStorageManagerResourceFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/util/HwStorageManagerResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/util/HwStorageManagerSwitch.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/util/HwStorageManagerXMLProcessor.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/HwClock.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/HwTimer.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/HwTimingFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/HwTimingPackage.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/HwTimingResource.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/impl/HwClockImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/impl/HwTimerImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/impl/HwTimingFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/impl/HwTimingPackageImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/impl/HwTimingResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/util/HwTimingAdapterFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/util/HwTimingResourceFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/util/HwTimingResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/util/HwTimingSwitch.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/util/HwTimingXMLProcessor.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/ComponentKind.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/ComponentState.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/ConditionType.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/HwComponent.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/HwLayoutFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/HwLayoutPackage.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/impl/HwComponentImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/impl/HwLayoutFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/impl/HwLayoutPackageImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/util/HwLayoutAdapterFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/util/HwLayoutResourceFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/util/HwLayoutResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/util/HwLayoutSwitch.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/util/HwLayoutXMLProcessor.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/HwCoolingSupply.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/HwPowerFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/HwPowerPackage.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/HwPowerSupply.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/impl/HwCoolingSupplyImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/impl/HwPowerFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/impl/HwPowerPackageImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/impl/HwPowerSupplyImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/util/HwPowerAdapterFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/util/HwPowerResourceFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/util/HwPowerResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/util/HwPowerSwitch.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/util/HwPowerXMLProcessor.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/AccessPolicyKind.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/DeviceBroker.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/MemoryBroker.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/SW_BrokeringFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/SW_BrokeringPackage.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/impl/DeviceBrokerImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/impl/MemoryBrokerImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/impl/SW_BrokeringFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/impl/SW_BrokeringPackageImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/util/SW_BrokeringAdapterFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/util/SW_BrokeringResourceFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/util/SW_BrokeringResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/util/SW_BrokeringSwitch.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/util/SW_BrokeringXMLProcessor.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/Alarm.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/EntryPoint.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/InterruptKind.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/InterruptResource.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/MemoryPartition.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/SW_ConcurrencyFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/SW_ConcurrencyPackage.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/SwConcurrentResource.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/SwSchedulableResource.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/SwTimerResource.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/impl/AlarmImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/impl/EntryPointImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/impl/InterruptResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/impl/MemoryPartitionImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/impl/SW_ConcurrencyFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/impl/SW_ConcurrencyPackageImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/impl/SwConcurrentResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/impl/SwSchedulableResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/impl/SwTimerResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/util/SW_ConcurrencyAdapterFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/util/SW_ConcurrencyResourceFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/util/SW_ConcurrencyResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/util/SW_ConcurrencySwitch.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/util/SW_ConcurrencyXMLProcessor.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/ConcurrentAccessProtocolKind.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/MessageComResource.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/MessageResourceKind.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/MutualExclusionResourceKind.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/NotificationKind.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/NotificationResource.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/NotificationResourceKind.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/QueuePolicyKind.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/SW_InteractionFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/SW_InteractionPackage.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/SharedDataComResource.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/SwCommunicationResource.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/SwInteractionResource.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/SwMutualExclusionResource.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/SwSynchronizationResource.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/impl/MessageComResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/impl/NotificationResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/impl/SW_InteractionFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/impl/SW_InteractionPackageImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/impl/SharedDataComResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/impl/SwCommunicationResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/impl/SwInteractionResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/impl/SwMutualExclusionResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/impl/SwSynchronizationResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/util/SW_InteractionAdapterFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/util/SW_InteractionResourceFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/util/SW_InteractionResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/util/SW_InteractionSwitch.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/util/SW_InteractionXMLProcessor.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/SW_ResourceCoreFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/SW_ResourceCorePackage.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/SwAccessService.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/SwResource.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/impl/SW_ResourceCoreFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/impl/SW_ResourceCorePackageImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/impl/SwAccessServiceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/impl/SwResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/util/SW_ResourceCoreAdapterFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/util/SW_ResourceCoreResourceFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/util/SW_ResourceCoreResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/util/SW_ResourceCoreSwitch.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/util/SW_ResourceCoreXMLProcessor.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/AllocFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/AllocPackage.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/Allocate.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/AllocateActivityGroup.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/Allocated.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/AllocationEndKind.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/AllocationKind.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/AllocationNature.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/Assign.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/AssignmentKind.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/AssignmentNature.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/NfpRefine.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/impl/AllocFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/impl/AllocPackageImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/impl/AllocateActivityGroupImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/impl/AllocateImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/impl/AllocatedImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/impl/AssignImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/impl/NfpRefineImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/util/AllocAdapterFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/util/AllocResourceFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/util/AllocResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/util/AllocSwitch.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/util/AllocXMLProcessor.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/Configuration.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/CoreElementsFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/CoreElementsPackage.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/Mode.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/ModeBehavior.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/ModeTransition.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/impl/ConfigurationImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/impl/CoreElementsFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/impl/CoreElementsPackageImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/impl/ModeBehaviorImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/impl/ModeImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/impl/ModeTransitionImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/util/CoreElementsAdapterFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/util/CoreElementsResourceFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/util/CoreElementsResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/util/CoreElementsSwitch.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/util/CoreElementsXMLProcessor.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/Acquire.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/ClockResource.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/CommunicationEndPoint.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/CommunicationMedia.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/ComputingResource.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/ConcurrencyResource.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/DeviceResource.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/GRMFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/GRMPackage.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/GrService.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/MutualExclusionResource.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/ProcessingResource.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/Release.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/Resource.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/ResourceUsage.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/SchedulableResource.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/Scheduler.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/SecondaryScheduler.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/StorageResource.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/SynchronizationResource.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/TimerResource.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/TimingResource.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/AcquireImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/ClockResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/CommunicationEndPointImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/CommunicationMediaImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/ComputingResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/ConcurrencyResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/DeviceResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/GRMFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/GRMPackageImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/GrServiceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/MutualExclusionResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/ProcessingResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/ReleaseImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/ResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/ResourceUsageImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/SchedulableResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/SchedulerImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/SecondarySchedulerImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/StorageResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/SynchronizationResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/TimerResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/TimingResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/util/GRMAdapterFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/util/GRMResourceFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/util/GRMResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/util/GRMSwitch.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/util/GRMXMLProcessor.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/ConstraintKind.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/Dimension.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/NFPsFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/NFPsPackage.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/Nfp.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/NfpConstraint.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/NfpType.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/Unit.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/impl/DimensionImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/impl/NFPsFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/impl/NFPsPackageImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/impl/NfpConstraintImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/impl/NfpImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/impl/NfpTypeImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/impl/UnitImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/util/NFPsAdapterFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/util/NFPsResourceFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/util/NFPsResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/util/NFPsSwitch.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/util/NFPsXMLProcessor.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/Clock.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/ClockConstraint.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/ClockType.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/TimeFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/TimePackage.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/TimedConstraint.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/TimedDomain.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/TimedDurationObservation.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/TimedElement.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/TimedEvent.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/TimedInstantObservation.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/TimedProcessing.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/TimedValueSpecification.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/ClockConstraintImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/ClockImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/ClockTypeImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/TimeFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/TimePackageImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/TimedConstraintImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/TimedDomainImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/TimedDurationObservationImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/TimedElementImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/TimedEventImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/TimedInstantObservationImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/TimedProcessingImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/TimedValueSpecificationImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/util/TimeAdapterFactory.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/util/TimeResourceFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/util/TimeResourceImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/util/TimeSwitch.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/util/TimeXMLProcessor.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/dummy.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/impl/MARTEFactoryImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/impl/MARTEPackageImpl.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/utils/MarteResource.java create mode 100644 extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/utils/MarteUtils.java 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') diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTEFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTEFactory.java new file mode 100644 index 00000000000..8b192676813 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTEFactory.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; + +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.MARTEPackage + * @generated + */ +public interface MARTEFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + MARTEFactory eINSTANCE = org.eclipse.papyrus.MARTE.impl.MARTEFactoryImpl.init(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + MARTEPackage getMARTEPackage(); + +} //MARTEFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTEPackage.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTEPackage.java new file mode 100644 index 00000000000..03d3170d48c --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTEPackage.java @@ -0,0 +1,122 @@ +/***************************************************************************** + * 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; + +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.MARTEFactory + * @model kind="package" + * @generated + */ +public interface MARTEPackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "MARTE"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "http://www.eclipse.org/papyrus/MARTE/1"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "MARTE"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + MARTEPackage eINSTANCE = org.eclipse.papyrus.MARTE.impl.MARTEPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.dummy dummy}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.dummy + * @see org.eclipse.papyrus.MARTE.impl.MARTEPackageImpl#getdummy() + * @generated + */ + int DUMMY = 0; + + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE.dummy dummy}'. + * + * + * @return the meta object for enum 'dummy'. + * @see org.eclipse.papyrus.MARTE.dummy + * @generated + */ + EEnum getdummy(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + MARTEFactory getMARTEFactory(); + + /** + * + * Defines literals for the meta objects that represent + * + * + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.dummy dummy}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.dummy + * @see org.eclipse.papyrus.MARTE.impl.MARTEPackageImpl#getdummy() + * @generated + */ + EEnum DUMMY = eINSTANCE.getdummy(); + + } + +} //MARTEPackage diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GQAMFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GQAMFactory.java new file mode 100644 index 00000000000..3d116c92567 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GQAMFactory.java @@ -0,0 +1,197 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.GQAM; + +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.MARTE_AnalysisModel.GQAM.GQAMPackage + * @generated + */ +public interface GQAMFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + GQAMFactory eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GQAMFactoryImpl.init(); + + /** + * Returns a new object of class 'Ga Workload Generator'. + * + * + * @return a new object of class 'Ga Workload Generator'. + * @generated + */ + GaWorkloadGenerator createGaWorkloadGenerator(); + + /** + * Returns a new object of class 'Ga Event Trace'. + * + * + * @return a new object of class 'Ga Event Trace'. + * @generated + */ + GaEventTrace createGaEventTrace(); + + /** + * Returns a new object of class 'Ga Workload Event'. + * + * + * @return a new object of class 'Ga Workload Event'. + * @generated + */ + GaWorkloadEvent createGaWorkloadEvent(); + + /** + * Returns a new object of class 'Ga Scenario'. + * + * + * @return a new object of class 'Ga Scenario'. + * @generated + */ + GaScenario createGaScenario(); + + /** + * Returns a new object of class 'Ga Step'. + * + * + * @return a new object of class 'Ga Step'. + * @generated + */ + GaStep createGaStep(); + + /** + * Returns a new object of class 'Ga Exec Host'. + * + * + * @return a new object of class 'Ga Exec Host'. + * @generated + */ + GaExecHost createGaExecHost(); + + /** + * Returns a new object of class 'Ga Requested Service'. + * + * + * @return a new object of class 'Ga Requested Service'. + * @generated + */ + GaRequestedService createGaRequestedService(); + + /** + * Returns a new object of class 'Ga Timed Obs'. + * + * + * @return a new object of class 'Ga Timed Obs'. + * @generated + */ + GaTimedObs createGaTimedObs(); + + /** + * Returns a new object of class 'Ga Comm Step'. + * + * + * @return a new object of class 'Ga Comm Step'. + * @generated + */ + GaCommStep createGaCommStep(); + + /** + * Returns a new object of class 'Ga Acq Step'. + * + * + * @return a new object of class 'Ga Acq Step'. + * @generated + */ + GaAcqStep createGaAcqStep(); + + /** + * Returns a new object of class 'Ga Rel Step'. + * + * + * @return a new object of class 'Ga Rel Step'. + * @generated + */ + GaRelStep createGaRelStep(); + + /** + * Returns a new object of class 'Ga Latency Obs'. + * + * + * @return a new object of class 'Ga Latency Obs'. + * @generated + */ + GaLatencyObs createGaLatencyObs(); + + /** + * Returns a new object of class 'Ga Comm Host'. + * + * + * @return a new object of class 'Ga Comm Host'. + * @generated + */ + GaCommHost createGaCommHost(); + + /** + * Returns a new object of class 'Ga Comm Channel'. + * + * + * @return a new object of class 'Ga Comm Channel'. + * @generated + */ + GaCommChannel createGaCommChannel(); + + /** + * Returns a new object of class 'Ga Workload Behavior'. + * + * + * @return a new object of class 'Ga Workload Behavior'. + * @generated + */ + GaWorkloadBehavior createGaWorkloadBehavior(); + + /** + * Returns a new object of class 'Ga Analysis Context'. + * + * + * @return a new object of class 'Ga Analysis Context'. + * @generated + */ + GaAnalysisContext createGaAnalysisContext(); + + /** + * Returns a new object of class 'Ga Resources Platform'. + * + * + * @return a new object of class 'Ga Resources Platform'. + * @generated + */ + GaResourcesPlatform createGaResourcesPlatform(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + GQAMPackage getGQAMPackage(); + +} //GQAMFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GQAMPackage.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GQAMPackage.java new file mode 100644 index 00000000000..1482489a8cd --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GQAMPackage.java @@ -0,0 +1,5128 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.GQAM; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.CoreElementsPackage; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NFPsPackage; + +/** + * + * The Package for the model. + * It contains accessors for the meta objects to represent + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMFactory + * @model kind="package" + * @generated + */ +public interface GQAMPackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "GQAM"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "http://www.eclipse.org/papyrus/GQAM/1"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "GQAM"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + GQAMPackage eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GQAMPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaWorkloadGeneratorImpl Ga Workload Generator}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaWorkloadGeneratorImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GQAMPackageImpl#getGaWorkloadGenerator() + * @generated + */ + int GA_WORKLOAD_GENERATOR = 0; + + /** + * The feature id for the 'Pop' attribute. + * + * + * @generated + * @ordered + */ + int GA_WORKLOAD_GENERATOR__POP = 0; + + /** + * The feature id for the 'Base Behavior' reference. + * + * + * @generated + * @ordered + */ + int GA_WORKLOAD_GENERATOR__BASE_BEHAVIOR = 1; + + /** + * The number of structural features of the 'Ga Workload Generator' class. + * + * + * @generated + * @ordered + */ + int GA_WORKLOAD_GENERATOR_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaEventTraceImpl Ga Event Trace}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaEventTraceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GQAMPackageImpl#getGaEventTrace() + * @generated + */ + int GA_EVENT_TRACE = 1; + + /** + * The feature id for the 'Content' attribute. + * + * + * @generated + * @ordered + */ + int GA_EVENT_TRACE__CONTENT = 0; + + /** + * The feature id for the 'Format' attribute. + * + * + * @generated + * @ordered + */ + int GA_EVENT_TRACE__FORMAT = 1; + + /** + * The feature id for the 'Location' attribute. + * + * + * @generated + * @ordered + */ + int GA_EVENT_TRACE__LOCATION = 2; + + /** + * The feature id for the 'Base Named Element' reference. + * + * + * @generated + * @ordered + */ + int GA_EVENT_TRACE__BASE_NAMED_ELEMENT = 3; + + /** + * The number of structural features of the 'Ga Event Trace' class. + * + * + * @generated + * @ordered + */ + int GA_EVENT_TRACE_FEATURE_COUNT = 4; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaWorkloadEventImpl Ga Workload Event}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaWorkloadEventImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GQAMPackageImpl#getGaWorkloadEvent() + * @generated + */ + int GA_WORKLOAD_EVENT = 2; + + /** + * The feature id for the 'Pattern' attribute. + * + * + * @generated + * @ordered + */ + int GA_WORKLOAD_EVENT__PATTERN = 0; + + /** + * The feature id for the 'Generator' reference. + * + * + * @generated + * @ordered + */ + int GA_WORKLOAD_EVENT__GENERATOR = 1; + + /** + * The feature id for the 'Trace' reference. + * + * + * @generated + * @ordered + */ + int GA_WORKLOAD_EVENT__TRACE = 2; + + /** + * The feature id for the 'Effect' reference. + * + * + * @generated + * @ordered + */ + int GA_WORKLOAD_EVENT__EFFECT = 3; + + /** + * The feature id for the 'Timed Event' reference. + * + * + * @generated + * @ordered + */ + int GA_WORKLOAD_EVENT__TIMED_EVENT = 4; + + /** + * The feature id for the 'Base Named Element' reference. + * + * + * @generated + * @ordered + */ + int GA_WORKLOAD_EVENT__BASE_NAMED_ELEMENT = 5; + + /** + * The number of structural features of the 'Ga Workload Event' class. + * + * + * @generated + * @ordered + */ + int GA_WORKLOAD_EVENT_FEATURE_COUNT = 6; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaScenarioImpl Ga Scenario}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaScenarioImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GQAMPackageImpl#getGaScenario() + * @generated + */ + int GA_SCENARIO = 3; + + /** + * The feature id for the 'Exec Time' attribute list. + * + * + * @generated + * @ordered + */ + int GA_SCENARIO__EXEC_TIME = GRMPackage.RESOURCE_USAGE__EXEC_TIME; + + /** + * The feature id for the 'Allocated Memory' attribute list. + * + * + * @generated + * @ordered + */ + int GA_SCENARIO__ALLOCATED_MEMORY = GRMPackage.RESOURCE_USAGE__ALLOCATED_MEMORY; + + /** + * The feature id for the 'Used Memory' attribute list. + * + * + * @generated + * @ordered + */ + int GA_SCENARIO__USED_MEMORY = GRMPackage.RESOURCE_USAGE__USED_MEMORY; + + /** + * The feature id for the 'Power Peak' attribute list. + * + * + * @generated + * @ordered + */ + int GA_SCENARIO__POWER_PEAK = GRMPackage.RESOURCE_USAGE__POWER_PEAK; + + /** + * The feature id for the 'Energy' attribute list. + * + * + * @generated + * @ordered + */ + int GA_SCENARIO__ENERGY = GRMPackage.RESOURCE_USAGE__ENERGY; + + /** + * The feature id for the 'Base Named Element' reference. + * + * + * @generated + * @ordered + */ + int GA_SCENARIO__BASE_NAMED_ELEMENT = GRMPackage.RESOURCE_USAGE__BASE_NAMED_ELEMENT; + + /** + * The feature id for the 'Sub Usage' reference list. + * + * + * @generated + * @ordered + */ + int GA_SCENARIO__SUB_USAGE = GRMPackage.RESOURCE_USAGE__SUB_USAGE; + + /** + * The feature id for the 'Used Resources' reference list. + * + * + * @generated + * @ordered + */ + int GA_SCENARIO__USED_RESOURCES = GRMPackage.RESOURCE_USAGE__USED_RESOURCES; + + /** + * The feature id for the 'Msg Size' attribute list. + * + * + * @generated + * @ordered + */ + int GA_SCENARIO__MSG_SIZE = GRMPackage.RESOURCE_USAGE__MSG_SIZE; + + /** + * The feature id for the 'On' reference list. + * + * + * @generated + * @ordered + */ + int GA_SCENARIO__ON = GRMPackage.RESOURCE_USAGE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Base Action' reference. + * + * + * @generated + * @ordered + */ + int GA_SCENARIO__BASE_ACTION = GRMPackage.RESOURCE_USAGE_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Base Behavior' reference. + * + * + * @generated + * @ordered + */ + int GA_SCENARIO__BASE_BEHAVIOR = GRMPackage.RESOURCE_USAGE_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Base Message' reference. + * + * + * @generated + * @ordered + */ + int GA_SCENARIO__BASE_MESSAGE = GRMPackage.RESOURCE_USAGE_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Duration' containment reference. + * + * + * @generated + * @ordered + */ + int GA_SCENARIO__DURATION = GRMPackage.RESOURCE_USAGE_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Start' reference. + * + * + * @generated + * @ordered + */ + int GA_SCENARIO__START = GRMPackage.RESOURCE_USAGE_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Finish' reference. + * + * + * @generated + * @ordered + */ + int GA_SCENARIO__FINISH = GRMPackage.RESOURCE_USAGE_FEATURE_COUNT + 6; + + /** + * The feature id for the 'Cause' reference. + * + * + * @generated + * @ordered + */ + int GA_SCENARIO__CAUSE = GRMPackage.RESOURCE_USAGE_FEATURE_COUNT + 7; + + /** + * The feature id for the 'Host Demand' attribute list. + * + * + * @generated + * @ordered + */ + int GA_SCENARIO__HOST_DEMAND = GRMPackage.RESOURCE_USAGE_FEATURE_COUNT + 8; + + /** + * The feature id for the 'Host Demand Ops' attribute list. + * + * + * @generated + * @ordered + */ + int GA_SCENARIO__HOST_DEMAND_OPS = GRMPackage.RESOURCE_USAGE_FEATURE_COUNT + 9; + + /** + * The feature id for the 'Inter Occ T' attribute list. + * + * + * @generated + * @ordered + */ + int GA_SCENARIO__INTER_OCC_T = GRMPackage.RESOURCE_USAGE_FEATURE_COUNT + 10; + + /** + * The feature id for the 'Throughput' attribute list. + * + * + * @generated + * @ordered + */ + int GA_SCENARIO__THROUGHPUT = GRMPackage.RESOURCE_USAGE_FEATURE_COUNT + 11; + + /** + * The feature id for the 'Resp T' attribute list. + * + * + * @generated + * @ordered + */ + int GA_SCENARIO__RESP_T = GRMPackage.RESOURCE_USAGE_FEATURE_COUNT + 12; + + /** + * The feature id for the 'Utilization' attribute list. + * + * + * @generated + * @ordered + */ + int GA_SCENARIO__UTILIZATION = GRMPackage.RESOURCE_USAGE_FEATURE_COUNT + 13; + + /** + * The feature id for the 'Utilization On Host' attribute list. + * + * + * @generated + * @ordered + */ + int GA_SCENARIO__UTILIZATION_ON_HOST = GRMPackage.RESOURCE_USAGE_FEATURE_COUNT + 14; + + /** + * The feature id for the 'Root' reference. + * + * + * @generated + * @ordered + */ + int GA_SCENARIO__ROOT = GRMPackage.RESOURCE_USAGE_FEATURE_COUNT + 15; + + /** + * The feature id for the 'Steps' reference list. + * + * + * @generated + * @ordered + */ + int GA_SCENARIO__STEPS = GRMPackage.RESOURCE_USAGE_FEATURE_COUNT + 16; + + /** + * The feature id for the 'Parent Step' reference list. + * + * + * @generated + * @ordered + */ + int GA_SCENARIO__PARENT_STEP = GRMPackage.RESOURCE_USAGE_FEATURE_COUNT + 17; + + /** + * The feature id for the 'Timing' reference list. + * + * + * @generated + * @ordered + */ + int GA_SCENARIO__TIMING = GRMPackage.RESOURCE_USAGE_FEATURE_COUNT + 18; + + /** + * The number of structural features of the 'Ga Scenario' class. + * + * + * @generated + * @ordered + */ + int GA_SCENARIO_FEATURE_COUNT = GRMPackage.RESOURCE_USAGE_FEATURE_COUNT + 19; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaStepImpl Ga Step}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaStepImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GQAMPackageImpl#getGaStep() + * @generated + */ + int GA_STEP = 4; + + /** + * The feature id for the 'Exec Time' attribute list. + * + * + * @generated + * @ordered + */ + int GA_STEP__EXEC_TIME = GA_SCENARIO__EXEC_TIME; + + /** + * The feature id for the 'Allocated Memory' attribute list. + * + * + * @generated + * @ordered + */ + int GA_STEP__ALLOCATED_MEMORY = GA_SCENARIO__ALLOCATED_MEMORY; + + /** + * The feature id for the 'Used Memory' attribute list. + * + * + * @generated + * @ordered + */ + int GA_STEP__USED_MEMORY = GA_SCENARIO__USED_MEMORY; + + /** + * The feature id for the 'Power Peak' attribute list. + * + * + * @generated + * @ordered + */ + int GA_STEP__POWER_PEAK = GA_SCENARIO__POWER_PEAK; + + /** + * The feature id for the 'Energy' attribute list. + * + * + * @generated + * @ordered + */ + int GA_STEP__ENERGY = GA_SCENARIO__ENERGY; + + /** + * The feature id for the 'Base Named Element' reference. + * + * + * @generated + * @ordered + */ + int GA_STEP__BASE_NAMED_ELEMENT = GA_SCENARIO__BASE_NAMED_ELEMENT; + + /** + * The feature id for the 'Sub Usage' reference list. + * + * + * @generated + * @ordered + */ + int GA_STEP__SUB_USAGE = GA_SCENARIO__SUB_USAGE; + + /** + * The feature id for the 'Used Resources' reference list. + * + * + * @generated + * @ordered + */ + int GA_STEP__USED_RESOURCES = GA_SCENARIO__USED_RESOURCES; + + /** + * The feature id for the 'Msg Size' attribute list. + * + * + * @generated + * @ordered + */ + int GA_STEP__MSG_SIZE = GA_SCENARIO__MSG_SIZE; + + /** + * The feature id for the 'On' reference list. + * + * + * @generated + * @ordered + */ + int GA_STEP__ON = GA_SCENARIO__ON; + + /** + * The feature id for the 'Base Action' reference. + * + * + * @generated + * @ordered + */ + int GA_STEP__BASE_ACTION = GA_SCENARIO__BASE_ACTION; + + /** + * The feature id for the 'Base Behavior' reference. + * + * + * @generated + * @ordered + */ + int GA_STEP__BASE_BEHAVIOR = GA_SCENARIO__BASE_BEHAVIOR; + + /** + * The feature id for the 'Base Message' reference. + * + * + * @generated + * @ordered + */ + int GA_STEP__BASE_MESSAGE = GA_SCENARIO__BASE_MESSAGE; + + /** + * The feature id for the 'Duration' containment reference. + * + * + * @generated + * @ordered + */ + int GA_STEP__DURATION = GA_SCENARIO__DURATION; + + /** + * The feature id for the 'Start' reference. + * + * + * @generated + * @ordered + */ + int GA_STEP__START = GA_SCENARIO__START; + + /** + * The feature id for the 'Finish' reference. + * + * + * @generated + * @ordered + */ + int GA_STEP__FINISH = GA_SCENARIO__FINISH; + + /** + * The feature id for the 'Cause' reference. + * + * + * @generated + * @ordered + */ + int GA_STEP__CAUSE = GA_SCENARIO__CAUSE; + + /** + * The feature id for the 'Host Demand' attribute list. + * + * + * @generated + * @ordered + */ + int GA_STEP__HOST_DEMAND = GA_SCENARIO__HOST_DEMAND; + + /** + * The feature id for the 'Host Demand Ops' attribute list. + * + * + * @generated + * @ordered + */ + int GA_STEP__HOST_DEMAND_OPS = GA_SCENARIO__HOST_DEMAND_OPS; + + /** + * The feature id for the 'Inter Occ T' attribute list. + * + * + * @generated + * @ordered + */ + int GA_STEP__INTER_OCC_T = GA_SCENARIO__INTER_OCC_T; + + /** + * The feature id for the 'Throughput' attribute list. + * + * + * @generated + * @ordered + */ + int GA_STEP__THROUGHPUT = GA_SCENARIO__THROUGHPUT; + + /** + * The feature id for the 'Resp T' attribute list. + * + * + * @generated + * @ordered + */ + int GA_STEP__RESP_T = GA_SCENARIO__RESP_T; + + /** + * The feature id for the 'Utilization' attribute list. + * + * + * @generated + * @ordered + */ + int GA_STEP__UTILIZATION = GA_SCENARIO__UTILIZATION; + + /** + * The feature id for the 'Utilization On Host' attribute list. + * + * + * @generated + * @ordered + */ + int GA_STEP__UTILIZATION_ON_HOST = GA_SCENARIO__UTILIZATION_ON_HOST; + + /** + * The feature id for the 'Root' reference. + * + * + * @generated + * @ordered + */ + int GA_STEP__ROOT = GA_SCENARIO__ROOT; + + /** + * The feature id for the 'Steps' reference list. + * + * + * @generated + * @ordered + */ + int GA_STEP__STEPS = GA_SCENARIO__STEPS; + + /** + * The feature id for the 'Parent Step' reference list. + * + * + * @generated + * @ordered + */ + int GA_STEP__PARENT_STEP = GA_SCENARIO__PARENT_STEP; + + /** + * The feature id for the 'Timing' reference list. + * + * + * @generated + * @ordered + */ + int GA_STEP__TIMING = GA_SCENARIO__TIMING; + + /** + * The feature id for the 'Is Atomic' attribute. + * + * + * @generated + * @ordered + */ + int GA_STEP__IS_ATOMIC = GA_SCENARIO_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Block T' attribute. + * + * + * @generated + * @ordered + */ + int GA_STEP__BLOCK_T = GA_SCENARIO_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Rep' attribute. + * + * + * @generated + * @ordered + */ + int GA_STEP__REP = GA_SCENARIO_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Prob' attribute. + * + * + * @generated + * @ordered + */ + int GA_STEP__PROB = GA_SCENARIO_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Priority' attribute. + * + * + * @generated + * @ordered + */ + int GA_STEP__PRIORITY = GA_SCENARIO_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Concur Res' reference. + * + * + * @generated + * @ordered + */ + int GA_STEP__CONCUR_RES = GA_SCENARIO_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Host' reference. + * + * + * @generated + * @ordered + */ + int GA_STEP__HOST = GA_SCENARIO_FEATURE_COUNT + 6; + + /** + * The feature id for the 'Serv Demand' reference list. + * + * + * @generated + * @ordered + */ + int GA_STEP__SERV_DEMAND = GA_SCENARIO_FEATURE_COUNT + 7; + + /** + * The feature id for the 'Serv Count' attribute list. + * + * + * @generated + * @ordered + */ + int GA_STEP__SERV_COUNT = GA_SCENARIO_FEATURE_COUNT + 8; + + /** + * The feature id for the 'Self Delay' attribute. + * + * + * @generated + * @ordered + */ + int GA_STEP__SELF_DELAY = GA_SCENARIO_FEATURE_COUNT + 9; + + /** + * The feature id for the 'Scenario' reference. + * + * + * @generated + * @ordered + */ + int GA_STEP__SCENARIO = GA_SCENARIO_FEATURE_COUNT + 10; + + /** + * The feature id for the 'Child Scenario' reference. + * + * + * @generated + * @ordered + */ + int GA_STEP__CHILD_SCENARIO = GA_SCENARIO_FEATURE_COUNT + 11; + + /** + * The number of structural features of the 'Ga Step' class. + * + * + * @generated + * @ordered + */ + int GA_STEP_FEATURE_COUNT = GA_SCENARIO_FEATURE_COUNT + 12; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaExecHostImpl Ga Exec Host}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaExecHostImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GQAMPackageImpl#getGaExecHost() + * @generated + */ + int GA_EXEC_HOST = 5; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int GA_EXEC_HOST__RES_MULT = GRMPackage.SCHEDULER__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int GA_EXEC_HOST__IS_PROTECTED = GRMPackage.SCHEDULER__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int GA_EXEC_HOST__IS_ACTIVE = GRMPackage.SCHEDULER__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int GA_EXEC_HOST__BASE_PROPERTY = GRMPackage.SCHEDULER__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int GA_EXEC_HOST__BASE_INSTANCE_SPECIFICATION = GRMPackage.SCHEDULER__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int GA_EXEC_HOST__BASE_CLASSIFIER = GRMPackage.SCHEDULER__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int GA_EXEC_HOST__BASE_LIFELINE = GRMPackage.SCHEDULER__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int GA_EXEC_HOST__BASE_CONNECTABLE_ELEMENT = GRMPackage.SCHEDULER__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Is Preemptible' attribute. + * + * + * @generated + * @ordered + */ + int GA_EXEC_HOST__IS_PREEMPTIBLE = GRMPackage.SCHEDULER__IS_PREEMPTIBLE; + + /** + * The feature id for the 'Sched Policy' attribute. + * + * + * @generated + * @ordered + */ + int GA_EXEC_HOST__SCHED_POLICY = GRMPackage.SCHEDULER__SCHED_POLICY; + + /** + * The feature id for the 'Other Sched Policy' attribute. + * + * + * @generated + * @ordered + */ + int GA_EXEC_HOST__OTHER_SCHED_POLICY = GRMPackage.SCHEDULER__OTHER_SCHED_POLICY; + + /** + * The feature id for the 'Schedule' attribute. + * + * + * @generated + * @ordered + */ + int GA_EXEC_HOST__SCHEDULE = GRMPackage.SCHEDULER__SCHEDULE; + + /** + * The feature id for the 'Processing Units' reference list. + * + * + * @generated + * @ordered + */ + int GA_EXEC_HOST__PROCESSING_UNITS = GRMPackage.SCHEDULER__PROCESSING_UNITS; + + /** + * The feature id for the 'Host' reference. + * + * + * @generated + * @ordered + */ + int GA_EXEC_HOST__HOST = GRMPackage.SCHEDULER__HOST; + + /** + * The feature id for the 'Protected Shared Resources' reference list. + * + * + * @generated + * @ordered + */ + int GA_EXEC_HOST__PROTECTED_SHARED_RESOURCES = GRMPackage.SCHEDULER__PROTECTED_SHARED_RESOURCES; + + /** + * The feature id for the 'Schedulable Resources' reference list. + * + * + * @generated + * @ordered + */ + int GA_EXEC_HOST__SCHEDULABLE_RESOURCES = GRMPackage.SCHEDULER__SCHEDULABLE_RESOURCES; + + /** + * The feature id for the 'Speed Factor' attribute. + * + * + * @generated + * @ordered + */ + int GA_EXEC_HOST__SPEED_FACTOR = GRMPackage.SCHEDULER_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Main Scheduler' reference. + * + * + * @generated + * @ordered + */ + int GA_EXEC_HOST__MAIN_SCHEDULER = GRMPackage.SCHEDULER_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Comm Tx Ovh' attribute. + * + * + * @generated + * @ordered + */ + int GA_EXEC_HOST__COMM_TX_OVH = GRMPackage.SCHEDULER_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Comm Rcv Ovh' attribute. + * + * + * @generated + * @ordered + */ + int GA_EXEC_HOST__COMM_RCV_OVH = GRMPackage.SCHEDULER_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Cntxt Sw T' attribute. + * + * + * @generated + * @ordered + */ + int GA_EXEC_HOST__CNTXT_SW_T = GRMPackage.SCHEDULER_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Clock Ovh' attribute. + * + * + * @generated + * @ordered + */ + int GA_EXEC_HOST__CLOCK_OVH = GRMPackage.SCHEDULER_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Sched Pri Range' attribute. + * + * + * @generated + * @ordered + */ + int GA_EXEC_HOST__SCHED_PRI_RANGE = GRMPackage.SCHEDULER_FEATURE_COUNT + 6; + + /** + * The feature id for the 'Mem Size' attribute. + * + * + * @generated + * @ordered + */ + int GA_EXEC_HOST__MEM_SIZE = GRMPackage.SCHEDULER_FEATURE_COUNT + 7; + + /** + * The feature id for the 'Utilization' attribute list. + * + * + * @generated + * @ordered + */ + int GA_EXEC_HOST__UTILIZATION = GRMPackage.SCHEDULER_FEATURE_COUNT + 8; + + /** + * The feature id for the 'Throughput' attribute list. + * + * + * @generated + * @ordered + */ + int GA_EXEC_HOST__THROUGHPUT = GRMPackage.SCHEDULER_FEATURE_COUNT + 9; + + /** + * The number of structural features of the 'Ga Exec Host' class. + * + * + * @generated + * @ordered + */ + int GA_EXEC_HOST_FEATURE_COUNT = GRMPackage.SCHEDULER_FEATURE_COUNT + 10; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaRequestedServiceImpl Ga Requested Service}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaRequestedServiceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GQAMPackageImpl#getGaRequestedService() + * @generated + */ + int GA_REQUESTED_SERVICE = 6; + + /** + * The feature id for the 'Exec Time' attribute list. + * + * + * @generated + * @ordered + */ + int GA_REQUESTED_SERVICE__EXEC_TIME = GA_STEP__EXEC_TIME; + + /** + * The feature id for the 'Allocated Memory' attribute list. + * + * + * @generated + * @ordered + */ + int GA_REQUESTED_SERVICE__ALLOCATED_MEMORY = GA_STEP__ALLOCATED_MEMORY; + + /** + * The feature id for the 'Used Memory' attribute list. + * + * + * @generated + * @ordered + */ + int GA_REQUESTED_SERVICE__USED_MEMORY = GA_STEP__USED_MEMORY; + + /** + * The feature id for the 'Power Peak' attribute list. + * + * + * @generated + * @ordered + */ + int GA_REQUESTED_SERVICE__POWER_PEAK = GA_STEP__POWER_PEAK; + + /** + * The feature id for the 'Energy' attribute list. + * + * + * @generated + * @ordered + */ + int GA_REQUESTED_SERVICE__ENERGY = GA_STEP__ENERGY; + + /** + * The feature id for the 'Base Named Element' reference. + * + * + * @generated + * @ordered + */ + int GA_REQUESTED_SERVICE__BASE_NAMED_ELEMENT = GA_STEP__BASE_NAMED_ELEMENT; + + /** + * The feature id for the 'Sub Usage' reference list. + * + * + * @generated + * @ordered + */ + int GA_REQUESTED_SERVICE__SUB_USAGE = GA_STEP__SUB_USAGE; + + /** + * The feature id for the 'Used Resources' reference list. + * + * + * @generated + * @ordered + */ + int GA_REQUESTED_SERVICE__USED_RESOURCES = GA_STEP__USED_RESOURCES; + + /** + * The feature id for the 'Msg Size' attribute list. + * + * + * @generated + * @ordered + */ + int GA_REQUESTED_SERVICE__MSG_SIZE = GA_STEP__MSG_SIZE; + + /** + * The feature id for the 'On' reference list. + * + * + * @generated + * @ordered + */ + int GA_REQUESTED_SERVICE__ON = GA_STEP__ON; + + /** + * The feature id for the 'Base Action' reference. + * + * + * @generated + * @ordered + */ + int GA_REQUESTED_SERVICE__BASE_ACTION = GA_STEP__BASE_ACTION; + + /** + * The feature id for the 'Base Behavior' reference. + * + * + * @generated + * @ordered + */ + int GA_REQUESTED_SERVICE__BASE_BEHAVIOR = GA_STEP__BASE_BEHAVIOR; + + /** + * The feature id for the 'Base Message' reference. + * + * + * @generated + * @ordered + */ + int GA_REQUESTED_SERVICE__BASE_MESSAGE = GA_STEP__BASE_MESSAGE; + + /** + * The feature id for the 'Duration' containment reference. + * + * + * @generated + * @ordered + */ + int GA_REQUESTED_SERVICE__DURATION = GA_STEP__DURATION; + + /** + * The feature id for the 'Start' reference. + * + * + * @generated + * @ordered + */ + int GA_REQUESTED_SERVICE__START = GA_STEP__START; + + /** + * The feature id for the 'Finish' reference. + * + * + * @generated + * @ordered + */ + int GA_REQUESTED_SERVICE__FINISH = GA_STEP__FINISH; + + /** + * The feature id for the 'Cause' reference. + * + * + * @generated + * @ordered + */ + int GA_REQUESTED_SERVICE__CAUSE = GA_STEP__CAUSE; + + /** + * The feature id for the 'Host Demand' attribute list. + * + * + * @generated + * @ordered + */ + int GA_REQUESTED_SERVICE__HOST_DEMAND = GA_STEP__HOST_DEMAND; + + /** + * The feature id for the 'Host Demand Ops' attribute list. + * + * + * @generated + * @ordered + */ + int GA_REQUESTED_SERVICE__HOST_DEMAND_OPS = GA_STEP__HOST_DEMAND_OPS; + + /** + * The feature id for the 'Inter Occ T' attribute list. + * + * + * @generated + * @ordered + */ + int GA_REQUESTED_SERVICE__INTER_OCC_T = GA_STEP__INTER_OCC_T; + + /** + * The feature id for the 'Throughput' attribute list. + * + * + * @generated + * @ordered + */ + int GA_REQUESTED_SERVICE__THROUGHPUT = GA_STEP__THROUGHPUT; + + /** + * The feature id for the 'Resp T' attribute list. + * + * + * @generated + * @ordered + */ + int GA_REQUESTED_SERVICE__RESP_T = GA_STEP__RESP_T; + + /** + * The feature id for the 'Utilization' attribute list. + * + * + * @generated + * @ordered + */ + int GA_REQUESTED_SERVICE__UTILIZATION = GA_STEP__UTILIZATION; + + /** + * The feature id for the 'Utilization On Host' attribute list. + * + * + * @generated + * @ordered + */ + int GA_REQUESTED_SERVICE__UTILIZATION_ON_HOST = GA_STEP__UTILIZATION_ON_HOST; + + /** + * The feature id for the 'Root' reference. + * + * + * @generated + * @ordered + */ + int GA_REQUESTED_SERVICE__ROOT = GA_STEP__ROOT; + + /** + * The feature id for the 'Steps' reference list. + * + * + * @generated + * @ordered + */ + int GA_REQUESTED_SERVICE__STEPS = GA_STEP__STEPS; + + /** + * The feature id for the 'Parent Step' reference list. + * + * + * @generated + * @ordered + */ + int GA_REQUESTED_SERVICE__PARENT_STEP = GA_STEP__PARENT_STEP; + + /** + * The feature id for the 'Timing' reference list. + * + * + * @generated + * @ordered + */ + int GA_REQUESTED_SERVICE__TIMING = GA_STEP__TIMING; + + /** + * The feature id for the 'Is Atomic' attribute. + * + * + * @generated + * @ordered + */ + int GA_REQUESTED_SERVICE__IS_ATOMIC = GA_STEP__IS_ATOMIC; + + /** + * The feature id for the 'Block T' attribute. + * + * + * @generated + * @ordered + */ + int GA_REQUESTED_SERVICE__BLOCK_T = GA_STEP__BLOCK_T; + + /** + * The feature id for the 'Rep' attribute. + * + * + * @generated + * @ordered + */ + int GA_REQUESTED_SERVICE__REP = GA_STEP__REP; + + /** + * The feature id for the 'Prob' attribute. + * + * + * @generated + * @ordered + */ + int GA_REQUESTED_SERVICE__PROB = GA_STEP__PROB; + + /** + * The feature id for the 'Priority' attribute. + * + * + * @generated + * @ordered + */ + int GA_REQUESTED_SERVICE__PRIORITY = GA_STEP__PRIORITY; + + /** + * The feature id for the 'Concur Res' reference. + * + * + * @generated + * @ordered + */ + int GA_REQUESTED_SERVICE__CONCUR_RES = GA_STEP__CONCUR_RES; + + /** + * The feature id for the 'Host' reference. + * + * + * @generated + * @ordered + */ + int GA_REQUESTED_SERVICE__HOST = GA_STEP__HOST; + + /** + * The feature id for the 'Serv Demand' reference list. + * + * + * @generated + * @ordered + */ + int GA_REQUESTED_SERVICE__SERV_DEMAND = GA_STEP__SERV_DEMAND; + + /** + * The feature id for the 'Serv Count' attribute list. + * + * + * @generated + * @ordered + */ + int GA_REQUESTED_SERVICE__SERV_COUNT = GA_STEP__SERV_COUNT; + + /** + * The feature id for the 'Self Delay' attribute. + * + * + * @generated + * @ordered + */ + int GA_REQUESTED_SERVICE__SELF_DELAY = GA_STEP__SELF_DELAY; + + /** + * The feature id for the 'Scenario' reference. + * + * + * @generated + * @ordered + */ + int GA_REQUESTED_SERVICE__SCENARIO = GA_STEP__SCENARIO; + + /** + * The feature id for the 'Child Scenario' reference. + * + * + * @generated + * @ordered + */ + int GA_REQUESTED_SERVICE__CHILD_SCENARIO = GA_STEP__CHILD_SCENARIO; + + /** + * The feature id for the 'Base Operation' reference. + * + * + * @generated + * @ordered + */ + int GA_REQUESTED_SERVICE__BASE_OPERATION = GA_STEP_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Ga Requested Service' class. + * + * + * @generated + * @ordered + */ + int GA_REQUESTED_SERVICE_FEATURE_COUNT = GA_STEP_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaTimedObsImpl Ga Timed Obs}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaTimedObsImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GQAMPackageImpl#getGaTimedObs() + * @generated + */ + int GA_TIMED_OBS = 7; + + /** + * The feature id for the 'Kind' attribute. + * + * + * @generated + * @ordered + */ + int GA_TIMED_OBS__KIND = NFPsPackage.NFP_CONSTRAINT__KIND; + + /** + * The feature id for the 'Base Constraint' reference. + * + * + * @generated + * @ordered + */ + int GA_TIMED_OBS__BASE_CONSTRAINT = NFPsPackage.NFP_CONSTRAINT__BASE_CONSTRAINT; + + /** + * The feature id for the 'Mode' reference list. + * + * + * @generated + * @ordered + */ + int GA_TIMED_OBS__MODE = NFPsPackage.NFP_CONSTRAINT__MODE; + + /** + * The feature id for the 'Laxity' attribute. + * + * + * @generated + * @ordered + */ + int GA_TIMED_OBS__LAXITY = NFPsPackage.NFP_CONSTRAINT_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Start Obs' reference list. + * + * + * @generated + * @ordered + */ + int GA_TIMED_OBS__START_OBS = NFPsPackage.NFP_CONSTRAINT_FEATURE_COUNT + 1; + + /** + * The feature id for the 'End Obs' reference list. + * + * + * @generated + * @ordered + */ + int GA_TIMED_OBS__END_OBS = NFPsPackage.NFP_CONSTRAINT_FEATURE_COUNT + 2; + + /** + * The number of structural features of the 'Ga Timed Obs' class. + * + * + * @generated + * @ordered + */ + int GA_TIMED_OBS_FEATURE_COUNT = NFPsPackage.NFP_CONSTRAINT_FEATURE_COUNT + 3; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaCommStepImpl Ga Comm Step}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaCommStepImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GQAMPackageImpl#getGaCommStep() + * @generated + */ + int GA_COMM_STEP = 8; + + /** + * The feature id for the 'Exec Time' attribute list. + * + * + * @generated + * @ordered + */ + int GA_COMM_STEP__EXEC_TIME = GA_STEP__EXEC_TIME; + + /** + * The feature id for the 'Allocated Memory' attribute list. + * + * + * @generated + * @ordered + */ + int GA_COMM_STEP__ALLOCATED_MEMORY = GA_STEP__ALLOCATED_MEMORY; + + /** + * The feature id for the 'Used Memory' attribute list. + * + * + * @generated + * @ordered + */ + int GA_COMM_STEP__USED_MEMORY = GA_STEP__USED_MEMORY; + + /** + * The feature id for the 'Power Peak' attribute list. + * + * + * @generated + * @ordered + */ + int GA_COMM_STEP__POWER_PEAK = GA_STEP__POWER_PEAK; + + /** + * The feature id for the 'Energy' attribute list. + * + * + * @generated + * @ordered + */ + int GA_COMM_STEP__ENERGY = GA_STEP__ENERGY; + + /** + * The feature id for the 'Base Named Element' reference. + * + * + * @generated + * @ordered + */ + int GA_COMM_STEP__BASE_NAMED_ELEMENT = GA_STEP__BASE_NAMED_ELEMENT; + + /** + * The feature id for the 'Sub Usage' reference list. + * + * + * @generated + * @ordered + */ + int GA_COMM_STEP__SUB_USAGE = GA_STEP__SUB_USAGE; + + /** + * The feature id for the 'Used Resources' reference list. + * + * + * @generated + * @ordered + */ + int GA_COMM_STEP__USED_RESOURCES = GA_STEP__USED_RESOURCES; + + /** + * The feature id for the 'Msg Size' attribute list. + * + * + * @generated + * @ordered + */ + int GA_COMM_STEP__MSG_SIZE = GA_STEP__MSG_SIZE; + + /** + * The feature id for the 'On' reference list. + * + * + * @generated + * @ordered + */ + int GA_COMM_STEP__ON = GA_STEP__ON; + + /** + * The feature id for the 'Base Action' reference. + * + * + * @generated + * @ordered + */ + int GA_COMM_STEP__BASE_ACTION = GA_STEP__BASE_ACTION; + + /** + * The feature id for the 'Base Behavior' reference. + * + * + * @generated + * @ordered + */ + int GA_COMM_STEP__BASE_BEHAVIOR = GA_STEP__BASE_BEHAVIOR; + + /** + * The feature id for the 'Base Message' reference. + * + * + * @generated + * @ordered + */ + int GA_COMM_STEP__BASE_MESSAGE = GA_STEP__BASE_MESSAGE; + + /** + * The feature id for the 'Duration' containment reference. + * + * + * @generated + * @ordered + */ + int GA_COMM_STEP__DURATION = GA_STEP__DURATION; + + /** + * The feature id for the 'Start' reference. + * + * + * @generated + * @ordered + */ + int GA_COMM_STEP__START = GA_STEP__START; + + /** + * The feature id for the 'Finish' reference. + * + * + * @generated + * @ordered + */ + int GA_COMM_STEP__FINISH = GA_STEP__FINISH; + + /** + * The feature id for the 'Cause' reference. + * + * + * @generated + * @ordered + */ + int GA_COMM_STEP__CAUSE = GA_STEP__CAUSE; + + /** + * The feature id for the 'Host Demand' attribute list. + * + * + * @generated + * @ordered + */ + int GA_COMM_STEP__HOST_DEMAND = GA_STEP__HOST_DEMAND; + + /** + * The feature id for the 'Host Demand Ops' attribute list. + * + * + * @generated + * @ordered + */ + int GA_COMM_STEP__HOST_DEMAND_OPS = GA_STEP__HOST_DEMAND_OPS; + + /** + * The feature id for the 'Inter Occ T' attribute list. + * + * + * @generated + * @ordered + */ + int GA_COMM_STEP__INTER_OCC_T = GA_STEP__INTER_OCC_T; + + /** + * The feature id for the 'Throughput' attribute list. + * + * + * @generated + * @ordered + */ + int GA_COMM_STEP__THROUGHPUT = GA_STEP__THROUGHPUT; + + /** + * The feature id for the 'Resp T' attribute list. + * + * + * @generated + * @ordered + */ + int GA_COMM_STEP__RESP_T = GA_STEP__RESP_T; + + /** + * The feature id for the 'Utilization' attribute list. + * + * + * @generated + * @ordered + */ + int GA_COMM_STEP__UTILIZATION = GA_STEP__UTILIZATION; + + /** + * The feature id for the 'Utilization On Host' attribute list. + * + * + * @generated + * @ordered + */ + int GA_COMM_STEP__UTILIZATION_ON_HOST = GA_STEP__UTILIZATION_ON_HOST; + + /** + * The feature id for the 'Root' reference. + * + * + * @generated + * @ordered + */ + int GA_COMM_STEP__ROOT = GA_STEP__ROOT; + + /** + * The feature id for the 'Steps' reference list. + * + * + * @generated + * @ordered + */ + int GA_COMM_STEP__STEPS = GA_STEP__STEPS; + + /** + * The feature id for the 'Parent Step' reference list. + * + * + * @generated + * @ordered + */ + int GA_COMM_STEP__PARENT_STEP = GA_STEP__PARENT_STEP; + + /** + * The feature id for the 'Timing' reference list. + * + * + * @generated + * @ordered + */ + int GA_COMM_STEP__TIMING = GA_STEP__TIMING; + + /** + * The feature id for the 'Is Atomic' attribute. + * + * + * @generated + * @ordered + */ + int GA_COMM_STEP__IS_ATOMIC = GA_STEP__IS_ATOMIC; + + /** + * The feature id for the 'Block T' attribute. + * + * + * @generated + * @ordered + */ + int GA_COMM_STEP__BLOCK_T = GA_STEP__BLOCK_T; + + /** + * The feature id for the 'Rep' attribute. + * + * + * @generated + * @ordered + */ + int GA_COMM_STEP__REP = GA_STEP__REP; + + /** + * The feature id for the 'Prob' attribute. + * + * + * @generated + * @ordered + */ + int GA_COMM_STEP__PROB = GA_STEP__PROB; + + /** + * The feature id for the 'Priority' attribute. + * + * + * @generated + * @ordered + */ + int GA_COMM_STEP__PRIORITY = GA_STEP__PRIORITY; + + /** + * The feature id for the 'Concur Res' reference. + * + * + * @generated + * @ordered + */ + int GA_COMM_STEP__CONCUR_RES = GA_STEP__CONCUR_RES; + + /** + * The feature id for the 'Host' reference. + * + * + * @generated + * @ordered + */ + int GA_COMM_STEP__HOST = GA_STEP__HOST; + + /** + * The feature id for the 'Serv Demand' reference list. + * + * + * @generated + * @ordered + */ + int GA_COMM_STEP__SERV_DEMAND = GA_STEP__SERV_DEMAND; + + /** + * The feature id for the 'Serv Count' attribute list. + * + * + * @generated + * @ordered + */ + int GA_COMM_STEP__SERV_COUNT = GA_STEP__SERV_COUNT; + + /** + * The feature id for the 'Self Delay' attribute. + * + * + * @generated + * @ordered + */ + int GA_COMM_STEP__SELF_DELAY = GA_STEP__SELF_DELAY; + + /** + * The feature id for the 'Scenario' reference. + * + * + * @generated + * @ordered + */ + int GA_COMM_STEP__SCENARIO = GA_STEP__SCENARIO; + + /** + * The feature id for the 'Child Scenario' reference. + * + * + * @generated + * @ordered + */ + int GA_COMM_STEP__CHILD_SCENARIO = GA_STEP__CHILD_SCENARIO; + + /** + * The number of structural features of the 'Ga Comm Step' class. + * + * + * @generated + * @ordered + */ + int GA_COMM_STEP_FEATURE_COUNT = GA_STEP_FEATURE_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaAcqStepImpl Ga Acq Step}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaAcqStepImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GQAMPackageImpl#getGaAcqStep() + * @generated + */ + int GA_ACQ_STEP = 9; + + /** + * The feature id for the 'Exec Time' attribute list. + * + * + * @generated + * @ordered + */ + int GA_ACQ_STEP__EXEC_TIME = GA_STEP__EXEC_TIME; + + /** + * The feature id for the 'Allocated Memory' attribute list. + * + * + * @generated + * @ordered + */ + int GA_ACQ_STEP__ALLOCATED_MEMORY = GA_STEP__ALLOCATED_MEMORY; + + /** + * The feature id for the 'Used Memory' attribute list. + * + * + * @generated + * @ordered + */ + int GA_ACQ_STEP__USED_MEMORY = GA_STEP__USED_MEMORY; + + /** + * The feature id for the 'Power Peak' attribute list. + * + * + * @generated + * @ordered + */ + int GA_ACQ_STEP__POWER_PEAK = GA_STEP__POWER_PEAK; + + /** + * The feature id for the 'Energy' attribute list. + * + * + * @generated + * @ordered + */ + int GA_ACQ_STEP__ENERGY = GA_STEP__ENERGY; + + /** + * The feature id for the 'Base Named Element' reference. + * + * + * @generated + * @ordered + */ + int GA_ACQ_STEP__BASE_NAMED_ELEMENT = GA_STEP__BASE_NAMED_ELEMENT; + + /** + * The feature id for the 'Sub Usage' reference list. + * + * + * @generated + * @ordered + */ + int GA_ACQ_STEP__SUB_USAGE = GA_STEP__SUB_USAGE; + + /** + * The feature id for the 'Used Resources' reference list. + * + * + * @generated + * @ordered + */ + int GA_ACQ_STEP__USED_RESOURCES = GA_STEP__USED_RESOURCES; + + /** + * The feature id for the 'Msg Size' attribute list. + * + * + * @generated + * @ordered + */ + int GA_ACQ_STEP__MSG_SIZE = GA_STEP__MSG_SIZE; + + /** + * The feature id for the 'On' reference list. + * + * + * @generated + * @ordered + */ + int GA_ACQ_STEP__ON = GA_STEP__ON; + + /** + * The feature id for the 'Base Action' reference. + * + * + * @generated + * @ordered + */ + int GA_ACQ_STEP__BASE_ACTION = GA_STEP__BASE_ACTION; + + /** + * The feature id for the 'Base Behavior' reference. + * + * + * @generated + * @ordered + */ + int GA_ACQ_STEP__BASE_BEHAVIOR = GA_STEP__BASE_BEHAVIOR; + + /** + * The feature id for the 'Base Message' reference. + * + * + * @generated + * @ordered + */ + int GA_ACQ_STEP__BASE_MESSAGE = GA_STEP__BASE_MESSAGE; + + /** + * The feature id for the 'Duration' containment reference. + * + * + * @generated + * @ordered + */ + int GA_ACQ_STEP__DURATION = GA_STEP__DURATION; + + /** + * The feature id for the 'Start' reference. + * + * + * @generated + * @ordered + */ + int GA_ACQ_STEP__START = GA_STEP__START; + + /** + * The feature id for the 'Finish' reference. + * + * + * @generated + * @ordered + */ + int GA_ACQ_STEP__FINISH = GA_STEP__FINISH; + + /** + * The feature id for the 'Cause' reference. + * + * + * @generated + * @ordered + */ + int GA_ACQ_STEP__CAUSE = GA_STEP__CAUSE; + + /** + * The feature id for the 'Host Demand' attribute list. + * + * + * @generated + * @ordered + */ + int GA_ACQ_STEP__HOST_DEMAND = GA_STEP__HOST_DEMAND; + + /** + * The feature id for the 'Host Demand Ops' attribute list. + * + * + * @generated + * @ordered + */ + int GA_ACQ_STEP__HOST_DEMAND_OPS = GA_STEP__HOST_DEMAND_OPS; + + /** + * The feature id for the 'Inter Occ T' attribute list. + * + * + * @generated + * @ordered + */ + int GA_ACQ_STEP__INTER_OCC_T = GA_STEP__INTER_OCC_T; + + /** + * The feature id for the 'Throughput' attribute list. + * + * + * @generated + * @ordered + */ + int GA_ACQ_STEP__THROUGHPUT = GA_STEP__THROUGHPUT; + + /** + * The feature id for the 'Resp T' attribute list. + * + * + * @generated + * @ordered + */ + int GA_ACQ_STEP__RESP_T = GA_STEP__RESP_T; + + /** + * The feature id for the 'Utilization' attribute list. + * + * + * @generated + * @ordered + */ + int GA_ACQ_STEP__UTILIZATION = GA_STEP__UTILIZATION; + + /** + * The feature id for the 'Utilization On Host' attribute list. + * + * + * @generated + * @ordered + */ + int GA_ACQ_STEP__UTILIZATION_ON_HOST = GA_STEP__UTILIZATION_ON_HOST; + + /** + * The feature id for the 'Root' reference. + * + * + * @generated + * @ordered + */ + int GA_ACQ_STEP__ROOT = GA_STEP__ROOT; + + /** + * The feature id for the 'Steps' reference list. + * + * + * @generated + * @ordered + */ + int GA_ACQ_STEP__STEPS = GA_STEP__STEPS; + + /** + * The feature id for the 'Parent Step' reference list. + * + * + * @generated + * @ordered + */ + int GA_ACQ_STEP__PARENT_STEP = GA_STEP__PARENT_STEP; + + /** + * The feature id for the 'Timing' reference list. + * + * + * @generated + * @ordered + */ + int GA_ACQ_STEP__TIMING = GA_STEP__TIMING; + + /** + * The feature id for the 'Is Atomic' attribute. + * + * + * @generated + * @ordered + */ + int GA_ACQ_STEP__IS_ATOMIC = GA_STEP__IS_ATOMIC; + + /** + * The feature id for the 'Block T' attribute. + * + * + * @generated + * @ordered + */ + int GA_ACQ_STEP__BLOCK_T = GA_STEP__BLOCK_T; + + /** + * The feature id for the 'Rep' attribute. + * + * + * @generated + * @ordered + */ + int GA_ACQ_STEP__REP = GA_STEP__REP; + + /** + * The feature id for the 'Prob' attribute. + * + * + * @generated + * @ordered + */ + int GA_ACQ_STEP__PROB = GA_STEP__PROB; + + /** + * The feature id for the 'Priority' attribute. + * + * + * @generated + * @ordered + */ + int GA_ACQ_STEP__PRIORITY = GA_STEP__PRIORITY; + + /** + * The feature id for the 'Concur Res' reference. + * + * + * @generated + * @ordered + */ + int GA_ACQ_STEP__CONCUR_RES = GA_STEP__CONCUR_RES; + + /** + * The feature id for the 'Host' reference. + * + * + * @generated + * @ordered + */ + int GA_ACQ_STEP__HOST = GA_STEP__HOST; + + /** + * The feature id for the 'Serv Demand' reference list. + * + * + * @generated + * @ordered + */ + int GA_ACQ_STEP__SERV_DEMAND = GA_STEP__SERV_DEMAND; + + /** + * The feature id for the 'Serv Count' attribute list. + * + * + * @generated + * @ordered + */ + int GA_ACQ_STEP__SERV_COUNT = GA_STEP__SERV_COUNT; + + /** + * The feature id for the 'Self Delay' attribute. + * + * + * @generated + * @ordered + */ + int GA_ACQ_STEP__SELF_DELAY = GA_STEP__SELF_DELAY; + + /** + * The feature id for the 'Scenario' reference. + * + * + * @generated + * @ordered + */ + int GA_ACQ_STEP__SCENARIO = GA_STEP__SCENARIO; + + /** + * The feature id for the 'Child Scenario' reference. + * + * + * @generated + * @ordered + */ + int GA_ACQ_STEP__CHILD_SCENARIO = GA_STEP__CHILD_SCENARIO; + + /** + * The feature id for the 'Acq Res' reference. + * + * + * @generated + * @ordered + */ + int GA_ACQ_STEP__ACQ_RES = GA_STEP_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Res Units' attribute. + * + * + * @generated + * @ordered + */ + int GA_ACQ_STEP__RES_UNITS = GA_STEP_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Ga Acq Step' class. + * + * + * @generated + * @ordered + */ + int GA_ACQ_STEP_FEATURE_COUNT = GA_STEP_FEATURE_COUNT + 2; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaRelStepImpl Ga Rel Step}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaRelStepImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GQAMPackageImpl#getGaRelStep() + * @generated + */ + int GA_REL_STEP = 10; + + /** + * The feature id for the 'Exec Time' attribute list. + * + * + * @generated + * @ordered + */ + int GA_REL_STEP__EXEC_TIME = GA_STEP__EXEC_TIME; + + /** + * The feature id for the 'Allocated Memory' attribute list. + * + * + * @generated + * @ordered + */ + int GA_REL_STEP__ALLOCATED_MEMORY = GA_STEP__ALLOCATED_MEMORY; + + /** + * The feature id for the 'Used Memory' attribute list. + * + * + * @generated + * @ordered + */ + int GA_REL_STEP__USED_MEMORY = GA_STEP__USED_MEMORY; + + /** + * The feature id for the 'Power Peak' attribute list. + * + * + * @generated + * @ordered + */ + int GA_REL_STEP__POWER_PEAK = GA_STEP__POWER_PEAK; + + /** + * The feature id for the 'Energy' attribute list. + * + * + * @generated + * @ordered + */ + int GA_REL_STEP__ENERGY = GA_STEP__ENERGY; + + /** + * The feature id for the 'Base Named Element' reference. + * + * + * @generated + * @ordered + */ + int GA_REL_STEP__BASE_NAMED_ELEMENT = GA_STEP__BASE_NAMED_ELEMENT; + + /** + * The feature id for the 'Sub Usage' reference list. + * + * + * @generated + * @ordered + */ + int GA_REL_STEP__SUB_USAGE = GA_STEP__SUB_USAGE; + + /** + * The feature id for the 'Used Resources' reference list. + * + * + * @generated + * @ordered + */ + int GA_REL_STEP__USED_RESOURCES = GA_STEP__USED_RESOURCES; + + /** + * The feature id for the 'Msg Size' attribute list. + * + * + * @generated + * @ordered + */ + int GA_REL_STEP__MSG_SIZE = GA_STEP__MSG_SIZE; + + /** + * The feature id for the 'On' reference list. + * + * + * @generated + * @ordered + */ + int GA_REL_STEP__ON = GA_STEP__ON; + + /** + * The feature id for the 'Base Action' reference. + * + * + * @generated + * @ordered + */ + int GA_REL_STEP__BASE_ACTION = GA_STEP__BASE_ACTION; + + /** + * The feature id for the 'Base Behavior' reference. + * + * + * @generated + * @ordered + */ + int GA_REL_STEP__BASE_BEHAVIOR = GA_STEP__BASE_BEHAVIOR; + + /** + * The feature id for the 'Base Message' reference. + * + * + * @generated + * @ordered + */ + int GA_REL_STEP__BASE_MESSAGE = GA_STEP__BASE_MESSAGE; + + /** + * The feature id for the 'Duration' containment reference. + * + * + * @generated + * @ordered + */ + int GA_REL_STEP__DURATION = GA_STEP__DURATION; + + /** + * The feature id for the 'Start' reference. + * + * + * @generated + * @ordered + */ + int GA_REL_STEP__START = GA_STEP__START; + + /** + * The feature id for the 'Finish' reference. + * + * + * @generated + * @ordered + */ + int GA_REL_STEP__FINISH = GA_STEP__FINISH; + + /** + * The feature id for the 'Cause' reference. + * + * + * @generated + * @ordered + */ + int GA_REL_STEP__CAUSE = GA_STEP__CAUSE; + + /** + * The feature id for the 'Host Demand' attribute list. + * + * + * @generated + * @ordered + */ + int GA_REL_STEP__HOST_DEMAND = GA_STEP__HOST_DEMAND; + + /** + * The feature id for the 'Host Demand Ops' attribute list. + * + * + * @generated + * @ordered + */ + int GA_REL_STEP__HOST_DEMAND_OPS = GA_STEP__HOST_DEMAND_OPS; + + /** + * The feature id for the 'Inter Occ T' attribute list. + * + * + * @generated + * @ordered + */ + int GA_REL_STEP__INTER_OCC_T = GA_STEP__INTER_OCC_T; + + /** + * The feature id for the 'Throughput' attribute list. + * + * + * @generated + * @ordered + */ + int GA_REL_STEP__THROUGHPUT = GA_STEP__THROUGHPUT; + + /** + * The feature id for the 'Resp T' attribute list. + * + * + * @generated + * @ordered + */ + int GA_REL_STEP__RESP_T = GA_STEP__RESP_T; + + /** + * The feature id for the 'Utilization' attribute list. + * + * + * @generated + * @ordered + */ + int GA_REL_STEP__UTILIZATION = GA_STEP__UTILIZATION; + + /** + * The feature id for the 'Utilization On Host' attribute list. + * + * + * @generated + * @ordered + */ + int GA_REL_STEP__UTILIZATION_ON_HOST = GA_STEP__UTILIZATION_ON_HOST; + + /** + * The feature id for the 'Root' reference. + * + * + * @generated + * @ordered + */ + int GA_REL_STEP__ROOT = GA_STEP__ROOT; + + /** + * The feature id for the 'Steps' reference list. + * + * + * @generated + * @ordered + */ + int GA_REL_STEP__STEPS = GA_STEP__STEPS; + + /** + * The feature id for the 'Parent Step' reference list. + * + * + * @generated + * @ordered + */ + int GA_REL_STEP__PARENT_STEP = GA_STEP__PARENT_STEP; + + /** + * The feature id for the 'Timing' reference list. + * + * + * @generated + * @ordered + */ + int GA_REL_STEP__TIMING = GA_STEP__TIMING; + + /** + * The feature id for the 'Is Atomic' attribute. + * + * + * @generated + * @ordered + */ + int GA_REL_STEP__IS_ATOMIC = GA_STEP__IS_ATOMIC; + + /** + * The feature id for the 'Block T' attribute. + * + * + * @generated + * @ordered + */ + int GA_REL_STEP__BLOCK_T = GA_STEP__BLOCK_T; + + /** + * The feature id for the 'Rep' attribute. + * + * + * @generated + * @ordered + */ + int GA_REL_STEP__REP = GA_STEP__REP; + + /** + * The feature id for the 'Prob' attribute. + * + * + * @generated + * @ordered + */ + int GA_REL_STEP__PROB = GA_STEP__PROB; + + /** + * The feature id for the 'Priority' attribute. + * + * + * @generated + * @ordered + */ + int GA_REL_STEP__PRIORITY = GA_STEP__PRIORITY; + + /** + * The feature id for the 'Concur Res' reference. + * + * + * @generated + * @ordered + */ + int GA_REL_STEP__CONCUR_RES = GA_STEP__CONCUR_RES; + + /** + * The feature id for the 'Host' reference. + * + * + * @generated + * @ordered + */ + int GA_REL_STEP__HOST = GA_STEP__HOST; + + /** + * The feature id for the 'Serv Demand' reference list. + * + * + * @generated + * @ordered + */ + int GA_REL_STEP__SERV_DEMAND = GA_STEP__SERV_DEMAND; + + /** + * The feature id for the 'Serv Count' attribute list. + * + * + * @generated + * @ordered + */ + int GA_REL_STEP__SERV_COUNT = GA_STEP__SERV_COUNT; + + /** + * The feature id for the 'Self Delay' attribute. + * + * + * @generated + * @ordered + */ + int GA_REL_STEP__SELF_DELAY = GA_STEP__SELF_DELAY; + + /** + * The feature id for the 'Scenario' reference. + * + * + * @generated + * @ordered + */ + int GA_REL_STEP__SCENARIO = GA_STEP__SCENARIO; + + /** + * The feature id for the 'Child Scenario' reference. + * + * + * @generated + * @ordered + */ + int GA_REL_STEP__CHILD_SCENARIO = GA_STEP__CHILD_SCENARIO; + + /** + * The feature id for the 'Rel Res' reference. + * + * + * @generated + * @ordered + */ + int GA_REL_STEP__REL_RES = GA_STEP_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Res Units' attribute. + * + * + * @generated + * @ordered + */ + int GA_REL_STEP__RES_UNITS = GA_STEP_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Ga Rel Step' class. + * + * + * @generated + * @ordered + */ + int GA_REL_STEP_FEATURE_COUNT = GA_STEP_FEATURE_COUNT + 2; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaLatencyObsImpl Ga Latency Obs}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaLatencyObsImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GQAMPackageImpl#getGaLatencyObs() + * @generated + */ + int GA_LATENCY_OBS = 11; + + /** + * The feature id for the 'Kind' attribute. + * + * + * @generated + * @ordered + */ + int GA_LATENCY_OBS__KIND = GA_TIMED_OBS__KIND; + + /** + * The feature id for the 'Base Constraint' reference. + * + * + * @generated + * @ordered + */ + int GA_LATENCY_OBS__BASE_CONSTRAINT = GA_TIMED_OBS__BASE_CONSTRAINT; + + /** + * The feature id for the 'Mode' reference list. + * + * + * @generated + * @ordered + */ + int GA_LATENCY_OBS__MODE = GA_TIMED_OBS__MODE; + + /** + * The feature id for the 'Laxity' attribute. + * + * + * @generated + * @ordered + */ + int GA_LATENCY_OBS__LAXITY = GA_TIMED_OBS__LAXITY; + + /** + * The feature id for the 'Start Obs' reference list. + * + * + * @generated + * @ordered + */ + int GA_LATENCY_OBS__START_OBS = GA_TIMED_OBS__START_OBS; + + /** + * The feature id for the 'End Obs' reference list. + * + * + * @generated + * @ordered + */ + int GA_LATENCY_OBS__END_OBS = GA_TIMED_OBS__END_OBS; + + /** + * The feature id for the 'Latency' attribute list. + * + * + * @generated + * @ordered + */ + int GA_LATENCY_OBS__LATENCY = GA_TIMED_OBS_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Miss' attribute list. + * + * + * @generated + * @ordered + */ + int GA_LATENCY_OBS__MISS = GA_TIMED_OBS_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Utility' attribute list. + * + * + * @generated + * @ordered + */ + int GA_LATENCY_OBS__UTILITY = GA_TIMED_OBS_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Max Jitter' attribute list. + * + * + * @generated + * @ordered + */ + int GA_LATENCY_OBS__MAX_JITTER = GA_TIMED_OBS_FEATURE_COUNT + 3; + + /** + * The number of structural features of the 'Ga Latency Obs' class. + * + * + * @generated + * @ordered + */ + int GA_LATENCY_OBS_FEATURE_COUNT = GA_TIMED_OBS_FEATURE_COUNT + 4; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaCommHostImpl Ga Comm Host}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaCommHostImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GQAMPackageImpl#getGaCommHost() + * @generated + */ + int GA_COMM_HOST = 12; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int GA_COMM_HOST__RES_MULT = GRMPackage.COMMUNICATION_MEDIA__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int GA_COMM_HOST__IS_PROTECTED = GRMPackage.COMMUNICATION_MEDIA__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int GA_COMM_HOST__IS_ACTIVE = GRMPackage.COMMUNICATION_MEDIA__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int GA_COMM_HOST__BASE_PROPERTY = GRMPackage.COMMUNICATION_MEDIA__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int GA_COMM_HOST__BASE_INSTANCE_SPECIFICATION = GRMPackage.COMMUNICATION_MEDIA__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int GA_COMM_HOST__BASE_CLASSIFIER = GRMPackage.COMMUNICATION_MEDIA__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int GA_COMM_HOST__BASE_LIFELINE = GRMPackage.COMMUNICATION_MEDIA__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int GA_COMM_HOST__BASE_CONNECTABLE_ELEMENT = GRMPackage.COMMUNICATION_MEDIA__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Speed Factor' attribute. + * + * + * @generated + * @ordered + */ + int GA_COMM_HOST__SPEED_FACTOR = GRMPackage.COMMUNICATION_MEDIA__SPEED_FACTOR; + + /** + * The feature id for the 'Main Scheduler' reference. + * + * + * @generated + * @ordered + */ + int GA_COMM_HOST__MAIN_SCHEDULER = GRMPackage.COMMUNICATION_MEDIA__MAIN_SCHEDULER; + + /** + * The feature id for the 'Element Size' attribute. + * + * + * @generated + * @ordered + */ + int GA_COMM_HOST__ELEMENT_SIZE = GRMPackage.COMMUNICATION_MEDIA__ELEMENT_SIZE; + + /** + * The feature id for the 'Base Connector' reference. + * + * + * @generated + * @ordered + */ + int GA_COMM_HOST__BASE_CONNECTOR = GRMPackage.COMMUNICATION_MEDIA__BASE_CONNECTOR; + + /** + * The feature id for the 'Transm Mode' attribute. + * + * + * @generated + * @ordered + */ + int GA_COMM_HOST__TRANSM_MODE = GRMPackage.COMMUNICATION_MEDIA__TRANSM_MODE; + + /** + * The feature id for the 'Block T' attribute list. + * + * + * @generated + * @ordered + */ + int GA_COMM_HOST__BLOCK_T = GRMPackage.COMMUNICATION_MEDIA__BLOCK_T; + + /** + * The feature id for the 'Packet T' attribute list. + * + * + * @generated + * @ordered + */ + int GA_COMM_HOST__PACKET_T = GRMPackage.COMMUNICATION_MEDIA__PACKET_T; + + /** + * The feature id for the 'Capacity' attribute list. + * + * + * @generated + * @ordered + */ + int GA_COMM_HOST__CAPACITY = GRMPackage.COMMUNICATION_MEDIA__CAPACITY; + + /** + * The feature id for the 'Is Preemptible' attribute. + * + * + * @generated + * @ordered + */ + int GA_COMM_HOST__IS_PREEMPTIBLE = GRMPackage.COMMUNICATION_MEDIA_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Sched Policy' attribute. + * + * + * @generated + * @ordered + */ + int GA_COMM_HOST__SCHED_POLICY = GRMPackage.COMMUNICATION_MEDIA_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Other Sched Policy' attribute. + * + * + * @generated + * @ordered + */ + int GA_COMM_HOST__OTHER_SCHED_POLICY = GRMPackage.COMMUNICATION_MEDIA_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Schedule' attribute. + * + * + * @generated + * @ordered + */ + int GA_COMM_HOST__SCHEDULE = GRMPackage.COMMUNICATION_MEDIA_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Processing Units' reference list. + * + * + * @generated + * @ordered + */ + int GA_COMM_HOST__PROCESSING_UNITS = GRMPackage.COMMUNICATION_MEDIA_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Host' reference. + * + * + * @generated + * @ordered + */ + int GA_COMM_HOST__HOST = GRMPackage.COMMUNICATION_MEDIA_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Protected Shared Resources' reference list. + * + * + * @generated + * @ordered + */ + int GA_COMM_HOST__PROTECTED_SHARED_RESOURCES = GRMPackage.COMMUNICATION_MEDIA_FEATURE_COUNT + 6; + + /** + * The feature id for the 'Schedulable Resources' reference list. + * + * + * @generated + * @ordered + */ + int GA_COMM_HOST__SCHEDULABLE_RESOURCES = GRMPackage.COMMUNICATION_MEDIA_FEATURE_COUNT + 7; + + /** + * The feature id for the 'Throughput' attribute list. + * + * + * @generated + * @ordered + */ + int GA_COMM_HOST__THROUGHPUT = GRMPackage.COMMUNICATION_MEDIA_FEATURE_COUNT + 8; + + /** + * The feature id for the 'Utilization' attribute list. + * + * + * @generated + * @ordered + */ + int GA_COMM_HOST__UTILIZATION = GRMPackage.COMMUNICATION_MEDIA_FEATURE_COUNT + 9; + + /** + * The number of structural features of the 'Ga Comm Host' class. + * + * + * @generated + * @ordered + */ + int GA_COMM_HOST_FEATURE_COUNT = GRMPackage.COMMUNICATION_MEDIA_FEATURE_COUNT + 10; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaCommChannelImpl Ga Comm Channel}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaCommChannelImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GQAMPackageImpl#getGaCommChannel() + * @generated + */ + int GA_COMM_CHANNEL = 13; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int GA_COMM_CHANNEL__RES_MULT = GRMPackage.SCHEDULABLE_RESOURCE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int GA_COMM_CHANNEL__IS_PROTECTED = GRMPackage.SCHEDULABLE_RESOURCE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int GA_COMM_CHANNEL__IS_ACTIVE = GRMPackage.SCHEDULABLE_RESOURCE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int GA_COMM_CHANNEL__BASE_PROPERTY = GRMPackage.SCHEDULABLE_RESOURCE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int GA_COMM_CHANNEL__BASE_INSTANCE_SPECIFICATION = GRMPackage.SCHEDULABLE_RESOURCE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int GA_COMM_CHANNEL__BASE_CLASSIFIER = GRMPackage.SCHEDULABLE_RESOURCE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int GA_COMM_CHANNEL__BASE_LIFELINE = GRMPackage.SCHEDULABLE_RESOURCE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int GA_COMM_CHANNEL__BASE_CONNECTABLE_ELEMENT = GRMPackage.SCHEDULABLE_RESOURCE__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Sched Params' attribute list. + * + * + * @generated + * @ordered + */ + int GA_COMM_CHANNEL__SCHED_PARAMS = GRMPackage.SCHEDULABLE_RESOURCE__SCHED_PARAMS; + + /** + * The feature id for the 'Dependent Scheduler' reference. + * + * + * @generated + * @ordered + */ + int GA_COMM_CHANNEL__DEPENDENT_SCHEDULER = GRMPackage.SCHEDULABLE_RESOURCE__DEPENDENT_SCHEDULER; + + /** + * The feature id for the 'Host' reference. + * + * + * @generated + * @ordered + */ + int GA_COMM_CHANNEL__HOST = GRMPackage.SCHEDULABLE_RESOURCE__HOST; + + /** + * The feature id for the 'Packet Size' attribute. + * + * + * @generated + * @ordered + */ + int GA_COMM_CHANNEL__PACKET_SIZE = GRMPackage.SCHEDULABLE_RESOURCE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Utilization' attribute. + * + * + * @generated + * @ordered + */ + int GA_COMM_CHANNEL__UTILIZATION = GRMPackage.SCHEDULABLE_RESOURCE_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Ga Comm Channel' class. + * + * + * @generated + * @ordered + */ + int GA_COMM_CHANNEL_FEATURE_COUNT = GRMPackage.SCHEDULABLE_RESOURCE_FEATURE_COUNT + 2; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaWorkloadBehaviorImpl Ga Workload Behavior}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaWorkloadBehaviorImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GQAMPackageImpl#getGaWorkloadBehavior() + * @generated + */ + int GA_WORKLOAD_BEHAVIOR = 14; + + /** + * The feature id for the 'Behavior' reference list. + * + * + * @generated + * @ordered + */ + int GA_WORKLOAD_BEHAVIOR__BEHAVIOR = 0; + + /** + * The feature id for the 'Demand' reference list. + * + * + * @generated + * @ordered + */ + int GA_WORKLOAD_BEHAVIOR__DEMAND = 1; + + /** + * The feature id for the 'Base Named Element' reference. + * + * + * @generated + * @ordered + */ + int GA_WORKLOAD_BEHAVIOR__BASE_NAMED_ELEMENT = 2; + + /** + * The number of structural features of the 'Ga Workload Behavior' class. + * + * + * @generated + * @ordered + */ + int GA_WORKLOAD_BEHAVIOR_FEATURE_COUNT = 3; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaAnalysisContextImpl Ga Analysis Context}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaAnalysisContextImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GQAMPackageImpl#getGaAnalysisContext() + * @generated + */ + int GA_ANALYSIS_CONTEXT = 15; + + /** + * The feature id for the 'Base Structured Classifier' reference. + * + * + * @generated + * @ordered + */ + int GA_ANALYSIS_CONTEXT__BASE_STRUCTURED_CLASSIFIER = CoreElementsPackage.CONFIGURATION__BASE_STRUCTURED_CLASSIFIER; + + /** + * The feature id for the 'Base Package' reference. + * + * + * @generated + * @ordered + */ + int GA_ANALYSIS_CONTEXT__BASE_PACKAGE = CoreElementsPackage.CONFIGURATION__BASE_PACKAGE; + + /** + * The feature id for the 'Mode' reference list. + * + * + * @generated + * @ordered + */ + int GA_ANALYSIS_CONTEXT__MODE = CoreElementsPackage.CONFIGURATION__MODE; + + /** + * The feature id for the 'Base Named Element' reference. + * + * + * @generated + * @ordered + */ + int GA_ANALYSIS_CONTEXT__BASE_NAMED_ELEMENT = CoreElementsPackage.CONFIGURATION_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Context' attribute list. + * + * + * @generated + * @ordered + */ + int GA_ANALYSIS_CONTEXT__CONTEXT = CoreElementsPackage.CONFIGURATION_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Workload' reference list. + * + * + * @generated + * @ordered + */ + int GA_ANALYSIS_CONTEXT__WORKLOAD = CoreElementsPackage.CONFIGURATION_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Platform' reference list. + * + * + * @generated + * @ordered + */ + int GA_ANALYSIS_CONTEXT__PLATFORM = CoreElementsPackage.CONFIGURATION_FEATURE_COUNT + 3; + + /** + * The number of structural features of the 'Ga Analysis Context' class. + * + * + * @generated + * @ordered + */ + int GA_ANALYSIS_CONTEXT_FEATURE_COUNT = CoreElementsPackage.CONFIGURATION_FEATURE_COUNT + 4; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaResourcesPlatformImpl Ga Resources Platform}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaResourcesPlatformImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GQAMPackageImpl#getGaResourcesPlatform() + * @generated + */ + int GA_RESOURCES_PLATFORM = 16; + + /** + * The feature id for the 'Resources' reference list. + * + * + * @generated + * @ordered + */ + int GA_RESOURCES_PLATFORM__RESOURCES = 0; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int GA_RESOURCES_PLATFORM__BASE_CLASSIFIER = 1; + + /** + * The number of structural features of the 'Ga Resources Platform' class. + * + * + * @generated + * @ordered + */ + int GA_RESOURCES_PLATFORM_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.LaxityKind Laxity Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.LaxityKind + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GQAMPackageImpl#getLaxityKind() + * @generated + */ + int LAXITY_KIND = 17; + + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadGenerator Ga Workload Generator}'. + * + * + * @return the meta object for class 'Ga Workload Generator'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadGenerator + * @generated + */ + EClass getGaWorkloadGenerator(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadGenerator#getPop Pop}'. + * + * + * @return the meta object for the attribute 'Pop'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadGenerator#getPop() + * @see #getGaWorkloadGenerator() + * @generated + */ + EAttribute getGaWorkloadGenerator_Pop(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadGenerator#getBase_Behavior Base Behavior}'. + * + * + * @return the meta object for the reference 'Base Behavior'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadGenerator#getBase_Behavior() + * @see #getGaWorkloadGenerator() + * @generated + */ + EReference getGaWorkloadGenerator_Base_Behavior(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaEventTrace Ga Event Trace}'. + * + * + * @return the meta object for class 'Ga Event Trace'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaEventTrace + * @generated + */ + EClass getGaEventTrace(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaEventTrace#getContent Content}'. + * + * + * @return the meta object for the attribute 'Content'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaEventTrace#getContent() + * @see #getGaEventTrace() + * @generated + */ + EAttribute getGaEventTrace_Content(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaEventTrace#getFormat Format}'. + * + * + * @return the meta object for the attribute 'Format'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaEventTrace#getFormat() + * @see #getGaEventTrace() + * @generated + */ + EAttribute getGaEventTrace_Format(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaEventTrace#getLocation Location}'. + * + * + * @return the meta object for the attribute 'Location'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaEventTrace#getLocation() + * @see #getGaEventTrace() + * @generated + */ + EAttribute getGaEventTrace_Location(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaEventTrace#getBase_NamedElement Base Named Element}'. + * + * + * @return the meta object for the reference 'Base Named Element'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaEventTrace#getBase_NamedElement() + * @see #getGaEventTrace() + * @generated + */ + EReference getGaEventTrace_Base_NamedElement(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadEvent Ga Workload Event}'. + * + * + * @return the meta object for class 'Ga Workload Event'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadEvent + * @generated + */ + EClass getGaWorkloadEvent(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadEvent#getPattern Pattern}'. + * + * + * @return the meta object for the attribute 'Pattern'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadEvent#getPattern() + * @see #getGaWorkloadEvent() + * @generated + */ + EAttribute getGaWorkloadEvent_Pattern(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadEvent#getGenerator Generator}'. + * + * + * @return the meta object for the reference 'Generator'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadEvent#getGenerator() + * @see #getGaWorkloadEvent() + * @generated + */ + EReference getGaWorkloadEvent_Generator(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadEvent#getTrace Trace}'. + * + * + * @return the meta object for the reference 'Trace'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadEvent#getTrace() + * @see #getGaWorkloadEvent() + * @generated + */ + EReference getGaWorkloadEvent_Trace(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadEvent#getEffect Effect}'. + * + * + * @return the meta object for the reference 'Effect'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadEvent#getEffect() + * @see #getGaWorkloadEvent() + * @generated + */ + EReference getGaWorkloadEvent_Effect(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadEvent#getTimedEvent Timed Event}'. + * + * + * @return the meta object for the reference 'Timed Event'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadEvent#getTimedEvent() + * @see #getGaWorkloadEvent() + * @generated + */ + EReference getGaWorkloadEvent_TimedEvent(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadEvent#getBase_NamedElement Base Named Element}'. + * + * + * @return the meta object for the reference 'Base Named Element'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadEvent#getBase_NamedElement() + * @see #getGaWorkloadEvent() + * @generated + */ + EReference getGaWorkloadEvent_Base_NamedElement(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario Ga Scenario}'. + * + * + * @return the meta object for class 'Ga Scenario'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario + * @generated + */ + EClass getGaScenario(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario#getCause Cause}'. + * + * + * @return the meta object for the reference 'Cause'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario#getCause() + * @see #getGaScenario() + * @generated + */ + EReference getGaScenario_Cause(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario#getHostDemand Host Demand}'. + * + * + * @return the meta object for the attribute list 'Host Demand'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario#getHostDemand() + * @see #getGaScenario() + * @generated + */ + EAttribute getGaScenario_HostDemand(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario#getHostDemandOps Host Demand Ops}'. + * + * + * @return the meta object for the attribute list 'Host Demand Ops'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario#getHostDemandOps() + * @see #getGaScenario() + * @generated + */ + EAttribute getGaScenario_HostDemandOps(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario#getInterOccT Inter Occ T}'. + * + * + * @return the meta object for the attribute list 'Inter Occ T'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario#getInterOccT() + * @see #getGaScenario() + * @generated + */ + EAttribute getGaScenario_InterOccT(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario#getThroughput Throughput}'. + * + * + * @return the meta object for the attribute list 'Throughput'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario#getThroughput() + * @see #getGaScenario() + * @generated + */ + EAttribute getGaScenario_Throughput(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario#getRespT Resp T}'. + * + * + * @return the meta object for the attribute list 'Resp T'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario#getRespT() + * @see #getGaScenario() + * @generated + */ + EAttribute getGaScenario_RespT(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario#getUtilization Utilization}'. + * + * + * @return the meta object for the attribute list 'Utilization'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario#getUtilization() + * @see #getGaScenario() + * @generated + */ + EAttribute getGaScenario_Utilization(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario#getUtilizationOnHost Utilization On Host}'. + * + * + * @return the meta object for the attribute list 'Utilization On Host'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario#getUtilizationOnHost() + * @see #getGaScenario() + * @generated + */ + EAttribute getGaScenario_UtilizationOnHost(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario#getRoot Root}'. + * + * + * @return the meta object for the reference 'Root'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario#getRoot() + * @see #getGaScenario() + * @generated + */ + EReference getGaScenario_Root(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario#getSteps Steps}'. + * + * + * @return the meta object for the reference list 'Steps'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario#getSteps() + * @see #getGaScenario() + * @generated + */ + EReference getGaScenario_Steps(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario#getParentStep Parent Step}'. + * + * + * @return the meta object for the reference list 'Parent Step'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario#getParentStep() + * @see #getGaScenario() + * @generated + */ + EReference getGaScenario_ParentStep(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario#getTiming Timing}'. + * + * + * @return the meta object for the reference list 'Timing'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario#getTiming() + * @see #getGaScenario() + * @generated + */ + EReference getGaScenario_Timing(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep Ga Step}'. + * + * + * @return the meta object for class 'Ga Step'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep + * @generated + */ + EClass getGaStep(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep#getIsAtomic Is Atomic}'. + * + * + * @return the meta object for the attribute 'Is Atomic'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep#getIsAtomic() + * @see #getGaStep() + * @generated + */ + EAttribute getGaStep_IsAtomic(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep#getBlockT Block T}'. + * + * + * @return the meta object for the attribute 'Block T'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep#getBlockT() + * @see #getGaStep() + * @generated + */ + EAttribute getGaStep_BlockT(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep#getRep Rep}'. + * + * + * @return the meta object for the attribute 'Rep'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep#getRep() + * @see #getGaStep() + * @generated + */ + EAttribute getGaStep_Rep(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep#getProb Prob}'. + * + * + * @return the meta object for the attribute 'Prob'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep#getProb() + * @see #getGaStep() + * @generated + */ + EAttribute getGaStep_Prob(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep#getPriority Priority}'. + * + * + * @return the meta object for the attribute 'Priority'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep#getPriority() + * @see #getGaStep() + * @generated + */ + EAttribute getGaStep_Priority(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep#getConcurRes Concur Res}'. + * + * + * @return the meta object for the reference 'Concur Res'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep#getConcurRes() + * @see #getGaStep() + * @generated + */ + EReference getGaStep_ConcurRes(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep#getHost Host}'. + * + * + * @return the meta object for the reference 'Host'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep#getHost() + * @see #getGaStep() + * @generated + */ + EReference getGaStep_Host(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep#getServDemand Serv Demand}'. + * + * + * @return the meta object for the reference list 'Serv Demand'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep#getServDemand() + * @see #getGaStep() + * @generated + */ + EReference getGaStep_ServDemand(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep#getServCount Serv Count}'. + * + * + * @return the meta object for the attribute list 'Serv Count'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep#getServCount() + * @see #getGaStep() + * @generated + */ + EAttribute getGaStep_ServCount(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep#getSelfDelay Self Delay}'. + * + * + * @return the meta object for the attribute 'Self Delay'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep#getSelfDelay() + * @see #getGaStep() + * @generated + */ + EAttribute getGaStep_SelfDelay(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep#getScenario Scenario}'. + * + * + * @return the meta object for the reference 'Scenario'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep#getScenario() + * @see #getGaStep() + * @generated + */ + EReference getGaStep_Scenario(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep#getChildScenario Child Scenario}'. + * + * + * @return the meta object for the reference 'Child Scenario'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep#getChildScenario() + * @see #getGaStep() + * @generated + */ + EReference getGaStep_ChildScenario(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaExecHost Ga Exec Host}'. + * + * + * @return the meta object for class 'Ga Exec Host'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaExecHost + * @generated + */ + EClass getGaExecHost(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaExecHost#getCommTxOvh Comm Tx Ovh}'. + * + * + * @return the meta object for the attribute 'Comm Tx Ovh'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaExecHost#getCommTxOvh() + * @see #getGaExecHost() + * @generated + */ + EAttribute getGaExecHost_CommTxOvh(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaExecHost#getCommRcvOvh Comm Rcv Ovh}'. + * + * + * @return the meta object for the attribute 'Comm Rcv Ovh'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaExecHost#getCommRcvOvh() + * @see #getGaExecHost() + * @generated + */ + EAttribute getGaExecHost_CommRcvOvh(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaExecHost#getCntxtSwT Cntxt Sw T}'. + * + * + * @return the meta object for the attribute 'Cntxt Sw T'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaExecHost#getCntxtSwT() + * @see #getGaExecHost() + * @generated + */ + EAttribute getGaExecHost_CntxtSwT(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaExecHost#getClockOvh Clock Ovh}'. + * + * + * @return the meta object for the attribute 'Clock Ovh'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaExecHost#getClockOvh() + * @see #getGaExecHost() + * @generated + */ + EAttribute getGaExecHost_ClockOvh(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaExecHost#getSchedPriRange Sched Pri Range}'. + * + * + * @return the meta object for the attribute 'Sched Pri Range'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaExecHost#getSchedPriRange() + * @see #getGaExecHost() + * @generated + */ + EAttribute getGaExecHost_SchedPriRange(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaExecHost#getMemSize Mem Size}'. + * + * + * @return the meta object for the attribute 'Mem Size'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaExecHost#getMemSize() + * @see #getGaExecHost() + * @generated + */ + EAttribute getGaExecHost_MemSize(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaExecHost#getUtilization Utilization}'. + * + * + * @return the meta object for the attribute list 'Utilization'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaExecHost#getUtilization() + * @see #getGaExecHost() + * @generated + */ + EAttribute getGaExecHost_Utilization(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaExecHost#getThroughput Throughput}'. + * + * + * @return the meta object for the attribute list 'Throughput'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaExecHost#getThroughput() + * @see #getGaExecHost() + * @generated + */ + EAttribute getGaExecHost_Throughput(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaRequestedService Ga Requested Service}'. + * + * + * @return the meta object for class 'Ga Requested Service'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaRequestedService + * @generated + */ + EClass getGaRequestedService(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaRequestedService#getBase_Operation Base Operation}'. + * + * + * @return the meta object for the reference 'Base Operation'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaRequestedService#getBase_Operation() + * @see #getGaRequestedService() + * @generated + */ + EReference getGaRequestedService_Base_Operation(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaTimedObs Ga Timed Obs}'. + * + * + * @return the meta object for class 'Ga Timed Obs'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaTimedObs + * @generated + */ + EClass getGaTimedObs(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaTimedObs#getLaxity Laxity}'. + * + * + * @return the meta object for the attribute 'Laxity'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaTimedObs#getLaxity() + * @see #getGaTimedObs() + * @generated + */ + EAttribute getGaTimedObs_Laxity(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaTimedObs#getStartObs Start Obs}'. + * + * + * @return the meta object for the reference list 'Start Obs'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaTimedObs#getStartObs() + * @see #getGaTimedObs() + * @generated + */ + EReference getGaTimedObs_StartObs(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaTimedObs#getEndObs End Obs}'. + * + * + * @return the meta object for the reference list 'End Obs'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaTimedObs#getEndObs() + * @see #getGaTimedObs() + * @generated + */ + EReference getGaTimedObs_EndObs(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaCommStep Ga Comm Step}'. + * + * + * @return the meta object for class 'Ga Comm Step'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaCommStep + * @generated + */ + EClass getGaCommStep(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaAcqStep Ga Acq Step}'. + * + * + * @return the meta object for class 'Ga Acq Step'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaAcqStep + * @generated + */ + EClass getGaAcqStep(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaAcqStep#getAcqRes Acq Res}'. + * + * + * @return the meta object for the reference 'Acq Res'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaAcqStep#getAcqRes() + * @see #getGaAcqStep() + * @generated + */ + EReference getGaAcqStep_AcqRes(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaAcqStep#getResUnits Res Units}'. + * + * + * @return the meta object for the attribute 'Res Units'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaAcqStep#getResUnits() + * @see #getGaAcqStep() + * @generated + */ + EAttribute getGaAcqStep_ResUnits(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaRelStep Ga Rel Step}'. + * + * + * @return the meta object for class 'Ga Rel Step'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaRelStep + * @generated + */ + EClass getGaRelStep(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaRelStep#getRelRes Rel Res}'. + * + * + * @return the meta object for the reference 'Rel Res'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaRelStep#getRelRes() + * @see #getGaRelStep() + * @generated + */ + EReference getGaRelStep_RelRes(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaRelStep#getResUnits Res Units}'. + * + * + * @return the meta object for the attribute 'Res Units'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaRelStep#getResUnits() + * @see #getGaRelStep() + * @generated + */ + EAttribute getGaRelStep_ResUnits(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaLatencyObs Ga Latency Obs}'. + * + * + * @return the meta object for class 'Ga Latency Obs'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaLatencyObs + * @generated + */ + EClass getGaLatencyObs(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaLatencyObs#getLatency Latency}'. + * + * + * @return the meta object for the attribute list 'Latency'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaLatencyObs#getLatency() + * @see #getGaLatencyObs() + * @generated + */ + EAttribute getGaLatencyObs_Latency(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaLatencyObs#getMiss Miss}'. + * + * + * @return the meta object for the attribute list 'Miss'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaLatencyObs#getMiss() + * @see #getGaLatencyObs() + * @generated + */ + EAttribute getGaLatencyObs_Miss(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaLatencyObs#getUtility Utility}'. + * + * + * @return the meta object for the attribute list 'Utility'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaLatencyObs#getUtility() + * @see #getGaLatencyObs() + * @generated + */ + EAttribute getGaLatencyObs_Utility(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaLatencyObs#getMaxJitter Max Jitter}'. + * + * + * @return the meta object for the attribute list 'Max Jitter'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaLatencyObs#getMaxJitter() + * @see #getGaLatencyObs() + * @generated + */ + EAttribute getGaLatencyObs_MaxJitter(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaCommHost Ga Comm Host}'. + * + * + * @return the meta object for class 'Ga Comm Host'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaCommHost + * @generated + */ + EClass getGaCommHost(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaCommHost#getThroughput Throughput}'. + * + * + * @return the meta object for the attribute list 'Throughput'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaCommHost#getThroughput() + * @see #getGaCommHost() + * @generated + */ + EAttribute getGaCommHost_Throughput(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaCommHost#getUtilization Utilization}'. + * + * + * @return the meta object for the attribute list 'Utilization'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaCommHost#getUtilization() + * @see #getGaCommHost() + * @generated + */ + EAttribute getGaCommHost_Utilization(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaCommChannel Ga Comm Channel}'. + * + * + * @return the meta object for class 'Ga Comm Channel'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaCommChannel + * @generated + */ + EClass getGaCommChannel(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaCommChannel#getPacketSize Packet Size}'. + * + * + * @return the meta object for the attribute 'Packet Size'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaCommChannel#getPacketSize() + * @see #getGaCommChannel() + * @generated + */ + EAttribute getGaCommChannel_PacketSize(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaCommChannel#getUtilization Utilization}'. + * + * + * @return the meta object for the attribute 'Utilization'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaCommChannel#getUtilization() + * @see #getGaCommChannel() + * @generated + */ + EAttribute getGaCommChannel_Utilization(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadBehavior Ga Workload Behavior}'. + * + * + * @return the meta object for class 'Ga Workload Behavior'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadBehavior + * @generated + */ + EClass getGaWorkloadBehavior(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadBehavior#getBehavior Behavior}'. + * + * + * @return the meta object for the reference list 'Behavior'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadBehavior#getBehavior() + * @see #getGaWorkloadBehavior() + * @generated + */ + EReference getGaWorkloadBehavior_Behavior(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadBehavior#getDemand Demand}'. + * + * + * @return the meta object for the reference list 'Demand'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadBehavior#getDemand() + * @see #getGaWorkloadBehavior() + * @generated + */ + EReference getGaWorkloadBehavior_Demand(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadBehavior#getBase_NamedElement Base Named Element}'. + * + * + * @return the meta object for the reference 'Base Named Element'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadBehavior#getBase_NamedElement() + * @see #getGaWorkloadBehavior() + * @generated + */ + EReference getGaWorkloadBehavior_Base_NamedElement(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaAnalysisContext Ga Analysis Context}'. + * + * + * @return the meta object for class 'Ga Analysis Context'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaAnalysisContext + * @generated + */ + EClass getGaAnalysisContext(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaAnalysisContext#getContext Context}'. + * + * + * @return the meta object for the attribute list 'Context'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaAnalysisContext#getContext() + * @see #getGaAnalysisContext() + * @generated + */ + EAttribute getGaAnalysisContext_Context(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaAnalysisContext#getWorkload Workload}'. + * + * + * @return the meta object for the reference list 'Workload'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaAnalysisContext#getWorkload() + * @see #getGaAnalysisContext() + * @generated + */ + EReference getGaAnalysisContext_Workload(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaAnalysisContext#getPlatform Platform}'. + * + * + * @return the meta object for the reference list 'Platform'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaAnalysisContext#getPlatform() + * @see #getGaAnalysisContext() + * @generated + */ + EReference getGaAnalysisContext_Platform(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaResourcesPlatform Ga Resources Platform}'. + * + * + * @return the meta object for class 'Ga Resources Platform'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaResourcesPlatform + * @generated + */ + EClass getGaResourcesPlatform(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaResourcesPlatform#getResources Resources}'. + * + * + * @return the meta object for the reference list 'Resources'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaResourcesPlatform#getResources() + * @see #getGaResourcesPlatform() + * @generated + */ + EReference getGaResourcesPlatform_Resources(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaResourcesPlatform#getBase_Classifier Base Classifier}'. + * + * + * @return the meta object for the reference 'Base Classifier'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaResourcesPlatform#getBase_Classifier() + * @see #getGaResourcesPlatform() + * @generated + */ + EReference getGaResourcesPlatform_Base_Classifier(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.LaxityKind Laxity Kind}'. + * + * + * @return the meta object for enum 'Laxity Kind'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.LaxityKind + * @generated + */ + EEnum getLaxityKind(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + GQAMFactory getGQAMFactory(); + + /** + * + * Defines literals for the meta objects that represent + * + * + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaWorkloadGeneratorImpl Ga Workload Generator}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaWorkloadGeneratorImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GQAMPackageImpl#getGaWorkloadGenerator() + * @generated + */ + EClass GA_WORKLOAD_GENERATOR = eINSTANCE.getGaWorkloadGenerator(); + + /** + * The meta object literal for the 'Pop' attribute feature. + * + * + * @generated + */ + EAttribute GA_WORKLOAD_GENERATOR__POP = eINSTANCE.getGaWorkloadGenerator_Pop(); + + /** + * The meta object literal for the 'Base Behavior' reference feature. + * + * + * @generated + */ + EReference GA_WORKLOAD_GENERATOR__BASE_BEHAVIOR = eINSTANCE.getGaWorkloadGenerator_Base_Behavior(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaEventTraceImpl Ga Event Trace}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaEventTraceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GQAMPackageImpl#getGaEventTrace() + * @generated + */ + EClass GA_EVENT_TRACE = eINSTANCE.getGaEventTrace(); + + /** + * The meta object literal for the 'Content' attribute feature. + * + * + * @generated + */ + EAttribute GA_EVENT_TRACE__CONTENT = eINSTANCE.getGaEventTrace_Content(); + + /** + * The meta object literal for the 'Format' attribute feature. + * + * + * @generated + */ + EAttribute GA_EVENT_TRACE__FORMAT = eINSTANCE.getGaEventTrace_Format(); + + /** + * The meta object literal for the 'Location' attribute feature. + * + * + * @generated + */ + EAttribute GA_EVENT_TRACE__LOCATION = eINSTANCE.getGaEventTrace_Location(); + + /** + * The meta object literal for the 'Base Named Element' reference feature. + * + * + * @generated + */ + EReference GA_EVENT_TRACE__BASE_NAMED_ELEMENT = eINSTANCE.getGaEventTrace_Base_NamedElement(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaWorkloadEventImpl Ga Workload Event}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaWorkloadEventImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GQAMPackageImpl#getGaWorkloadEvent() + * @generated + */ + EClass GA_WORKLOAD_EVENT = eINSTANCE.getGaWorkloadEvent(); + + /** + * The meta object literal for the 'Pattern' attribute feature. + * + * + * @generated + */ + EAttribute GA_WORKLOAD_EVENT__PATTERN = eINSTANCE.getGaWorkloadEvent_Pattern(); + + /** + * The meta object literal for the 'Generator' reference feature. + * + * + * @generated + */ + EReference GA_WORKLOAD_EVENT__GENERATOR = eINSTANCE.getGaWorkloadEvent_Generator(); + + /** + * The meta object literal for the 'Trace' reference feature. + * + * + * @generated + */ + EReference GA_WORKLOAD_EVENT__TRACE = eINSTANCE.getGaWorkloadEvent_Trace(); + + /** + * The meta object literal for the 'Effect' reference feature. + * + * + * @generated + */ + EReference GA_WORKLOAD_EVENT__EFFECT = eINSTANCE.getGaWorkloadEvent_Effect(); + + /** + * The meta object literal for the 'Timed Event' reference feature. + * + * + * @generated + */ + EReference GA_WORKLOAD_EVENT__TIMED_EVENT = eINSTANCE.getGaWorkloadEvent_TimedEvent(); + + /** + * The meta object literal for the 'Base Named Element' reference feature. + * + * + * @generated + */ + EReference GA_WORKLOAD_EVENT__BASE_NAMED_ELEMENT = eINSTANCE.getGaWorkloadEvent_Base_NamedElement(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaScenarioImpl Ga Scenario}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaScenarioImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GQAMPackageImpl#getGaScenario() + * @generated + */ + EClass GA_SCENARIO = eINSTANCE.getGaScenario(); + + /** + * The meta object literal for the 'Cause' reference feature. + * + * + * @generated + */ + EReference GA_SCENARIO__CAUSE = eINSTANCE.getGaScenario_Cause(); + + /** + * The meta object literal for the 'Host Demand' attribute list feature. + * + * + * @generated + */ + EAttribute GA_SCENARIO__HOST_DEMAND = eINSTANCE.getGaScenario_HostDemand(); + + /** + * The meta object literal for the 'Host Demand Ops' attribute list feature. + * + * + * @generated + */ + EAttribute GA_SCENARIO__HOST_DEMAND_OPS = eINSTANCE.getGaScenario_HostDemandOps(); + + /** + * The meta object literal for the 'Inter Occ T' attribute list feature. + * + * + * @generated + */ + EAttribute GA_SCENARIO__INTER_OCC_T = eINSTANCE.getGaScenario_InterOccT(); + + /** + * The meta object literal for the 'Throughput' attribute list feature. + * + * + * @generated + */ + EAttribute GA_SCENARIO__THROUGHPUT = eINSTANCE.getGaScenario_Throughput(); + + /** + * The meta object literal for the 'Resp T' attribute list feature. + * + * + * @generated + */ + EAttribute GA_SCENARIO__RESP_T = eINSTANCE.getGaScenario_RespT(); + + /** + * The meta object literal for the 'Utilization' attribute list feature. + * + * + * @generated + */ + EAttribute GA_SCENARIO__UTILIZATION = eINSTANCE.getGaScenario_Utilization(); + + /** + * The meta object literal for the 'Utilization On Host' attribute list feature. + * + * + * @generated + */ + EAttribute GA_SCENARIO__UTILIZATION_ON_HOST = eINSTANCE.getGaScenario_UtilizationOnHost(); + + /** + * The meta object literal for the 'Root' reference feature. + * + * + * @generated + */ + EReference GA_SCENARIO__ROOT = eINSTANCE.getGaScenario_Root(); + + /** + * The meta object literal for the 'Steps' reference list feature. + * + * + * @generated + */ + EReference GA_SCENARIO__STEPS = eINSTANCE.getGaScenario_Steps(); + + /** + * The meta object literal for the 'Parent Step' reference list feature. + * + * + * @generated + */ + EReference GA_SCENARIO__PARENT_STEP = eINSTANCE.getGaScenario_ParentStep(); + + /** + * The meta object literal for the 'Timing' reference list feature. + * + * + * @generated + */ + EReference GA_SCENARIO__TIMING = eINSTANCE.getGaScenario_Timing(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaStepImpl Ga Step}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaStepImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GQAMPackageImpl#getGaStep() + * @generated + */ + EClass GA_STEP = eINSTANCE.getGaStep(); + + /** + * The meta object literal for the 'Is Atomic' attribute feature. + * + * + * @generated + */ + EAttribute GA_STEP__IS_ATOMIC = eINSTANCE.getGaStep_IsAtomic(); + + /** + * The meta object literal for the 'Block T' attribute feature. + * + * + * @generated + */ + EAttribute GA_STEP__BLOCK_T = eINSTANCE.getGaStep_BlockT(); + + /** + * The meta object literal for the 'Rep' attribute feature. + * + * + * @generated + */ + EAttribute GA_STEP__REP = eINSTANCE.getGaStep_Rep(); + + /** + * The meta object literal for the 'Prob' attribute feature. + * + * + * @generated + */ + EAttribute GA_STEP__PROB = eINSTANCE.getGaStep_Prob(); + + /** + * The meta object literal for the 'Priority' attribute feature. + * + * + * @generated + */ + EAttribute GA_STEP__PRIORITY = eINSTANCE.getGaStep_Priority(); + + /** + * The meta object literal for the 'Concur Res' reference feature. + * + * + * @generated + */ + EReference GA_STEP__CONCUR_RES = eINSTANCE.getGaStep_ConcurRes(); + + /** + * The meta object literal for the 'Host' reference feature. + * + * + * @generated + */ + EReference GA_STEP__HOST = eINSTANCE.getGaStep_Host(); + + /** + * The meta object literal for the 'Serv Demand' reference list feature. + * + * + * @generated + */ + EReference GA_STEP__SERV_DEMAND = eINSTANCE.getGaStep_ServDemand(); + + /** + * The meta object literal for the 'Serv Count' attribute list feature. + * + * + * @generated + */ + EAttribute GA_STEP__SERV_COUNT = eINSTANCE.getGaStep_ServCount(); + + /** + * The meta object literal for the 'Self Delay' attribute feature. + * + * + * @generated + */ + EAttribute GA_STEP__SELF_DELAY = eINSTANCE.getGaStep_SelfDelay(); + + /** + * The meta object literal for the 'Scenario' reference feature. + * + * + * @generated + */ + EReference GA_STEP__SCENARIO = eINSTANCE.getGaStep_Scenario(); + + /** + * The meta object literal for the 'Child Scenario' reference feature. + * + * + * @generated + */ + EReference GA_STEP__CHILD_SCENARIO = eINSTANCE.getGaStep_ChildScenario(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaExecHostImpl Ga Exec Host}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaExecHostImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GQAMPackageImpl#getGaExecHost() + * @generated + */ + EClass GA_EXEC_HOST = eINSTANCE.getGaExecHost(); + + /** + * The meta object literal for the 'Comm Tx Ovh' attribute feature. + * + * + * @generated + */ + EAttribute GA_EXEC_HOST__COMM_TX_OVH = eINSTANCE.getGaExecHost_CommTxOvh(); + + /** + * The meta object literal for the 'Comm Rcv Ovh' attribute feature. + * + * + * @generated + */ + EAttribute GA_EXEC_HOST__COMM_RCV_OVH = eINSTANCE.getGaExecHost_CommRcvOvh(); + + /** + * The meta object literal for the 'Cntxt Sw T' attribute feature. + * + * + * @generated + */ + EAttribute GA_EXEC_HOST__CNTXT_SW_T = eINSTANCE.getGaExecHost_CntxtSwT(); + + /** + * The meta object literal for the 'Clock Ovh' attribute feature. + * + * + * @generated + */ + EAttribute GA_EXEC_HOST__CLOCK_OVH = eINSTANCE.getGaExecHost_ClockOvh(); + + /** + * The meta object literal for the 'Sched Pri Range' attribute feature. + * + * + * @generated + */ + EAttribute GA_EXEC_HOST__SCHED_PRI_RANGE = eINSTANCE.getGaExecHost_SchedPriRange(); + + /** + * The meta object literal for the 'Mem Size' attribute feature. + * + * + * @generated + */ + EAttribute GA_EXEC_HOST__MEM_SIZE = eINSTANCE.getGaExecHost_MemSize(); + + /** + * The meta object literal for the 'Utilization' attribute list feature. + * + * + * @generated + */ + EAttribute GA_EXEC_HOST__UTILIZATION = eINSTANCE.getGaExecHost_Utilization(); + + /** + * The meta object literal for the 'Throughput' attribute list feature. + * + * + * @generated + */ + EAttribute GA_EXEC_HOST__THROUGHPUT = eINSTANCE.getGaExecHost_Throughput(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaRequestedServiceImpl Ga Requested Service}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaRequestedServiceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GQAMPackageImpl#getGaRequestedService() + * @generated + */ + EClass GA_REQUESTED_SERVICE = eINSTANCE.getGaRequestedService(); + + /** + * The meta object literal for the 'Base Operation' reference feature. + * + * + * @generated + */ + EReference GA_REQUESTED_SERVICE__BASE_OPERATION = eINSTANCE.getGaRequestedService_Base_Operation(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaTimedObsImpl Ga Timed Obs}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaTimedObsImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GQAMPackageImpl#getGaTimedObs() + * @generated + */ + EClass GA_TIMED_OBS = eINSTANCE.getGaTimedObs(); + + /** + * The meta object literal for the 'Laxity' attribute feature. + * + * + * @generated + */ + EAttribute GA_TIMED_OBS__LAXITY = eINSTANCE.getGaTimedObs_Laxity(); + + /** + * The meta object literal for the 'Start Obs' reference list feature. + * + * + * @generated + */ + EReference GA_TIMED_OBS__START_OBS = eINSTANCE.getGaTimedObs_StartObs(); + + /** + * The meta object literal for the 'End Obs' reference list feature. + * + * + * @generated + */ + EReference GA_TIMED_OBS__END_OBS = eINSTANCE.getGaTimedObs_EndObs(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaCommStepImpl Ga Comm Step}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaCommStepImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GQAMPackageImpl#getGaCommStep() + * @generated + */ + EClass GA_COMM_STEP = eINSTANCE.getGaCommStep(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaAcqStepImpl Ga Acq Step}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaAcqStepImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GQAMPackageImpl#getGaAcqStep() + * @generated + */ + EClass GA_ACQ_STEP = eINSTANCE.getGaAcqStep(); + + /** + * The meta object literal for the 'Acq Res' reference feature. + * + * + * @generated + */ + EReference GA_ACQ_STEP__ACQ_RES = eINSTANCE.getGaAcqStep_AcqRes(); + + /** + * The meta object literal for the 'Res Units' attribute feature. + * + * + * @generated + */ + EAttribute GA_ACQ_STEP__RES_UNITS = eINSTANCE.getGaAcqStep_ResUnits(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaRelStepImpl Ga Rel Step}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaRelStepImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GQAMPackageImpl#getGaRelStep() + * @generated + */ + EClass GA_REL_STEP = eINSTANCE.getGaRelStep(); + + /** + * The meta object literal for the 'Rel Res' reference feature. + * + * + * @generated + */ + EReference GA_REL_STEP__REL_RES = eINSTANCE.getGaRelStep_RelRes(); + + /** + * The meta object literal for the 'Res Units' attribute feature. + * + * + * @generated + */ + EAttribute GA_REL_STEP__RES_UNITS = eINSTANCE.getGaRelStep_ResUnits(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaLatencyObsImpl Ga Latency Obs}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaLatencyObsImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GQAMPackageImpl#getGaLatencyObs() + * @generated + */ + EClass GA_LATENCY_OBS = eINSTANCE.getGaLatencyObs(); + + /** + * The meta object literal for the 'Latency' attribute list feature. + * + * + * @generated + */ + EAttribute GA_LATENCY_OBS__LATENCY = eINSTANCE.getGaLatencyObs_Latency(); + + /** + * The meta object literal for the 'Miss' attribute list feature. + * + * + * @generated + */ + EAttribute GA_LATENCY_OBS__MISS = eINSTANCE.getGaLatencyObs_Miss(); + + /** + * The meta object literal for the 'Utility' attribute list feature. + * + * + * @generated + */ + EAttribute GA_LATENCY_OBS__UTILITY = eINSTANCE.getGaLatencyObs_Utility(); + + /** + * The meta object literal for the 'Max Jitter' attribute list feature. + * + * + * @generated + */ + EAttribute GA_LATENCY_OBS__MAX_JITTER = eINSTANCE.getGaLatencyObs_MaxJitter(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaCommHostImpl Ga Comm Host}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaCommHostImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GQAMPackageImpl#getGaCommHost() + * @generated + */ + EClass GA_COMM_HOST = eINSTANCE.getGaCommHost(); + + /** + * The meta object literal for the 'Throughput' attribute list feature. + * + * + * @generated + */ + EAttribute GA_COMM_HOST__THROUGHPUT = eINSTANCE.getGaCommHost_Throughput(); + + /** + * The meta object literal for the 'Utilization' attribute list feature. + * + * + * @generated + */ + EAttribute GA_COMM_HOST__UTILIZATION = eINSTANCE.getGaCommHost_Utilization(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaCommChannelImpl Ga Comm Channel}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaCommChannelImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GQAMPackageImpl#getGaCommChannel() + * @generated + */ + EClass GA_COMM_CHANNEL = eINSTANCE.getGaCommChannel(); + + /** + * The meta object literal for the 'Packet Size' attribute feature. + * + * + * @generated + */ + EAttribute GA_COMM_CHANNEL__PACKET_SIZE = eINSTANCE.getGaCommChannel_PacketSize(); + + /** + * The meta object literal for the 'Utilization' attribute feature. + * + * + * @generated + */ + EAttribute GA_COMM_CHANNEL__UTILIZATION = eINSTANCE.getGaCommChannel_Utilization(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaWorkloadBehaviorImpl Ga Workload Behavior}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaWorkloadBehaviorImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GQAMPackageImpl#getGaWorkloadBehavior() + * @generated + */ + EClass GA_WORKLOAD_BEHAVIOR = eINSTANCE.getGaWorkloadBehavior(); + + /** + * The meta object literal for the 'Behavior' reference list feature. + * + * + * @generated + */ + EReference GA_WORKLOAD_BEHAVIOR__BEHAVIOR = eINSTANCE.getGaWorkloadBehavior_Behavior(); + + /** + * The meta object literal for the 'Demand' reference list feature. + * + * + * @generated + */ + EReference GA_WORKLOAD_BEHAVIOR__DEMAND = eINSTANCE.getGaWorkloadBehavior_Demand(); + + /** + * The meta object literal for the 'Base Named Element' reference feature. + * + * + * @generated + */ + EReference GA_WORKLOAD_BEHAVIOR__BASE_NAMED_ELEMENT = eINSTANCE.getGaWorkloadBehavior_Base_NamedElement(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaAnalysisContextImpl Ga Analysis Context}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaAnalysisContextImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GQAMPackageImpl#getGaAnalysisContext() + * @generated + */ + EClass GA_ANALYSIS_CONTEXT = eINSTANCE.getGaAnalysisContext(); + + /** + * The meta object literal for the 'Context' attribute list feature. + * + * + * @generated + */ + EAttribute GA_ANALYSIS_CONTEXT__CONTEXT = eINSTANCE.getGaAnalysisContext_Context(); + + /** + * The meta object literal for the 'Workload' reference list feature. + * + * + * @generated + */ + EReference GA_ANALYSIS_CONTEXT__WORKLOAD = eINSTANCE.getGaAnalysisContext_Workload(); + + /** + * The meta object literal for the 'Platform' reference list feature. + * + * + * @generated + */ + EReference GA_ANALYSIS_CONTEXT__PLATFORM = eINSTANCE.getGaAnalysisContext_Platform(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaResourcesPlatformImpl Ga Resources Platform}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaResourcesPlatformImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GQAMPackageImpl#getGaResourcesPlatform() + * @generated + */ + EClass GA_RESOURCES_PLATFORM = eINSTANCE.getGaResourcesPlatform(); + + /** + * The meta object literal for the 'Resources' reference list feature. + * + * + * @generated + */ + EReference GA_RESOURCES_PLATFORM__RESOURCES = eINSTANCE.getGaResourcesPlatform_Resources(); + + /** + * The meta object literal for the 'Base Classifier' reference feature. + * + * + * @generated + */ + EReference GA_RESOURCES_PLATFORM__BASE_CLASSIFIER = eINSTANCE.getGaResourcesPlatform_Base_Classifier(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.LaxityKind Laxity Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.LaxityKind + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GQAMPackageImpl#getLaxityKind() + * @generated + */ + EEnum LAXITY_KIND = eINSTANCE.getLaxityKind(); + + } + +} //GQAMPackage diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaAcqStep.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaAcqStep.java new file mode 100644 index 00000000000..9bd69100175 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaAcqStep.java @@ -0,0 +1,89 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.GQAM; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource; + +/** + * + * A representation of the model object 'Ga Acq Step'. + * + * + *

+ * The following features are supported: + *

+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaAcqStep() + * @model + * @generated + */ +public interface GaAcqStep extends GaStep { + /** + * Returns the value of the 'Acq Res' reference. + * + *

+ * If the meaning of the 'Acq Res' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Acq Res' reference. + * @see #setAcqRes(Resource) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaAcqStep_AcqRes() + * @model ordered="false" + * @generated + */ + Resource getAcqRes(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaAcqStep#getAcqRes Acq Res}' reference. + * + * + * @param value the new value of the 'Acq Res' reference. + * @see #getAcqRes() + * @generated + */ + void setAcqRes(Resource value); + + /** + * Returns the value of the 'Res Units' attribute. + * The default value is "1". + * + *

+ * If the meaning of the 'Res Units' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Res Units' attribute. + * @see #setResUnits(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaAcqStep_ResUnits() + * @model default="1" unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Integer" ordered="false" + * @generated + */ + String getResUnits(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaAcqStep#getResUnits Res Units}' attribute. + * + * + * @param value the new value of the 'Res Units' attribute. + * @see #getResUnits() + * @generated + */ + void setResUnits(String value); + +} // GaAcqStep diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaAnalysisContext.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaAnalysisContext.java new file mode 100644 index 00000000000..510d0d0e23d --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaAnalysisContext.java @@ -0,0 +1,89 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.GQAM; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.ExpressionContext; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.Configuration; + +/** + * + * A representation of the model object 'Ga Analysis Context'. + * + * + *

+ * The following features are supported: + *

+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaAnalysisContext() + * @model + * @generated + */ +public interface GaAnalysisContext extends Configuration, ExpressionContext { + /** + * Returns the value of the 'Context' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Context' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Context' attribute list. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaAnalysisContext_Context() + * @model dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_String" ordered="false" + * @generated + */ + EList getContext(); + + /** + * Returns the value of the 'Workload' reference list. + * The list contents are of type {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadBehavior}. + * + *

+ * If the meaning of the 'Workload' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Workload' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaAnalysisContext_Workload() + * @model required="true" ordered="false" + * @generated + */ + EList getWorkload(); + + /** + * Returns the value of the 'Platform' reference list. + * The list contents are of type {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaResourcesPlatform}. + * + *

+ * If the meaning of the 'Platform' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Platform' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaAnalysisContext_Platform() + * @model required="true" ordered="false" + * @generated + */ + EList getPlatform(); + +} // GaAnalysisContext diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaCommChannel.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaCommChannel.java new file mode 100644 index 00000000000..1e7eee869fb --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaCommChannel.java @@ -0,0 +1,88 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.GQAM; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SchedulableResource; + +/** + * + * A representation of the model object 'Ga Comm Channel'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaCommChannel#getPacketSize Packet Size}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaCommChannel#getUtilization Utilization}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaCommChannel() + * @model + * @generated + */ +public interface GaCommChannel extends SchedulableResource { + /** + * Returns the value of the 'Packet Size' attribute. + * + *

+ * If the meaning of the 'Packet Size' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Packet Size' attribute. + * @see #setPacketSize(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaCommChannel_PacketSize() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_DataSize" ordered="false" + * @generated + */ + String getPacketSize(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaCommChannel#getPacketSize Packet Size}' attribute. + * + * + * @param value the new value of the 'Packet Size' attribute. + * @see #getPacketSize() + * @generated + */ + void setPacketSize(String value); + + /** + * Returns the value of the 'Utilization' attribute. + * + *

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

+ * + * @return the value of the 'Utilization' attribute. + * @see #setUtilization(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaCommChannel_Utilization() + * @model dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Real" ordered="false" + * @generated + */ + String getUtilization(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaCommChannel#getUtilization Utilization}' attribute. + * + * + * @param value the new value of the 'Utilization' attribute. + * @see #getUtilization() + * @generated + */ + void setUtilization(String value); + +} // GaCommChannel diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaCommHost.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaCommHost.java new file mode 100644 index 00000000000..9efbdc520f4 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaCommHost.java @@ -0,0 +1,71 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.GQAM; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationMedia; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler; + +/** + * + * A representation of the model object 'Ga Comm Host'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaCommHost#getThroughput Throughput}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaCommHost#getUtilization Utilization}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaCommHost() + * @model + * @generated + */ +public interface GaCommHost extends CommunicationMedia, Scheduler { + /** + * Returns the value of the 'Throughput' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Throughput' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Throughput' attribute list. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaCommHost_Throughput() + * @model dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Frequency" ordered="false" + * @generated + */ + EList getThroughput(); + + /** + * Returns the value of the 'Utilization' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Utilization' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Utilization' attribute list. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaCommHost_Utilization() + * @model dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Real" ordered="false" + * @generated + */ + EList getUtilization(); + +} // GaCommHost diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaCommStep.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaCommStep.java new file mode 100644 index 00000000000..5b487af3b5d --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaCommStep.java @@ -0,0 +1,28 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.GQAM; + + +/** + * + * A representation of the model object 'Ga Comm Step'. + * + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaCommStep() + * @model + * @generated + */ +public interface GaCommStep extends GaStep { +} // GaCommStep diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaEventTrace.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaEventTrace.java new file mode 100644 index 00000000000..10ff03eb88a --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaEventTrace.java @@ -0,0 +1,144 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.GQAM; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.uml2.uml.NamedElement; + +/** + * + * A representation of the model object 'Ga Event Trace'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaEventTrace#getContent Content}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaEventTrace#getFormat Format}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaEventTrace#getLocation Location}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaEventTrace#getBase_NamedElement Base Named Element}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaEventTrace() + * @model + * @generated + */ +public interface GaEventTrace extends EObject { + /** + * Returns the value of the 'Content' attribute. + * + *

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

+ * + * @return the value of the 'Content' attribute. + * @see #setContent(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaEventTrace_Content() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.String" ordered="false" + * @generated + */ + String getContent(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaEventTrace#getContent Content}' attribute. + * + * + * @param value the new value of the 'Content' attribute. + * @see #getContent() + * @generated + */ + void setContent(String value); + + /** + * Returns the value of the 'Format' attribute. + * + *

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

+ * + * @return the value of the 'Format' attribute. + * @see #setFormat(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaEventTrace_Format() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.String" ordered="false" + * @generated + */ + String getFormat(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaEventTrace#getFormat Format}' attribute. + * + * + * @param value the new value of the 'Format' attribute. + * @see #getFormat() + * @generated + */ + void setFormat(String value); + + /** + * Returns the value of the 'Location' attribute. + * + *

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

+ * + * @return the value of the 'Location' attribute. + * @see #setLocation(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaEventTrace_Location() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.String" ordered="false" + * @generated + */ + String getLocation(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaEventTrace#getLocation Location}' attribute. + * + * + * @param value the new value of the 'Location' attribute. + * @see #getLocation() + * @generated + */ + void setLocation(String value); + + /** + * Returns the value of the 'Base Named Element' reference. + * + *

+ * If the meaning of the 'Base Named Element' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Named Element' reference. + * @see #setBase_NamedElement(NamedElement) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaEventTrace_Base_NamedElement() + * @model required="true" ordered="false" + * @generated + */ + NamedElement getBase_NamedElement(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaEventTrace#getBase_NamedElement Base Named Element}' reference. + * + * + * @param value the new value of the 'Base Named Element' reference. + * @see #getBase_NamedElement() + * @generated + */ + void setBase_NamedElement(NamedElement value); + +} // GaEventTrace diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaExecHost.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaExecHost.java new file mode 100644 index 00000000000..514e817978c --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaExecHost.java @@ -0,0 +1,233 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.GQAM; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ComputingResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler; + +/** + * + * A representation of the model object 'Ga Exec Host'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaExecHost#getCommTxOvh Comm Tx Ovh}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaExecHost#getCommRcvOvh Comm Rcv Ovh}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaExecHost#getCntxtSwT Cntxt Sw T}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaExecHost#getClockOvh Clock Ovh}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaExecHost#getSchedPriRange Sched Pri Range}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaExecHost#getMemSize Mem Size}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaExecHost#getUtilization Utilization}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaExecHost#getThroughput Throughput}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaExecHost() + * @model + * @generated + */ +public interface GaExecHost extends Scheduler, ComputingResource { + /** + * Returns the value of the 'Comm Tx Ovh' attribute. + * + *

+ * If the meaning of the 'Comm Tx Ovh' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Comm Tx Ovh' attribute. + * @see #setCommTxOvh(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaExecHost_CommTxOvh() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Duration" ordered="false" + * @generated + */ + String getCommTxOvh(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaExecHost#getCommTxOvh Comm Tx Ovh}' attribute. + * + * + * @param value the new value of the 'Comm Tx Ovh' attribute. + * @see #getCommTxOvh() + * @generated + */ + void setCommTxOvh(String value); + + /** + * Returns the value of the 'Comm Rcv Ovh' attribute. + * + *

+ * If the meaning of the 'Comm Rcv Ovh' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Comm Rcv Ovh' attribute. + * @see #setCommRcvOvh(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaExecHost_CommRcvOvh() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Duration" ordered="false" + * @generated + */ + String getCommRcvOvh(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaExecHost#getCommRcvOvh Comm Rcv Ovh}' attribute. + * + * + * @param value the new value of the 'Comm Rcv Ovh' attribute. + * @see #getCommRcvOvh() + * @generated + */ + void setCommRcvOvh(String value); + + /** + * Returns the value of the 'Cntxt Sw T' attribute. + * + *

+ * If the meaning of the 'Cntxt Sw T' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Cntxt Sw T' attribute. + * @see #setCntxtSwT(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaExecHost_CntxtSwT() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Duration" ordered="false" + * @generated + */ + String getCntxtSwT(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaExecHost#getCntxtSwT Cntxt Sw T}' attribute. + * + * + * @param value the new value of the 'Cntxt Sw T' attribute. + * @see #getCntxtSwT() + * @generated + */ + void setCntxtSwT(String value); + + /** + * Returns the value of the 'Clock Ovh' attribute. + * + *

+ * If the meaning of the 'Clock Ovh' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Clock Ovh' attribute. + * @see #setClockOvh(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaExecHost_ClockOvh() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Duration" ordered="false" + * @generated + */ + String getClockOvh(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaExecHost#getClockOvh Clock Ovh}' attribute. + * + * + * @param value the new value of the 'Clock Ovh' attribute. + * @see #getClockOvh() + * @generated + */ + void setClockOvh(String value); + + /** + * Returns the value of the 'Sched Pri Range' attribute. + * + *

+ * If the meaning of the 'Sched Pri Range' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Sched Pri Range' attribute. + * @see #setSchedPriRange(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaExecHost_SchedPriRange() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.IntegerInterval" ordered="false" + * @generated + */ + String getSchedPriRange(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaExecHost#getSchedPriRange Sched Pri Range}' attribute. + * + * + * @param value the new value of the 'Sched Pri Range' attribute. + * @see #getSchedPriRange() + * @generated + */ + void setSchedPriRange(String value); + + /** + * Returns the value of the 'Mem Size' attribute. + * + *

+ * If the meaning of the 'Mem Size' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Mem Size' attribute. + * @see #setMemSize(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaExecHost_MemSize() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_DataSize" ordered="false" + * @generated + */ + String getMemSize(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaExecHost#getMemSize Mem Size}' attribute. + * + * + * @param value the new value of the 'Mem Size' attribute. + * @see #getMemSize() + * @generated + */ + void setMemSize(String value); + + /** + * Returns the value of the 'Utilization' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Utilization' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Utilization' attribute list. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaExecHost_Utilization() + * @model dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Real" ordered="false" + * @generated + */ + EList getUtilization(); + + /** + * Returns the value of the 'Throughput' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Throughput' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Throughput' attribute list. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaExecHost_Throughput() + * @model dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Frequency" ordered="false" + * @generated + */ + EList getThroughput(); + +} // GaExecHost diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaLatencyObs.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaLatencyObs.java new file mode 100644 index 00000000000..df614c3ec42 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaLatencyObs.java @@ -0,0 +1,102 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.GQAM; + +import org.eclipse.emf.common.util.EList; + +/** + * + * A representation of the model object 'Ga Latency Obs'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaLatencyObs#getLatency Latency}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaLatencyObs#getMiss Miss}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaLatencyObs#getUtility Utility}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaLatencyObs#getMaxJitter Max Jitter}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaLatencyObs() + * @model + * @generated + */ +public interface GaLatencyObs extends GaTimedObs { + /** + * Returns the value of the 'Latency' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Latency' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Latency' attribute list. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaLatencyObs_Latency() + * @model dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Duration" ordered="false" + * @generated + */ + EList getLatency(); + + /** + * Returns the value of the 'Miss' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Miss' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Miss' attribute list. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaLatencyObs_Miss() + * @model dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Real" ordered="false" + * @generated + */ + EList getMiss(); + + /** + * Returns the value of the 'Utility' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Utility' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Utility' attribute list. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaLatencyObs_Utility() + * @model dataType="org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.UtilityType" ordered="false" + * @generated + */ + EList getUtility(); + + /** + * Returns the value of the 'Max Jitter' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Max Jitter' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Max Jitter' attribute list. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaLatencyObs_MaxJitter() + * @model dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Duration" ordered="false" + * @generated + */ + EList getMaxJitter(); + +} // GaLatencyObs diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaRelStep.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaRelStep.java new file mode 100644 index 00000000000..7047ca7dac3 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaRelStep.java @@ -0,0 +1,89 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.GQAM; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource; + +/** + * + * A representation of the model object 'Ga Rel Step'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaRelStep#getRelRes Rel Res}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaRelStep#getResUnits Res Units}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaRelStep() + * @model + * @generated + */ +public interface GaRelStep extends GaStep { + /** + * Returns the value of the 'Rel Res' reference. + * + *

+ * If the meaning of the 'Rel Res' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Rel Res' reference. + * @see #setRelRes(Resource) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaRelStep_RelRes() + * @model ordered="false" + * @generated + */ + Resource getRelRes(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaRelStep#getRelRes Rel Res}' reference. + * + * + * @param value the new value of the 'Rel Res' reference. + * @see #getRelRes() + * @generated + */ + void setRelRes(Resource value); + + /** + * Returns the value of the 'Res Units' attribute. + * The default value is "1". + * + *

+ * If the meaning of the 'Res Units' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Res Units' attribute. + * @see #setResUnits(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaRelStep_ResUnits() + * @model default="1" unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Integer" ordered="false" + * @generated + */ + String getResUnits(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaRelStep#getResUnits Res Units}' attribute. + * + * + * @param value the new value of the 'Res Units' attribute. + * @see #getResUnits() + * @generated + */ + void setResUnits(String value); + +} // GaRelStep diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaRequestedService.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaRequestedService.java new file mode 100644 index 00000000000..4a53b51a8d3 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaRequestedService.java @@ -0,0 +1,61 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.GQAM; + +import org.eclipse.uml2.uml.Operation; + +/** + * + * A representation of the model object 'Ga Requested Service'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaRequestedService#getBase_Operation Base Operation}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaRequestedService() + * @model + * @generated + */ +public interface GaRequestedService extends GaStep { + /** + * Returns the value of the 'Base Operation' reference. + * + *

+ * If the meaning of the 'Base Operation' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Operation' reference. + * @see #setBase_Operation(Operation) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaRequestedService_Base_Operation() + * @model required="true" ordered="false" + * @generated + */ + Operation getBase_Operation(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaRequestedService#getBase_Operation Base Operation}' reference. + * + * + * @param value the new value of the 'Base Operation' reference. + * @see #getBase_Operation() + * @generated + */ + void setBase_Operation(Operation value); + +} // GaRequestedService diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaResourcesPlatform.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaResourcesPlatform.java new file mode 100644 index 00000000000..856e2723138 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaResourcesPlatform.java @@ -0,0 +1,84 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.GQAM; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource; + +import org.eclipse.uml2.uml.Classifier; + +/** + * + * A representation of the model object 'Ga Resources Platform'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaResourcesPlatform#getResources Resources}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaResourcesPlatform#getBase_Classifier Base Classifier}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaResourcesPlatform() + * @model + * @generated + */ +public interface GaResourcesPlatform extends EObject { + /** + * Returns the value of the 'Resources' reference list. + * The list contents are of type {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource}. + * + *

+ * If the meaning of the 'Resources' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Resources' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaResourcesPlatform_Resources() + * @model ordered="false" + * @generated + */ + EList getResources(); + + /** + * Returns the value of the 'Base Classifier' reference. + * + *

+ * If the meaning of the 'Base Classifier' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Classifier' reference. + * @see #setBase_Classifier(Classifier) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaResourcesPlatform_Base_Classifier() + * @model required="true" ordered="false" + * @generated + */ + Classifier getBase_Classifier(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaResourcesPlatform#getBase_Classifier Base Classifier}' reference. + * + * + * @param value the new value of the 'Base Classifier' reference. + * @see #getBase_Classifier() + * @generated + */ + void setBase_Classifier(Classifier value); + +} // GaResourcesPlatform diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaScenario.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaScenario.java new file mode 100644 index 00000000000..cdd1dae6fb9 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaScenario.java @@ -0,0 +1,266 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.GQAM; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ResourceUsage; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedProcessing; + +/** + * + * A representation of the model object 'Ga Scenario'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario#getCause Cause}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario#getHostDemand Host Demand}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario#getHostDemandOps Host Demand Ops}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario#getInterOccT Inter Occ T}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario#getThroughput Throughput}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario#getRespT Resp T}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario#getUtilization Utilization}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario#getUtilizationOnHost Utilization On Host}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario#getRoot Root}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario#getSteps Steps}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario#getParentStep Parent Step}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario#getTiming Timing}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaScenario() + * @model + * @generated + */ +public interface GaScenario extends ResourceUsage, TimedProcessing { + /** + * Returns the value of the 'Cause' reference. + * + *

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

+ * + * @return the value of the 'Cause' reference. + * @see #setCause(GaWorkloadEvent) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaScenario_Cause() + * @model ordered="false" + * @generated + */ + GaWorkloadEvent getCause(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario#getCause Cause}' reference. + * + * + * @param value the new value of the 'Cause' reference. + * @see #getCause() + * @generated + */ + void setCause(GaWorkloadEvent value); + + /** + * Returns the value of the 'Host Demand' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Host Demand' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Host Demand' attribute list. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaScenario_HostDemand() + * @model dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Duration" ordered="false" + * @generated + */ + EList getHostDemand(); + + /** + * Returns the value of the 'Host Demand Ops' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Host Demand Ops' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Host Demand Ops' attribute list. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaScenario_HostDemandOps() + * @model dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Real" ordered="false" + * @generated + */ + EList getHostDemandOps(); + + /** + * Returns the value of the 'Inter Occ T' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Inter Occ T' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Inter Occ T' attribute list. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaScenario_InterOccT() + * @model dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Duration" ordered="false" + * @generated + */ + EList getInterOccT(); + + /** + * Returns the value of the 'Throughput' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Throughput' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Throughput' attribute list. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaScenario_Throughput() + * @model dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Frequency" ordered="false" + * @generated + */ + EList getThroughput(); + + /** + * Returns the value of the 'Resp T' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Resp T' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Resp T' attribute list. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaScenario_RespT() + * @model dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Duration" ordered="false" + * @generated + */ + EList getRespT(); + + /** + * Returns the value of the 'Utilization' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Utilization' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Utilization' attribute list. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaScenario_Utilization() + * @model dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Real" ordered="false" + * @generated + */ + EList getUtilization(); + + /** + * Returns the value of the 'Utilization On Host' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Utilization On Host' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Utilization On Host' attribute list. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaScenario_UtilizationOnHost() + * @model dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Real" ordered="false" + * @generated + */ + EList getUtilizationOnHost(); + + /** + * Returns the value of the 'Root' reference. + * + *

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

+ * + * @return the value of the 'Root' reference. + * @see #setRoot(GaStep) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaScenario_Root() + * @model ordered="false" + * @generated + */ + GaStep getRoot(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario#getRoot Root}' reference. + * + * + * @param value the new value of the 'Root' reference. + * @see #getRoot() + * @generated + */ + void setRoot(GaStep value); + + /** + * Returns the value of the 'Steps' reference list. + * The list contents are of type {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep}. + * It is bidirectional and its opposite is '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep#getScenario Scenario}'. + * + *

+ * If the meaning of the 'Steps' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Steps' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaScenario_Steps() + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep#getScenario + * @model opposite="scenario" required="true" ordered="false" + * @generated + */ + EList getSteps(); + + /** + * Returns the value of the 'Parent Step' reference list. + * The list contents are of type {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep}. + * It is bidirectional and its opposite is '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep#getChildScenario Child Scenario}'. + * + *

+ * If the meaning of the 'Parent Step' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Parent Step' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaScenario_ParentStep() + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep#getChildScenario + * @model opposite="childScenario" required="true" ordered="false" + * @generated + */ + EList getParentStep(); + + /** + * Returns the value of the 'Timing' reference list. + * The list contents are of type {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaTimedObs}. + * + *

+ * If the meaning of the 'Timing' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Timing' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaScenario_Timing() + * @model ordered="false" + * @generated + */ + EList getTiming(); + +} // GaScenario diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaStep.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaStep.java new file mode 100644 index 00000000000..ef98932240a --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaStep.java @@ -0,0 +1,346 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.GQAM; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SchedulableResource; + +/** + * + * A representation of the model object 'Ga Step'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep#getIsAtomic Is Atomic}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep#getBlockT Block T}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep#getRep Rep}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep#getProb Prob}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep#getPriority Priority}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep#getConcurRes Concur Res}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep#getHost Host}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep#getServDemand Serv Demand}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep#getServCount Serv Count}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep#getSelfDelay Self Delay}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep#getScenario Scenario}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep#getChildScenario Child Scenario}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaStep() + * @model + * @generated + */ +public interface GaStep extends GaScenario { + /** + * Returns the value of the 'Is Atomic' attribute. + * + *

+ * If the meaning of the 'Is Atomic' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Is Atomic' attribute. + * @see #setIsAtomic(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaStep_IsAtomic() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Boolean" ordered="false" + * @generated + */ + String getIsAtomic(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep#getIsAtomic Is Atomic}' attribute. + * + * + * @param value the new value of the 'Is Atomic' attribute. + * @see #getIsAtomic() + * @generated + */ + void setIsAtomic(String value); + + /** + * Returns the value of the 'Block T' attribute. + * + *

+ * If the meaning of the 'Block T' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Block T' attribute. + * @see #setBlockT(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaStep_BlockT() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Duration" ordered="false" + * @generated + */ + String getBlockT(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep#getBlockT Block T}' attribute. + * + * + * @param value the new value of the 'Block T' attribute. + * @see #getBlockT() + * @generated + */ + void setBlockT(String value); + + /** + * Returns the value of the 'Rep' attribute. + * The default value is "1.0". + * + *

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

+ * + * @return the value of the 'Rep' attribute. + * @see #setRep(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaStep_Rep() + * @model default="1.0" unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Real" ordered="false" + * @generated + */ + String getRep(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep#getRep Rep}' attribute. + * + * + * @param value the new value of the 'Rep' attribute. + * @see #getRep() + * @generated + */ + void setRep(String value); + + /** + * Returns the value of the 'Prob' attribute. + * The default value is "1.0". + * + *

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

+ * + * @return the value of the 'Prob' attribute. + * @see #setProb(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaStep_Prob() + * @model default="1.0" unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Real" ordered="false" + * @generated + */ + String getProb(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep#getProb Prob}' attribute. + * + * + * @param value the new value of the 'Prob' attribute. + * @see #getProb() + * @generated + */ + void setProb(String value); + + /** + * Returns the value of the 'Priority' attribute. + * + *

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

+ * + * @return the value of the 'Priority' attribute. + * @see #setPriority(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaStep_Priority() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Integer" ordered="false" + * @generated + */ + String getPriority(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep#getPriority Priority}' attribute. + * + * + * @param value the new value of the 'Priority' attribute. + * @see #getPriority() + * @generated + */ + void setPriority(String value); + + /** + * Returns the value of the 'Concur Res' reference. + * + *

+ * If the meaning of the 'Concur Res' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Concur Res' reference. + * @see #setConcurRes(SchedulableResource) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaStep_ConcurRes() + * @model ordered="false" + * @generated + */ + SchedulableResource getConcurRes(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep#getConcurRes Concur Res}' reference. + * + * + * @param value the new value of the 'Concur Res' reference. + * @see #getConcurRes() + * @generated + */ + void setConcurRes(SchedulableResource value); + + /** + * Returns the value of the 'Host' reference. + * + *

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

+ * + * @return the value of the 'Host' reference. + * @see #setHost(GaExecHost) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaStep_Host() + * @model ordered="false" + * @generated + */ + GaExecHost getHost(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep#getHost Host}' reference. + * + * + * @param value the new value of the 'Host' reference. + * @see #getHost() + * @generated + */ + void setHost(GaExecHost value); + + /** + * Returns the value of the 'Serv Demand' reference list. + * The list contents are of type {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaRequestedService}. + * + *

+ * If the meaning of the 'Serv Demand' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Serv Demand' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaStep_ServDemand() + * @model + * @generated + */ + EList getServDemand(); + + /** + * Returns the value of the 'Serv Count' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Serv Count' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Serv Count' attribute list. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaStep_ServCount() + * @model dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Real" + * @generated + */ + EList getServCount(); + + /** + * Returns the value of the 'Self Delay' attribute. + * + *

+ * If the meaning of the 'Self Delay' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Self Delay' attribute. + * @see #setSelfDelay(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaStep_SelfDelay() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Duration" ordered="false" + * @generated + */ + String getSelfDelay(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep#getSelfDelay Self Delay}' attribute. + * + * + * @param value the new value of the 'Self Delay' attribute. + * @see #getSelfDelay() + * @generated + */ + void setSelfDelay(String value); + + /** + * Returns the value of the 'Scenario' reference. + * It is bidirectional and its opposite is '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario#getSteps Steps}'. + * + *

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

+ * + * @return the value of the 'Scenario' reference. + * @see #setScenario(GaScenario) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaStep_Scenario() + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario#getSteps + * @model opposite="steps" ordered="false" + * @generated + */ + GaScenario getScenario(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep#getScenario Scenario}' reference. + * + * + * @param value the new value of the 'Scenario' reference. + * @see #getScenario() + * @generated + */ + void setScenario(GaScenario value); + + /** + * Returns the value of the 'Child Scenario' reference. + * It is bidirectional and its opposite is '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario#getParentStep Parent Step}'. + * + *

+ * If the meaning of the 'Child Scenario' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Child Scenario' reference. + * @see #setChildScenario(GaScenario) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaStep_ChildScenario() + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario#getParentStep + * @model opposite="parentStep" ordered="false" + * @generated + */ + GaScenario getChildScenario(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep#getChildScenario Child Scenario}' reference. + * + * + * @param value the new value of the 'Child Scenario' reference. + * @see #getChildScenario() + * @generated + */ + void setChildScenario(GaScenario value); + +} // GaStep diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaTimedObs.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaTimedObs.java new file mode 100644 index 00000000000..8ce1fce7046 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaTimedObs.java @@ -0,0 +1,102 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.GQAM; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpConstraint; + +import org.eclipse.uml2.uml.TimeObservation; + +/** + * + * A representation of the model object 'Ga Timed Obs'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaTimedObs#getLaxity Laxity}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaTimedObs#getStartObs Start Obs}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaTimedObs#getEndObs End Obs}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaTimedObs() + * @model + * @generated + */ +public interface GaTimedObs extends NfpConstraint { + /** + * Returns the value of the 'Laxity' attribute. + * The literals are from the enumeration {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.LaxityKind}. + * + *

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

+ * + * @return the value of the 'Laxity' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.LaxityKind + * @see #setLaxity(LaxityKind) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaTimedObs_Laxity() + * @model unique="false" + * @generated + */ + LaxityKind getLaxity(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaTimedObs#getLaxity Laxity}' attribute. + * + * + * @param value the new value of the 'Laxity' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.LaxityKind + * @see #getLaxity() + * @generated + */ + void setLaxity(LaxityKind value); + + /** + * Returns the value of the 'Start Obs' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.TimeObservation}. + * + *

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

+ * + * @return the value of the 'Start Obs' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaTimedObs_StartObs() + * @model + * @generated + */ + EList getStartObs(); + + /** + * Returns the value of the 'End Obs' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.TimeObservation}. + * + *

+ * If the meaning of the 'End Obs' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'End Obs' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaTimedObs_EndObs() + * @model + * @generated + */ + EList getEndObs(); + +} // GaTimedObs diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaWorkloadBehavior.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaWorkloadBehavior.java new file mode 100644 index 00000000000..5c187d5bc62 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaWorkloadBehavior.java @@ -0,0 +1,99 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.GQAM; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.uml2.uml.NamedElement; + +/** + * + * A representation of the model object 'Ga Workload Behavior'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadBehavior#getBehavior Behavior}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadBehavior#getDemand Demand}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadBehavior#getBase_NamedElement Base Named Element}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaWorkloadBehavior() + * @model + * @generated + */ +public interface GaWorkloadBehavior extends EObject { + /** + * Returns the value of the 'Behavior' reference list. + * The list contents are of type {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario}. + * + *

+ * If the meaning of the 'Behavior' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Behavior' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaWorkloadBehavior_Behavior() + * @model ordered="false" + * @generated + */ + EList getBehavior(); + + /** + * Returns the value of the 'Demand' reference list. + * The list contents are of type {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadEvent}. + * + *

+ * If the meaning of the 'Demand' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Demand' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaWorkloadBehavior_Demand() + * @model ordered="false" + * @generated + */ + EList getDemand(); + + /** + * Returns the value of the 'Base Named Element' reference. + * + *

+ * If the meaning of the 'Base Named Element' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Named Element' reference. + * @see #setBase_NamedElement(NamedElement) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaWorkloadBehavior_Base_NamedElement() + * @model required="true" ordered="false" + * @generated + */ + NamedElement getBase_NamedElement(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadBehavior#getBase_NamedElement Base Named Element}' reference. + * + * + * @param value the new value of the 'Base Named Element' reference. + * @see #getBase_NamedElement() + * @generated + */ + void setBase_NamedElement(NamedElement value); + +} // GaWorkloadBehavior diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaWorkloadEvent.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaWorkloadEvent.java new file mode 100644 index 00000000000..d8d44e7ea8b --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaWorkloadEvent.java @@ -0,0 +1,199 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.GQAM; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.uml2.uml.NamedElement; +import org.eclipse.uml2.uml.TimeEvent; + +/** + * + * A representation of the model object 'Ga Workload Event'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadEvent#getPattern Pattern}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadEvent#getGenerator Generator}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadEvent#getTrace Trace}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadEvent#getEffect Effect}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadEvent#getTimedEvent Timed Event}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadEvent#getBase_NamedElement Base Named Element}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaWorkloadEvent() + * @model + * @generated + */ +public interface GaWorkloadEvent extends EObject { + /** + * Returns the value of the 'Pattern' attribute. + * + *

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

+ * + * @return the value of the 'Pattern' attribute. + * @see #setPattern(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaWorkloadEvent_Pattern() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.ArrivalPattern" ordered="false" + * @generated + */ + String getPattern(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadEvent#getPattern Pattern}' attribute. + * + * + * @param value the new value of the 'Pattern' attribute. + * @see #getPattern() + * @generated + */ + void setPattern(String value); + + /** + * Returns the value of the 'Generator' reference. + * + *

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

+ * + * @return the value of the 'Generator' reference. + * @see #setGenerator(GaWorkloadGenerator) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaWorkloadEvent_Generator() + * @model ordered="false" + * @generated + */ + GaWorkloadGenerator getGenerator(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadEvent#getGenerator Generator}' reference. + * + * + * @param value the new value of the 'Generator' reference. + * @see #getGenerator() + * @generated + */ + void setGenerator(GaWorkloadGenerator value); + + /** + * Returns the value of the 'Trace' reference. + * + *

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

+ * + * @return the value of the 'Trace' reference. + * @see #setTrace(GaEventTrace) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaWorkloadEvent_Trace() + * @model ordered="false" + * @generated + */ + GaEventTrace getTrace(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadEvent#getTrace Trace}' reference. + * + * + * @param value the new value of the 'Trace' reference. + * @see #getTrace() + * @generated + */ + void setTrace(GaEventTrace value); + + /** + * Returns the value of the 'Effect' reference. + * + *

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

+ * + * @return the value of the 'Effect' reference. + * @see #setEffect(GaScenario) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaWorkloadEvent_Effect() + * @model ordered="false" + * @generated + */ + GaScenario getEffect(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadEvent#getEffect Effect}' reference. + * + * + * @param value the new value of the 'Effect' reference. + * @see #getEffect() + * @generated + */ + void setEffect(GaScenario value); + + /** + * Returns the value of the 'Timed Event' reference. + * + *

+ * If the meaning of the 'Timed Event' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Timed Event' reference. + * @see #setTimedEvent(TimeEvent) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaWorkloadEvent_TimedEvent() + * @model ordered="false" + * @generated + */ + TimeEvent getTimedEvent(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadEvent#getTimedEvent Timed Event}' reference. + * + * + * @param value the new value of the 'Timed Event' reference. + * @see #getTimedEvent() + * @generated + */ + void setTimedEvent(TimeEvent value); + + /** + * Returns the value of the 'Base Named Element' reference. + * + *

+ * If the meaning of the 'Base Named Element' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Named Element' reference. + * @see #setBase_NamedElement(NamedElement) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaWorkloadEvent_Base_NamedElement() + * @model required="true" ordered="false" + * @generated + */ + NamedElement getBase_NamedElement(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadEvent#getBase_NamedElement Base Named Element}' reference. + * + * + * @param value the new value of the 'Base Named Element' reference. + * @see #getBase_NamedElement() + * @generated + */ + void setBase_NamedElement(NamedElement value); + +} // GaWorkloadEvent diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaWorkloadGenerator.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaWorkloadGenerator.java new file mode 100644 index 00000000000..f05a818f2c6 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/GaWorkloadGenerator.java @@ -0,0 +1,91 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.GQAM; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.uml2.uml.Behavior; + +/** + * + * A representation of the model object 'Ga Workload Generator'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadGenerator#getPop Pop}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadGenerator#getBase_Behavior Base Behavior}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaWorkloadGenerator() + * @model + * @generated + */ +public interface GaWorkloadGenerator extends EObject { + /** + * Returns the value of the 'Pop' attribute. + * The default value is "1". + * + *

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

+ * + * @return the value of the 'Pop' attribute. + * @see #setPop(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaWorkloadGenerator_Pop() + * @model default="1" unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Integer" ordered="false" + * @generated + */ + String getPop(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadGenerator#getPop Pop}' attribute. + * + * + * @param value the new value of the 'Pop' attribute. + * @see #getPop() + * @generated + */ + void setPop(String value); + + /** + * Returns the value of the 'Base Behavior' reference. + * + *

+ * If the meaning of the 'Base Behavior' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Behavior' reference. + * @see #setBase_Behavior(Behavior) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getGaWorkloadGenerator_Base_Behavior() + * @model required="true" ordered="false" + * @generated + */ + Behavior getBase_Behavior(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadGenerator#getBase_Behavior Base Behavior}' reference. + * + * + * @param value the new value of the 'Base Behavior' reference. + * @see #getBase_Behavior() + * @generated + */ + void setBase_Behavior(Behavior value); + +} // GaWorkloadGenerator diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/LaxityKind.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/LaxityKind.java new file mode 100644 index 00000000000..b642e3f45e7 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/LaxityKind.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.MARTE_AnalysisModel.GQAM; + +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 'Laxity Kind', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage#getLaxityKind() + * @model + * @generated + */ +public enum LaxityKind implements Enumerator { + /** + * The 'Hard' literal object. + * + * + * @see #HARD_VALUE + * @generated + * @ordered + */ + HARD(0, "hard", "hard"), + + /** + * The 'Soft' literal object. + * + * + * @see #SOFT_VALUE + * @generated + * @ordered + */ + SOFT(1, "soft", "soft"), + + /** + * The 'Other' literal object. + * + * + * @see #OTHER_VALUE + * @generated + * @ordered + */ + OTHER(2, "other", "other"); + + /** + * The 'Hard' literal value. + * + *

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

+ * + * @see #HARD + * @model name="hard" + * @generated + * @ordered + */ + public static final int HARD_VALUE = 0; + + /** + * The 'Soft' literal value. + * + *

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

+ * + * @see #SOFT + * @model name="soft" + * @generated + * @ordered + */ + public static final int SOFT_VALUE = 1; + + /** + * 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 = 2; + + /** + * An array of all the 'Laxity Kind' enumerators. + * + * + * @generated + */ + private static final LaxityKind[] VALUES_ARRAY = + new LaxityKind[] { + HARD, + SOFT, + OTHER, + }; + + /** + * A public read-only list of all the 'Laxity Kind' enumerators. + * + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Laxity Kind' literal with the specified literal value. + * + * + * @generated + */ + public static LaxityKind get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + LaxityKind result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Laxity Kind' literal with the specified name. + * + * + * @generated + */ + public static LaxityKind getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + LaxityKind result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Laxity Kind' literal with the specified integer value. + * + * + * @generated + */ + public static LaxityKind get(int value) { + switch (value) { + case HARD_VALUE: return HARD; + case SOFT_VALUE: return SOFT; + 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 LaxityKind(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; + } + +} //LaxityKind diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GQAMFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GQAMFactoryImpl.java new file mode 100644 index 00000000000..c3f747f331e --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GQAMFactoryImpl.java @@ -0,0 +1,333 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.GQAM.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.MARTE_AnalysisModel.GQAM.*; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class GQAMFactoryImpl extends EFactoryImpl implements GQAMFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static GQAMFactory init() { + try { + GQAMFactory theGQAMFactory = (GQAMFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/GQAM/1"); + if (theGQAMFactory != null) { + return theGQAMFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new GQAMFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public GQAMFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case GQAMPackage.GA_WORKLOAD_GENERATOR: return createGaWorkloadGenerator(); + case GQAMPackage.GA_EVENT_TRACE: return createGaEventTrace(); + case GQAMPackage.GA_WORKLOAD_EVENT: return createGaWorkloadEvent(); + case GQAMPackage.GA_SCENARIO: return createGaScenario(); + case GQAMPackage.GA_STEP: return createGaStep(); + case GQAMPackage.GA_EXEC_HOST: return createGaExecHost(); + case GQAMPackage.GA_REQUESTED_SERVICE: return createGaRequestedService(); + case GQAMPackage.GA_TIMED_OBS: return createGaTimedObs(); + case GQAMPackage.GA_COMM_STEP: return createGaCommStep(); + case GQAMPackage.GA_ACQ_STEP: return createGaAcqStep(); + case GQAMPackage.GA_REL_STEP: return createGaRelStep(); + case GQAMPackage.GA_LATENCY_OBS: return createGaLatencyObs(); + case GQAMPackage.GA_COMM_HOST: return createGaCommHost(); + case GQAMPackage.GA_COMM_CHANNEL: return createGaCommChannel(); + case GQAMPackage.GA_WORKLOAD_BEHAVIOR: return createGaWorkloadBehavior(); + case GQAMPackage.GA_ANALYSIS_CONTEXT: return createGaAnalysisContext(); + case GQAMPackage.GA_RESOURCES_PLATFORM: return createGaResourcesPlatform(); + 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 GQAMPackage.LAXITY_KIND: + return createLaxityKindFromString(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 GQAMPackage.LAXITY_KIND: + return convertLaxityKindToString(eDataType, instanceValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public GaWorkloadGenerator createGaWorkloadGenerator() { + GaWorkloadGeneratorImpl gaWorkloadGenerator = new GaWorkloadGeneratorImpl(); + return gaWorkloadGenerator; + } + + /** + * + * + * @generated + */ + public GaEventTrace createGaEventTrace() { + GaEventTraceImpl gaEventTrace = new GaEventTraceImpl(); + return gaEventTrace; + } + + /** + * + * + * @generated + */ + public GaWorkloadEvent createGaWorkloadEvent() { + GaWorkloadEventImpl gaWorkloadEvent = new GaWorkloadEventImpl(); + return gaWorkloadEvent; + } + + /** + * + * + * @generated + */ + public GaScenario createGaScenario() { + GaScenarioImpl gaScenario = new GaScenarioImpl(); + return gaScenario; + } + + /** + * + * + * @generated + */ + public GaStep createGaStep() { + GaStepImpl gaStep = new GaStepImpl(); + return gaStep; + } + + /** + * + * + * @generated + */ + public GaExecHost createGaExecHost() { + GaExecHostImpl gaExecHost = new GaExecHostImpl(); + return gaExecHost; + } + + /** + * + * + * @generated + */ + public GaRequestedService createGaRequestedService() { + GaRequestedServiceImpl gaRequestedService = new GaRequestedServiceImpl(); + return gaRequestedService; + } + + /** + * + * + * @generated + */ + public GaTimedObs createGaTimedObs() { + GaTimedObsImpl gaTimedObs = new GaTimedObsImpl(); + return gaTimedObs; + } + + /** + * + * + * @generated + */ + public GaCommStep createGaCommStep() { + GaCommStepImpl gaCommStep = new GaCommStepImpl(); + return gaCommStep; + } + + /** + * + * + * @generated + */ + public GaAcqStep createGaAcqStep() { + GaAcqStepImpl gaAcqStep = new GaAcqStepImpl(); + return gaAcqStep; + } + + /** + * + * + * @generated + */ + public GaRelStep createGaRelStep() { + GaRelStepImpl gaRelStep = new GaRelStepImpl(); + return gaRelStep; + } + + /** + * + * + * @generated + */ + public GaLatencyObs createGaLatencyObs() { + GaLatencyObsImpl gaLatencyObs = new GaLatencyObsImpl(); + return gaLatencyObs; + } + + /** + * + * + * @generated + */ + public GaCommHost createGaCommHost() { + GaCommHostImpl gaCommHost = new GaCommHostImpl(); + return gaCommHost; + } + + /** + * + * + * @generated + */ + public GaCommChannel createGaCommChannel() { + GaCommChannelImpl gaCommChannel = new GaCommChannelImpl(); + return gaCommChannel; + } + + /** + * + * + * @generated + */ + public GaWorkloadBehavior createGaWorkloadBehavior() { + GaWorkloadBehaviorImpl gaWorkloadBehavior = new GaWorkloadBehaviorImpl(); + return gaWorkloadBehavior; + } + + /** + * + * + * @generated + */ + public GaAnalysisContext createGaAnalysisContext() { + GaAnalysisContextImpl gaAnalysisContext = new GaAnalysisContextImpl(); + return gaAnalysisContext; + } + + /** + * + * + * @generated + */ + public GaResourcesPlatform createGaResourcesPlatform() { + GaResourcesPlatformImpl gaResourcesPlatform = new GaResourcesPlatformImpl(); + return gaResourcesPlatform; + } + + /** + * + * + * @generated + */ + public LaxityKind createLaxityKindFromString(EDataType eDataType, String initialValue) { + LaxityKind result = LaxityKind.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertLaxityKindToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public GQAMPackage getGQAMPackage() { + return (GQAMPackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static GQAMPackage getPackage() { + return GQAMPackage.eINSTANCE; + } + +} //GQAMFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GQAMPackageImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GQAMPackageImpl.java new file mode 100644 index 00000000000..62f8c6bea02 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GQAMPackageImpl.java @@ -0,0 +1,1563 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.GQAM.impl; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +import org.eclipse.emf.ecore.impl.EPackageImpl; + +import org.eclipse.papyrus.MARTE.MARTEPackage; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMFactory; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaAcqStep; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaAnalysisContext; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaCommChannel; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaCommHost; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaCommStep; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaEventTrace; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaExecHost; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaLatencyObs; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaRelStep; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaRequestedService; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaResourcesPlatform; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaTimedObs; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadBehavior; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadEvent; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadGenerator; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.LaxityKind; + +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.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 GQAMPackageImpl extends EPackageImpl implements GQAMPackage { + /** + * + * + * @generated + */ + private EClass gaWorkloadGeneratorEClass = null; + + /** + * + * + * @generated + */ + private EClass gaEventTraceEClass = null; + + /** + * + * + * @generated + */ + private EClass gaWorkloadEventEClass = null; + + /** + * + * + * @generated + */ + private EClass gaScenarioEClass = null; + + /** + * + * + * @generated + */ + private EClass gaStepEClass = null; + + /** + * + * + * @generated + */ + private EClass gaExecHostEClass = null; + + /** + * + * + * @generated + */ + private EClass gaRequestedServiceEClass = null; + + /** + * + * + * @generated + */ + private EClass gaTimedObsEClass = null; + + /** + * + * + * @generated + */ + private EClass gaCommStepEClass = null; + + /** + * + * + * @generated + */ + private EClass gaAcqStepEClass = null; + + /** + * + * + * @generated + */ + private EClass gaRelStepEClass = null; + + /** + * + * + * @generated + */ + private EClass gaLatencyObsEClass = null; + + /** + * + * + * @generated + */ + private EClass gaCommHostEClass = null; + + /** + * + * + * @generated + */ + private EClass gaCommChannelEClass = null; + + /** + * + * + * @generated + */ + private EClass gaWorkloadBehaviorEClass = null; + + /** + * + * + * @generated + */ + private EClass gaAnalysisContextEClass = null; + + /** + * + * + * @generated + */ + private EClass gaResourcesPlatformEClass = null; + + /** + * + * + * @generated + */ + private EEnum laxityKindEEnum = 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.MARTE_AnalysisModel.GQAM.GQAMPackage#eNS_URI + * @see #init() + * @generated + */ + private GQAMPackageImpl() { + super(eNS_URI, GQAMFactory.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 GQAMPackage#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 GQAMPackage init() { + if (isInited) return (GQAMPackage)EPackage.Registry.INSTANCE.getEPackage(GQAMPackage.eNS_URI); + + // Obtain or create and register package + GQAMPackageImpl theGQAMPackage = (GQAMPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof GQAMPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new GQAMPackageImpl()); + + 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); + 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); + 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 + theGQAMPackage.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(); + theSAMPackage.createPackageContents(); + thePAMPackage.createPackageContents(); + theMeasurementUnitsPackage.createPackageContents(); + theGRM_BasicTypesPackage.createPackageContents(); + theMARTE_DataTypesPackage.createPackageContents(); + theBasicNFP_TypesPackage.createPackageContents(); + theTimeTypesLibraryPackage.createPackageContents(); + theTimeLibraryPackage.createPackageContents(); + theRS_LibraryPackage.createPackageContents(); + theMARTE_PrimitivesTypesPackage.createPackageContents(); + + // Initialize created meta-data + theGQAMPackage.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(); + theSAMPackage.initializePackageContents(); + thePAMPackage.initializePackageContents(); + theMeasurementUnitsPackage.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 + theGQAMPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(GQAMPackage.eNS_URI, theGQAMPackage); + return theGQAMPackage; + } + + /** + * + * + * @generated + */ + public EClass getGaWorkloadGenerator() { + return gaWorkloadGeneratorEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getGaWorkloadGenerator_Pop() { + return (EAttribute)gaWorkloadGeneratorEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getGaWorkloadGenerator_Base_Behavior() { + return (EReference)gaWorkloadGeneratorEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getGaEventTrace() { + return gaEventTraceEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getGaEventTrace_Content() { + return (EAttribute)gaEventTraceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getGaEventTrace_Format() { + return (EAttribute)gaEventTraceEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getGaEventTrace_Location() { + return (EAttribute)gaEventTraceEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getGaEventTrace_Base_NamedElement() { + return (EReference)gaEventTraceEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EClass getGaWorkloadEvent() { + return gaWorkloadEventEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getGaWorkloadEvent_Pattern() { + return (EAttribute)gaWorkloadEventEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getGaWorkloadEvent_Generator() { + return (EReference)gaWorkloadEventEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getGaWorkloadEvent_Trace() { + return (EReference)gaWorkloadEventEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getGaWorkloadEvent_Effect() { + return (EReference)gaWorkloadEventEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EReference getGaWorkloadEvent_TimedEvent() { + return (EReference)gaWorkloadEventEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EReference getGaWorkloadEvent_Base_NamedElement() { + return (EReference)gaWorkloadEventEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EClass getGaScenario() { + return gaScenarioEClass; + } + + /** + * + * + * @generated + */ + public EReference getGaScenario_Cause() { + return (EReference)gaScenarioEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getGaScenario_HostDemand() { + return (EAttribute)gaScenarioEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getGaScenario_HostDemandOps() { + return (EAttribute)gaScenarioEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getGaScenario_InterOccT() { + return (EAttribute)gaScenarioEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getGaScenario_Throughput() { + return (EAttribute)gaScenarioEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getGaScenario_RespT() { + return (EAttribute)gaScenarioEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getGaScenario_Utilization() { + return (EAttribute)gaScenarioEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EAttribute getGaScenario_UtilizationOnHost() { + return (EAttribute)gaScenarioEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EReference getGaScenario_Root() { + return (EReference)gaScenarioEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + public EReference getGaScenario_Steps() { + return (EReference)gaScenarioEClass.getEStructuralFeatures().get(9); + } + + /** + * + * + * @generated + */ + public EReference getGaScenario_ParentStep() { + return (EReference)gaScenarioEClass.getEStructuralFeatures().get(10); + } + + /** + * + * + * @generated + */ + public EReference getGaScenario_Timing() { + return (EReference)gaScenarioEClass.getEStructuralFeatures().get(11); + } + + /** + * + * + * @generated + */ + public EClass getGaStep() { + return gaStepEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getGaStep_IsAtomic() { + return (EAttribute)gaStepEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getGaStep_BlockT() { + return (EAttribute)gaStepEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getGaStep_Rep() { + return (EAttribute)gaStepEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getGaStep_Prob() { + return (EAttribute)gaStepEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getGaStep_Priority() { + return (EAttribute)gaStepEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EReference getGaStep_ConcurRes() { + return (EReference)gaStepEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EReference getGaStep_Host() { + return (EReference)gaStepEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EReference getGaStep_ServDemand() { + return (EReference)gaStepEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EAttribute getGaStep_ServCount() { + return (EAttribute)gaStepEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + public EAttribute getGaStep_SelfDelay() { + return (EAttribute)gaStepEClass.getEStructuralFeatures().get(9); + } + + /** + * + * + * @generated + */ + public EReference getGaStep_Scenario() { + return (EReference)gaStepEClass.getEStructuralFeatures().get(10); + } + + /** + * + * + * @generated + */ + public EReference getGaStep_ChildScenario() { + return (EReference)gaStepEClass.getEStructuralFeatures().get(11); + } + + /** + * + * + * @generated + */ + public EClass getGaExecHost() { + return gaExecHostEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getGaExecHost_CommTxOvh() { + return (EAttribute)gaExecHostEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getGaExecHost_CommRcvOvh() { + return (EAttribute)gaExecHostEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getGaExecHost_CntxtSwT() { + return (EAttribute)gaExecHostEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getGaExecHost_ClockOvh() { + return (EAttribute)gaExecHostEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getGaExecHost_SchedPriRange() { + return (EAttribute)gaExecHostEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getGaExecHost_MemSize() { + return (EAttribute)gaExecHostEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getGaExecHost_Utilization() { + return (EAttribute)gaExecHostEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EAttribute getGaExecHost_Throughput() { + return (EAttribute)gaExecHostEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EClass getGaRequestedService() { + return gaRequestedServiceEClass; + } + + /** + * + * + * @generated + */ + public EReference getGaRequestedService_Base_Operation() { + return (EReference)gaRequestedServiceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getGaTimedObs() { + return gaTimedObsEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getGaTimedObs_Laxity() { + return (EAttribute)gaTimedObsEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getGaTimedObs_StartObs() { + return (EReference)gaTimedObsEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getGaTimedObs_EndObs() { + return (EReference)gaTimedObsEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getGaCommStep() { + return gaCommStepEClass; + } + + /** + * + * + * @generated + */ + public EClass getGaAcqStep() { + return gaAcqStepEClass; + } + + /** + * + * + * @generated + */ + public EReference getGaAcqStep_AcqRes() { + return (EReference)gaAcqStepEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getGaAcqStep_ResUnits() { + return (EAttribute)gaAcqStepEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getGaRelStep() { + return gaRelStepEClass; + } + + /** + * + * + * @generated + */ + public EReference getGaRelStep_RelRes() { + return (EReference)gaRelStepEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getGaRelStep_ResUnits() { + return (EAttribute)gaRelStepEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getGaLatencyObs() { + return gaLatencyObsEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getGaLatencyObs_Latency() { + return (EAttribute)gaLatencyObsEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getGaLatencyObs_Miss() { + return (EAttribute)gaLatencyObsEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getGaLatencyObs_Utility() { + return (EAttribute)gaLatencyObsEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getGaLatencyObs_MaxJitter() { + return (EAttribute)gaLatencyObsEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EClass getGaCommHost() { + return gaCommHostEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getGaCommHost_Throughput() { + return (EAttribute)gaCommHostEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getGaCommHost_Utilization() { + return (EAttribute)gaCommHostEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getGaCommChannel() { + return gaCommChannelEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getGaCommChannel_PacketSize() { + return (EAttribute)gaCommChannelEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getGaCommChannel_Utilization() { + return (EAttribute)gaCommChannelEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getGaWorkloadBehavior() { + return gaWorkloadBehaviorEClass; + } + + /** + * + * + * @generated + */ + public EReference getGaWorkloadBehavior_Behavior() { + return (EReference)gaWorkloadBehaviorEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getGaWorkloadBehavior_Demand() { + return (EReference)gaWorkloadBehaviorEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getGaWorkloadBehavior_Base_NamedElement() { + return (EReference)gaWorkloadBehaviorEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getGaAnalysisContext() { + return gaAnalysisContextEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getGaAnalysisContext_Context() { + return (EAttribute)gaAnalysisContextEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getGaAnalysisContext_Workload() { + return (EReference)gaAnalysisContextEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getGaAnalysisContext_Platform() { + return (EReference)gaAnalysisContextEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getGaResourcesPlatform() { + return gaResourcesPlatformEClass; + } + + /** + * + * + * @generated + */ + public EReference getGaResourcesPlatform_Resources() { + return (EReference)gaResourcesPlatformEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getGaResourcesPlatform_Base_Classifier() { + return (EReference)gaResourcesPlatformEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EEnum getLaxityKind() { + return laxityKindEEnum; + } + + /** + * + * + * @generated + */ + public GQAMFactory getGQAMFactory() { + return (GQAMFactory)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 + gaWorkloadGeneratorEClass = createEClass(GA_WORKLOAD_GENERATOR); + createEAttribute(gaWorkloadGeneratorEClass, GA_WORKLOAD_GENERATOR__POP); + createEReference(gaWorkloadGeneratorEClass, GA_WORKLOAD_GENERATOR__BASE_BEHAVIOR); + + gaEventTraceEClass = createEClass(GA_EVENT_TRACE); + createEAttribute(gaEventTraceEClass, GA_EVENT_TRACE__CONTENT); + createEAttribute(gaEventTraceEClass, GA_EVENT_TRACE__FORMAT); + createEAttribute(gaEventTraceEClass, GA_EVENT_TRACE__LOCATION); + createEReference(gaEventTraceEClass, GA_EVENT_TRACE__BASE_NAMED_ELEMENT); + + gaWorkloadEventEClass = createEClass(GA_WORKLOAD_EVENT); + createEAttribute(gaWorkloadEventEClass, GA_WORKLOAD_EVENT__PATTERN); + createEReference(gaWorkloadEventEClass, GA_WORKLOAD_EVENT__GENERATOR); + createEReference(gaWorkloadEventEClass, GA_WORKLOAD_EVENT__TRACE); + createEReference(gaWorkloadEventEClass, GA_WORKLOAD_EVENT__EFFECT); + createEReference(gaWorkloadEventEClass, GA_WORKLOAD_EVENT__TIMED_EVENT); + createEReference(gaWorkloadEventEClass, GA_WORKLOAD_EVENT__BASE_NAMED_ELEMENT); + + gaScenarioEClass = createEClass(GA_SCENARIO); + createEReference(gaScenarioEClass, GA_SCENARIO__CAUSE); + createEAttribute(gaScenarioEClass, GA_SCENARIO__HOST_DEMAND); + createEAttribute(gaScenarioEClass, GA_SCENARIO__HOST_DEMAND_OPS); + createEAttribute(gaScenarioEClass, GA_SCENARIO__INTER_OCC_T); + createEAttribute(gaScenarioEClass, GA_SCENARIO__THROUGHPUT); + createEAttribute(gaScenarioEClass, GA_SCENARIO__RESP_T); + createEAttribute(gaScenarioEClass, GA_SCENARIO__UTILIZATION); + createEAttribute(gaScenarioEClass, GA_SCENARIO__UTILIZATION_ON_HOST); + createEReference(gaScenarioEClass, GA_SCENARIO__ROOT); + createEReference(gaScenarioEClass, GA_SCENARIO__STEPS); + createEReference(gaScenarioEClass, GA_SCENARIO__PARENT_STEP); + createEReference(gaScenarioEClass, GA_SCENARIO__TIMING); + + gaStepEClass = createEClass(GA_STEP); + createEAttribute(gaStepEClass, GA_STEP__IS_ATOMIC); + createEAttribute(gaStepEClass, GA_STEP__BLOCK_T); + createEAttribute(gaStepEClass, GA_STEP__REP); + createEAttribute(gaStepEClass, GA_STEP__PROB); + createEAttribute(gaStepEClass, GA_STEP__PRIORITY); + createEReference(gaStepEClass, GA_STEP__CONCUR_RES); + createEReference(gaStepEClass, GA_STEP__HOST); + createEReference(gaStepEClass, GA_STEP__SERV_DEMAND); + createEAttribute(gaStepEClass, GA_STEP__SERV_COUNT); + createEAttribute(gaStepEClass, GA_STEP__SELF_DELAY); + createEReference(gaStepEClass, GA_STEP__SCENARIO); + createEReference(gaStepEClass, GA_STEP__CHILD_SCENARIO); + + gaExecHostEClass = createEClass(GA_EXEC_HOST); + createEAttribute(gaExecHostEClass, GA_EXEC_HOST__COMM_TX_OVH); + createEAttribute(gaExecHostEClass, GA_EXEC_HOST__COMM_RCV_OVH); + createEAttribute(gaExecHostEClass, GA_EXEC_HOST__CNTXT_SW_T); + createEAttribute(gaExecHostEClass, GA_EXEC_HOST__CLOCK_OVH); + createEAttribute(gaExecHostEClass, GA_EXEC_HOST__SCHED_PRI_RANGE); + createEAttribute(gaExecHostEClass, GA_EXEC_HOST__MEM_SIZE); + createEAttribute(gaExecHostEClass, GA_EXEC_HOST__UTILIZATION); + createEAttribute(gaExecHostEClass, GA_EXEC_HOST__THROUGHPUT); + + gaRequestedServiceEClass = createEClass(GA_REQUESTED_SERVICE); + createEReference(gaRequestedServiceEClass, GA_REQUESTED_SERVICE__BASE_OPERATION); + + gaTimedObsEClass = createEClass(GA_TIMED_OBS); + createEAttribute(gaTimedObsEClass, GA_TIMED_OBS__LAXITY); + createEReference(gaTimedObsEClass, GA_TIMED_OBS__START_OBS); + createEReference(gaTimedObsEClass, GA_TIMED_OBS__END_OBS); + + gaCommStepEClass = createEClass(GA_COMM_STEP); + + gaAcqStepEClass = createEClass(GA_ACQ_STEP); + createEReference(gaAcqStepEClass, GA_ACQ_STEP__ACQ_RES); + createEAttribute(gaAcqStepEClass, GA_ACQ_STEP__RES_UNITS); + + gaRelStepEClass = createEClass(GA_REL_STEP); + createEReference(gaRelStepEClass, GA_REL_STEP__REL_RES); + createEAttribute(gaRelStepEClass, GA_REL_STEP__RES_UNITS); + + gaLatencyObsEClass = createEClass(GA_LATENCY_OBS); + createEAttribute(gaLatencyObsEClass, GA_LATENCY_OBS__LATENCY); + createEAttribute(gaLatencyObsEClass, GA_LATENCY_OBS__MISS); + createEAttribute(gaLatencyObsEClass, GA_LATENCY_OBS__UTILITY); + createEAttribute(gaLatencyObsEClass, GA_LATENCY_OBS__MAX_JITTER); + + gaCommHostEClass = createEClass(GA_COMM_HOST); + createEAttribute(gaCommHostEClass, GA_COMM_HOST__THROUGHPUT); + createEAttribute(gaCommHostEClass, GA_COMM_HOST__UTILIZATION); + + gaCommChannelEClass = createEClass(GA_COMM_CHANNEL); + createEAttribute(gaCommChannelEClass, GA_COMM_CHANNEL__PACKET_SIZE); + createEAttribute(gaCommChannelEClass, GA_COMM_CHANNEL__UTILIZATION); + + gaWorkloadBehaviorEClass = createEClass(GA_WORKLOAD_BEHAVIOR); + createEReference(gaWorkloadBehaviorEClass, GA_WORKLOAD_BEHAVIOR__BEHAVIOR); + createEReference(gaWorkloadBehaviorEClass, GA_WORKLOAD_BEHAVIOR__DEMAND); + createEReference(gaWorkloadBehaviorEClass, GA_WORKLOAD_BEHAVIOR__BASE_NAMED_ELEMENT); + + gaAnalysisContextEClass = createEClass(GA_ANALYSIS_CONTEXT); + createEAttribute(gaAnalysisContextEClass, GA_ANALYSIS_CONTEXT__CONTEXT); + createEReference(gaAnalysisContextEClass, GA_ANALYSIS_CONTEXT__WORKLOAD); + createEReference(gaAnalysisContextEClass, GA_ANALYSIS_CONTEXT__PLATFORM); + + gaResourcesPlatformEClass = createEClass(GA_RESOURCES_PLATFORM); + createEReference(gaResourcesPlatformEClass, GA_RESOURCES_PLATFORM__RESOURCES); + createEReference(gaResourcesPlatformEClass, GA_RESOURCES_PLATFORM__BASE_CLASSIFIER); + + // Create enums + laxityKindEEnum = createEEnum(LAXITY_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); + + // Obtain other dependent packages + BasicNFP_TypesPackage theBasicNFP_TypesPackage = (BasicNFP_TypesPackage)EPackage.Registry.INSTANCE.getEPackage(BasicNFP_TypesPackage.eNS_URI); + UMLPackage theUMLPackage = (UMLPackage)EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI); + MARTE_PrimitivesTypesPackage theMARTE_PrimitivesTypesPackage = (MARTE_PrimitivesTypesPackage)EPackage.Registry.INSTANCE.getEPackage(MARTE_PrimitivesTypesPackage.eNS_URI); + GRMPackage theGRMPackage = (GRMPackage)EPackage.Registry.INSTANCE.getEPackage(GRMPackage.eNS_URI); + TimePackage theTimePackage = (TimePackage)EPackage.Registry.INSTANCE.getEPackage(TimePackage.eNS_URI); + MARTE_DataTypesPackage theMARTE_DataTypesPackage = (MARTE_DataTypesPackage)EPackage.Registry.INSTANCE.getEPackage(MARTE_DataTypesPackage.eNS_URI); + NFPsPackage theNFPsPackage = (NFPsPackage)EPackage.Registry.INSTANCE.getEPackage(NFPsPackage.eNS_URI); + CoreElementsPackage theCoreElementsPackage = (CoreElementsPackage)EPackage.Registry.INSTANCE.getEPackage(CoreElementsPackage.eNS_URI); + VariablesPackage theVariablesPackage = (VariablesPackage)EPackage.Registry.INSTANCE.getEPackage(VariablesPackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + gaScenarioEClass.getESuperTypes().add(theGRMPackage.getResourceUsage()); + gaScenarioEClass.getESuperTypes().add(theTimePackage.getTimedProcessing()); + gaStepEClass.getESuperTypes().add(this.getGaScenario()); + gaExecHostEClass.getESuperTypes().add(theGRMPackage.getScheduler()); + gaExecHostEClass.getESuperTypes().add(theGRMPackage.getComputingResource()); + gaRequestedServiceEClass.getESuperTypes().add(this.getGaStep()); + gaTimedObsEClass.getESuperTypes().add(theNFPsPackage.getNfpConstraint()); + gaCommStepEClass.getESuperTypes().add(this.getGaStep()); + gaAcqStepEClass.getESuperTypes().add(this.getGaStep()); + gaRelStepEClass.getESuperTypes().add(this.getGaStep()); + gaLatencyObsEClass.getESuperTypes().add(this.getGaTimedObs()); + gaCommHostEClass.getESuperTypes().add(theGRMPackage.getCommunicationMedia()); + gaCommHostEClass.getESuperTypes().add(theGRMPackage.getScheduler()); + gaCommChannelEClass.getESuperTypes().add(theGRMPackage.getSchedulableResource()); + gaAnalysisContextEClass.getESuperTypes().add(theCoreElementsPackage.getConfiguration()); + gaAnalysisContextEClass.getESuperTypes().add(theVariablesPackage.getExpressionContext()); + + // Initialize classes and features; add operations and parameters + initEClass(gaWorkloadGeneratorEClass, GaWorkloadGenerator.class, "GaWorkloadGenerator", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getGaWorkloadGenerator_Pop(), theBasicNFP_TypesPackage.getNFP_Integer(), "pop", "1", 0, 1, GaWorkloadGenerator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getGaWorkloadGenerator_Base_Behavior(), theUMLPackage.getBehavior(), null, "base_Behavior", null, 1, 1, GaWorkloadGenerator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(gaEventTraceEClass, GaEventTrace.class, "GaEventTrace", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getGaEventTrace_Content(), theMARTE_PrimitivesTypesPackage.getString(), "content", null, 0, 1, GaEventTrace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getGaEventTrace_Format(), theMARTE_PrimitivesTypesPackage.getString(), "format", null, 0, 1, GaEventTrace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getGaEventTrace_Location(), theMARTE_PrimitivesTypesPackage.getString(), "location", null, 0, 1, GaEventTrace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getGaEventTrace_Base_NamedElement(), theUMLPackage.getNamedElement(), null, "base_NamedElement", null, 1, 1, GaEventTrace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(gaWorkloadEventEClass, GaWorkloadEvent.class, "GaWorkloadEvent", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getGaWorkloadEvent_Pattern(), theBasicNFP_TypesPackage.getArrivalPattern(), "pattern", null, 0, 1, GaWorkloadEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getGaWorkloadEvent_Generator(), this.getGaWorkloadGenerator(), null, "generator", null, 0, 1, GaWorkloadEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getGaWorkloadEvent_Trace(), this.getGaEventTrace(), null, "trace", null, 0, 1, GaWorkloadEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getGaWorkloadEvent_Effect(), this.getGaScenario(), null, "effect", null, 0, 1, GaWorkloadEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getGaWorkloadEvent_TimedEvent(), theUMLPackage.getTimeEvent(), null, "timedEvent", null, 0, 1, GaWorkloadEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getGaWorkloadEvent_Base_NamedElement(), theUMLPackage.getNamedElement(), null, "base_NamedElement", null, 1, 1, GaWorkloadEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(gaScenarioEClass, GaScenario.class, "GaScenario", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getGaScenario_Cause(), this.getGaWorkloadEvent(), null, "cause", null, 0, 1, GaScenario.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getGaScenario_HostDemand(), theBasicNFP_TypesPackage.getNFP_Duration(), "hostDemand", null, 0, -1, GaScenario.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getGaScenario_HostDemandOps(), theBasicNFP_TypesPackage.getNFP_Real(), "hostDemandOps", null, 0, -1, GaScenario.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getGaScenario_InterOccT(), theBasicNFP_TypesPackage.getNFP_Duration(), "interOccT", null, 0, -1, GaScenario.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getGaScenario_Throughput(), theBasicNFP_TypesPackage.getNFP_Frequency(), "throughput", null, 0, -1, GaScenario.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getGaScenario_RespT(), theBasicNFP_TypesPackage.getNFP_Duration(), "respT", null, 0, -1, GaScenario.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getGaScenario_Utilization(), theBasicNFP_TypesPackage.getNFP_Real(), "utilization", null, 0, -1, GaScenario.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getGaScenario_UtilizationOnHost(), theBasicNFP_TypesPackage.getNFP_Real(), "utilizationOnHost", null, 0, -1, GaScenario.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getGaScenario_Root(), this.getGaStep(), null, "root", null, 0, 1, GaScenario.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getGaScenario_Steps(), this.getGaStep(), this.getGaStep_Scenario(), "steps", null, 1, -1, GaScenario.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getGaScenario_ParentStep(), this.getGaStep(), this.getGaStep_ChildScenario(), "parentStep", null, 1, -1, GaScenario.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getGaScenario_Timing(), this.getGaTimedObs(), null, "timing", null, 0, -1, GaScenario.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(gaStepEClass, GaStep.class, "GaStep", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getGaStep_IsAtomic(), theBasicNFP_TypesPackage.getNFP_Boolean(), "isAtomic", null, 0, 1, GaStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getGaStep_BlockT(), theBasicNFP_TypesPackage.getNFP_Duration(), "blockT", null, 0, 1, GaStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getGaStep_Rep(), theBasicNFP_TypesPackage.getNFP_Real(), "rep", "1.0", 0, 1, GaStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getGaStep_Prob(), theBasicNFP_TypesPackage.getNFP_Real(), "prob", "1.0", 0, 1, GaStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getGaStep_Priority(), theBasicNFP_TypesPackage.getNFP_Integer(), "priority", null, 0, 1, GaStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getGaStep_ConcurRes(), theGRMPackage.getSchedulableResource(), null, "concurRes", null, 0, 1, GaStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getGaStep_Host(), this.getGaExecHost(), null, "host", null, 0, 1, GaStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getGaStep_ServDemand(), this.getGaRequestedService(), null, "servDemand", null, 0, -1, GaStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getGaStep_ServCount(), theBasicNFP_TypesPackage.getNFP_Real(), "servCount", null, 0, -1, GaStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getGaStep_SelfDelay(), theBasicNFP_TypesPackage.getNFP_Duration(), "selfDelay", null, 0, 1, GaStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getGaStep_Scenario(), this.getGaScenario(), this.getGaScenario_Steps(), "scenario", null, 0, 1, GaStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getGaStep_ChildScenario(), this.getGaScenario(), this.getGaScenario_ParentStep(), "childScenario", null, 0, 1, GaStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(gaExecHostEClass, GaExecHost.class, "GaExecHost", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getGaExecHost_CommTxOvh(), theBasicNFP_TypesPackage.getNFP_Duration(), "commTxOvh", null, 0, 1, GaExecHost.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getGaExecHost_CommRcvOvh(), theBasicNFP_TypesPackage.getNFP_Duration(), "commRcvOvh", null, 0, 1, GaExecHost.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getGaExecHost_CntxtSwT(), theBasicNFP_TypesPackage.getNFP_Duration(), "cntxtSwT", null, 0, 1, GaExecHost.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getGaExecHost_ClockOvh(), theBasicNFP_TypesPackage.getNFP_Duration(), "clockOvh", null, 0, 1, GaExecHost.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getGaExecHost_SchedPriRange(), theMARTE_DataTypesPackage.getIntegerInterval(), "schedPriRange", null, 0, 1, GaExecHost.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getGaExecHost_MemSize(), theBasicNFP_TypesPackage.getNFP_DataSize(), "memSize", null, 0, 1, GaExecHost.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getGaExecHost_Utilization(), theBasicNFP_TypesPackage.getNFP_Real(), "utilization", null, 0, -1, GaExecHost.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getGaExecHost_Throughput(), theBasicNFP_TypesPackage.getNFP_Frequency(), "throughput", null, 0, -1, GaExecHost.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(gaRequestedServiceEClass, GaRequestedService.class, "GaRequestedService", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getGaRequestedService_Base_Operation(), theUMLPackage.getOperation(), null, "base_Operation", null, 1, 1, GaRequestedService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(gaTimedObsEClass, GaTimedObs.class, "GaTimedObs", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getGaTimedObs_Laxity(), this.getLaxityKind(), "laxity", null, 0, 1, GaTimedObs.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getGaTimedObs_StartObs(), theUMLPackage.getTimeObservation(), null, "startObs", null, 0, -1, GaTimedObs.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getGaTimedObs_EndObs(), theUMLPackage.getTimeObservation(), null, "endObs", null, 0, -1, GaTimedObs.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(gaCommStepEClass, GaCommStep.class, "GaCommStep", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(gaAcqStepEClass, GaAcqStep.class, "GaAcqStep", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getGaAcqStep_AcqRes(), theGRMPackage.getResource(), null, "acqRes", null, 0, 1, GaAcqStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getGaAcqStep_ResUnits(), theBasicNFP_TypesPackage.getNFP_Integer(), "resUnits", "1", 0, 1, GaAcqStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(gaRelStepEClass, GaRelStep.class, "GaRelStep", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getGaRelStep_RelRes(), theGRMPackage.getResource(), null, "relRes", null, 0, 1, GaRelStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getGaRelStep_ResUnits(), theBasicNFP_TypesPackage.getNFP_Integer(), "resUnits", "1", 0, 1, GaRelStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(gaLatencyObsEClass, GaLatencyObs.class, "GaLatencyObs", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getGaLatencyObs_Latency(), theBasicNFP_TypesPackage.getNFP_Duration(), "latency", null, 0, -1, GaLatencyObs.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getGaLatencyObs_Miss(), theBasicNFP_TypesPackage.getNFP_Real(), "miss", null, 0, -1, GaLatencyObs.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getGaLatencyObs_Utility(), theMARTE_DataTypesPackage.getUtilityType(), "utility", null, 0, -1, GaLatencyObs.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getGaLatencyObs_MaxJitter(), theBasicNFP_TypesPackage.getNFP_Duration(), "maxJitter", null, 0, -1, GaLatencyObs.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(gaCommHostEClass, GaCommHost.class, "GaCommHost", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getGaCommHost_Throughput(), theBasicNFP_TypesPackage.getNFP_Frequency(), "throughput", null, 0, -1, GaCommHost.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getGaCommHost_Utilization(), theBasicNFP_TypesPackage.getNFP_Real(), "utilization", null, 0, -1, GaCommHost.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(gaCommChannelEClass, GaCommChannel.class, "GaCommChannel", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getGaCommChannel_PacketSize(), theBasicNFP_TypesPackage.getNFP_DataSize(), "packetSize", null, 0, 1, GaCommChannel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getGaCommChannel_Utilization(), theBasicNFP_TypesPackage.getNFP_Real(), "utilization", null, 0, 1, GaCommChannel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(gaWorkloadBehaviorEClass, GaWorkloadBehavior.class, "GaWorkloadBehavior", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getGaWorkloadBehavior_Behavior(), this.getGaScenario(), null, "behavior", null, 0, -1, GaWorkloadBehavior.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getGaWorkloadBehavior_Demand(), this.getGaWorkloadEvent(), null, "demand", null, 0, -1, GaWorkloadBehavior.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getGaWorkloadBehavior_Base_NamedElement(), theUMLPackage.getNamedElement(), null, "base_NamedElement", null, 1, 1, GaWorkloadBehavior.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(gaAnalysisContextEClass, GaAnalysisContext.class, "GaAnalysisContext", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getGaAnalysisContext_Context(), theBasicNFP_TypesPackage.getNFP_String(), "context", null, 0, -1, GaAnalysisContext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getGaAnalysisContext_Workload(), this.getGaWorkloadBehavior(), null, "workload", null, 1, -1, GaAnalysisContext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getGaAnalysisContext_Platform(), this.getGaResourcesPlatform(), null, "platform", null, 1, -1, GaAnalysisContext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(gaResourcesPlatformEClass, GaResourcesPlatform.class, "GaResourcesPlatform", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getGaResourcesPlatform_Resources(), theGRMPackage.getResource(), null, "resources", null, 0, -1, GaResourcesPlatform.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getGaResourcesPlatform_Base_Classifier(), theUMLPackage.getClassifier(), null, "base_Classifier", null, 1, 1, GaResourcesPlatform.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + // Initialize enums and add enum literals + initEEnum(laxityKindEEnum, LaxityKind.class, "LaxityKind"); + addEEnumLiteral(laxityKindEEnum, LaxityKind.HARD); + addEEnumLiteral(laxityKindEEnum, LaxityKind.SOFT); + addEEnumLiteral(laxityKindEEnum, LaxityKind.OTHER); + } + +} //GQAMPackageImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaAcqStepImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaAcqStepImpl.java new file mode 100644 index 00000000000..7f9316023b2 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaAcqStepImpl.java @@ -0,0 +1,236 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.GQAM.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaAcqStep; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource; + +/** + * + * An implementation of the model object 'Ga Acq Step'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaAcqStepImpl#getAcqRes Acq Res}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaAcqStepImpl#getResUnits Res Units}
  • + *
+ *

+ * + * @generated + */ +public class GaAcqStepImpl extends GaStepImpl implements GaAcqStep { + /** + * The cached value of the '{@link #getAcqRes() Acq Res}' reference. + * + * + * @see #getAcqRes() + * @generated + * @ordered + */ + protected Resource acqRes; + + /** + * The default value of the '{@link #getResUnits() Res Units}' attribute. + * + * + * @see #getResUnits() + * @generated + * @ordered + */ + protected static final String RES_UNITS_EDEFAULT = "1"; + + /** + * The cached value of the '{@link #getResUnits() Res Units}' attribute. + * + * + * @see #getResUnits() + * @generated + * @ordered + */ + protected String resUnits = RES_UNITS_EDEFAULT; + + /** + * + * + * @generated + */ + protected GaAcqStepImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return GQAMPackage.Literals.GA_ACQ_STEP; + } + + /** + * + * + * @generated + */ + public Resource getAcqRes() { + if (acqRes != null && acqRes.eIsProxy()) { + InternalEObject oldAcqRes = (InternalEObject)acqRes; + acqRes = (Resource)eResolveProxy(oldAcqRes); + if (acqRes != oldAcqRes) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GQAMPackage.GA_ACQ_STEP__ACQ_RES, oldAcqRes, acqRes)); + } + } + return acqRes; + } + + /** + * + * + * @generated + */ + public Resource basicGetAcqRes() { + return acqRes; + } + + /** + * + * + * @generated + */ + public void setAcqRes(Resource newAcqRes) { + Resource oldAcqRes = acqRes; + acqRes = newAcqRes; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_ACQ_STEP__ACQ_RES, oldAcqRes, acqRes)); + } + + /** + * + * + * @generated + */ + public String getResUnits() { + return resUnits; + } + + /** + * + * + * @generated + */ + public void setResUnits(String newResUnits) { + String oldResUnits = resUnits; + resUnits = newResUnits; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_ACQ_STEP__RES_UNITS, oldResUnits, resUnits)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case GQAMPackage.GA_ACQ_STEP__ACQ_RES: + if (resolve) return getAcqRes(); + return basicGetAcqRes(); + case GQAMPackage.GA_ACQ_STEP__RES_UNITS: + return getResUnits(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case GQAMPackage.GA_ACQ_STEP__ACQ_RES: + setAcqRes((Resource)newValue); + return; + case GQAMPackage.GA_ACQ_STEP__RES_UNITS: + setResUnits((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case GQAMPackage.GA_ACQ_STEP__ACQ_RES: + setAcqRes((Resource)null); + return; + case GQAMPackage.GA_ACQ_STEP__RES_UNITS: + setResUnits(RES_UNITS_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case GQAMPackage.GA_ACQ_STEP__ACQ_RES: + return acqRes != null; + case GQAMPackage.GA_ACQ_STEP__RES_UNITS: + return RES_UNITS_EDEFAULT == null ? resUnits != null : !RES_UNITS_EDEFAULT.equals(resUnits); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (resUnits: "); + result.append(resUnits); + result.append(')'); + return result.toString(); + } + +} //GaAcqStepImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaAnalysisContextImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaAnalysisContextImpl.java new file mode 100644 index 00000000000..437b3ac5f7f --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaAnalysisContextImpl.java @@ -0,0 +1,333 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.GQAM.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EDataTypeUniqueEList; +import org.eclipse.emf.ecore.util.EObjectResolvingEList; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaAnalysisContext; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaResourcesPlatform; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadBehavior; + +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.ExpressionContext; +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.VariablesPackage; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.impl.ConfigurationImpl; + +import org.eclipse.uml2.uml.NamedElement; + +/** + * + * An implementation of the model object 'Ga Analysis Context'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaAnalysisContextImpl#getBase_NamedElement Base Named Element}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaAnalysisContextImpl#getContext Context}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaAnalysisContextImpl#getWorkload Workload}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaAnalysisContextImpl#getPlatform Platform}
  • + *
+ *

+ * + * @generated + */ +public class GaAnalysisContextImpl extends ConfigurationImpl implements GaAnalysisContext { + /** + * The cached value of the '{@link #getBase_NamedElement() Base Named Element}' reference. + * + * + * @see #getBase_NamedElement() + * @generated + * @ordered + */ + protected NamedElement base_NamedElement; + + /** + * The cached value of the '{@link #getContext() Context}' attribute list. + * + * + * @see #getContext() + * @generated + * @ordered + */ + protected EList context; + + /** + * The cached value of the '{@link #getWorkload() Workload}' reference list. + * + * + * @see #getWorkload() + * @generated + * @ordered + */ + protected EList workload; + + /** + * The cached value of the '{@link #getPlatform() Platform}' reference list. + * + * + * @see #getPlatform() + * @generated + * @ordered + */ + protected EList platform; + + /** + * + * + * @generated + */ + protected GaAnalysisContextImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return GQAMPackage.Literals.GA_ANALYSIS_CONTEXT; + } + + /** + * + * + * @generated + */ + public NamedElement getBase_NamedElement() { + if (base_NamedElement != null && base_NamedElement.eIsProxy()) { + InternalEObject oldBase_NamedElement = (InternalEObject)base_NamedElement; + base_NamedElement = (NamedElement)eResolveProxy(oldBase_NamedElement); + if (base_NamedElement != oldBase_NamedElement) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GQAMPackage.GA_ANALYSIS_CONTEXT__BASE_NAMED_ELEMENT, oldBase_NamedElement, base_NamedElement)); + } + } + return base_NamedElement; + } + + /** + * + * + * @generated + */ + public NamedElement basicGetBase_NamedElement() { + return base_NamedElement; + } + + /** + * + * + * @generated + */ + public void setBase_NamedElement(NamedElement newBase_NamedElement) { + NamedElement oldBase_NamedElement = base_NamedElement; + base_NamedElement = newBase_NamedElement; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_ANALYSIS_CONTEXT__BASE_NAMED_ELEMENT, oldBase_NamedElement, base_NamedElement)); + } + + /** + * + * + * @generated + */ + public EList getContext() { + if (context == null) { + context = new EDataTypeUniqueEList(String.class, this, GQAMPackage.GA_ANALYSIS_CONTEXT__CONTEXT); + } + return context; + } + + /** + * + * + * @generated + */ + public EList getWorkload() { + if (workload == null) { + workload = new EObjectResolvingEList(GaWorkloadBehavior.class, this, GQAMPackage.GA_ANALYSIS_CONTEXT__WORKLOAD); + } + return workload; + } + + /** + * + * + * @generated + */ + public EList getPlatform() { + if (platform == null) { + platform = new EObjectResolvingEList(GaResourcesPlatform.class, this, GQAMPackage.GA_ANALYSIS_CONTEXT__PLATFORM); + } + return platform; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case GQAMPackage.GA_ANALYSIS_CONTEXT__BASE_NAMED_ELEMENT: + if (resolve) return getBase_NamedElement(); + return basicGetBase_NamedElement(); + case GQAMPackage.GA_ANALYSIS_CONTEXT__CONTEXT: + return getContext(); + case GQAMPackage.GA_ANALYSIS_CONTEXT__WORKLOAD: + return getWorkload(); + case GQAMPackage.GA_ANALYSIS_CONTEXT__PLATFORM: + return getPlatform(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case GQAMPackage.GA_ANALYSIS_CONTEXT__BASE_NAMED_ELEMENT: + setBase_NamedElement((NamedElement)newValue); + return; + case GQAMPackage.GA_ANALYSIS_CONTEXT__CONTEXT: + getContext().clear(); + getContext().addAll((Collection)newValue); + return; + case GQAMPackage.GA_ANALYSIS_CONTEXT__WORKLOAD: + getWorkload().clear(); + getWorkload().addAll((Collection)newValue); + return; + case GQAMPackage.GA_ANALYSIS_CONTEXT__PLATFORM: + getPlatform().clear(); + getPlatform().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case GQAMPackage.GA_ANALYSIS_CONTEXT__BASE_NAMED_ELEMENT: + setBase_NamedElement((NamedElement)null); + return; + case GQAMPackage.GA_ANALYSIS_CONTEXT__CONTEXT: + getContext().clear(); + return; + case GQAMPackage.GA_ANALYSIS_CONTEXT__WORKLOAD: + getWorkload().clear(); + return; + case GQAMPackage.GA_ANALYSIS_CONTEXT__PLATFORM: + getPlatform().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case GQAMPackage.GA_ANALYSIS_CONTEXT__BASE_NAMED_ELEMENT: + return base_NamedElement != null; + case GQAMPackage.GA_ANALYSIS_CONTEXT__CONTEXT: + return context != null && !context.isEmpty(); + case GQAMPackage.GA_ANALYSIS_CONTEXT__WORKLOAD: + return workload != null && !workload.isEmpty(); + case GQAMPackage.GA_ANALYSIS_CONTEXT__PLATFORM: + return platform != null && !platform.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) { + if (baseClass == ExpressionContext.class) { + switch (derivedFeatureID) { + case GQAMPackage.GA_ANALYSIS_CONTEXT__BASE_NAMED_ELEMENT: return VariablesPackage.EXPRESSION_CONTEXT__BASE_NAMED_ELEMENT; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) { + if (baseClass == ExpressionContext.class) { + switch (baseFeatureID) { + case VariablesPackage.EXPRESSION_CONTEXT__BASE_NAMED_ELEMENT: return GQAMPackage.GA_ANALYSIS_CONTEXT__BASE_NAMED_ELEMENT; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (context: "); + result.append(context); + result.append(')'); + return result.toString(); + } + +} //GaAnalysisContextImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaCommChannelImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaCommChannelImpl.java new file mode 100644 index 00000000000..296c4ecdff7 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaCommChannelImpl.java @@ -0,0 +1,229 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.GQAM.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaCommChannel; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.SchedulableResourceImpl; + +/** + * + * An implementation of the model object 'Ga Comm Channel'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaCommChannelImpl#getPacketSize Packet Size}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaCommChannelImpl#getUtilization Utilization}
  • + *
+ *

+ * + * @generated + */ +public class GaCommChannelImpl extends SchedulableResourceImpl implements GaCommChannel { + /** + * The default value of the '{@link #getPacketSize() Packet Size}' attribute. + * + * + * @see #getPacketSize() + * @generated + * @ordered + */ + protected static final String PACKET_SIZE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPacketSize() Packet Size}' attribute. + * + * + * @see #getPacketSize() + * @generated + * @ordered + */ + protected String packetSize = PACKET_SIZE_EDEFAULT; + + /** + * The default value of the '{@link #getUtilization() Utilization}' attribute. + * + * + * @see #getUtilization() + * @generated + * @ordered + */ + protected static final String UTILIZATION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getUtilization() Utilization}' attribute. + * + * + * @see #getUtilization() + * @generated + * @ordered + */ + protected String utilization = UTILIZATION_EDEFAULT; + + /** + * + * + * @generated + */ + protected GaCommChannelImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return GQAMPackage.Literals.GA_COMM_CHANNEL; + } + + /** + * + * + * @generated + */ + public String getPacketSize() { + return packetSize; + } + + /** + * + * + * @generated + */ + public void setPacketSize(String newPacketSize) { + String oldPacketSize = packetSize; + packetSize = newPacketSize; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_COMM_CHANNEL__PACKET_SIZE, oldPacketSize, packetSize)); + } + + /** + * + * + * @generated + */ + public String getUtilization() { + return utilization; + } + + /** + * + * + * @generated + */ + public void setUtilization(String newUtilization) { + String oldUtilization = utilization; + utilization = newUtilization; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_COMM_CHANNEL__UTILIZATION, oldUtilization, utilization)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case GQAMPackage.GA_COMM_CHANNEL__PACKET_SIZE: + return getPacketSize(); + case GQAMPackage.GA_COMM_CHANNEL__UTILIZATION: + return getUtilization(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case GQAMPackage.GA_COMM_CHANNEL__PACKET_SIZE: + setPacketSize((String)newValue); + return; + case GQAMPackage.GA_COMM_CHANNEL__UTILIZATION: + setUtilization((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case GQAMPackage.GA_COMM_CHANNEL__PACKET_SIZE: + setPacketSize(PACKET_SIZE_EDEFAULT); + return; + case GQAMPackage.GA_COMM_CHANNEL__UTILIZATION: + setUtilization(UTILIZATION_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case GQAMPackage.GA_COMM_CHANNEL__PACKET_SIZE: + return PACKET_SIZE_EDEFAULT == null ? packetSize != null : !PACKET_SIZE_EDEFAULT.equals(packetSize); + case GQAMPackage.GA_COMM_CHANNEL__UTILIZATION: + return UTILIZATION_EDEFAULT == null ? utilization != null : !UTILIZATION_EDEFAULT.equals(utilization); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (packetSize: "); + result.append(packetSize); + result.append(", utilization: "); + result.append(utilization); + result.append(')'); + return result.toString(); + } + +} //GaCommChannelImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaCommHostImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaCommHostImpl.java new file mode 100644 index 00000000000..5357eaa33f6 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaCommHostImpl.java @@ -0,0 +1,671 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.GQAM.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EDataTypeUniqueEList; +import org.eclipse.emf.ecore.util.EObjectResolvingEList; +import org.eclipse.emf.ecore.util.EObjectWithInverseResolvingEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaCommHost; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ComputingResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.MutualExclusionResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ProcessingResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SchedulableResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.CommunicationMediaImpl; + +import org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.SchedPolicyKind; + +/** + * + * An implementation of the model object 'Ga Comm Host'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaCommHostImpl#isIsPreemptible Is Preemptible}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaCommHostImpl#getSchedPolicy Sched Policy}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaCommHostImpl#getOtherSchedPolicy Other Sched Policy}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaCommHostImpl#getSchedule Schedule}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaCommHostImpl#getProcessingUnits Processing Units}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaCommHostImpl#getHost Host}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaCommHostImpl#getProtectedSharedResources Protected Shared Resources}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaCommHostImpl#getSchedulableResources Schedulable Resources}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaCommHostImpl#getThroughput Throughput}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaCommHostImpl#getUtilization Utilization}
  • + *
+ *

+ * + * @generated + */ +public class GaCommHostImpl extends CommunicationMediaImpl implements GaCommHost { + /** + * The default value of the '{@link #isIsPreemptible() Is Preemptible}' attribute. + * + * + * @see #isIsPreemptible() + * @generated + * @ordered + */ + protected static final boolean IS_PREEMPTIBLE_EDEFAULT = true; + + /** + * The cached value of the '{@link #isIsPreemptible() Is Preemptible}' attribute. + * + * + * @see #isIsPreemptible() + * @generated + * @ordered + */ + protected boolean isPreemptible = IS_PREEMPTIBLE_EDEFAULT; + + /** + * The default value of the '{@link #getSchedPolicy() Sched Policy}' attribute. + * + * + * @see #getSchedPolicy() + * @generated + * @ordered + */ + protected static final SchedPolicyKind SCHED_POLICY_EDEFAULT = SchedPolicyKind.FIXED_PRIORITY; + + /** + * The cached value of the '{@link #getSchedPolicy() Sched Policy}' attribute. + * + * + * @see #getSchedPolicy() + * @generated + * @ordered + */ + protected SchedPolicyKind schedPolicy = SCHED_POLICY_EDEFAULT; + + /** + * The default value of the '{@link #getOtherSchedPolicy() Other Sched Policy}' attribute. + * + * + * @see #getOtherSchedPolicy() + * @generated + * @ordered + */ + protected static final String OTHER_SCHED_POLICY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getOtherSchedPolicy() Other Sched Policy}' attribute. + * + * + * @see #getOtherSchedPolicy() + * @generated + * @ordered + */ + protected String otherSchedPolicy = OTHER_SCHED_POLICY_EDEFAULT; + + /** + * The default value of the '{@link #getSchedule() Schedule}' attribute. + * + * + * @see #getSchedule() + * @generated + * @ordered + */ + protected static final String SCHEDULE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSchedule() Schedule}' attribute. + * + * + * @see #getSchedule() + * @generated + * @ordered + */ + protected String schedule = SCHEDULE_EDEFAULT; + + /** + * The cached value of the '{@link #getProcessingUnits() Processing Units}' reference list. + * + * + * @see #getProcessingUnits() + * @generated + * @ordered + */ + protected EList processingUnits; + + /** + * The cached value of the '{@link #getHost() Host}' reference. + * + * + * @see #getHost() + * @generated + * @ordered + */ + protected ComputingResource host; + + /** + * The cached value of the '{@link #getProtectedSharedResources() Protected Shared Resources}' reference list. + * + * + * @see #getProtectedSharedResources() + * @generated + * @ordered + */ + protected EList protectedSharedResources; + + /** + * The cached value of the '{@link #getSchedulableResources() Schedulable Resources}' reference list. + * + * + * @see #getSchedulableResources() + * @generated + * @ordered + */ + protected EList schedulableResources; + + /** + * The cached value of the '{@link #getThroughput() Throughput}' attribute list. + * + * + * @see #getThroughput() + * @generated + * @ordered + */ + protected EList throughput; + + /** + * The cached value of the '{@link #getUtilization() Utilization}' attribute list. + * + * + * @see #getUtilization() + * @generated + * @ordered + */ + protected EList utilization; + + /** + * + * + * @generated + */ + protected GaCommHostImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return GQAMPackage.Literals.GA_COMM_HOST; + } + + /** + * + * + * @generated + */ + public boolean isIsPreemptible() { + return isPreemptible; + } + + /** + * + * + * @generated + */ + public void setIsPreemptible(boolean newIsPreemptible) { + boolean oldIsPreemptible = isPreemptible; + isPreemptible = newIsPreemptible; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_COMM_HOST__IS_PREEMPTIBLE, oldIsPreemptible, isPreemptible)); + } + + /** + * + * + * @generated + */ + public SchedPolicyKind getSchedPolicy() { + return schedPolicy; + } + + /** + * + * + * @generated + */ + public void setSchedPolicy(SchedPolicyKind newSchedPolicy) { + SchedPolicyKind oldSchedPolicy = schedPolicy; + schedPolicy = newSchedPolicy == null ? SCHED_POLICY_EDEFAULT : newSchedPolicy; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_COMM_HOST__SCHED_POLICY, oldSchedPolicy, schedPolicy)); + } + + /** + * + * + * @generated + */ + public String getOtherSchedPolicy() { + return otherSchedPolicy; + } + + /** + * + * + * @generated + */ + public void setOtherSchedPolicy(String newOtherSchedPolicy) { + String oldOtherSchedPolicy = otherSchedPolicy; + otherSchedPolicy = newOtherSchedPolicy; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_COMM_HOST__OTHER_SCHED_POLICY, oldOtherSchedPolicy, otherSchedPolicy)); + } + + /** + * + * + * @generated + */ + public String getSchedule() { + return schedule; + } + + /** + * + * + * @generated + */ + public void setSchedule(String newSchedule) { + String oldSchedule = schedule; + schedule = newSchedule; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_COMM_HOST__SCHEDULE, oldSchedule, schedule)); + } + + /** + * + * + * @generated + */ + public EList getProcessingUnits() { + if (processingUnits == null) { + processingUnits = new EObjectResolvingEList(ProcessingResource.class, this, GQAMPackage.GA_COMM_HOST__PROCESSING_UNITS); + } + return processingUnits; + } + + /** + * + * + * @generated + */ + public ComputingResource getHost() { + if (host != null && host.eIsProxy()) { + InternalEObject oldHost = (InternalEObject)host; + host = (ComputingResource)eResolveProxy(oldHost); + if (host != oldHost) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GQAMPackage.GA_COMM_HOST__HOST, oldHost, host)); + } + } + return host; + } + + /** + * + * + * @generated + */ + public ComputingResource basicGetHost() { + return host; + } + + /** + * + * + * @generated + */ + public void setHost(ComputingResource newHost) { + ComputingResource oldHost = host; + host = newHost; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_COMM_HOST__HOST, oldHost, host)); + } + + /** + * + * + * @generated + */ + public EList getProtectedSharedResources() { + if (protectedSharedResources == null) { + protectedSharedResources = new EObjectWithInverseResolvingEList(MutualExclusionResource.class, this, GQAMPackage.GA_COMM_HOST__PROTECTED_SHARED_RESOURCES, GRMPackage.MUTUAL_EXCLUSION_RESOURCE__SCHEDULER); + } + return protectedSharedResources; + } + + /** + * + * + * @generated + */ + public EList getSchedulableResources() { + if (schedulableResources == null) { + schedulableResources = new EObjectWithInverseResolvingEList(SchedulableResource.class, this, GQAMPackage.GA_COMM_HOST__SCHEDULABLE_RESOURCES, GRMPackage.SCHEDULABLE_RESOURCE__HOST); + } + return schedulableResources; + } + + /** + * + * + * @generated + */ + public EList getThroughput() { + if (throughput == null) { + throughput = new EDataTypeUniqueEList(String.class, this, GQAMPackage.GA_COMM_HOST__THROUGHPUT); + } + return throughput; + } + + /** + * + * + * @generated + */ + public EList getUtilization() { + if (utilization == null) { + utilization = new EDataTypeUniqueEList(String.class, this, GQAMPackage.GA_COMM_HOST__UTILIZATION); + } + return utilization; + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case GQAMPackage.GA_COMM_HOST__PROTECTED_SHARED_RESOURCES: + return ((InternalEList)(InternalEList)getProtectedSharedResources()).basicAdd(otherEnd, msgs); + case GQAMPackage.GA_COMM_HOST__SCHEDULABLE_RESOURCES: + return ((InternalEList)(InternalEList)getSchedulableResources()).basicAdd(otherEnd, msgs); + } + return super.eInverseAdd(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case GQAMPackage.GA_COMM_HOST__PROTECTED_SHARED_RESOURCES: + return ((InternalEList)getProtectedSharedResources()).basicRemove(otherEnd, msgs); + case GQAMPackage.GA_COMM_HOST__SCHEDULABLE_RESOURCES: + return ((InternalEList)getSchedulableResources()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case GQAMPackage.GA_COMM_HOST__IS_PREEMPTIBLE: + return isIsPreemptible(); + case GQAMPackage.GA_COMM_HOST__SCHED_POLICY: + return getSchedPolicy(); + case GQAMPackage.GA_COMM_HOST__OTHER_SCHED_POLICY: + return getOtherSchedPolicy(); + case GQAMPackage.GA_COMM_HOST__SCHEDULE: + return getSchedule(); + case GQAMPackage.GA_COMM_HOST__PROCESSING_UNITS: + return getProcessingUnits(); + case GQAMPackage.GA_COMM_HOST__HOST: + if (resolve) return getHost(); + return basicGetHost(); + case GQAMPackage.GA_COMM_HOST__PROTECTED_SHARED_RESOURCES: + return getProtectedSharedResources(); + case GQAMPackage.GA_COMM_HOST__SCHEDULABLE_RESOURCES: + return getSchedulableResources(); + case GQAMPackage.GA_COMM_HOST__THROUGHPUT: + return getThroughput(); + case GQAMPackage.GA_COMM_HOST__UTILIZATION: + return getUtilization(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case GQAMPackage.GA_COMM_HOST__IS_PREEMPTIBLE: + setIsPreemptible((Boolean)newValue); + return; + case GQAMPackage.GA_COMM_HOST__SCHED_POLICY: + setSchedPolicy((SchedPolicyKind)newValue); + return; + case GQAMPackage.GA_COMM_HOST__OTHER_SCHED_POLICY: + setOtherSchedPolicy((String)newValue); + return; + case GQAMPackage.GA_COMM_HOST__SCHEDULE: + setSchedule((String)newValue); + return; + case GQAMPackage.GA_COMM_HOST__PROCESSING_UNITS: + getProcessingUnits().clear(); + getProcessingUnits().addAll((Collection)newValue); + return; + case GQAMPackage.GA_COMM_HOST__HOST: + setHost((ComputingResource)newValue); + return; + case GQAMPackage.GA_COMM_HOST__PROTECTED_SHARED_RESOURCES: + getProtectedSharedResources().clear(); + getProtectedSharedResources().addAll((Collection)newValue); + return; + case GQAMPackage.GA_COMM_HOST__SCHEDULABLE_RESOURCES: + getSchedulableResources().clear(); + getSchedulableResources().addAll((Collection)newValue); + return; + case GQAMPackage.GA_COMM_HOST__THROUGHPUT: + getThroughput().clear(); + getThroughput().addAll((Collection)newValue); + return; + case GQAMPackage.GA_COMM_HOST__UTILIZATION: + getUtilization().clear(); + getUtilization().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case GQAMPackage.GA_COMM_HOST__IS_PREEMPTIBLE: + setIsPreemptible(IS_PREEMPTIBLE_EDEFAULT); + return; + case GQAMPackage.GA_COMM_HOST__SCHED_POLICY: + setSchedPolicy(SCHED_POLICY_EDEFAULT); + return; + case GQAMPackage.GA_COMM_HOST__OTHER_SCHED_POLICY: + setOtherSchedPolicy(OTHER_SCHED_POLICY_EDEFAULT); + return; + case GQAMPackage.GA_COMM_HOST__SCHEDULE: + setSchedule(SCHEDULE_EDEFAULT); + return; + case GQAMPackage.GA_COMM_HOST__PROCESSING_UNITS: + getProcessingUnits().clear(); + return; + case GQAMPackage.GA_COMM_HOST__HOST: + setHost((ComputingResource)null); + return; + case GQAMPackage.GA_COMM_HOST__PROTECTED_SHARED_RESOURCES: + getProtectedSharedResources().clear(); + return; + case GQAMPackage.GA_COMM_HOST__SCHEDULABLE_RESOURCES: + getSchedulableResources().clear(); + return; + case GQAMPackage.GA_COMM_HOST__THROUGHPUT: + getThroughput().clear(); + return; + case GQAMPackage.GA_COMM_HOST__UTILIZATION: + getUtilization().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case GQAMPackage.GA_COMM_HOST__IS_PREEMPTIBLE: + return isPreemptible != IS_PREEMPTIBLE_EDEFAULT; + case GQAMPackage.GA_COMM_HOST__SCHED_POLICY: + return schedPolicy != SCHED_POLICY_EDEFAULT; + case GQAMPackage.GA_COMM_HOST__OTHER_SCHED_POLICY: + return OTHER_SCHED_POLICY_EDEFAULT == null ? otherSchedPolicy != null : !OTHER_SCHED_POLICY_EDEFAULT.equals(otherSchedPolicy); + case GQAMPackage.GA_COMM_HOST__SCHEDULE: + return SCHEDULE_EDEFAULT == null ? schedule != null : !SCHEDULE_EDEFAULT.equals(schedule); + case GQAMPackage.GA_COMM_HOST__PROCESSING_UNITS: + return processingUnits != null && !processingUnits.isEmpty(); + case GQAMPackage.GA_COMM_HOST__HOST: + return host != null; + case GQAMPackage.GA_COMM_HOST__PROTECTED_SHARED_RESOURCES: + return protectedSharedResources != null && !protectedSharedResources.isEmpty(); + case GQAMPackage.GA_COMM_HOST__SCHEDULABLE_RESOURCES: + return schedulableResources != null && !schedulableResources.isEmpty(); + case GQAMPackage.GA_COMM_HOST__THROUGHPUT: + return throughput != null && !throughput.isEmpty(); + case GQAMPackage.GA_COMM_HOST__UTILIZATION: + return utilization != null && !utilization.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) { + if (baseClass == Scheduler.class) { + switch (derivedFeatureID) { + case GQAMPackage.GA_COMM_HOST__IS_PREEMPTIBLE: return GRMPackage.SCHEDULER__IS_PREEMPTIBLE; + case GQAMPackage.GA_COMM_HOST__SCHED_POLICY: return GRMPackage.SCHEDULER__SCHED_POLICY; + case GQAMPackage.GA_COMM_HOST__OTHER_SCHED_POLICY: return GRMPackage.SCHEDULER__OTHER_SCHED_POLICY; + case GQAMPackage.GA_COMM_HOST__SCHEDULE: return GRMPackage.SCHEDULER__SCHEDULE; + case GQAMPackage.GA_COMM_HOST__PROCESSING_UNITS: return GRMPackage.SCHEDULER__PROCESSING_UNITS; + case GQAMPackage.GA_COMM_HOST__HOST: return GRMPackage.SCHEDULER__HOST; + case GQAMPackage.GA_COMM_HOST__PROTECTED_SHARED_RESOURCES: return GRMPackage.SCHEDULER__PROTECTED_SHARED_RESOURCES; + case GQAMPackage.GA_COMM_HOST__SCHEDULABLE_RESOURCES: return GRMPackage.SCHEDULER__SCHEDULABLE_RESOURCES; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) { + if (baseClass == Scheduler.class) { + switch (baseFeatureID) { + case GRMPackage.SCHEDULER__IS_PREEMPTIBLE: return GQAMPackage.GA_COMM_HOST__IS_PREEMPTIBLE; + case GRMPackage.SCHEDULER__SCHED_POLICY: return GQAMPackage.GA_COMM_HOST__SCHED_POLICY; + case GRMPackage.SCHEDULER__OTHER_SCHED_POLICY: return GQAMPackage.GA_COMM_HOST__OTHER_SCHED_POLICY; + case GRMPackage.SCHEDULER__SCHEDULE: return GQAMPackage.GA_COMM_HOST__SCHEDULE; + case GRMPackage.SCHEDULER__PROCESSING_UNITS: return GQAMPackage.GA_COMM_HOST__PROCESSING_UNITS; + case GRMPackage.SCHEDULER__HOST: return GQAMPackage.GA_COMM_HOST__HOST; + case GRMPackage.SCHEDULER__PROTECTED_SHARED_RESOURCES: return GQAMPackage.GA_COMM_HOST__PROTECTED_SHARED_RESOURCES; + case GRMPackage.SCHEDULER__SCHEDULABLE_RESOURCES: return GQAMPackage.GA_COMM_HOST__SCHEDULABLE_RESOURCES; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (isPreemptible: "); + result.append(isPreemptible); + result.append(", schedPolicy: "); + result.append(schedPolicy); + result.append(", otherSchedPolicy: "); + result.append(otherSchedPolicy); + result.append(", schedule: "); + result.append(schedule); + result.append(", throughput: "); + result.append(throughput); + result.append(", utilization: "); + result.append(utilization); + result.append(')'); + return result.toString(); + } + +} //GaCommHostImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaCommStepImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaCommStepImpl.java new file mode 100644 index 00000000000..9a90f336865 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaCommStepImpl.java @@ -0,0 +1,50 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.GQAM.impl; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaCommStep; + +/** + * + * An implementation of the model object 'Ga Comm Step'. + * + *

+ *

+ * + * @generated + */ +public class GaCommStepImpl extends GaStepImpl implements GaCommStep { + /** + * + * + * @generated + */ + protected GaCommStepImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return GQAMPackage.Literals.GA_COMM_STEP; + } + +} //GaCommStepImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaEventTraceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaEventTraceImpl.java new file mode 100644 index 00000000000..774f473e6d2 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaEventTraceImpl.java @@ -0,0 +1,345 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.GQAM.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaEventTrace; + +import org.eclipse.uml2.uml.NamedElement; + +/** + * + * An implementation of the model object 'Ga Event Trace'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaEventTraceImpl#getContent Content}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaEventTraceImpl#getFormat Format}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaEventTraceImpl#getLocation Location}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaEventTraceImpl#getBase_NamedElement Base Named Element}
  • + *
+ *

+ * + * @generated + */ +public class GaEventTraceImpl extends EObjectImpl implements GaEventTrace { + /** + * The default value of the '{@link #getContent() Content}' attribute. + * + * + * @see #getContent() + * @generated + * @ordered + */ + protected static final String CONTENT_EDEFAULT = null; + + /** + * The cached value of the '{@link #getContent() Content}' attribute. + * + * + * @see #getContent() + * @generated + * @ordered + */ + protected String content = CONTENT_EDEFAULT; + + /** + * The default value of the '{@link #getFormat() Format}' attribute. + * + * + * @see #getFormat() + * @generated + * @ordered + */ + protected static final String FORMAT_EDEFAULT = null; + + /** + * The cached value of the '{@link #getFormat() Format}' attribute. + * + * + * @see #getFormat() + * @generated + * @ordered + */ + protected String format = FORMAT_EDEFAULT; + + /** + * The default value of the '{@link #getLocation() Location}' attribute. + * + * + * @see #getLocation() + * @generated + * @ordered + */ + protected static final String LOCATION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getLocation() Location}' attribute. + * + * + * @see #getLocation() + * @generated + * @ordered + */ + protected String location = LOCATION_EDEFAULT; + + /** + * The cached value of the '{@link #getBase_NamedElement() Base Named Element}' reference. + * + * + * @see #getBase_NamedElement() + * @generated + * @ordered + */ + protected NamedElement base_NamedElement; + + /** + * + * + * @generated + */ + protected GaEventTraceImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return GQAMPackage.Literals.GA_EVENT_TRACE; + } + + /** + * + * + * @generated + */ + public String getContent() { + return content; + } + + /** + * + * + * @generated + */ + public void setContent(String newContent) { + String oldContent = content; + content = newContent; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_EVENT_TRACE__CONTENT, oldContent, content)); + } + + /** + * + * + * @generated + */ + public String getFormat() { + return format; + } + + /** + * + * + * @generated + */ + public void setFormat(String newFormat) { + String oldFormat = format; + format = newFormat; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_EVENT_TRACE__FORMAT, oldFormat, format)); + } + + /** + * + * + * @generated + */ + public String getLocation() { + return location; + } + + /** + * + * + * @generated + */ + public void setLocation(String newLocation) { + String oldLocation = location; + location = newLocation; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_EVENT_TRACE__LOCATION, oldLocation, location)); + } + + /** + * + * + * @generated + */ + public NamedElement getBase_NamedElement() { + if (base_NamedElement != null && base_NamedElement.eIsProxy()) { + InternalEObject oldBase_NamedElement = (InternalEObject)base_NamedElement; + base_NamedElement = (NamedElement)eResolveProxy(oldBase_NamedElement); + if (base_NamedElement != oldBase_NamedElement) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GQAMPackage.GA_EVENT_TRACE__BASE_NAMED_ELEMENT, oldBase_NamedElement, base_NamedElement)); + } + } + return base_NamedElement; + } + + /** + * + * + * @generated + */ + public NamedElement basicGetBase_NamedElement() { + return base_NamedElement; + } + + /** + * + * + * @generated + */ + public void setBase_NamedElement(NamedElement newBase_NamedElement) { + NamedElement oldBase_NamedElement = base_NamedElement; + base_NamedElement = newBase_NamedElement; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_EVENT_TRACE__BASE_NAMED_ELEMENT, oldBase_NamedElement, base_NamedElement)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case GQAMPackage.GA_EVENT_TRACE__CONTENT: + return getContent(); + case GQAMPackage.GA_EVENT_TRACE__FORMAT: + return getFormat(); + case GQAMPackage.GA_EVENT_TRACE__LOCATION: + return getLocation(); + case GQAMPackage.GA_EVENT_TRACE__BASE_NAMED_ELEMENT: + if (resolve) return getBase_NamedElement(); + return basicGetBase_NamedElement(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case GQAMPackage.GA_EVENT_TRACE__CONTENT: + setContent((String)newValue); + return; + case GQAMPackage.GA_EVENT_TRACE__FORMAT: + setFormat((String)newValue); + return; + case GQAMPackage.GA_EVENT_TRACE__LOCATION: + setLocation((String)newValue); + return; + case GQAMPackage.GA_EVENT_TRACE__BASE_NAMED_ELEMENT: + setBase_NamedElement((NamedElement)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case GQAMPackage.GA_EVENT_TRACE__CONTENT: + setContent(CONTENT_EDEFAULT); + return; + case GQAMPackage.GA_EVENT_TRACE__FORMAT: + setFormat(FORMAT_EDEFAULT); + return; + case GQAMPackage.GA_EVENT_TRACE__LOCATION: + setLocation(LOCATION_EDEFAULT); + return; + case GQAMPackage.GA_EVENT_TRACE__BASE_NAMED_ELEMENT: + setBase_NamedElement((NamedElement)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case GQAMPackage.GA_EVENT_TRACE__CONTENT: + return CONTENT_EDEFAULT == null ? content != null : !CONTENT_EDEFAULT.equals(content); + case GQAMPackage.GA_EVENT_TRACE__FORMAT: + return FORMAT_EDEFAULT == null ? format != null : !FORMAT_EDEFAULT.equals(format); + case GQAMPackage.GA_EVENT_TRACE__LOCATION: + return LOCATION_EDEFAULT == null ? location != null : !LOCATION_EDEFAULT.equals(location); + case GQAMPackage.GA_EVENT_TRACE__BASE_NAMED_ELEMENT: + return base_NamedElement != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (content: "); + result.append(content); + result.append(", format: "); + result.append(format); + result.append(", location: "); + result.append(location); + result.append(')'); + return result.toString(); + } + +} //GaEventTraceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaExecHostImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaExecHostImpl.java new file mode 100644 index 00000000000..c2294bb8e07 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaExecHostImpl.java @@ -0,0 +1,688 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.GQAM.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EDataTypeUniqueEList; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaExecHost; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ComputingResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ProcessingResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.SchedulerImpl; + +/** + * + * An implementation of the model object 'Ga Exec Host'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaExecHostImpl#getSpeedFactor Speed Factor}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaExecHostImpl#getMainScheduler Main Scheduler}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaExecHostImpl#getCommTxOvh Comm Tx Ovh}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaExecHostImpl#getCommRcvOvh Comm Rcv Ovh}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaExecHostImpl#getCntxtSwT Cntxt Sw T}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaExecHostImpl#getClockOvh Clock Ovh}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaExecHostImpl#getSchedPriRange Sched Pri Range}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaExecHostImpl#getMemSize Mem Size}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaExecHostImpl#getUtilization Utilization}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaExecHostImpl#getThroughput Throughput}
  • + *
+ *

+ * + * @generated + */ +public class GaExecHostImpl extends SchedulerImpl implements GaExecHost { + /** + * The default value of the '{@link #getSpeedFactor() Speed Factor}' attribute. + * + * + * @see #getSpeedFactor() + * @generated + * @ordered + */ + protected static final String SPEED_FACTOR_EDEFAULT = "1.0"; + + /** + * The cached value of the '{@link #getSpeedFactor() Speed Factor}' attribute. + * + * + * @see #getSpeedFactor() + * @generated + * @ordered + */ + protected String speedFactor = SPEED_FACTOR_EDEFAULT; + + /** + * The cached value of the '{@link #getMainScheduler() Main Scheduler}' reference. + * + * + * @see #getMainScheduler() + * @generated + * @ordered + */ + protected Scheduler mainScheduler; + + /** + * The default value of the '{@link #getCommTxOvh() Comm Tx Ovh}' attribute. + * + * + * @see #getCommTxOvh() + * @generated + * @ordered + */ + protected static final String COMM_TX_OVH_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCommTxOvh() Comm Tx Ovh}' attribute. + * + * + * @see #getCommTxOvh() + * @generated + * @ordered + */ + protected String commTxOvh = COMM_TX_OVH_EDEFAULT; + + /** + * The default value of the '{@link #getCommRcvOvh() Comm Rcv Ovh}' attribute. + * + * + * @see #getCommRcvOvh() + * @generated + * @ordered + */ + protected static final String COMM_RCV_OVH_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCommRcvOvh() Comm Rcv Ovh}' attribute. + * + * + * @see #getCommRcvOvh() + * @generated + * @ordered + */ + protected String commRcvOvh = COMM_RCV_OVH_EDEFAULT; + + /** + * The default value of the '{@link #getCntxtSwT() Cntxt Sw T}' attribute. + * + * + * @see #getCntxtSwT() + * @generated + * @ordered + */ + protected static final String CNTXT_SW_T_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCntxtSwT() Cntxt Sw T}' attribute. + * + * + * @see #getCntxtSwT() + * @generated + * @ordered + */ + protected String cntxtSwT = CNTXT_SW_T_EDEFAULT; + + /** + * The default value of the '{@link #getClockOvh() Clock Ovh}' attribute. + * + * + * @see #getClockOvh() + * @generated + * @ordered + */ + protected static final String CLOCK_OVH_EDEFAULT = null; + + /** + * The cached value of the '{@link #getClockOvh() Clock Ovh}' attribute. + * + * + * @see #getClockOvh() + * @generated + * @ordered + */ + protected String clockOvh = CLOCK_OVH_EDEFAULT; + + /** + * The default value of the '{@link #getSchedPriRange() Sched Pri Range}' attribute. + * + * + * @see #getSchedPriRange() + * @generated + * @ordered + */ + protected static final String SCHED_PRI_RANGE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSchedPriRange() Sched Pri Range}' attribute. + * + * + * @see #getSchedPriRange() + * @generated + * @ordered + */ + protected String schedPriRange = SCHED_PRI_RANGE_EDEFAULT; + + /** + * The default value of the '{@link #getMemSize() Mem Size}' attribute. + * + * + * @see #getMemSize() + * @generated + * @ordered + */ + protected static final String MEM_SIZE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMemSize() Mem Size}' attribute. + * + * + * @see #getMemSize() + * @generated + * @ordered + */ + protected String memSize = MEM_SIZE_EDEFAULT; + + /** + * The cached value of the '{@link #getUtilization() Utilization}' attribute list. + * + * + * @see #getUtilization() + * @generated + * @ordered + */ + protected EList utilization; + + /** + * The cached value of the '{@link #getThroughput() Throughput}' attribute list. + * + * + * @see #getThroughput() + * @generated + * @ordered + */ + protected EList throughput; + + /** + * + * + * @generated + */ + protected GaExecHostImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return GQAMPackage.Literals.GA_EXEC_HOST; + } + + /** + * + * + * @generated + */ + public String getSpeedFactor() { + return speedFactor; + } + + /** + * + * + * @generated + */ + public void setSpeedFactor(String newSpeedFactor) { + String oldSpeedFactor = speedFactor; + speedFactor = newSpeedFactor; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_EXEC_HOST__SPEED_FACTOR, oldSpeedFactor, speedFactor)); + } + + /** + * + * + * @generated + */ + public Scheduler getMainScheduler() { + if (mainScheduler != null && mainScheduler.eIsProxy()) { + InternalEObject oldMainScheduler = (InternalEObject)mainScheduler; + mainScheduler = (Scheduler)eResolveProxy(oldMainScheduler); + if (mainScheduler != oldMainScheduler) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GQAMPackage.GA_EXEC_HOST__MAIN_SCHEDULER, oldMainScheduler, mainScheduler)); + } + } + return mainScheduler; + } + + /** + * + * + * @generated + */ + public Scheduler basicGetMainScheduler() { + return mainScheduler; + } + + /** + * + * + * @generated + */ + public void setMainScheduler(Scheduler newMainScheduler) { + Scheduler oldMainScheduler = mainScheduler; + mainScheduler = newMainScheduler; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_EXEC_HOST__MAIN_SCHEDULER, oldMainScheduler, mainScheduler)); + } + + /** + * + * + * @generated + */ + public String getCommTxOvh() { + return commTxOvh; + } + + /** + * + * + * @generated + */ + public void setCommTxOvh(String newCommTxOvh) { + String oldCommTxOvh = commTxOvh; + commTxOvh = newCommTxOvh; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_EXEC_HOST__COMM_TX_OVH, oldCommTxOvh, commTxOvh)); + } + + /** + * + * + * @generated + */ + public String getCommRcvOvh() { + return commRcvOvh; + } + + /** + * + * + * @generated + */ + public void setCommRcvOvh(String newCommRcvOvh) { + String oldCommRcvOvh = commRcvOvh; + commRcvOvh = newCommRcvOvh; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_EXEC_HOST__COMM_RCV_OVH, oldCommRcvOvh, commRcvOvh)); + } + + /** + * + * + * @generated + */ + public String getCntxtSwT() { + return cntxtSwT; + } + + /** + * + * + * @generated + */ + public void setCntxtSwT(String newCntxtSwT) { + String oldCntxtSwT = cntxtSwT; + cntxtSwT = newCntxtSwT; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_EXEC_HOST__CNTXT_SW_T, oldCntxtSwT, cntxtSwT)); + } + + /** + * + * + * @generated + */ + public String getClockOvh() { + return clockOvh; + } + + /** + * + * + * @generated + */ + public void setClockOvh(String newClockOvh) { + String oldClockOvh = clockOvh; + clockOvh = newClockOvh; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_EXEC_HOST__CLOCK_OVH, oldClockOvh, clockOvh)); + } + + /** + * + * + * @generated + */ + public String getSchedPriRange() { + return schedPriRange; + } + + /** + * + * + * @generated + */ + public void setSchedPriRange(String newSchedPriRange) { + String oldSchedPriRange = schedPriRange; + schedPriRange = newSchedPriRange; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_EXEC_HOST__SCHED_PRI_RANGE, oldSchedPriRange, schedPriRange)); + } + + /** + * + * + * @generated + */ + public String getMemSize() { + return memSize; + } + + /** + * + * + * @generated + */ + public void setMemSize(String newMemSize) { + String oldMemSize = memSize; + memSize = newMemSize; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_EXEC_HOST__MEM_SIZE, oldMemSize, memSize)); + } + + /** + * + * + * @generated + */ + public EList getUtilization() { + if (utilization == null) { + utilization = new EDataTypeUniqueEList(String.class, this, GQAMPackage.GA_EXEC_HOST__UTILIZATION); + } + return utilization; + } + + /** + * + * + * @generated + */ + public EList getThroughput() { + if (throughput == null) { + throughput = new EDataTypeUniqueEList(String.class, this, GQAMPackage.GA_EXEC_HOST__THROUGHPUT); + } + return throughput; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case GQAMPackage.GA_EXEC_HOST__SPEED_FACTOR: + return getSpeedFactor(); + case GQAMPackage.GA_EXEC_HOST__MAIN_SCHEDULER: + if (resolve) return getMainScheduler(); + return basicGetMainScheduler(); + case GQAMPackage.GA_EXEC_HOST__COMM_TX_OVH: + return getCommTxOvh(); + case GQAMPackage.GA_EXEC_HOST__COMM_RCV_OVH: + return getCommRcvOvh(); + case GQAMPackage.GA_EXEC_HOST__CNTXT_SW_T: + return getCntxtSwT(); + case GQAMPackage.GA_EXEC_HOST__CLOCK_OVH: + return getClockOvh(); + case GQAMPackage.GA_EXEC_HOST__SCHED_PRI_RANGE: + return getSchedPriRange(); + case GQAMPackage.GA_EXEC_HOST__MEM_SIZE: + return getMemSize(); + case GQAMPackage.GA_EXEC_HOST__UTILIZATION: + return getUtilization(); + case GQAMPackage.GA_EXEC_HOST__THROUGHPUT: + return getThroughput(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case GQAMPackage.GA_EXEC_HOST__SPEED_FACTOR: + setSpeedFactor((String)newValue); + return; + case GQAMPackage.GA_EXEC_HOST__MAIN_SCHEDULER: + setMainScheduler((Scheduler)newValue); + return; + case GQAMPackage.GA_EXEC_HOST__COMM_TX_OVH: + setCommTxOvh((String)newValue); + return; + case GQAMPackage.GA_EXEC_HOST__COMM_RCV_OVH: + setCommRcvOvh((String)newValue); + return; + case GQAMPackage.GA_EXEC_HOST__CNTXT_SW_T: + setCntxtSwT((String)newValue); + return; + case GQAMPackage.GA_EXEC_HOST__CLOCK_OVH: + setClockOvh((String)newValue); + return; + case GQAMPackage.GA_EXEC_HOST__SCHED_PRI_RANGE: + setSchedPriRange((String)newValue); + return; + case GQAMPackage.GA_EXEC_HOST__MEM_SIZE: + setMemSize((String)newValue); + return; + case GQAMPackage.GA_EXEC_HOST__UTILIZATION: + getUtilization().clear(); + getUtilization().addAll((Collection)newValue); + return; + case GQAMPackage.GA_EXEC_HOST__THROUGHPUT: + getThroughput().clear(); + getThroughput().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case GQAMPackage.GA_EXEC_HOST__SPEED_FACTOR: + setSpeedFactor(SPEED_FACTOR_EDEFAULT); + return; + case GQAMPackage.GA_EXEC_HOST__MAIN_SCHEDULER: + setMainScheduler((Scheduler)null); + return; + case GQAMPackage.GA_EXEC_HOST__COMM_TX_OVH: + setCommTxOvh(COMM_TX_OVH_EDEFAULT); + return; + case GQAMPackage.GA_EXEC_HOST__COMM_RCV_OVH: + setCommRcvOvh(COMM_RCV_OVH_EDEFAULT); + return; + case GQAMPackage.GA_EXEC_HOST__CNTXT_SW_T: + setCntxtSwT(CNTXT_SW_T_EDEFAULT); + return; + case GQAMPackage.GA_EXEC_HOST__CLOCK_OVH: + setClockOvh(CLOCK_OVH_EDEFAULT); + return; + case GQAMPackage.GA_EXEC_HOST__SCHED_PRI_RANGE: + setSchedPriRange(SCHED_PRI_RANGE_EDEFAULT); + return; + case GQAMPackage.GA_EXEC_HOST__MEM_SIZE: + setMemSize(MEM_SIZE_EDEFAULT); + return; + case GQAMPackage.GA_EXEC_HOST__UTILIZATION: + getUtilization().clear(); + return; + case GQAMPackage.GA_EXEC_HOST__THROUGHPUT: + getThroughput().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case GQAMPackage.GA_EXEC_HOST__SPEED_FACTOR: + return SPEED_FACTOR_EDEFAULT == null ? speedFactor != null : !SPEED_FACTOR_EDEFAULT.equals(speedFactor); + case GQAMPackage.GA_EXEC_HOST__MAIN_SCHEDULER: + return mainScheduler != null; + case GQAMPackage.GA_EXEC_HOST__COMM_TX_OVH: + return COMM_TX_OVH_EDEFAULT == null ? commTxOvh != null : !COMM_TX_OVH_EDEFAULT.equals(commTxOvh); + case GQAMPackage.GA_EXEC_HOST__COMM_RCV_OVH: + return COMM_RCV_OVH_EDEFAULT == null ? commRcvOvh != null : !COMM_RCV_OVH_EDEFAULT.equals(commRcvOvh); + case GQAMPackage.GA_EXEC_HOST__CNTXT_SW_T: + return CNTXT_SW_T_EDEFAULT == null ? cntxtSwT != null : !CNTXT_SW_T_EDEFAULT.equals(cntxtSwT); + case GQAMPackage.GA_EXEC_HOST__CLOCK_OVH: + return CLOCK_OVH_EDEFAULT == null ? clockOvh != null : !CLOCK_OVH_EDEFAULT.equals(clockOvh); + case GQAMPackage.GA_EXEC_HOST__SCHED_PRI_RANGE: + return SCHED_PRI_RANGE_EDEFAULT == null ? schedPriRange != null : !SCHED_PRI_RANGE_EDEFAULT.equals(schedPriRange); + case GQAMPackage.GA_EXEC_HOST__MEM_SIZE: + return MEM_SIZE_EDEFAULT == null ? memSize != null : !MEM_SIZE_EDEFAULT.equals(memSize); + case GQAMPackage.GA_EXEC_HOST__UTILIZATION: + return utilization != null && !utilization.isEmpty(); + case GQAMPackage.GA_EXEC_HOST__THROUGHPUT: + return throughput != null && !throughput.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) { + if (baseClass == ProcessingResource.class) { + switch (derivedFeatureID) { + case GQAMPackage.GA_EXEC_HOST__SPEED_FACTOR: return GRMPackage.PROCESSING_RESOURCE__SPEED_FACTOR; + case GQAMPackage.GA_EXEC_HOST__MAIN_SCHEDULER: return GRMPackage.PROCESSING_RESOURCE__MAIN_SCHEDULER; + default: return -1; + } + } + if (baseClass == ComputingResource.class) { + switch (derivedFeatureID) { + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) { + if (baseClass == ProcessingResource.class) { + switch (baseFeatureID) { + case GRMPackage.PROCESSING_RESOURCE__SPEED_FACTOR: return GQAMPackage.GA_EXEC_HOST__SPEED_FACTOR; + case GRMPackage.PROCESSING_RESOURCE__MAIN_SCHEDULER: return GQAMPackage.GA_EXEC_HOST__MAIN_SCHEDULER; + default: return -1; + } + } + if (baseClass == ComputingResource.class) { + switch (baseFeatureID) { + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (speedFactor: "); + result.append(speedFactor); + result.append(", commTxOvh: "); + result.append(commTxOvh); + result.append(", commRcvOvh: "); + result.append(commRcvOvh); + result.append(", cntxtSwT: "); + result.append(cntxtSwT); + result.append(", clockOvh: "); + result.append(clockOvh); + result.append(", schedPriRange: "); + result.append(schedPriRange); + result.append(", memSize: "); + result.append(memSize); + result.append(", utilization: "); + result.append(utilization); + result.append(", throughput: "); + result.append(throughput); + result.append(')'); + return result.toString(); + } + +} //GaExecHostImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaLatencyObsImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaLatencyObsImpl.java new file mode 100644 index 00000000000..d17f2f38d8b --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaLatencyObsImpl.java @@ -0,0 +1,266 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.GQAM.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.util.EDataTypeUniqueEList; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaLatencyObs; + +/** + * + * An implementation of the model object 'Ga Latency Obs'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaLatencyObsImpl#getLatency Latency}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaLatencyObsImpl#getMiss Miss}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaLatencyObsImpl#getUtility Utility}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaLatencyObsImpl#getMaxJitter Max Jitter}
  • + *
+ *

+ * + * @generated + */ +public class GaLatencyObsImpl extends GaTimedObsImpl implements GaLatencyObs { + /** + * The cached value of the '{@link #getLatency() Latency}' attribute list. + * + * + * @see #getLatency() + * @generated + * @ordered + */ + protected EList latency; + + /** + * The cached value of the '{@link #getMiss() Miss}' attribute list. + * + * + * @see #getMiss() + * @generated + * @ordered + */ + protected EList miss; + + /** + * The cached value of the '{@link #getUtility() Utility}' attribute list. + * + * + * @see #getUtility() + * @generated + * @ordered + */ + protected EList utility; + + /** + * The cached value of the '{@link #getMaxJitter() Max Jitter}' attribute list. + * + * + * @see #getMaxJitter() + * @generated + * @ordered + */ + protected EList maxJitter; + + /** + * + * + * @generated + */ + protected GaLatencyObsImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return GQAMPackage.Literals.GA_LATENCY_OBS; + } + + /** + * + * + * @generated + */ + public EList getLatency() { + if (latency == null) { + latency = new EDataTypeUniqueEList(String.class, this, GQAMPackage.GA_LATENCY_OBS__LATENCY); + } + return latency; + } + + /** + * + * + * @generated + */ + public EList getMiss() { + if (miss == null) { + miss = new EDataTypeUniqueEList(String.class, this, GQAMPackage.GA_LATENCY_OBS__MISS); + } + return miss; + } + + /** + * + * + * @generated + */ + public EList getUtility() { + if (utility == null) { + utility = new EDataTypeUniqueEList(String.class, this, GQAMPackage.GA_LATENCY_OBS__UTILITY); + } + return utility; + } + + /** + * + * + * @generated + */ + public EList getMaxJitter() { + if (maxJitter == null) { + maxJitter = new EDataTypeUniqueEList(String.class, this, GQAMPackage.GA_LATENCY_OBS__MAX_JITTER); + } + return maxJitter; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case GQAMPackage.GA_LATENCY_OBS__LATENCY: + return getLatency(); + case GQAMPackage.GA_LATENCY_OBS__MISS: + return getMiss(); + case GQAMPackage.GA_LATENCY_OBS__UTILITY: + return getUtility(); + case GQAMPackage.GA_LATENCY_OBS__MAX_JITTER: + return getMaxJitter(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case GQAMPackage.GA_LATENCY_OBS__LATENCY: + getLatency().clear(); + getLatency().addAll((Collection)newValue); + return; + case GQAMPackage.GA_LATENCY_OBS__MISS: + getMiss().clear(); + getMiss().addAll((Collection)newValue); + return; + case GQAMPackage.GA_LATENCY_OBS__UTILITY: + getUtility().clear(); + getUtility().addAll((Collection)newValue); + return; + case GQAMPackage.GA_LATENCY_OBS__MAX_JITTER: + getMaxJitter().clear(); + getMaxJitter().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case GQAMPackage.GA_LATENCY_OBS__LATENCY: + getLatency().clear(); + return; + case GQAMPackage.GA_LATENCY_OBS__MISS: + getMiss().clear(); + return; + case GQAMPackage.GA_LATENCY_OBS__UTILITY: + getUtility().clear(); + return; + case GQAMPackage.GA_LATENCY_OBS__MAX_JITTER: + getMaxJitter().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case GQAMPackage.GA_LATENCY_OBS__LATENCY: + return latency != null && !latency.isEmpty(); + case GQAMPackage.GA_LATENCY_OBS__MISS: + return miss != null && !miss.isEmpty(); + case GQAMPackage.GA_LATENCY_OBS__UTILITY: + return utility != null && !utility.isEmpty(); + case GQAMPackage.GA_LATENCY_OBS__MAX_JITTER: + return maxJitter != null && !maxJitter.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (latency: "); + result.append(latency); + result.append(", miss: "); + result.append(miss); + result.append(", utility: "); + result.append(utility); + result.append(", maxJitter: "); + result.append(maxJitter); + result.append(')'); + return result.toString(); + } + +} //GaLatencyObsImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaRelStepImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaRelStepImpl.java new file mode 100644 index 00000000000..4af0822b463 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaRelStepImpl.java @@ -0,0 +1,236 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.GQAM.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaRelStep; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource; + +/** + * + * An implementation of the model object 'Ga Rel Step'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaRelStepImpl#getRelRes Rel Res}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaRelStepImpl#getResUnits Res Units}
  • + *
+ *

+ * + * @generated + */ +public class GaRelStepImpl extends GaStepImpl implements GaRelStep { + /** + * The cached value of the '{@link #getRelRes() Rel Res}' reference. + * + * + * @see #getRelRes() + * @generated + * @ordered + */ + protected Resource relRes; + + /** + * The default value of the '{@link #getResUnits() Res Units}' attribute. + * + * + * @see #getResUnits() + * @generated + * @ordered + */ + protected static final String RES_UNITS_EDEFAULT = "1"; + + /** + * The cached value of the '{@link #getResUnits() Res Units}' attribute. + * + * + * @see #getResUnits() + * @generated + * @ordered + */ + protected String resUnits = RES_UNITS_EDEFAULT; + + /** + * + * + * @generated + */ + protected GaRelStepImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return GQAMPackage.Literals.GA_REL_STEP; + } + + /** + * + * + * @generated + */ + public Resource getRelRes() { + if (relRes != null && relRes.eIsProxy()) { + InternalEObject oldRelRes = (InternalEObject)relRes; + relRes = (Resource)eResolveProxy(oldRelRes); + if (relRes != oldRelRes) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GQAMPackage.GA_REL_STEP__REL_RES, oldRelRes, relRes)); + } + } + return relRes; + } + + /** + * + * + * @generated + */ + public Resource basicGetRelRes() { + return relRes; + } + + /** + * + * + * @generated + */ + public void setRelRes(Resource newRelRes) { + Resource oldRelRes = relRes; + relRes = newRelRes; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_REL_STEP__REL_RES, oldRelRes, relRes)); + } + + /** + * + * + * @generated + */ + public String getResUnits() { + return resUnits; + } + + /** + * + * + * @generated + */ + public void setResUnits(String newResUnits) { + String oldResUnits = resUnits; + resUnits = newResUnits; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_REL_STEP__RES_UNITS, oldResUnits, resUnits)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case GQAMPackage.GA_REL_STEP__REL_RES: + if (resolve) return getRelRes(); + return basicGetRelRes(); + case GQAMPackage.GA_REL_STEP__RES_UNITS: + return getResUnits(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case GQAMPackage.GA_REL_STEP__REL_RES: + setRelRes((Resource)newValue); + return; + case GQAMPackage.GA_REL_STEP__RES_UNITS: + setResUnits((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case GQAMPackage.GA_REL_STEP__REL_RES: + setRelRes((Resource)null); + return; + case GQAMPackage.GA_REL_STEP__RES_UNITS: + setResUnits(RES_UNITS_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case GQAMPackage.GA_REL_STEP__REL_RES: + return relRes != null; + case GQAMPackage.GA_REL_STEP__RES_UNITS: + return RES_UNITS_EDEFAULT == null ? resUnits != null : !RES_UNITS_EDEFAULT.equals(resUnits); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (resUnits: "); + result.append(resUnits); + result.append(')'); + return result.toString(); + } + +} //GaRelStepImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaRequestedServiceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaRequestedServiceImpl.java new file mode 100644 index 00000000000..d8825ed455e --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaRequestedServiceImpl.java @@ -0,0 +1,168 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.GQAM.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaRequestedService; + +import org.eclipse.uml2.uml.Operation; + +/** + * + * An implementation of the model object 'Ga Requested Service'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaRequestedServiceImpl#getBase_Operation Base Operation}
  • + *
+ *

+ * + * @generated + */ +public class GaRequestedServiceImpl extends GaStepImpl implements GaRequestedService { + /** + * The cached value of the '{@link #getBase_Operation() Base Operation}' reference. + * + * + * @see #getBase_Operation() + * @generated + * @ordered + */ + protected Operation base_Operation; + + /** + * + * + * @generated + */ + protected GaRequestedServiceImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return GQAMPackage.Literals.GA_REQUESTED_SERVICE; + } + + /** + * + * + * @generated + */ + public Operation getBase_Operation() { + if (base_Operation != null && base_Operation.eIsProxy()) { + InternalEObject oldBase_Operation = (InternalEObject)base_Operation; + base_Operation = (Operation)eResolveProxy(oldBase_Operation); + if (base_Operation != oldBase_Operation) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GQAMPackage.GA_REQUESTED_SERVICE__BASE_OPERATION, oldBase_Operation, base_Operation)); + } + } + return base_Operation; + } + + /** + * + * + * @generated + */ + public Operation basicGetBase_Operation() { + return base_Operation; + } + + /** + * + * + * @generated + */ + public void setBase_Operation(Operation newBase_Operation) { + Operation oldBase_Operation = base_Operation; + base_Operation = newBase_Operation; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_REQUESTED_SERVICE__BASE_OPERATION, oldBase_Operation, base_Operation)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case GQAMPackage.GA_REQUESTED_SERVICE__BASE_OPERATION: + if (resolve) return getBase_Operation(); + return basicGetBase_Operation(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case GQAMPackage.GA_REQUESTED_SERVICE__BASE_OPERATION: + setBase_Operation((Operation)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case GQAMPackage.GA_REQUESTED_SERVICE__BASE_OPERATION: + setBase_Operation((Operation)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case GQAMPackage.GA_REQUESTED_SERVICE__BASE_OPERATION: + return base_Operation != null; + } + return super.eIsSet(featureID); + } + +} //GaRequestedServiceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaResourcesPlatformImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaResourcesPlatformImpl.java new file mode 100644 index 00000000000..3f2123dd0d3 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaResourcesPlatformImpl.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.MARTE_AnalysisModel.GQAM.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectResolvingEList; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaResourcesPlatform; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource; + +import org.eclipse.uml2.uml.Classifier; + +/** + * + * An implementation of the model object 'Ga Resources Platform'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaResourcesPlatformImpl#getResources Resources}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaResourcesPlatformImpl#getBase_Classifier Base Classifier}
  • + *
+ *

+ * + * @generated + */ +public class GaResourcesPlatformImpl extends EObjectImpl implements GaResourcesPlatform { + /** + * The cached value of the '{@link #getResources() Resources}' reference list. + * + * + * @see #getResources() + * @generated + * @ordered + */ + protected EList resources; + + /** + * The cached value of the '{@link #getBase_Classifier() Base Classifier}' reference. + * + * + * @see #getBase_Classifier() + * @generated + * @ordered + */ + protected Classifier base_Classifier; + + /** + * + * + * @generated + */ + protected GaResourcesPlatformImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return GQAMPackage.Literals.GA_RESOURCES_PLATFORM; + } + + /** + * + * + * @generated + */ + public EList getResources() { + if (resources == null) { + resources = new EObjectResolvingEList(Resource.class, this, GQAMPackage.GA_RESOURCES_PLATFORM__RESOURCES); + } + return resources; + } + + /** + * + * + * @generated + */ + public Classifier getBase_Classifier() { + if (base_Classifier != null && base_Classifier.eIsProxy()) { + InternalEObject oldBase_Classifier = (InternalEObject)base_Classifier; + base_Classifier = (Classifier)eResolveProxy(oldBase_Classifier); + if (base_Classifier != oldBase_Classifier) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GQAMPackage.GA_RESOURCES_PLATFORM__BASE_CLASSIFIER, oldBase_Classifier, base_Classifier)); + } + } + return base_Classifier; + } + + /** + * + * + * @generated + */ + public Classifier basicGetBase_Classifier() { + return base_Classifier; + } + + /** + * + * + * @generated + */ + public void setBase_Classifier(Classifier newBase_Classifier) { + Classifier oldBase_Classifier = base_Classifier; + base_Classifier = newBase_Classifier; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_RESOURCES_PLATFORM__BASE_CLASSIFIER, oldBase_Classifier, base_Classifier)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case GQAMPackage.GA_RESOURCES_PLATFORM__RESOURCES: + return getResources(); + case GQAMPackage.GA_RESOURCES_PLATFORM__BASE_CLASSIFIER: + if (resolve) return getBase_Classifier(); + return basicGetBase_Classifier(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case GQAMPackage.GA_RESOURCES_PLATFORM__RESOURCES: + getResources().clear(); + getResources().addAll((Collection)newValue); + return; + case GQAMPackage.GA_RESOURCES_PLATFORM__BASE_CLASSIFIER: + setBase_Classifier((Classifier)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case GQAMPackage.GA_RESOURCES_PLATFORM__RESOURCES: + getResources().clear(); + return; + case GQAMPackage.GA_RESOURCES_PLATFORM__BASE_CLASSIFIER: + setBase_Classifier((Classifier)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case GQAMPackage.GA_RESOURCES_PLATFORM__RESOURCES: + return resources != null && !resources.isEmpty(); + case GQAMPackage.GA_RESOURCES_PLATFORM__BASE_CLASSIFIER: + return base_Classifier != null; + } + return super.eIsSet(featureID); + } + +} //GaResourcesPlatformImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaScenarioImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaScenarioImpl.java new file mode 100644 index 00000000000..affade3bf76 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaScenarioImpl.java @@ -0,0 +1,1108 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.GQAM.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EDataTypeUniqueEList; +import org.eclipse.emf.ecore.util.EObjectResolvingEList; +import org.eclipse.emf.ecore.util.EObjectWithInverseResolvingEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaTimedObs; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadEvent; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ResourceUsageImpl; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.Clock; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedElement; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedProcessing; + +import org.eclipse.uml2.uml.Action; +import org.eclipse.uml2.uml.Behavior; +import org.eclipse.uml2.uml.Event; +import org.eclipse.uml2.uml.Message; +import org.eclipse.uml2.uml.ValueSpecification; + +/** + * + * An implementation of the model object 'Ga Scenario'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaScenarioImpl#getOn On}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaScenarioImpl#getBase_Action Base Action}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaScenarioImpl#getBase_Behavior Base Behavior}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaScenarioImpl#getBase_Message Base Message}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaScenarioImpl#getDuration Duration}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaScenarioImpl#getStart Start}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaScenarioImpl#getFinish Finish}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaScenarioImpl#getCause Cause}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaScenarioImpl#getHostDemand Host Demand}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaScenarioImpl#getHostDemandOps Host Demand Ops}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaScenarioImpl#getInterOccT Inter Occ T}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaScenarioImpl#getThroughput Throughput}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaScenarioImpl#getRespT Resp T}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaScenarioImpl#getUtilization Utilization}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaScenarioImpl#getUtilizationOnHost Utilization On Host}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaScenarioImpl#getRoot Root}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaScenarioImpl#getSteps Steps}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaScenarioImpl#getParentStep Parent Step}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaScenarioImpl#getTiming Timing}
  • + *
+ *

+ * + * @generated + */ +public class GaScenarioImpl extends ResourceUsageImpl implements GaScenario { + /** + * The cached value of the '{@link #getOn() On}' reference list. + * + * + * @see #getOn() + * @generated + * @ordered + */ + protected EList on; + + /** + * The cached value of the '{@link #getBase_Action() Base Action}' reference. + * + * + * @see #getBase_Action() + * @generated + * @ordered + */ + protected Action base_Action; + + /** + * The cached value of the '{@link #getBase_Behavior() Base Behavior}' reference. + * + * + * @see #getBase_Behavior() + * @generated + * @ordered + */ + protected Behavior base_Behavior; + + /** + * The cached value of the '{@link #getBase_Message() Base Message}' reference. + * + * + * @see #getBase_Message() + * @generated + * @ordered + */ + protected Message base_Message; + + /** + * The cached value of the '{@link #getDuration() Duration}' containment reference. + * + * + * @see #getDuration() + * @generated + * @ordered + */ + protected ValueSpecification duration; + + /** + * The cached value of the '{@link #getStart() Start}' reference. + * + * + * @see #getStart() + * @generated + * @ordered + */ + protected Event start; + + /** + * The cached value of the '{@link #getFinish() Finish}' reference. + * + * + * @see #getFinish() + * @generated + * @ordered + */ + protected Event finish; + + /** + * The cached value of the '{@link #getCause() Cause}' reference. + * + * + * @see #getCause() + * @generated + * @ordered + */ + protected GaWorkloadEvent cause; + + /** + * The cached value of the '{@link #getHostDemand() Host Demand}' attribute list. + * + * + * @see #getHostDemand() + * @generated + * @ordered + */ + protected EList hostDemand; + + /** + * The cached value of the '{@link #getHostDemandOps() Host Demand Ops}' attribute list. + * + * + * @see #getHostDemandOps() + * @generated + * @ordered + */ + protected EList hostDemandOps; + + /** + * The cached value of the '{@link #getInterOccT() Inter Occ T}' attribute list. + * + * + * @see #getInterOccT() + * @generated + * @ordered + */ + protected EList interOccT; + + /** + * The cached value of the '{@link #getThroughput() Throughput}' attribute list. + * + * + * @see #getThroughput() + * @generated + * @ordered + */ + protected EList throughput; + + /** + * The cached value of the '{@link #getRespT() Resp T}' attribute list. + * + * + * @see #getRespT() + * @generated + * @ordered + */ + protected EList respT; + + /** + * The cached value of the '{@link #getUtilization() Utilization}' attribute list. + * + * + * @see #getUtilization() + * @generated + * @ordered + */ + protected EList utilization; + + /** + * The cached value of the '{@link #getUtilizationOnHost() Utilization On Host}' attribute list. + * + * + * @see #getUtilizationOnHost() + * @generated + * @ordered + */ + protected EList utilizationOnHost; + + /** + * The cached value of the '{@link #getRoot() Root}' reference. + * + * + * @see #getRoot() + * @generated + * @ordered + */ + protected GaStep root; + + /** + * The cached value of the '{@link #getSteps() Steps}' reference list. + * + * + * @see #getSteps() + * @generated + * @ordered + */ + protected EList steps; + + /** + * The cached value of the '{@link #getParentStep() Parent Step}' reference list. + * + * + * @see #getParentStep() + * @generated + * @ordered + */ + protected EList parentStep; + + /** + * The cached value of the '{@link #getTiming() Timing}' reference list. + * + * + * @see #getTiming() + * @generated + * @ordered + */ + protected EList timing; + + /** + * + * + * @generated + */ + protected GaScenarioImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return GQAMPackage.Literals.GA_SCENARIO; + } + + /** + * + * + * @generated + */ + public EList getOn() { + if (on == null) { + on = new EObjectResolvingEList(Clock.class, this, GQAMPackage.GA_SCENARIO__ON); + } + return on; + } + + /** + * + * + * @generated + */ + public Action getBase_Action() { + if (base_Action != null && base_Action.eIsProxy()) { + InternalEObject oldBase_Action = (InternalEObject)base_Action; + base_Action = (Action)eResolveProxy(oldBase_Action); + if (base_Action != oldBase_Action) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GQAMPackage.GA_SCENARIO__BASE_ACTION, oldBase_Action, base_Action)); + } + } + return base_Action; + } + + /** + * + * + * @generated + */ + public Action basicGetBase_Action() { + return base_Action; + } + + /** + * + * + * @generated + */ + public void setBase_Action(Action newBase_Action) { + Action oldBase_Action = base_Action; + base_Action = newBase_Action; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_SCENARIO__BASE_ACTION, oldBase_Action, base_Action)); + } + + /** + * + * + * @generated + */ + public Behavior getBase_Behavior() { + if (base_Behavior != null && base_Behavior.eIsProxy()) { + InternalEObject oldBase_Behavior = (InternalEObject)base_Behavior; + base_Behavior = (Behavior)eResolveProxy(oldBase_Behavior); + if (base_Behavior != oldBase_Behavior) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GQAMPackage.GA_SCENARIO__BASE_BEHAVIOR, oldBase_Behavior, base_Behavior)); + } + } + return base_Behavior; + } + + /** + * + * + * @generated + */ + public Behavior basicGetBase_Behavior() { + return base_Behavior; + } + + /** + * + * + * @generated + */ + public void setBase_Behavior(Behavior newBase_Behavior) { + Behavior oldBase_Behavior = base_Behavior; + base_Behavior = newBase_Behavior; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_SCENARIO__BASE_BEHAVIOR, oldBase_Behavior, base_Behavior)); + } + + /** + * + * + * @generated + */ + public Message getBase_Message() { + if (base_Message != null && base_Message.eIsProxy()) { + InternalEObject oldBase_Message = (InternalEObject)base_Message; + base_Message = (Message)eResolveProxy(oldBase_Message); + if (base_Message != oldBase_Message) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GQAMPackage.GA_SCENARIO__BASE_MESSAGE, oldBase_Message, base_Message)); + } + } + return base_Message; + } + + /** + * + * + * @generated + */ + public Message basicGetBase_Message() { + return base_Message; + } + + /** + * + * + * @generated + */ + public void setBase_Message(Message newBase_Message) { + Message oldBase_Message = base_Message; + base_Message = newBase_Message; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_SCENARIO__BASE_MESSAGE, oldBase_Message, base_Message)); + } + + /** + * + * + * @generated + */ + public ValueSpecification getDuration() { + return duration; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetDuration(ValueSpecification newDuration, NotificationChain msgs) { + ValueSpecification oldDuration = duration; + duration = newDuration; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_SCENARIO__DURATION, oldDuration, newDuration); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setDuration(ValueSpecification newDuration) { + if (newDuration != duration) { + NotificationChain msgs = null; + if (duration != null) + msgs = ((InternalEObject)duration).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - GQAMPackage.GA_SCENARIO__DURATION, null, msgs); + if (newDuration != null) + msgs = ((InternalEObject)newDuration).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - GQAMPackage.GA_SCENARIO__DURATION, null, msgs); + msgs = basicSetDuration(newDuration, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_SCENARIO__DURATION, newDuration, newDuration)); + } + + /** + * + * + * @generated + */ + public Event getStart() { + if (start != null && start.eIsProxy()) { + InternalEObject oldStart = (InternalEObject)start; + start = (Event)eResolveProxy(oldStart); + if (start != oldStart) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GQAMPackage.GA_SCENARIO__START, oldStart, start)); + } + } + return start; + } + + /** + * + * + * @generated + */ + public Event basicGetStart() { + return start; + } + + /** + * + * + * @generated + */ + public void setStart(Event newStart) { + Event oldStart = start; + start = newStart; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_SCENARIO__START, oldStart, start)); + } + + /** + * + * + * @generated + */ + public Event getFinish() { + if (finish != null && finish.eIsProxy()) { + InternalEObject oldFinish = (InternalEObject)finish; + finish = (Event)eResolveProxy(oldFinish); + if (finish != oldFinish) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GQAMPackage.GA_SCENARIO__FINISH, oldFinish, finish)); + } + } + return finish; + } + + /** + * + * + * @generated + */ + public Event basicGetFinish() { + return finish; + } + + /** + * + * + * @generated + */ + public void setFinish(Event newFinish) { + Event oldFinish = finish; + finish = newFinish; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_SCENARIO__FINISH, oldFinish, finish)); + } + + /** + * + * + * @generated + */ + public GaWorkloadEvent getCause() { + if (cause != null && cause.eIsProxy()) { + InternalEObject oldCause = (InternalEObject)cause; + cause = (GaWorkloadEvent)eResolveProxy(oldCause); + if (cause != oldCause) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GQAMPackage.GA_SCENARIO__CAUSE, oldCause, cause)); + } + } + return cause; + } + + /** + * + * + * @generated + */ + public GaWorkloadEvent basicGetCause() { + return cause; + } + + /** + * + * + * @generated + */ + public void setCause(GaWorkloadEvent newCause) { + GaWorkloadEvent oldCause = cause; + cause = newCause; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_SCENARIO__CAUSE, oldCause, cause)); + } + + /** + * + * + * @generated + */ + public EList getHostDemand() { + if (hostDemand == null) { + hostDemand = new EDataTypeUniqueEList(String.class, this, GQAMPackage.GA_SCENARIO__HOST_DEMAND); + } + return hostDemand; + } + + /** + * + * + * @generated + */ + public EList getHostDemandOps() { + if (hostDemandOps == null) { + hostDemandOps = new EDataTypeUniqueEList(String.class, this, GQAMPackage.GA_SCENARIO__HOST_DEMAND_OPS); + } + return hostDemandOps; + } + + /** + * + * + * @generated + */ + public EList getInterOccT() { + if (interOccT == null) { + interOccT = new EDataTypeUniqueEList(String.class, this, GQAMPackage.GA_SCENARIO__INTER_OCC_T); + } + return interOccT; + } + + /** + * + * + * @generated + */ + public EList getThroughput() { + if (throughput == null) { + throughput = new EDataTypeUniqueEList(String.class, this, GQAMPackage.GA_SCENARIO__THROUGHPUT); + } + return throughput; + } + + /** + * + * + * @generated + */ + public EList getRespT() { + if (respT == null) { + respT = new EDataTypeUniqueEList(String.class, this, GQAMPackage.GA_SCENARIO__RESP_T); + } + return respT; + } + + /** + * + * + * @generated + */ + public EList getUtilization() { + if (utilization == null) { + utilization = new EDataTypeUniqueEList(String.class, this, GQAMPackage.GA_SCENARIO__UTILIZATION); + } + return utilization; + } + + /** + * + * + * @generated + */ + public EList getUtilizationOnHost() { + if (utilizationOnHost == null) { + utilizationOnHost = new EDataTypeUniqueEList(String.class, this, GQAMPackage.GA_SCENARIO__UTILIZATION_ON_HOST); + } + return utilizationOnHost; + } + + /** + * + * + * @generated + */ + public GaStep getRoot() { + if (root != null && root.eIsProxy()) { + InternalEObject oldRoot = (InternalEObject)root; + root = (GaStep)eResolveProxy(oldRoot); + if (root != oldRoot) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GQAMPackage.GA_SCENARIO__ROOT, oldRoot, root)); + } + } + return root; + } + + /** + * + * + * @generated + */ + public GaStep basicGetRoot() { + return root; + } + + /** + * + * + * @generated + */ + public void setRoot(GaStep newRoot) { + GaStep oldRoot = root; + root = newRoot; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_SCENARIO__ROOT, oldRoot, root)); + } + + /** + * + * + * @generated + */ + public EList getSteps() { + if (steps == null) { + steps = new EObjectWithInverseResolvingEList(GaStep.class, this, GQAMPackage.GA_SCENARIO__STEPS, GQAMPackage.GA_STEP__SCENARIO); + } + return steps; + } + + /** + * + * + * @generated + */ + public EList getParentStep() { + if (parentStep == null) { + parentStep = new EObjectWithInverseResolvingEList(GaStep.class, this, GQAMPackage.GA_SCENARIO__PARENT_STEP, GQAMPackage.GA_STEP__CHILD_SCENARIO); + } + return parentStep; + } + + /** + * + * + * @generated + */ + public EList getTiming() { + if (timing == null) { + timing = new EObjectResolvingEList(GaTimedObs.class, this, GQAMPackage.GA_SCENARIO__TIMING); + } + return timing; + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case GQAMPackage.GA_SCENARIO__STEPS: + return ((InternalEList)(InternalEList)getSteps()).basicAdd(otherEnd, msgs); + case GQAMPackage.GA_SCENARIO__PARENT_STEP: + return ((InternalEList)(InternalEList)getParentStep()).basicAdd(otherEnd, msgs); + } + return super.eInverseAdd(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case GQAMPackage.GA_SCENARIO__DURATION: + return basicSetDuration(null, msgs); + case GQAMPackage.GA_SCENARIO__STEPS: + return ((InternalEList)getSteps()).basicRemove(otherEnd, msgs); + case GQAMPackage.GA_SCENARIO__PARENT_STEP: + return ((InternalEList)getParentStep()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case GQAMPackage.GA_SCENARIO__ON: + return getOn(); + case GQAMPackage.GA_SCENARIO__BASE_ACTION: + if (resolve) return getBase_Action(); + return basicGetBase_Action(); + case GQAMPackage.GA_SCENARIO__BASE_BEHAVIOR: + if (resolve) return getBase_Behavior(); + return basicGetBase_Behavior(); + case GQAMPackage.GA_SCENARIO__BASE_MESSAGE: + if (resolve) return getBase_Message(); + return basicGetBase_Message(); + case GQAMPackage.GA_SCENARIO__DURATION: + return getDuration(); + case GQAMPackage.GA_SCENARIO__START: + if (resolve) return getStart(); + return basicGetStart(); + case GQAMPackage.GA_SCENARIO__FINISH: + if (resolve) return getFinish(); + return basicGetFinish(); + case GQAMPackage.GA_SCENARIO__CAUSE: + if (resolve) return getCause(); + return basicGetCause(); + case GQAMPackage.GA_SCENARIO__HOST_DEMAND: + return getHostDemand(); + case GQAMPackage.GA_SCENARIO__HOST_DEMAND_OPS: + return getHostDemandOps(); + case GQAMPackage.GA_SCENARIO__INTER_OCC_T: + return getInterOccT(); + case GQAMPackage.GA_SCENARIO__THROUGHPUT: + return getThroughput(); + case GQAMPackage.GA_SCENARIO__RESP_T: + return getRespT(); + case GQAMPackage.GA_SCENARIO__UTILIZATION: + return getUtilization(); + case GQAMPackage.GA_SCENARIO__UTILIZATION_ON_HOST: + return getUtilizationOnHost(); + case GQAMPackage.GA_SCENARIO__ROOT: + if (resolve) return getRoot(); + return basicGetRoot(); + case GQAMPackage.GA_SCENARIO__STEPS: + return getSteps(); + case GQAMPackage.GA_SCENARIO__PARENT_STEP: + return getParentStep(); + case GQAMPackage.GA_SCENARIO__TIMING: + return getTiming(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case GQAMPackage.GA_SCENARIO__ON: + getOn().clear(); + getOn().addAll((Collection)newValue); + return; + case GQAMPackage.GA_SCENARIO__BASE_ACTION: + setBase_Action((Action)newValue); + return; + case GQAMPackage.GA_SCENARIO__BASE_BEHAVIOR: + setBase_Behavior((Behavior)newValue); + return; + case GQAMPackage.GA_SCENARIO__BASE_MESSAGE: + setBase_Message((Message)newValue); + return; + case GQAMPackage.GA_SCENARIO__DURATION: + setDuration((ValueSpecification)newValue); + return; + case GQAMPackage.GA_SCENARIO__START: + setStart((Event)newValue); + return; + case GQAMPackage.GA_SCENARIO__FINISH: + setFinish((Event)newValue); + return; + case GQAMPackage.GA_SCENARIO__CAUSE: + setCause((GaWorkloadEvent)newValue); + return; + case GQAMPackage.GA_SCENARIO__HOST_DEMAND: + getHostDemand().clear(); + getHostDemand().addAll((Collection)newValue); + return; + case GQAMPackage.GA_SCENARIO__HOST_DEMAND_OPS: + getHostDemandOps().clear(); + getHostDemandOps().addAll((Collection)newValue); + return; + case GQAMPackage.GA_SCENARIO__INTER_OCC_T: + getInterOccT().clear(); + getInterOccT().addAll((Collection)newValue); + return; + case GQAMPackage.GA_SCENARIO__THROUGHPUT: + getThroughput().clear(); + getThroughput().addAll((Collection)newValue); + return; + case GQAMPackage.GA_SCENARIO__RESP_T: + getRespT().clear(); + getRespT().addAll((Collection)newValue); + return; + case GQAMPackage.GA_SCENARIO__UTILIZATION: + getUtilization().clear(); + getUtilization().addAll((Collection)newValue); + return; + case GQAMPackage.GA_SCENARIO__UTILIZATION_ON_HOST: + getUtilizationOnHost().clear(); + getUtilizationOnHost().addAll((Collection)newValue); + return; + case GQAMPackage.GA_SCENARIO__ROOT: + setRoot((GaStep)newValue); + return; + case GQAMPackage.GA_SCENARIO__STEPS: + getSteps().clear(); + getSteps().addAll((Collection)newValue); + return; + case GQAMPackage.GA_SCENARIO__PARENT_STEP: + getParentStep().clear(); + getParentStep().addAll((Collection)newValue); + return; + case GQAMPackage.GA_SCENARIO__TIMING: + getTiming().clear(); + getTiming().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case GQAMPackage.GA_SCENARIO__ON: + getOn().clear(); + return; + case GQAMPackage.GA_SCENARIO__BASE_ACTION: + setBase_Action((Action)null); + return; + case GQAMPackage.GA_SCENARIO__BASE_BEHAVIOR: + setBase_Behavior((Behavior)null); + return; + case GQAMPackage.GA_SCENARIO__BASE_MESSAGE: + setBase_Message((Message)null); + return; + case GQAMPackage.GA_SCENARIO__DURATION: + setDuration((ValueSpecification)null); + return; + case GQAMPackage.GA_SCENARIO__START: + setStart((Event)null); + return; + case GQAMPackage.GA_SCENARIO__FINISH: + setFinish((Event)null); + return; + case GQAMPackage.GA_SCENARIO__CAUSE: + setCause((GaWorkloadEvent)null); + return; + case GQAMPackage.GA_SCENARIO__HOST_DEMAND: + getHostDemand().clear(); + return; + case GQAMPackage.GA_SCENARIO__HOST_DEMAND_OPS: + getHostDemandOps().clear(); + return; + case GQAMPackage.GA_SCENARIO__INTER_OCC_T: + getInterOccT().clear(); + return; + case GQAMPackage.GA_SCENARIO__THROUGHPUT: + getThroughput().clear(); + return; + case GQAMPackage.GA_SCENARIO__RESP_T: + getRespT().clear(); + return; + case GQAMPackage.GA_SCENARIO__UTILIZATION: + getUtilization().clear(); + return; + case GQAMPackage.GA_SCENARIO__UTILIZATION_ON_HOST: + getUtilizationOnHost().clear(); + return; + case GQAMPackage.GA_SCENARIO__ROOT: + setRoot((GaStep)null); + return; + case GQAMPackage.GA_SCENARIO__STEPS: + getSteps().clear(); + return; + case GQAMPackage.GA_SCENARIO__PARENT_STEP: + getParentStep().clear(); + return; + case GQAMPackage.GA_SCENARIO__TIMING: + getTiming().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case GQAMPackage.GA_SCENARIO__ON: + return on != null && !on.isEmpty(); + case GQAMPackage.GA_SCENARIO__BASE_ACTION: + return base_Action != null; + case GQAMPackage.GA_SCENARIO__BASE_BEHAVIOR: + return base_Behavior != null; + case GQAMPackage.GA_SCENARIO__BASE_MESSAGE: + return base_Message != null; + case GQAMPackage.GA_SCENARIO__DURATION: + return duration != null; + case GQAMPackage.GA_SCENARIO__START: + return start != null; + case GQAMPackage.GA_SCENARIO__FINISH: + return finish != null; + case GQAMPackage.GA_SCENARIO__CAUSE: + return cause != null; + case GQAMPackage.GA_SCENARIO__HOST_DEMAND: + return hostDemand != null && !hostDemand.isEmpty(); + case GQAMPackage.GA_SCENARIO__HOST_DEMAND_OPS: + return hostDemandOps != null && !hostDemandOps.isEmpty(); + case GQAMPackage.GA_SCENARIO__INTER_OCC_T: + return interOccT != null && !interOccT.isEmpty(); + case GQAMPackage.GA_SCENARIO__THROUGHPUT: + return throughput != null && !throughput.isEmpty(); + case GQAMPackage.GA_SCENARIO__RESP_T: + return respT != null && !respT.isEmpty(); + case GQAMPackage.GA_SCENARIO__UTILIZATION: + return utilization != null && !utilization.isEmpty(); + case GQAMPackage.GA_SCENARIO__UTILIZATION_ON_HOST: + return utilizationOnHost != null && !utilizationOnHost.isEmpty(); + case GQAMPackage.GA_SCENARIO__ROOT: + return root != null; + case GQAMPackage.GA_SCENARIO__STEPS: + return steps != null && !steps.isEmpty(); + case GQAMPackage.GA_SCENARIO__PARENT_STEP: + return parentStep != null && !parentStep.isEmpty(); + case GQAMPackage.GA_SCENARIO__TIMING: + return timing != null && !timing.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) { + if (baseClass == TimedElement.class) { + switch (derivedFeatureID) { + case GQAMPackage.GA_SCENARIO__ON: return TimePackage.TIMED_ELEMENT__ON; + default: return -1; + } + } + if (baseClass == TimedProcessing.class) { + switch (derivedFeatureID) { + case GQAMPackage.GA_SCENARIO__BASE_ACTION: return TimePackage.TIMED_PROCESSING__BASE_ACTION; + case GQAMPackage.GA_SCENARIO__BASE_BEHAVIOR: return TimePackage.TIMED_PROCESSING__BASE_BEHAVIOR; + case GQAMPackage.GA_SCENARIO__BASE_MESSAGE: return TimePackage.TIMED_PROCESSING__BASE_MESSAGE; + case GQAMPackage.GA_SCENARIO__DURATION: return TimePackage.TIMED_PROCESSING__DURATION; + case GQAMPackage.GA_SCENARIO__START: return TimePackage.TIMED_PROCESSING__START; + case GQAMPackage.GA_SCENARIO__FINISH: return TimePackage.TIMED_PROCESSING__FINISH; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) { + if (baseClass == TimedElement.class) { + switch (baseFeatureID) { + case TimePackage.TIMED_ELEMENT__ON: return GQAMPackage.GA_SCENARIO__ON; + default: return -1; + } + } + if (baseClass == TimedProcessing.class) { + switch (baseFeatureID) { + case TimePackage.TIMED_PROCESSING__BASE_ACTION: return GQAMPackage.GA_SCENARIO__BASE_ACTION; + case TimePackage.TIMED_PROCESSING__BASE_BEHAVIOR: return GQAMPackage.GA_SCENARIO__BASE_BEHAVIOR; + case TimePackage.TIMED_PROCESSING__BASE_MESSAGE: return GQAMPackage.GA_SCENARIO__BASE_MESSAGE; + case TimePackage.TIMED_PROCESSING__DURATION: return GQAMPackage.GA_SCENARIO__DURATION; + case TimePackage.TIMED_PROCESSING__START: return GQAMPackage.GA_SCENARIO__START; + case TimePackage.TIMED_PROCESSING__FINISH: return GQAMPackage.GA_SCENARIO__FINISH; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (hostDemand: "); + result.append(hostDemand); + result.append(", hostDemandOps: "); + result.append(hostDemandOps); + result.append(", interOccT: "); + result.append(interOccT); + result.append(", throughput: "); + result.append(throughput); + result.append(", respT: "); + result.append(respT); + result.append(", utilization: "); + result.append(utilization); + result.append(", utilizationOnHost: "); + result.append(utilizationOnHost); + result.append(')'); + return result.toString(); + } + +} //GaScenarioImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaStepImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaStepImpl.java new file mode 100644 index 00000000000..97639a06844 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaStepImpl.java @@ -0,0 +1,848 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.GQAM.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EDataTypeUniqueEList; +import org.eclipse.emf.ecore.util.EObjectResolvingEList; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaExecHost; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaRequestedService; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SchedulableResource; + +/** + * + * An implementation of the model object 'Ga Step'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaStepImpl#getIsAtomic Is Atomic}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaStepImpl#getBlockT Block T}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaStepImpl#getRep Rep}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaStepImpl#getProb Prob}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaStepImpl#getPriority Priority}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaStepImpl#getConcurRes Concur Res}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaStepImpl#getHost Host}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaStepImpl#getServDemand Serv Demand}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaStepImpl#getServCount Serv Count}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaStepImpl#getSelfDelay Self Delay}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaStepImpl#getScenario Scenario}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaStepImpl#getChildScenario Child Scenario}
  • + *
+ *

+ * + * @generated + */ +public class GaStepImpl extends GaScenarioImpl implements GaStep { + /** + * The default value of the '{@link #getIsAtomic() Is Atomic}' attribute. + * + * + * @see #getIsAtomic() + * @generated + * @ordered + */ + protected static final String IS_ATOMIC_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIsAtomic() Is Atomic}' attribute. + * + * + * @see #getIsAtomic() + * @generated + * @ordered + */ + protected String isAtomic = IS_ATOMIC_EDEFAULT; + + /** + * The default value of the '{@link #getBlockT() Block T}' attribute. + * + * + * @see #getBlockT() + * @generated + * @ordered + */ + protected static final String BLOCK_T_EDEFAULT = null; + + /** + * The cached value of the '{@link #getBlockT() Block T}' attribute. + * + * + * @see #getBlockT() + * @generated + * @ordered + */ + protected String blockT = BLOCK_T_EDEFAULT; + + /** + * The default value of the '{@link #getRep() Rep}' attribute. + * + * + * @see #getRep() + * @generated + * @ordered + */ + protected static final String REP_EDEFAULT = "1.0"; + + /** + * The cached value of the '{@link #getRep() Rep}' attribute. + * + * + * @see #getRep() + * @generated + * @ordered + */ + protected String rep = REP_EDEFAULT; + + /** + * The default value of the '{@link #getProb() Prob}' attribute. + * + * + * @see #getProb() + * @generated + * @ordered + */ + protected static final String PROB_EDEFAULT = "1.0"; + + /** + * The cached value of the '{@link #getProb() Prob}' attribute. + * + * + * @see #getProb() + * @generated + * @ordered + */ + protected String prob = PROB_EDEFAULT; + + /** + * The default value of the '{@link #getPriority() Priority}' attribute. + * + * + * @see #getPriority() + * @generated + * @ordered + */ + protected static final String PRIORITY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPriority() Priority}' attribute. + * + * + * @see #getPriority() + * @generated + * @ordered + */ + protected String priority = PRIORITY_EDEFAULT; + + /** + * The cached value of the '{@link #getConcurRes() Concur Res}' reference. + * + * + * @see #getConcurRes() + * @generated + * @ordered + */ + protected SchedulableResource concurRes; + + /** + * The cached value of the '{@link #getHost() Host}' reference. + * + * + * @see #getHost() + * @generated + * @ordered + */ + protected GaExecHost host; + + /** + * The cached value of the '{@link #getServDemand() Serv Demand}' reference list. + * + * + * @see #getServDemand() + * @generated + * @ordered + */ + protected EList servDemand; + + /** + * The cached value of the '{@link #getServCount() Serv Count}' attribute list. + * + * + * @see #getServCount() + * @generated + * @ordered + */ + protected EList servCount; + + /** + * The default value of the '{@link #getSelfDelay() Self Delay}' attribute. + * + * + * @see #getSelfDelay() + * @generated + * @ordered + */ + protected static final String SELF_DELAY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSelfDelay() Self Delay}' attribute. + * + * + * @see #getSelfDelay() + * @generated + * @ordered + */ + protected String selfDelay = SELF_DELAY_EDEFAULT; + + /** + * The cached value of the '{@link #getScenario() Scenario}' reference. + * + * + * @see #getScenario() + * @generated + * @ordered + */ + protected GaScenario scenario; + + /** + * The cached value of the '{@link #getChildScenario() Child Scenario}' reference. + * + * + * @see #getChildScenario() + * @generated + * @ordered + */ + protected GaScenario childScenario; + + /** + * + * + * @generated + */ + protected GaStepImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return GQAMPackage.Literals.GA_STEP; + } + + /** + * + * + * @generated + */ + public String getIsAtomic() { + return isAtomic; + } + + /** + * + * + * @generated + */ + public void setIsAtomic(String newIsAtomic) { + String oldIsAtomic = isAtomic; + isAtomic = newIsAtomic; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_STEP__IS_ATOMIC, oldIsAtomic, isAtomic)); + } + + /** + * + * + * @generated + */ + public String getBlockT() { + return blockT; + } + + /** + * + * + * @generated + */ + public void setBlockT(String newBlockT) { + String oldBlockT = blockT; + blockT = newBlockT; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_STEP__BLOCK_T, oldBlockT, blockT)); + } + + /** + * + * + * @generated + */ + public String getRep() { + return rep; + } + + /** + * + * + * @generated + */ + public void setRep(String newRep) { + String oldRep = rep; + rep = newRep; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_STEP__REP, oldRep, rep)); + } + + /** + * + * + * @generated + */ + public String getProb() { + return prob; + } + + /** + * + * + * @generated + */ + public void setProb(String newProb) { + String oldProb = prob; + prob = newProb; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_STEP__PROB, oldProb, prob)); + } + + /** + * + * + * @generated + */ + public String getPriority() { + return priority; + } + + /** + * + * + * @generated + */ + public void setPriority(String newPriority) { + String oldPriority = priority; + priority = newPriority; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_STEP__PRIORITY, oldPriority, priority)); + } + + /** + * + * + * @generated + */ + public SchedulableResource getConcurRes() { + if (concurRes != null && concurRes.eIsProxy()) { + InternalEObject oldConcurRes = (InternalEObject)concurRes; + concurRes = (SchedulableResource)eResolveProxy(oldConcurRes); + if (concurRes != oldConcurRes) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GQAMPackage.GA_STEP__CONCUR_RES, oldConcurRes, concurRes)); + } + } + return concurRes; + } + + /** + * + * + * @generated + */ + public SchedulableResource basicGetConcurRes() { + return concurRes; + } + + /** + * + * + * @generated + */ + public void setConcurRes(SchedulableResource newConcurRes) { + SchedulableResource oldConcurRes = concurRes; + concurRes = newConcurRes; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_STEP__CONCUR_RES, oldConcurRes, concurRes)); + } + + /** + * + * + * @generated + */ + public GaExecHost getHost() { + if (host != null && host.eIsProxy()) { + InternalEObject oldHost = (InternalEObject)host; + host = (GaExecHost)eResolveProxy(oldHost); + if (host != oldHost) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GQAMPackage.GA_STEP__HOST, oldHost, host)); + } + } + return host; + } + + /** + * + * + * @generated + */ + public GaExecHost basicGetHost() { + return host; + } + + /** + * + * + * @generated + */ + public void setHost(GaExecHost newHost) { + GaExecHost oldHost = host; + host = newHost; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_STEP__HOST, oldHost, host)); + } + + /** + * + * + * @generated + */ + public EList getServDemand() { + if (servDemand == null) { + servDemand = new EObjectResolvingEList(GaRequestedService.class, this, GQAMPackage.GA_STEP__SERV_DEMAND); + } + return servDemand; + } + + /** + * + * + * @generated + */ + public EList getServCount() { + if (servCount == null) { + servCount = new EDataTypeUniqueEList(String.class, this, GQAMPackage.GA_STEP__SERV_COUNT); + } + return servCount; + } + + /** + * + * + * @generated + */ + public String getSelfDelay() { + return selfDelay; + } + + /** + * + * + * @generated + */ + public void setSelfDelay(String newSelfDelay) { + String oldSelfDelay = selfDelay; + selfDelay = newSelfDelay; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_STEP__SELF_DELAY, oldSelfDelay, selfDelay)); + } + + /** + * + * + * @generated + */ + public GaScenario getScenario() { + if (scenario != null && scenario.eIsProxy()) { + InternalEObject oldScenario = (InternalEObject)scenario; + scenario = (GaScenario)eResolveProxy(oldScenario); + if (scenario != oldScenario) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GQAMPackage.GA_STEP__SCENARIO, oldScenario, scenario)); + } + } + return scenario; + } + + /** + * + * + * @generated + */ + public GaScenario basicGetScenario() { + return scenario; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetScenario(GaScenario newScenario, NotificationChain msgs) { + GaScenario oldScenario = scenario; + scenario = newScenario; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_STEP__SCENARIO, oldScenario, newScenario); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setScenario(GaScenario newScenario) { + if (newScenario != scenario) { + NotificationChain msgs = null; + if (scenario != null) + msgs = ((InternalEObject)scenario).eInverseRemove(this, GQAMPackage.GA_SCENARIO__STEPS, GaScenario.class, msgs); + if (newScenario != null) + msgs = ((InternalEObject)newScenario).eInverseAdd(this, GQAMPackage.GA_SCENARIO__STEPS, GaScenario.class, msgs); + msgs = basicSetScenario(newScenario, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_STEP__SCENARIO, newScenario, newScenario)); + } + + /** + * + * + * @generated + */ + public GaScenario getChildScenario() { + if (childScenario != null && childScenario.eIsProxy()) { + InternalEObject oldChildScenario = (InternalEObject)childScenario; + childScenario = (GaScenario)eResolveProxy(oldChildScenario); + if (childScenario != oldChildScenario) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GQAMPackage.GA_STEP__CHILD_SCENARIO, oldChildScenario, childScenario)); + } + } + return childScenario; + } + + /** + * + * + * @generated + */ + public GaScenario basicGetChildScenario() { + return childScenario; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetChildScenario(GaScenario newChildScenario, NotificationChain msgs) { + GaScenario oldChildScenario = childScenario; + childScenario = newChildScenario; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_STEP__CHILD_SCENARIO, oldChildScenario, newChildScenario); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setChildScenario(GaScenario newChildScenario) { + if (newChildScenario != childScenario) { + NotificationChain msgs = null; + if (childScenario != null) + msgs = ((InternalEObject)childScenario).eInverseRemove(this, GQAMPackage.GA_SCENARIO__PARENT_STEP, GaScenario.class, msgs); + if (newChildScenario != null) + msgs = ((InternalEObject)newChildScenario).eInverseAdd(this, GQAMPackage.GA_SCENARIO__PARENT_STEP, GaScenario.class, msgs); + msgs = basicSetChildScenario(newChildScenario, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_STEP__CHILD_SCENARIO, newChildScenario, newChildScenario)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case GQAMPackage.GA_STEP__SCENARIO: + if (scenario != null) + msgs = ((InternalEObject)scenario).eInverseRemove(this, GQAMPackage.GA_SCENARIO__STEPS, GaScenario.class, msgs); + return basicSetScenario((GaScenario)otherEnd, msgs); + case GQAMPackage.GA_STEP__CHILD_SCENARIO: + if (childScenario != null) + msgs = ((InternalEObject)childScenario).eInverseRemove(this, GQAMPackage.GA_SCENARIO__PARENT_STEP, GaScenario.class, msgs); + return basicSetChildScenario((GaScenario)otherEnd, msgs); + } + return super.eInverseAdd(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case GQAMPackage.GA_STEP__SCENARIO: + return basicSetScenario(null, msgs); + case GQAMPackage.GA_STEP__CHILD_SCENARIO: + return basicSetChildScenario(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case GQAMPackage.GA_STEP__IS_ATOMIC: + return getIsAtomic(); + case GQAMPackage.GA_STEP__BLOCK_T: + return getBlockT(); + case GQAMPackage.GA_STEP__REP: + return getRep(); + case GQAMPackage.GA_STEP__PROB: + return getProb(); + case GQAMPackage.GA_STEP__PRIORITY: + return getPriority(); + case GQAMPackage.GA_STEP__CONCUR_RES: + if (resolve) return getConcurRes(); + return basicGetConcurRes(); + case GQAMPackage.GA_STEP__HOST: + if (resolve) return getHost(); + return basicGetHost(); + case GQAMPackage.GA_STEP__SERV_DEMAND: + return getServDemand(); + case GQAMPackage.GA_STEP__SERV_COUNT: + return getServCount(); + case GQAMPackage.GA_STEP__SELF_DELAY: + return getSelfDelay(); + case GQAMPackage.GA_STEP__SCENARIO: + if (resolve) return getScenario(); + return basicGetScenario(); + case GQAMPackage.GA_STEP__CHILD_SCENARIO: + if (resolve) return getChildScenario(); + return basicGetChildScenario(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case GQAMPackage.GA_STEP__IS_ATOMIC: + setIsAtomic((String)newValue); + return; + case GQAMPackage.GA_STEP__BLOCK_T: + setBlockT((String)newValue); + return; + case GQAMPackage.GA_STEP__REP: + setRep((String)newValue); + return; + case GQAMPackage.GA_STEP__PROB: + setProb((String)newValue); + return; + case GQAMPackage.GA_STEP__PRIORITY: + setPriority((String)newValue); + return; + case GQAMPackage.GA_STEP__CONCUR_RES: + setConcurRes((SchedulableResource)newValue); + return; + case GQAMPackage.GA_STEP__HOST: + setHost((GaExecHost)newValue); + return; + case GQAMPackage.GA_STEP__SERV_DEMAND: + getServDemand().clear(); + getServDemand().addAll((Collection)newValue); + return; + case GQAMPackage.GA_STEP__SERV_COUNT: + getServCount().clear(); + getServCount().addAll((Collection)newValue); + return; + case GQAMPackage.GA_STEP__SELF_DELAY: + setSelfDelay((String)newValue); + return; + case GQAMPackage.GA_STEP__SCENARIO: + setScenario((GaScenario)newValue); + return; + case GQAMPackage.GA_STEP__CHILD_SCENARIO: + setChildScenario((GaScenario)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case GQAMPackage.GA_STEP__IS_ATOMIC: + setIsAtomic(IS_ATOMIC_EDEFAULT); + return; + case GQAMPackage.GA_STEP__BLOCK_T: + setBlockT(BLOCK_T_EDEFAULT); + return; + case GQAMPackage.GA_STEP__REP: + setRep(REP_EDEFAULT); + return; + case GQAMPackage.GA_STEP__PROB: + setProb(PROB_EDEFAULT); + return; + case GQAMPackage.GA_STEP__PRIORITY: + setPriority(PRIORITY_EDEFAULT); + return; + case GQAMPackage.GA_STEP__CONCUR_RES: + setConcurRes((SchedulableResource)null); + return; + case GQAMPackage.GA_STEP__HOST: + setHost((GaExecHost)null); + return; + case GQAMPackage.GA_STEP__SERV_DEMAND: + getServDemand().clear(); + return; + case GQAMPackage.GA_STEP__SERV_COUNT: + getServCount().clear(); + return; + case GQAMPackage.GA_STEP__SELF_DELAY: + setSelfDelay(SELF_DELAY_EDEFAULT); + return; + case GQAMPackage.GA_STEP__SCENARIO: + setScenario((GaScenario)null); + return; + case GQAMPackage.GA_STEP__CHILD_SCENARIO: + setChildScenario((GaScenario)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case GQAMPackage.GA_STEP__IS_ATOMIC: + return IS_ATOMIC_EDEFAULT == null ? isAtomic != null : !IS_ATOMIC_EDEFAULT.equals(isAtomic); + case GQAMPackage.GA_STEP__BLOCK_T: + return BLOCK_T_EDEFAULT == null ? blockT != null : !BLOCK_T_EDEFAULT.equals(blockT); + case GQAMPackage.GA_STEP__REP: + return REP_EDEFAULT == null ? rep != null : !REP_EDEFAULT.equals(rep); + case GQAMPackage.GA_STEP__PROB: + return PROB_EDEFAULT == null ? prob != null : !PROB_EDEFAULT.equals(prob); + case GQAMPackage.GA_STEP__PRIORITY: + return PRIORITY_EDEFAULT == null ? priority != null : !PRIORITY_EDEFAULT.equals(priority); + case GQAMPackage.GA_STEP__CONCUR_RES: + return concurRes != null; + case GQAMPackage.GA_STEP__HOST: + return host != null; + case GQAMPackage.GA_STEP__SERV_DEMAND: + return servDemand != null && !servDemand.isEmpty(); + case GQAMPackage.GA_STEP__SERV_COUNT: + return servCount != null && !servCount.isEmpty(); + case GQAMPackage.GA_STEP__SELF_DELAY: + return SELF_DELAY_EDEFAULT == null ? selfDelay != null : !SELF_DELAY_EDEFAULT.equals(selfDelay); + case GQAMPackage.GA_STEP__SCENARIO: + return scenario != null; + case GQAMPackage.GA_STEP__CHILD_SCENARIO: + return childScenario != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (isAtomic: "); + result.append(isAtomic); + result.append(", blockT: "); + result.append(blockT); + result.append(", rep: "); + result.append(rep); + result.append(", prob: "); + result.append(prob); + result.append(", priority: "); + result.append(priority); + result.append(", servCount: "); + result.append(servCount); + result.append(", selfDelay: "); + result.append(selfDelay); + result.append(')'); + return result.toString(); + } + +} //GaStepImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaTimedObsImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaTimedObsImpl.java new file mode 100644 index 00000000000..3df469b7bd9 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaTimedObsImpl.java @@ -0,0 +1,253 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.GQAM.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EObjectResolvingEList; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaTimedObs; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.LaxityKind; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.NfpConstraintImpl; + +import org.eclipse.uml2.uml.TimeObservation; + +/** + * + * An implementation of the model object 'Ga Timed Obs'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaTimedObsImpl#getLaxity Laxity}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaTimedObsImpl#getStartObs Start Obs}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaTimedObsImpl#getEndObs End Obs}
  • + *
+ *

+ * + * @generated + */ +public class GaTimedObsImpl extends NfpConstraintImpl implements GaTimedObs { + /** + * The default value of the '{@link #getLaxity() Laxity}' attribute. + * + * + * @see #getLaxity() + * @generated + * @ordered + */ + protected static final LaxityKind LAXITY_EDEFAULT = LaxityKind.HARD; + + /** + * The cached value of the '{@link #getLaxity() Laxity}' attribute. + * + * + * @see #getLaxity() + * @generated + * @ordered + */ + protected LaxityKind laxity = LAXITY_EDEFAULT; + + /** + * The cached value of the '{@link #getStartObs() Start Obs}' reference list. + * + * + * @see #getStartObs() + * @generated + * @ordered + */ + protected EList startObs; + + /** + * The cached value of the '{@link #getEndObs() End Obs}' reference list. + * + * + * @see #getEndObs() + * @generated + * @ordered + */ + protected EList endObs; + + /** + * + * + * @generated + */ + protected GaTimedObsImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return GQAMPackage.Literals.GA_TIMED_OBS; + } + + /** + * + * + * @generated + */ + public LaxityKind getLaxity() { + return laxity; + } + + /** + * + * + * @generated + */ + public void setLaxity(LaxityKind newLaxity) { + LaxityKind oldLaxity = laxity; + laxity = newLaxity == null ? LAXITY_EDEFAULT : newLaxity; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_TIMED_OBS__LAXITY, oldLaxity, laxity)); + } + + /** + * + * + * @generated + */ + public EList getStartObs() { + if (startObs == null) { + startObs = new EObjectResolvingEList(TimeObservation.class, this, GQAMPackage.GA_TIMED_OBS__START_OBS); + } + return startObs; + } + + /** + * + * + * @generated + */ + public EList getEndObs() { + if (endObs == null) { + endObs = new EObjectResolvingEList(TimeObservation.class, this, GQAMPackage.GA_TIMED_OBS__END_OBS); + } + return endObs; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case GQAMPackage.GA_TIMED_OBS__LAXITY: + return getLaxity(); + case GQAMPackage.GA_TIMED_OBS__START_OBS: + return getStartObs(); + case GQAMPackage.GA_TIMED_OBS__END_OBS: + return getEndObs(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case GQAMPackage.GA_TIMED_OBS__LAXITY: + setLaxity((LaxityKind)newValue); + return; + case GQAMPackage.GA_TIMED_OBS__START_OBS: + getStartObs().clear(); + getStartObs().addAll((Collection)newValue); + return; + case GQAMPackage.GA_TIMED_OBS__END_OBS: + getEndObs().clear(); + getEndObs().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case GQAMPackage.GA_TIMED_OBS__LAXITY: + setLaxity(LAXITY_EDEFAULT); + return; + case GQAMPackage.GA_TIMED_OBS__START_OBS: + getStartObs().clear(); + return; + case GQAMPackage.GA_TIMED_OBS__END_OBS: + getEndObs().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case GQAMPackage.GA_TIMED_OBS__LAXITY: + return laxity != LAXITY_EDEFAULT; + case GQAMPackage.GA_TIMED_OBS__START_OBS: + return startObs != null && !startObs.isEmpty(); + case GQAMPackage.GA_TIMED_OBS__END_OBS: + return endObs != null && !endObs.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (laxity: "); + result.append(laxity); + result.append(')'); + return result.toString(); + } + +} //GaTimedObsImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaWorkloadBehaviorImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaWorkloadBehaviorImpl.java new file mode 100644 index 00000000000..6b41b5a9d15 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaWorkloadBehaviorImpl.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.MARTE_AnalysisModel.GQAM.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectResolvingEList; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadBehavior; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadEvent; + +import org.eclipse.uml2.uml.NamedElement; + +/** + * + * An implementation of the model object 'Ga Workload Behavior'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaWorkloadBehaviorImpl#getBehavior Behavior}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaWorkloadBehaviorImpl#getDemand Demand}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaWorkloadBehaviorImpl#getBase_NamedElement Base Named Element}
  • + *
+ *

+ * + * @generated + */ +public class GaWorkloadBehaviorImpl extends EObjectImpl implements GaWorkloadBehavior { + /** + * The cached value of the '{@link #getBehavior() Behavior}' reference list. + * + * + * @see #getBehavior() + * @generated + * @ordered + */ + protected EList behavior; + + /** + * The cached value of the '{@link #getDemand() Demand}' reference list. + * + * + * @see #getDemand() + * @generated + * @ordered + */ + protected EList demand; + + /** + * The cached value of the '{@link #getBase_NamedElement() Base Named Element}' reference. + * + * + * @see #getBase_NamedElement() + * @generated + * @ordered + */ + protected NamedElement base_NamedElement; + + /** + * + * + * @generated + */ + protected GaWorkloadBehaviorImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return GQAMPackage.Literals.GA_WORKLOAD_BEHAVIOR; + } + + /** + * + * + * @generated + */ + public EList getBehavior() { + if (behavior == null) { + behavior = new EObjectResolvingEList(GaScenario.class, this, GQAMPackage.GA_WORKLOAD_BEHAVIOR__BEHAVIOR); + } + return behavior; + } + + /** + * + * + * @generated + */ + public EList getDemand() { + if (demand == null) { + demand = new EObjectResolvingEList(GaWorkloadEvent.class, this, GQAMPackage.GA_WORKLOAD_BEHAVIOR__DEMAND); + } + return demand; + } + + /** + * + * + * @generated + */ + public NamedElement getBase_NamedElement() { + if (base_NamedElement != null && base_NamedElement.eIsProxy()) { + InternalEObject oldBase_NamedElement = (InternalEObject)base_NamedElement; + base_NamedElement = (NamedElement)eResolveProxy(oldBase_NamedElement); + if (base_NamedElement != oldBase_NamedElement) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GQAMPackage.GA_WORKLOAD_BEHAVIOR__BASE_NAMED_ELEMENT, oldBase_NamedElement, base_NamedElement)); + } + } + return base_NamedElement; + } + + /** + * + * + * @generated + */ + public NamedElement basicGetBase_NamedElement() { + return base_NamedElement; + } + + /** + * + * + * @generated + */ + public void setBase_NamedElement(NamedElement newBase_NamedElement) { + NamedElement oldBase_NamedElement = base_NamedElement; + base_NamedElement = newBase_NamedElement; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_WORKLOAD_BEHAVIOR__BASE_NAMED_ELEMENT, oldBase_NamedElement, base_NamedElement)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case GQAMPackage.GA_WORKLOAD_BEHAVIOR__BEHAVIOR: + return getBehavior(); + case GQAMPackage.GA_WORKLOAD_BEHAVIOR__DEMAND: + return getDemand(); + case GQAMPackage.GA_WORKLOAD_BEHAVIOR__BASE_NAMED_ELEMENT: + if (resolve) return getBase_NamedElement(); + return basicGetBase_NamedElement(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case GQAMPackage.GA_WORKLOAD_BEHAVIOR__BEHAVIOR: + getBehavior().clear(); + getBehavior().addAll((Collection)newValue); + return; + case GQAMPackage.GA_WORKLOAD_BEHAVIOR__DEMAND: + getDemand().clear(); + getDemand().addAll((Collection)newValue); + return; + case GQAMPackage.GA_WORKLOAD_BEHAVIOR__BASE_NAMED_ELEMENT: + setBase_NamedElement((NamedElement)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case GQAMPackage.GA_WORKLOAD_BEHAVIOR__BEHAVIOR: + getBehavior().clear(); + return; + case GQAMPackage.GA_WORKLOAD_BEHAVIOR__DEMAND: + getDemand().clear(); + return; + case GQAMPackage.GA_WORKLOAD_BEHAVIOR__BASE_NAMED_ELEMENT: + setBase_NamedElement((NamedElement)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case GQAMPackage.GA_WORKLOAD_BEHAVIOR__BEHAVIOR: + return behavior != null && !behavior.isEmpty(); + case GQAMPackage.GA_WORKLOAD_BEHAVIOR__DEMAND: + return demand != null && !demand.isEmpty(); + case GQAMPackage.GA_WORKLOAD_BEHAVIOR__BASE_NAMED_ELEMENT: + return base_NamedElement != null; + } + return super.eIsSet(featureID); + } + +} //GaWorkloadBehaviorImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaWorkloadEventImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaWorkloadEventImpl.java new file mode 100644 index 00000000000..8aeee59d757 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaWorkloadEventImpl.java @@ -0,0 +1,481 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.GQAM.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaEventTrace; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadEvent; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadGenerator; + +import org.eclipse.uml2.uml.NamedElement; +import org.eclipse.uml2.uml.TimeEvent; + +/** + * + * An implementation of the model object 'Ga Workload Event'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaWorkloadEventImpl#getPattern Pattern}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaWorkloadEventImpl#getGenerator Generator}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaWorkloadEventImpl#getTrace Trace}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaWorkloadEventImpl#getEffect Effect}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaWorkloadEventImpl#getTimedEvent Timed Event}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaWorkloadEventImpl#getBase_NamedElement Base Named Element}
  • + *
+ *

+ * + * @generated + */ +public class GaWorkloadEventImpl extends EObjectImpl implements GaWorkloadEvent { + /** + * The default value of the '{@link #getPattern() Pattern}' attribute. + * + * + * @see #getPattern() + * @generated + * @ordered + */ + protected static final String PATTERN_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPattern() Pattern}' attribute. + * + * + * @see #getPattern() + * @generated + * @ordered + */ + protected String pattern = PATTERN_EDEFAULT; + + /** + * The cached value of the '{@link #getGenerator() Generator}' reference. + * + * + * @see #getGenerator() + * @generated + * @ordered + */ + protected GaWorkloadGenerator generator; + + /** + * The cached value of the '{@link #getTrace() Trace}' reference. + * + * + * @see #getTrace() + * @generated + * @ordered + */ + protected GaEventTrace trace; + + /** + * The cached value of the '{@link #getEffect() Effect}' reference. + * + * + * @see #getEffect() + * @generated + * @ordered + */ + protected GaScenario effect; + + /** + * The cached value of the '{@link #getTimedEvent() Timed Event}' reference. + * + * + * @see #getTimedEvent() + * @generated + * @ordered + */ + protected TimeEvent timedEvent; + + /** + * The cached value of the '{@link #getBase_NamedElement() Base Named Element}' reference. + * + * + * @see #getBase_NamedElement() + * @generated + * @ordered + */ + protected NamedElement base_NamedElement; + + /** + * + * + * @generated + */ + protected GaWorkloadEventImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return GQAMPackage.Literals.GA_WORKLOAD_EVENT; + } + + /** + * + * + * @generated + */ + public String getPattern() { + return pattern; + } + + /** + * + * + * @generated + */ + public void setPattern(String newPattern) { + String oldPattern = pattern; + pattern = newPattern; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_WORKLOAD_EVENT__PATTERN, oldPattern, pattern)); + } + + /** + * + * + * @generated + */ + public GaWorkloadGenerator getGenerator() { + if (generator != null && generator.eIsProxy()) { + InternalEObject oldGenerator = (InternalEObject)generator; + generator = (GaWorkloadGenerator)eResolveProxy(oldGenerator); + if (generator != oldGenerator) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GQAMPackage.GA_WORKLOAD_EVENT__GENERATOR, oldGenerator, generator)); + } + } + return generator; + } + + /** + * + * + * @generated + */ + public GaWorkloadGenerator basicGetGenerator() { + return generator; + } + + /** + * + * + * @generated + */ + public void setGenerator(GaWorkloadGenerator newGenerator) { + GaWorkloadGenerator oldGenerator = generator; + generator = newGenerator; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_WORKLOAD_EVENT__GENERATOR, oldGenerator, generator)); + } + + /** + * + * + * @generated + */ + public GaEventTrace getTrace() { + if (trace != null && trace.eIsProxy()) { + InternalEObject oldTrace = (InternalEObject)trace; + trace = (GaEventTrace)eResolveProxy(oldTrace); + if (trace != oldTrace) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GQAMPackage.GA_WORKLOAD_EVENT__TRACE, oldTrace, trace)); + } + } + return trace; + } + + /** + * + * + * @generated + */ + public GaEventTrace basicGetTrace() { + return trace; + } + + /** + * + * + * @generated + */ + public void setTrace(GaEventTrace newTrace) { + GaEventTrace oldTrace = trace; + trace = newTrace; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_WORKLOAD_EVENT__TRACE, oldTrace, trace)); + } + + /** + * + * + * @generated + */ + public GaScenario getEffect() { + if (effect != null && effect.eIsProxy()) { + InternalEObject oldEffect = (InternalEObject)effect; + effect = (GaScenario)eResolveProxy(oldEffect); + if (effect != oldEffect) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GQAMPackage.GA_WORKLOAD_EVENT__EFFECT, oldEffect, effect)); + } + } + return effect; + } + + /** + * + * + * @generated + */ + public GaScenario basicGetEffect() { + return effect; + } + + /** + * + * + * @generated + */ + public void setEffect(GaScenario newEffect) { + GaScenario oldEffect = effect; + effect = newEffect; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_WORKLOAD_EVENT__EFFECT, oldEffect, effect)); + } + + /** + * + * + * @generated + */ + public TimeEvent getTimedEvent() { + if (timedEvent != null && timedEvent.eIsProxy()) { + InternalEObject oldTimedEvent = (InternalEObject)timedEvent; + timedEvent = (TimeEvent)eResolveProxy(oldTimedEvent); + if (timedEvent != oldTimedEvent) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GQAMPackage.GA_WORKLOAD_EVENT__TIMED_EVENT, oldTimedEvent, timedEvent)); + } + } + return timedEvent; + } + + /** + * + * + * @generated + */ + public TimeEvent basicGetTimedEvent() { + return timedEvent; + } + + /** + * + * + * @generated + */ + public void setTimedEvent(TimeEvent newTimedEvent) { + TimeEvent oldTimedEvent = timedEvent; + timedEvent = newTimedEvent; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_WORKLOAD_EVENT__TIMED_EVENT, oldTimedEvent, timedEvent)); + } + + /** + * + * + * @generated + */ + public NamedElement getBase_NamedElement() { + if (base_NamedElement != null && base_NamedElement.eIsProxy()) { + InternalEObject oldBase_NamedElement = (InternalEObject)base_NamedElement; + base_NamedElement = (NamedElement)eResolveProxy(oldBase_NamedElement); + if (base_NamedElement != oldBase_NamedElement) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GQAMPackage.GA_WORKLOAD_EVENT__BASE_NAMED_ELEMENT, oldBase_NamedElement, base_NamedElement)); + } + } + return base_NamedElement; + } + + /** + * + * + * @generated + */ + public NamedElement basicGetBase_NamedElement() { + return base_NamedElement; + } + + /** + * + * + * @generated + */ + public void setBase_NamedElement(NamedElement newBase_NamedElement) { + NamedElement oldBase_NamedElement = base_NamedElement; + base_NamedElement = newBase_NamedElement; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_WORKLOAD_EVENT__BASE_NAMED_ELEMENT, oldBase_NamedElement, base_NamedElement)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case GQAMPackage.GA_WORKLOAD_EVENT__PATTERN: + return getPattern(); + case GQAMPackage.GA_WORKLOAD_EVENT__GENERATOR: + if (resolve) return getGenerator(); + return basicGetGenerator(); + case GQAMPackage.GA_WORKLOAD_EVENT__TRACE: + if (resolve) return getTrace(); + return basicGetTrace(); + case GQAMPackage.GA_WORKLOAD_EVENT__EFFECT: + if (resolve) return getEffect(); + return basicGetEffect(); + case GQAMPackage.GA_WORKLOAD_EVENT__TIMED_EVENT: + if (resolve) return getTimedEvent(); + return basicGetTimedEvent(); + case GQAMPackage.GA_WORKLOAD_EVENT__BASE_NAMED_ELEMENT: + if (resolve) return getBase_NamedElement(); + return basicGetBase_NamedElement(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case GQAMPackage.GA_WORKLOAD_EVENT__PATTERN: + setPattern((String)newValue); + return; + case GQAMPackage.GA_WORKLOAD_EVENT__GENERATOR: + setGenerator((GaWorkloadGenerator)newValue); + return; + case GQAMPackage.GA_WORKLOAD_EVENT__TRACE: + setTrace((GaEventTrace)newValue); + return; + case GQAMPackage.GA_WORKLOAD_EVENT__EFFECT: + setEffect((GaScenario)newValue); + return; + case GQAMPackage.GA_WORKLOAD_EVENT__TIMED_EVENT: + setTimedEvent((TimeEvent)newValue); + return; + case GQAMPackage.GA_WORKLOAD_EVENT__BASE_NAMED_ELEMENT: + setBase_NamedElement((NamedElement)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case GQAMPackage.GA_WORKLOAD_EVENT__PATTERN: + setPattern(PATTERN_EDEFAULT); + return; + case GQAMPackage.GA_WORKLOAD_EVENT__GENERATOR: + setGenerator((GaWorkloadGenerator)null); + return; + case GQAMPackage.GA_WORKLOAD_EVENT__TRACE: + setTrace((GaEventTrace)null); + return; + case GQAMPackage.GA_WORKLOAD_EVENT__EFFECT: + setEffect((GaScenario)null); + return; + case GQAMPackage.GA_WORKLOAD_EVENT__TIMED_EVENT: + setTimedEvent((TimeEvent)null); + return; + case GQAMPackage.GA_WORKLOAD_EVENT__BASE_NAMED_ELEMENT: + setBase_NamedElement((NamedElement)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case GQAMPackage.GA_WORKLOAD_EVENT__PATTERN: + return PATTERN_EDEFAULT == null ? pattern != null : !PATTERN_EDEFAULT.equals(pattern); + case GQAMPackage.GA_WORKLOAD_EVENT__GENERATOR: + return generator != null; + case GQAMPackage.GA_WORKLOAD_EVENT__TRACE: + return trace != null; + case GQAMPackage.GA_WORKLOAD_EVENT__EFFECT: + return effect != null; + case GQAMPackage.GA_WORKLOAD_EVENT__TIMED_EVENT: + return timedEvent != null; + case GQAMPackage.GA_WORKLOAD_EVENT__BASE_NAMED_ELEMENT: + return base_NamedElement != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (pattern: "); + result.append(pattern); + result.append(')'); + return result.toString(); + } + +} //GaWorkloadEventImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaWorkloadGeneratorImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaWorkloadGeneratorImpl.java new file mode 100644 index 00000000000..b03336a2d7b --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/impl/GaWorkloadGeneratorImpl.java @@ -0,0 +1,237 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.GQAM.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadGenerator; + +import org.eclipse.uml2.uml.Behavior; + +/** + * + * An implementation of the model object 'Ga Workload Generator'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaWorkloadGeneratorImpl#getPop Pop}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaWorkloadGeneratorImpl#getBase_Behavior Base Behavior}
  • + *
+ *

+ * + * @generated + */ +public class GaWorkloadGeneratorImpl extends EObjectImpl implements GaWorkloadGenerator { + /** + * The default value of the '{@link #getPop() Pop}' attribute. + * + * + * @see #getPop() + * @generated + * @ordered + */ + protected static final String POP_EDEFAULT = "1"; + + /** + * The cached value of the '{@link #getPop() Pop}' attribute. + * + * + * @see #getPop() + * @generated + * @ordered + */ + protected String pop = POP_EDEFAULT; + + /** + * The cached value of the '{@link #getBase_Behavior() Base Behavior}' reference. + * + * + * @see #getBase_Behavior() + * @generated + * @ordered + */ + protected Behavior base_Behavior; + + /** + * + * + * @generated + */ + protected GaWorkloadGeneratorImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return GQAMPackage.Literals.GA_WORKLOAD_GENERATOR; + } + + /** + * + * + * @generated + */ + public String getPop() { + return pop; + } + + /** + * + * + * @generated + */ + public void setPop(String newPop) { + String oldPop = pop; + pop = newPop; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_WORKLOAD_GENERATOR__POP, oldPop, pop)); + } + + /** + * + * + * @generated + */ + public Behavior getBase_Behavior() { + if (base_Behavior != null && base_Behavior.eIsProxy()) { + InternalEObject oldBase_Behavior = (InternalEObject)base_Behavior; + base_Behavior = (Behavior)eResolveProxy(oldBase_Behavior); + if (base_Behavior != oldBase_Behavior) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GQAMPackage.GA_WORKLOAD_GENERATOR__BASE_BEHAVIOR, oldBase_Behavior, base_Behavior)); + } + } + return base_Behavior; + } + + /** + * + * + * @generated + */ + public Behavior basicGetBase_Behavior() { + return base_Behavior; + } + + /** + * + * + * @generated + */ + public void setBase_Behavior(Behavior newBase_Behavior) { + Behavior oldBase_Behavior = base_Behavior; + base_Behavior = newBase_Behavior; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GQAMPackage.GA_WORKLOAD_GENERATOR__BASE_BEHAVIOR, oldBase_Behavior, base_Behavior)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case GQAMPackage.GA_WORKLOAD_GENERATOR__POP: + return getPop(); + case GQAMPackage.GA_WORKLOAD_GENERATOR__BASE_BEHAVIOR: + if (resolve) return getBase_Behavior(); + return basicGetBase_Behavior(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case GQAMPackage.GA_WORKLOAD_GENERATOR__POP: + setPop((String)newValue); + return; + case GQAMPackage.GA_WORKLOAD_GENERATOR__BASE_BEHAVIOR: + setBase_Behavior((Behavior)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case GQAMPackage.GA_WORKLOAD_GENERATOR__POP: + setPop(POP_EDEFAULT); + return; + case GQAMPackage.GA_WORKLOAD_GENERATOR__BASE_BEHAVIOR: + setBase_Behavior((Behavior)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case GQAMPackage.GA_WORKLOAD_GENERATOR__POP: + return POP_EDEFAULT == null ? pop != null : !POP_EDEFAULT.equals(pop); + case GQAMPackage.GA_WORKLOAD_GENERATOR__BASE_BEHAVIOR: + return base_Behavior != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (pop: "); + result.append(pop); + result.append(')'); + return result.toString(); + } + +} //GaWorkloadGeneratorImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/util/GQAMAdapterFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/util/GQAMAdapterFactory.java new file mode 100644 index 00000000000..208342b6e50 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/util/GQAMAdapterFactory.java @@ -0,0 +1,652 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.GQAM.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.MARTE_AnalysisModel.GQAM.*; + +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.ExpressionContext; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.Configuration; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationMedia; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ComputingResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ProcessingResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ResourceUsage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SchedulableResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpConstraint; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedElement; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedProcessing; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage + * @generated + */ +public class GQAMAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * @generated + */ + protected static GQAMPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public GQAMAdapterFactory() { + if (modelPackage == null) { + modelPackage = GQAMPackage.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 GQAMSwitch modelSwitch = + new GQAMSwitch() { + @Override + public Adapter caseGaWorkloadGenerator(GaWorkloadGenerator object) { + return createGaWorkloadGeneratorAdapter(); + } + @Override + public Adapter caseGaEventTrace(GaEventTrace object) { + return createGaEventTraceAdapter(); + } + @Override + public Adapter caseGaWorkloadEvent(GaWorkloadEvent object) { + return createGaWorkloadEventAdapter(); + } + @Override + public Adapter caseGaScenario(GaScenario object) { + return createGaScenarioAdapter(); + } + @Override + public Adapter caseGaStep(GaStep object) { + return createGaStepAdapter(); + } + @Override + public Adapter caseGaExecHost(GaExecHost object) { + return createGaExecHostAdapter(); + } + @Override + public Adapter caseGaRequestedService(GaRequestedService object) { + return createGaRequestedServiceAdapter(); + } + @Override + public Adapter caseGaTimedObs(GaTimedObs object) { + return createGaTimedObsAdapter(); + } + @Override + public Adapter caseGaCommStep(GaCommStep object) { + return createGaCommStepAdapter(); + } + @Override + public Adapter caseGaAcqStep(GaAcqStep object) { + return createGaAcqStepAdapter(); + } + @Override + public Adapter caseGaRelStep(GaRelStep object) { + return createGaRelStepAdapter(); + } + @Override + public Adapter caseGaLatencyObs(GaLatencyObs object) { + return createGaLatencyObsAdapter(); + } + @Override + public Adapter caseGaCommHost(GaCommHost object) { + return createGaCommHostAdapter(); + } + @Override + public Adapter caseGaCommChannel(GaCommChannel object) { + return createGaCommChannelAdapter(); + } + @Override + public Adapter caseGaWorkloadBehavior(GaWorkloadBehavior object) { + return createGaWorkloadBehaviorAdapter(); + } + @Override + public Adapter caseGaAnalysisContext(GaAnalysisContext object) { + return createGaAnalysisContextAdapter(); + } + @Override + public Adapter caseGaResourcesPlatform(GaResourcesPlatform object) { + return createGaResourcesPlatformAdapter(); + } + @Override + public Adapter caseResourceUsage(ResourceUsage object) { + return createResourceUsageAdapter(); + } + @Override + public Adapter caseTimedElement(TimedElement object) { + return createTimedElementAdapter(); + } + @Override + public Adapter caseTimedProcessing(TimedProcessing object) { + return createTimedProcessingAdapter(); + } + @Override + public Adapter caseResource(Resource object) { + return createResourceAdapter(); + } + @Override + public Adapter caseScheduler(Scheduler object) { + return createSchedulerAdapter(); + } + @Override + public Adapter caseProcessingResource(ProcessingResource object) { + return createProcessingResourceAdapter(); + } + @Override + public Adapter caseComputingResource(ComputingResource object) { + return createComputingResourceAdapter(); + } + @Override + public Adapter caseNfpConstraint(NfpConstraint object) { + return createNfpConstraintAdapter(); + } + @Override + public Adapter caseCommunicationMedia(CommunicationMedia object) { + return createCommunicationMediaAdapter(); + } + @Override + public Adapter caseSchedulableResource(SchedulableResource object) { + return createSchedulableResourceAdapter(); + } + @Override + public Adapter caseConfiguration(Configuration object) { + return createConfigurationAdapter(); + } + @Override + public Adapter caseExpressionContext(ExpressionContext object) { + return createExpressionContextAdapter(); + } + @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.MARTE_AnalysisModel.GQAM.GaWorkloadGenerator Ga Workload Generator}'. + * + * 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.MARTE_AnalysisModel.GQAM.GaWorkloadGenerator + * @generated + */ + public Adapter createGaWorkloadGeneratorAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaEventTrace Ga Event Trace}'. + * + * 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.MARTE_AnalysisModel.GQAM.GaEventTrace + * @generated + */ + public Adapter createGaEventTraceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadEvent Ga Workload Event}'. + * + * 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.MARTE_AnalysisModel.GQAM.GaWorkloadEvent + * @generated + */ + public Adapter createGaWorkloadEventAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario Ga Scenario}'. + * + * 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.MARTE_AnalysisModel.GQAM.GaScenario + * @generated + */ + public Adapter createGaScenarioAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep Ga Step}'. + * + * 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.MARTE_AnalysisModel.GQAM.GaStep + * @generated + */ + public Adapter createGaStepAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaExecHost Ga Exec Host}'. + * + * 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.MARTE_AnalysisModel.GQAM.GaExecHost + * @generated + */ + public Adapter createGaExecHostAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaRequestedService Ga Requested Service}'. + * + * 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.MARTE_AnalysisModel.GQAM.GaRequestedService + * @generated + */ + public Adapter createGaRequestedServiceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaTimedObs Ga Timed Obs}'. + * + * 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.MARTE_AnalysisModel.GQAM.GaTimedObs + * @generated + */ + public Adapter createGaTimedObsAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaCommStep Ga Comm Step}'. + * + * 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.MARTE_AnalysisModel.GQAM.GaCommStep + * @generated + */ + public Adapter createGaCommStepAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaAcqStep Ga Acq Step}'. + * + * 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.MARTE_AnalysisModel.GQAM.GaAcqStep + * @generated + */ + public Adapter createGaAcqStepAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaRelStep Ga Rel Step}'. + * + * 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.MARTE_AnalysisModel.GQAM.GaRelStep + * @generated + */ + public Adapter createGaRelStepAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaLatencyObs Ga Latency Obs}'. + * + * 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.MARTE_AnalysisModel.GQAM.GaLatencyObs + * @generated + */ + public Adapter createGaLatencyObsAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaCommHost Ga Comm Host}'. + * + * 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.MARTE_AnalysisModel.GQAM.GaCommHost + * @generated + */ + public Adapter createGaCommHostAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaCommChannel Ga Comm Channel}'. + * + * 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.MARTE_AnalysisModel.GQAM.GaCommChannel + * @generated + */ + public Adapter createGaCommChannelAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaWorkloadBehavior Ga Workload Behavior}'. + * + * 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.MARTE_AnalysisModel.GQAM.GaWorkloadBehavior + * @generated + */ + public Adapter createGaWorkloadBehaviorAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaAnalysisContext Ga Analysis Context}'. + * + * 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.MARTE_AnalysisModel.GQAM.GaAnalysisContext + * @generated + */ + public Adapter createGaAnalysisContextAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaResourcesPlatform Ga Resources Platform}'. + * + * 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.MARTE_AnalysisModel.GQAM.GaResourcesPlatform + * @generated + */ + public Adapter createGaResourcesPlatformAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ResourceUsage Resource Usage}'. + * + * 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.MARTE_Foundations.GRM.ResourceUsage + * @generated + */ + public Adapter createResourceUsageAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedElement Timed Element}'. + * + * 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.MARTE_Foundations.Time.TimedElement + * @generated + */ + public Adapter createTimedElementAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedProcessing Timed Processing}'. + * + * 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.MARTE_Foundations.Time.TimedProcessing + * @generated + */ + public Adapter createTimedProcessingAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource Resource}'. + * + * 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.MARTE_Foundations.GRM.Resource + * @generated + */ + public Adapter createResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler Scheduler}'. + * + * 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.MARTE_Foundations.GRM.Scheduler + * @generated + */ + public Adapter createSchedulerAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ProcessingResource Processing Resource}'. + * + * 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.MARTE_Foundations.GRM.ProcessingResource + * @generated + */ + public Adapter createProcessingResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ComputingResource Computing Resource}'. + * + * 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.MARTE_Foundations.GRM.ComputingResource + * @generated + */ + public Adapter createComputingResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpConstraint Nfp Constraint}'. + * + * 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.MARTE_Foundations.NFPs.NfpConstraint + * @generated + */ + public Adapter createNfpConstraintAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationMedia Communication Media}'. + * + * 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.MARTE_Foundations.GRM.CommunicationMedia + * @generated + */ + public Adapter createCommunicationMediaAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SchedulableResource Schedulable Resource}'. + * + * 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.MARTE_Foundations.GRM.SchedulableResource + * @generated + */ + public Adapter createSchedulableResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.Configuration Configuration}'. + * + * 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.MARTE_Foundations.CoreElements.Configuration + * @generated + */ + public Adapter createConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.ExpressionContext Expression Context}'. + * + * 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.MARTE_Annexes.VSL.Variables.ExpressionContext + * @generated + */ + public Adapter createExpressionContextAdapter() { + 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; + } + +} //GQAMAdapterFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/util/GQAMResourceFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/util/GQAMResourceFactoryImpl.java new file mode 100644 index 00000000000..6ddb64c3abe --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/util/GQAMResourceFactoryImpl.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.MARTE_AnalysisModel.GQAM.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; + +import org.eclipse.emf.ecore.xmi.XMLResource; + +/** + * + * The Resource Factory associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.util.GQAMResourceImpl + * @generated + */ +public class GQAMResourceFactoryImpl extends ResourceFactoryImpl { + /** + * Creates an instance of the resource factory. + * + * + * @generated + */ + public GQAMResourceFactoryImpl() { + super(); + } + + /** + * Creates an instance of the resource. + * + * + * @generated + */ + @Override + public Resource createResource(URI uri) { + XMLResource result = new GQAMResourceImpl(uri); + result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + + result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); + return result; + } + +} //GQAMResourceFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/util/GQAMResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/util/GQAMResourceImpl.java new file mode 100644 index 00000000000..37f6973cc70 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/util/GQAMResourceImpl.java @@ -0,0 +1,39 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.GQAM.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; + +/** + * + * The Resource associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.util.GQAMResourceFactoryImpl + * @generated + */ +public class GQAMResourceImpl extends XMLResourceImpl { + /** + * Creates an instance of the resource. + * + * + * @param uri the URI of the new resource. + * @generated + */ + public GQAMResourceImpl(URI uri) { + super(uri); + } + +} //GQAMResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/util/GQAMSwitch.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/util/GQAMSwitch.java new file mode 100644 index 00000000000..c02c3e9e5aa --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/util/GQAMSwitch.java @@ -0,0 +1,712 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.GQAM.util; + +import java.util.List; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.*; + +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.ExpressionContext; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.Configuration; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationMedia; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ComputingResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ProcessingResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ResourceUsage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SchedulableResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpConstraint; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedElement; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedProcessing; + +/** + * + * 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.MARTE_AnalysisModel.GQAM.GQAMPackage + * @generated + */ +public class GQAMSwitch { + /** + * The cached model package + * + * + * @generated + */ + protected static GQAMPackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public GQAMSwitch() { + if (modelPackage == null) { + modelPackage = GQAMPackage.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 GQAMPackage.GA_WORKLOAD_GENERATOR: { + GaWorkloadGenerator gaWorkloadGenerator = (GaWorkloadGenerator)theEObject; + T result = caseGaWorkloadGenerator(gaWorkloadGenerator); + if (result == null) result = defaultCase(theEObject); + return result; + } + case GQAMPackage.GA_EVENT_TRACE: { + GaEventTrace gaEventTrace = (GaEventTrace)theEObject; + T result = caseGaEventTrace(gaEventTrace); + if (result == null) result = defaultCase(theEObject); + return result; + } + case GQAMPackage.GA_WORKLOAD_EVENT: { + GaWorkloadEvent gaWorkloadEvent = (GaWorkloadEvent)theEObject; + T result = caseGaWorkloadEvent(gaWorkloadEvent); + if (result == null) result = defaultCase(theEObject); + return result; + } + case GQAMPackage.GA_SCENARIO: { + GaScenario gaScenario = (GaScenario)theEObject; + T result = caseGaScenario(gaScenario); + if (result == null) result = caseResourceUsage(gaScenario); + if (result == null) result = caseTimedProcessing(gaScenario); + if (result == null) result = caseTimedElement(gaScenario); + if (result == null) result = defaultCase(theEObject); + return result; + } + case GQAMPackage.GA_STEP: { + GaStep gaStep = (GaStep)theEObject; + T result = caseGaStep(gaStep); + if (result == null) result = caseGaScenario(gaStep); + if (result == null) result = caseResourceUsage(gaStep); + if (result == null) result = caseTimedProcessing(gaStep); + if (result == null) result = caseTimedElement(gaStep); + if (result == null) result = defaultCase(theEObject); + return result; + } + case GQAMPackage.GA_EXEC_HOST: { + GaExecHost gaExecHost = (GaExecHost)theEObject; + T result = caseGaExecHost(gaExecHost); + if (result == null) result = caseScheduler(gaExecHost); + if (result == null) result = caseComputingResource(gaExecHost); + if (result == null) result = caseProcessingResource(gaExecHost); + if (result == null) result = caseResource(gaExecHost); + if (result == null) result = defaultCase(theEObject); + return result; + } + case GQAMPackage.GA_REQUESTED_SERVICE: { + GaRequestedService gaRequestedService = (GaRequestedService)theEObject; + T result = caseGaRequestedService(gaRequestedService); + if (result == null) result = caseGaStep(gaRequestedService); + if (result == null) result = caseGaScenario(gaRequestedService); + if (result == null) result = caseResourceUsage(gaRequestedService); + if (result == null) result = caseTimedProcessing(gaRequestedService); + if (result == null) result = caseTimedElement(gaRequestedService); + if (result == null) result = defaultCase(theEObject); + return result; + } + case GQAMPackage.GA_TIMED_OBS: { + GaTimedObs gaTimedObs = (GaTimedObs)theEObject; + T result = caseGaTimedObs(gaTimedObs); + if (result == null) result = caseNfpConstraint(gaTimedObs); + if (result == null) result = defaultCase(theEObject); + return result; + } + case GQAMPackage.GA_COMM_STEP: { + GaCommStep gaCommStep = (GaCommStep)theEObject; + T result = caseGaCommStep(gaCommStep); + if (result == null) result = caseGaStep(gaCommStep); + if (result == null) result = caseGaScenario(gaCommStep); + if (result == null) result = caseResourceUsage(gaCommStep); + if (result == null) result = caseTimedProcessing(gaCommStep); + if (result == null) result = caseTimedElement(gaCommStep); + if (result == null) result = defaultCase(theEObject); + return result; + } + case GQAMPackage.GA_ACQ_STEP: { + GaAcqStep gaAcqStep = (GaAcqStep)theEObject; + T result = caseGaAcqStep(gaAcqStep); + if (result == null) result = caseGaStep(gaAcqStep); + if (result == null) result = caseGaScenario(gaAcqStep); + if (result == null) result = caseResourceUsage(gaAcqStep); + if (result == null) result = caseTimedProcessing(gaAcqStep); + if (result == null) result = caseTimedElement(gaAcqStep); + if (result == null) result = defaultCase(theEObject); + return result; + } + case GQAMPackage.GA_REL_STEP: { + GaRelStep gaRelStep = (GaRelStep)theEObject; + T result = caseGaRelStep(gaRelStep); + if (result == null) result = caseGaStep(gaRelStep); + if (result == null) result = caseGaScenario(gaRelStep); + if (result == null) result = caseResourceUsage(gaRelStep); + if (result == null) result = caseTimedProcessing(gaRelStep); + if (result == null) result = caseTimedElement(gaRelStep); + if (result == null) result = defaultCase(theEObject); + return result; + } + case GQAMPackage.GA_LATENCY_OBS: { + GaLatencyObs gaLatencyObs = (GaLatencyObs)theEObject; + T result = caseGaLatencyObs(gaLatencyObs); + if (result == null) result = caseGaTimedObs(gaLatencyObs); + if (result == null) result = caseNfpConstraint(gaLatencyObs); + if (result == null) result = defaultCase(theEObject); + return result; + } + case GQAMPackage.GA_COMM_HOST: { + GaCommHost gaCommHost = (GaCommHost)theEObject; + T result = caseGaCommHost(gaCommHost); + if (result == null) result = caseCommunicationMedia(gaCommHost); + if (result == null) result = caseScheduler(gaCommHost); + if (result == null) result = caseProcessingResource(gaCommHost); + if (result == null) result = caseResource(gaCommHost); + if (result == null) result = defaultCase(theEObject); + return result; + } + case GQAMPackage.GA_COMM_CHANNEL: { + GaCommChannel gaCommChannel = (GaCommChannel)theEObject; + T result = caseGaCommChannel(gaCommChannel); + if (result == null) result = caseSchedulableResource(gaCommChannel); + if (result == null) result = caseResource(gaCommChannel); + if (result == null) result = defaultCase(theEObject); + return result; + } + case GQAMPackage.GA_WORKLOAD_BEHAVIOR: { + GaWorkloadBehavior gaWorkloadBehavior = (GaWorkloadBehavior)theEObject; + T result = caseGaWorkloadBehavior(gaWorkloadBehavior); + if (result == null) result = defaultCase(theEObject); + return result; + } + case GQAMPackage.GA_ANALYSIS_CONTEXT: { + GaAnalysisContext gaAnalysisContext = (GaAnalysisContext)theEObject; + T result = caseGaAnalysisContext(gaAnalysisContext); + if (result == null) result = caseConfiguration(gaAnalysisContext); + if (result == null) result = caseExpressionContext(gaAnalysisContext); + if (result == null) result = defaultCase(theEObject); + return result; + } + case GQAMPackage.GA_RESOURCES_PLATFORM: { + GaResourcesPlatform gaResourcesPlatform = (GaResourcesPlatform)theEObject; + T result = caseGaResourcesPlatform(gaResourcesPlatform); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Ga Workload Generator'. + * + * 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 'Ga Workload Generator'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseGaWorkloadGenerator(GaWorkloadGenerator object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Ga Event Trace'. + * + * 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 'Ga Event Trace'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseGaEventTrace(GaEventTrace object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Ga Workload Event'. + * + * 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 'Ga Workload Event'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseGaWorkloadEvent(GaWorkloadEvent object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Ga Scenario'. + * + * 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 'Ga Scenario'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseGaScenario(GaScenario object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Ga Step'. + * + * 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 'Ga Step'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseGaStep(GaStep object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Ga Exec Host'. + * + * 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 'Ga Exec Host'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseGaExecHost(GaExecHost object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Ga Requested Service'. + * + * 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 'Ga Requested Service'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseGaRequestedService(GaRequestedService object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Ga Timed Obs'. + * + * 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 'Ga Timed Obs'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseGaTimedObs(GaTimedObs object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Ga Comm Step'. + * + * 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 'Ga Comm Step'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseGaCommStep(GaCommStep object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Ga Acq Step'. + * + * 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 'Ga Acq Step'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseGaAcqStep(GaAcqStep object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Ga Rel Step'. + * + * 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 'Ga Rel Step'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseGaRelStep(GaRelStep object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Ga Latency Obs'. + * + * 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 'Ga Latency Obs'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseGaLatencyObs(GaLatencyObs object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Ga Comm Host'. + * + * 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 'Ga Comm Host'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseGaCommHost(GaCommHost object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Ga Comm Channel'. + * + * 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 'Ga Comm Channel'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseGaCommChannel(GaCommChannel object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Ga Workload Behavior'. + * + * 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 'Ga Workload Behavior'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseGaWorkloadBehavior(GaWorkloadBehavior object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Ga Analysis Context'. + * + * 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 'Ga Analysis Context'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseGaAnalysisContext(GaAnalysisContext object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Ga Resources Platform'. + * + * 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 'Ga Resources Platform'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseGaResourcesPlatform(GaResourcesPlatform object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Resource Usage'. + * + * 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 'Resource Usage'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseResourceUsage(ResourceUsage object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Timed Element'. + * + * 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 'Timed Element'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseTimedElement(TimedElement object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Timed Processing'. + * + * 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 'Timed Processing'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseTimedProcessing(TimedProcessing object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Resource'. + * + * 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 'Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseResource(Resource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Scheduler'. + * + * 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 'Scheduler'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseScheduler(Scheduler object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Processing Resource'. + * + * 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 'Processing Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseProcessingResource(ProcessingResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Computing Resource'. + * + * 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 'Computing Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseComputingResource(ComputingResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Nfp Constraint'. + * + * 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 'Nfp Constraint'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseNfpConstraint(NfpConstraint object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Communication Media'. + * + * 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 'Communication Media'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCommunicationMedia(CommunicationMedia object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Schedulable Resource'. + * + * 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 'Schedulable Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSchedulableResource(SchedulableResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Configuration'. + * + * 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 'Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseConfiguration(Configuration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Expression Context'. + * + * 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 'Expression Context'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseExpressionContext(ExpressionContext 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; + } + +} //GQAMSwitch diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/util/GQAMXMLProcessor.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/util/GQAMXMLProcessor.java new file mode 100644 index 00000000000..adb077d7ea2 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/GQAM/util/GQAMXMLProcessor.java @@ -0,0 +1,61 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.GQAM.util; + +import java.util.Map; + +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.xmi.util.XMLProcessor; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage; + +/** + * This class contains helper methods to serialize and deserialize XML documents + * + * + * @generated + */ +public class GQAMXMLProcessor extends XMLProcessor { + + /** + * Public constructor to instantiate the helper. + * + * + * @generated + */ + public GQAMXMLProcessor() { + super((EPackage.Registry.INSTANCE)); + GQAMPackage.eINSTANCE.eClass(); + } + + /** + * Register for "*" and "xml" file extensions the GQAMResourceFactoryImpl factory. + * + * + * @generated + */ + @Override + protected Map getRegistrations() { + if (registrations == null) { + super.getRegistrations(); + registrations.put(XML_EXTENSION, new GQAMResourceFactoryImpl()); + registrations.put(STAR_EXTENSION, new GQAMResourceFactoryImpl()); + } + return registrations; + } + +} //GQAMXMLProcessor diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/PAMFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/PAMFactory.java new file mode 100644 index 00000000000..4e374c31f10 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/PAMFactory.java @@ -0,0 +1,98 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.PAM; + +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.MARTE_AnalysisModel.PAM.PAMPackage + * @generated + */ +public interface PAMFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + PAMFactory eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PAMFactoryImpl.init(); + + /** + * Returns a new object of class 'Pa Step'. + * + * + * @return a new object of class 'Pa Step'. + * @generated + */ + PaStep createPaStep(); + + /** + * Returns a new object of class 'Pa Requested Step'. + * + * + * @return a new object of class 'Pa Requested Step'. + * @generated + */ + PaRequestedStep createPaRequestedStep(); + + /** + * Returns a new object of class 'Pa Comm Step'. + * + * + * @return a new object of class 'Pa Comm Step'. + * @generated + */ + PaCommStep createPaCommStep(); + + /** + * Returns a new object of class 'Pa Res Pass Step'. + * + * + * @return a new object of class 'Pa Res Pass Step'. + * @generated + */ + PaResPassStep createPaResPassStep(); + + /** + * Returns a new object of class 'Pa Logical Resource'. + * + * + * @return a new object of class 'Pa Logical Resource'. + * @generated + */ + PaLogicalResource createPaLogicalResource(); + + /** + * Returns a new object of class 'Pa Run TInstance'. + * + * + * @return a new object of class 'Pa Run TInstance'. + * @generated + */ + PaRunTInstance createPaRunTInstance(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + PAMPackage getPAMPackage(); + +} //PAMFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/PAMPackage.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/PAMPackage.java new file mode 100644 index 00000000000..f76e486882c --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/PAMPackage.java @@ -0,0 +1,2419 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.PAM; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage; + +/** + * + * 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.MARTE_AnalysisModel.PAM.PAMFactory + * @model kind="package" + * @generated + */ +public interface PAMPackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "PAM"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "http://www.eclipse.org/papyrus/PAM/1"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "PAM"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + PAMPackage eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PAMPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PaStepImpl Pa Step}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PaStepImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PAMPackageImpl#getPaStep() + * @generated + */ + int PA_STEP = 0; + + /** + * The feature id for the 'Exec Time' attribute list. + * + * + * @generated + * @ordered + */ + int PA_STEP__EXEC_TIME = GQAMPackage.GA_STEP__EXEC_TIME; + + /** + * The feature id for the 'Allocated Memory' attribute list. + * + * + * @generated + * @ordered + */ + int PA_STEP__ALLOCATED_MEMORY = GQAMPackage.GA_STEP__ALLOCATED_MEMORY; + + /** + * The feature id for the 'Used Memory' attribute list. + * + * + * @generated + * @ordered + */ + int PA_STEP__USED_MEMORY = GQAMPackage.GA_STEP__USED_MEMORY; + + /** + * The feature id for the 'Power Peak' attribute list. + * + * + * @generated + * @ordered + */ + int PA_STEP__POWER_PEAK = GQAMPackage.GA_STEP__POWER_PEAK; + + /** + * The feature id for the 'Energy' attribute list. + * + * + * @generated + * @ordered + */ + int PA_STEP__ENERGY = GQAMPackage.GA_STEP__ENERGY; + + /** + * The feature id for the 'Base Named Element' reference. + * + * + * @generated + * @ordered + */ + int PA_STEP__BASE_NAMED_ELEMENT = GQAMPackage.GA_STEP__BASE_NAMED_ELEMENT; + + /** + * The feature id for the 'Sub Usage' reference list. + * + * + * @generated + * @ordered + */ + int PA_STEP__SUB_USAGE = GQAMPackage.GA_STEP__SUB_USAGE; + + /** + * The feature id for the 'Used Resources' reference list. + * + * + * @generated + * @ordered + */ + int PA_STEP__USED_RESOURCES = GQAMPackage.GA_STEP__USED_RESOURCES; + + /** + * The feature id for the 'Msg Size' attribute list. + * + * + * @generated + * @ordered + */ + int PA_STEP__MSG_SIZE = GQAMPackage.GA_STEP__MSG_SIZE; + + /** + * The feature id for the 'On' reference list. + * + * + * @generated + * @ordered + */ + int PA_STEP__ON = GQAMPackage.GA_STEP__ON; + + /** + * The feature id for the 'Base Action' reference. + * + * + * @generated + * @ordered + */ + int PA_STEP__BASE_ACTION = GQAMPackage.GA_STEP__BASE_ACTION; + + /** + * The feature id for the 'Base Behavior' reference. + * + * + * @generated + * @ordered + */ + int PA_STEP__BASE_BEHAVIOR = GQAMPackage.GA_STEP__BASE_BEHAVIOR; + + /** + * The feature id for the 'Base Message' reference. + * + * + * @generated + * @ordered + */ + int PA_STEP__BASE_MESSAGE = GQAMPackage.GA_STEP__BASE_MESSAGE; + + /** + * The feature id for the 'Duration' containment reference. + * + * + * @generated + * @ordered + */ + int PA_STEP__DURATION = GQAMPackage.GA_STEP__DURATION; + + /** + * The feature id for the 'Start' reference. + * + * + * @generated + * @ordered + */ + int PA_STEP__START = GQAMPackage.GA_STEP__START; + + /** + * The feature id for the 'Finish' reference. + * + * + * @generated + * @ordered + */ + int PA_STEP__FINISH = GQAMPackage.GA_STEP__FINISH; + + /** + * The feature id for the 'Cause' reference. + * + * + * @generated + * @ordered + */ + int PA_STEP__CAUSE = GQAMPackage.GA_STEP__CAUSE; + + /** + * The feature id for the 'Host Demand' attribute list. + * + * + * @generated + * @ordered + */ + int PA_STEP__HOST_DEMAND = GQAMPackage.GA_STEP__HOST_DEMAND; + + /** + * The feature id for the 'Host Demand Ops' attribute list. + * + * + * @generated + * @ordered + */ + int PA_STEP__HOST_DEMAND_OPS = GQAMPackage.GA_STEP__HOST_DEMAND_OPS; + + /** + * The feature id for the 'Inter Occ T' attribute list. + * + * + * @generated + * @ordered + */ + int PA_STEP__INTER_OCC_T = GQAMPackage.GA_STEP__INTER_OCC_T; + + /** + * The feature id for the 'Throughput' attribute list. + * + * + * @generated + * @ordered + */ + int PA_STEP__THROUGHPUT = GQAMPackage.GA_STEP__THROUGHPUT; + + /** + * The feature id for the 'Resp T' attribute list. + * + * + * @generated + * @ordered + */ + int PA_STEP__RESP_T = GQAMPackage.GA_STEP__RESP_T; + + /** + * The feature id for the 'Utilization' attribute list. + * + * + * @generated + * @ordered + */ + int PA_STEP__UTILIZATION = GQAMPackage.GA_STEP__UTILIZATION; + + /** + * The feature id for the 'Utilization On Host' attribute list. + * + * + * @generated + * @ordered + */ + int PA_STEP__UTILIZATION_ON_HOST = GQAMPackage.GA_STEP__UTILIZATION_ON_HOST; + + /** + * The feature id for the 'Root' reference. + * + * + * @generated + * @ordered + */ + int PA_STEP__ROOT = GQAMPackage.GA_STEP__ROOT; + + /** + * The feature id for the 'Steps' reference list. + * + * + * @generated + * @ordered + */ + int PA_STEP__STEPS = GQAMPackage.GA_STEP__STEPS; + + /** + * The feature id for the 'Parent Step' reference list. + * + * + * @generated + * @ordered + */ + int PA_STEP__PARENT_STEP = GQAMPackage.GA_STEP__PARENT_STEP; + + /** + * The feature id for the 'Timing' reference list. + * + * + * @generated + * @ordered + */ + int PA_STEP__TIMING = GQAMPackage.GA_STEP__TIMING; + + /** + * The feature id for the 'Is Atomic' attribute. + * + * + * @generated + * @ordered + */ + int PA_STEP__IS_ATOMIC = GQAMPackage.GA_STEP__IS_ATOMIC; + + /** + * The feature id for the 'Block T' attribute. + * + * + * @generated + * @ordered + */ + int PA_STEP__BLOCK_T = GQAMPackage.GA_STEP__BLOCK_T; + + /** + * The feature id for the 'Rep' attribute. + * + * + * @generated + * @ordered + */ + int PA_STEP__REP = GQAMPackage.GA_STEP__REP; + + /** + * The feature id for the 'Prob' attribute. + * + * + * @generated + * @ordered + */ + int PA_STEP__PROB = GQAMPackage.GA_STEP__PROB; + + /** + * The feature id for the 'Priority' attribute. + * + * + * @generated + * @ordered + */ + int PA_STEP__PRIORITY = GQAMPackage.GA_STEP__PRIORITY; + + /** + * The feature id for the 'Concur Res' reference. + * + * + * @generated + * @ordered + */ + int PA_STEP__CONCUR_RES = GQAMPackage.GA_STEP__CONCUR_RES; + + /** + * The feature id for the 'Host' reference. + * + * + * @generated + * @ordered + */ + int PA_STEP__HOST = GQAMPackage.GA_STEP__HOST; + + /** + * The feature id for the 'Serv Demand' reference list. + * + * + * @generated + * @ordered + */ + int PA_STEP__SERV_DEMAND = GQAMPackage.GA_STEP__SERV_DEMAND; + + /** + * The feature id for the 'Serv Count' attribute list. + * + * + * @generated + * @ordered + */ + int PA_STEP__SERV_COUNT = GQAMPackage.GA_STEP__SERV_COUNT; + + /** + * The feature id for the 'Self Delay' attribute. + * + * + * @generated + * @ordered + */ + int PA_STEP__SELF_DELAY = GQAMPackage.GA_STEP__SELF_DELAY; + + /** + * The feature id for the 'Scenario' reference. + * + * + * @generated + * @ordered + */ + int PA_STEP__SCENARIO = GQAMPackage.GA_STEP__SCENARIO; + + /** + * The feature id for the 'Child Scenario' reference. + * + * + * @generated + * @ordered + */ + int PA_STEP__CHILD_SCENARIO = GQAMPackage.GA_STEP__CHILD_SCENARIO; + + /** + * The feature id for the 'No Sync' attribute. + * + * + * @generated + * @ordered + */ + int PA_STEP__NO_SYNC = GQAMPackage.GA_STEP_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Ext Op Demand' attribute list. + * + * + * @generated + * @ordered + */ + int PA_STEP__EXT_OP_DEMAND = GQAMPackage.GA_STEP_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Ext Op Count' attribute list. + * + * + * @generated + * @ordered + */ + int PA_STEP__EXT_OP_COUNT = GQAMPackage.GA_STEP_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Behav Demand' reference list. + * + * + * @generated + * @ordered + */ + int PA_STEP__BEHAV_DEMAND = GQAMPackage.GA_STEP_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Behav Count' attribute list. + * + * + * @generated + * @ordered + */ + int PA_STEP__BEHAV_COUNT = GQAMPackage.GA_STEP_FEATURE_COUNT + 4; + + /** + * The number of structural features of the 'Pa Step' class. + * + * + * @generated + * @ordered + */ + int PA_STEP_FEATURE_COUNT = GQAMPackage.GA_STEP_FEATURE_COUNT + 5; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PaRequestedStepImpl Pa Requested Step}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PaRequestedStepImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PAMPackageImpl#getPaRequestedStep() + * @generated + */ + int PA_REQUESTED_STEP = 1; + + /** + * The feature id for the 'Exec Time' attribute list. + * + * + * @generated + * @ordered + */ + int PA_REQUESTED_STEP__EXEC_TIME = PA_STEP__EXEC_TIME; + + /** + * The feature id for the 'Allocated Memory' attribute list. + * + * + * @generated + * @ordered + */ + int PA_REQUESTED_STEP__ALLOCATED_MEMORY = PA_STEP__ALLOCATED_MEMORY; + + /** + * The feature id for the 'Used Memory' attribute list. + * + * + * @generated + * @ordered + */ + int PA_REQUESTED_STEP__USED_MEMORY = PA_STEP__USED_MEMORY; + + /** + * The feature id for the 'Power Peak' attribute list. + * + * + * @generated + * @ordered + */ + int PA_REQUESTED_STEP__POWER_PEAK = PA_STEP__POWER_PEAK; + + /** + * The feature id for the 'Energy' attribute list. + * + * + * @generated + * @ordered + */ + int PA_REQUESTED_STEP__ENERGY = PA_STEP__ENERGY; + + /** + * The feature id for the 'Base Named Element' reference. + * + * + * @generated + * @ordered + */ + int PA_REQUESTED_STEP__BASE_NAMED_ELEMENT = PA_STEP__BASE_NAMED_ELEMENT; + + /** + * The feature id for the 'Sub Usage' reference list. + * + * + * @generated + * @ordered + */ + int PA_REQUESTED_STEP__SUB_USAGE = PA_STEP__SUB_USAGE; + + /** + * The feature id for the 'Used Resources' reference list. + * + * + * @generated + * @ordered + */ + int PA_REQUESTED_STEP__USED_RESOURCES = PA_STEP__USED_RESOURCES; + + /** + * The feature id for the 'Msg Size' attribute list. + * + * + * @generated + * @ordered + */ + int PA_REQUESTED_STEP__MSG_SIZE = PA_STEP__MSG_SIZE; + + /** + * The feature id for the 'On' reference list. + * + * + * @generated + * @ordered + */ + int PA_REQUESTED_STEP__ON = PA_STEP__ON; + + /** + * The feature id for the 'Base Action' reference. + * + * + * @generated + * @ordered + */ + int PA_REQUESTED_STEP__BASE_ACTION = PA_STEP__BASE_ACTION; + + /** + * The feature id for the 'Base Behavior' reference. + * + * + * @generated + * @ordered + */ + int PA_REQUESTED_STEP__BASE_BEHAVIOR = PA_STEP__BASE_BEHAVIOR; + + /** + * The feature id for the 'Base Message' reference. + * + * + * @generated + * @ordered + */ + int PA_REQUESTED_STEP__BASE_MESSAGE = PA_STEP__BASE_MESSAGE; + + /** + * The feature id for the 'Duration' containment reference. + * + * + * @generated + * @ordered + */ + int PA_REQUESTED_STEP__DURATION = PA_STEP__DURATION; + + /** + * The feature id for the 'Start' reference. + * + * + * @generated + * @ordered + */ + int PA_REQUESTED_STEP__START = PA_STEP__START; + + /** + * The feature id for the 'Finish' reference. + * + * + * @generated + * @ordered + */ + int PA_REQUESTED_STEP__FINISH = PA_STEP__FINISH; + + /** + * The feature id for the 'Cause' reference. + * + * + * @generated + * @ordered + */ + int PA_REQUESTED_STEP__CAUSE = PA_STEP__CAUSE; + + /** + * The feature id for the 'Host Demand' attribute list. + * + * + * @generated + * @ordered + */ + int PA_REQUESTED_STEP__HOST_DEMAND = PA_STEP__HOST_DEMAND; + + /** + * The feature id for the 'Host Demand Ops' attribute list. + * + * + * @generated + * @ordered + */ + int PA_REQUESTED_STEP__HOST_DEMAND_OPS = PA_STEP__HOST_DEMAND_OPS; + + /** + * The feature id for the 'Inter Occ T' attribute list. + * + * + * @generated + * @ordered + */ + int PA_REQUESTED_STEP__INTER_OCC_T = PA_STEP__INTER_OCC_T; + + /** + * The feature id for the 'Throughput' attribute list. + * + * + * @generated + * @ordered + */ + int PA_REQUESTED_STEP__THROUGHPUT = PA_STEP__THROUGHPUT; + + /** + * The feature id for the 'Resp T' attribute list. + * + * + * @generated + * @ordered + */ + int PA_REQUESTED_STEP__RESP_T = PA_STEP__RESP_T; + + /** + * The feature id for the 'Utilization' attribute list. + * + * + * @generated + * @ordered + */ + int PA_REQUESTED_STEP__UTILIZATION = PA_STEP__UTILIZATION; + + /** + * The feature id for the 'Utilization On Host' attribute list. + * + * + * @generated + * @ordered + */ + int PA_REQUESTED_STEP__UTILIZATION_ON_HOST = PA_STEP__UTILIZATION_ON_HOST; + + /** + * The feature id for the 'Root' reference. + * + * + * @generated + * @ordered + */ + int PA_REQUESTED_STEP__ROOT = PA_STEP__ROOT; + + /** + * The feature id for the 'Steps' reference list. + * + * + * @generated + * @ordered + */ + int PA_REQUESTED_STEP__STEPS = PA_STEP__STEPS; + + /** + * The feature id for the 'Parent Step' reference list. + * + * + * @generated + * @ordered + */ + int PA_REQUESTED_STEP__PARENT_STEP = PA_STEP__PARENT_STEP; + + /** + * The feature id for the 'Timing' reference list. + * + * + * @generated + * @ordered + */ + int PA_REQUESTED_STEP__TIMING = PA_STEP__TIMING; + + /** + * The feature id for the 'Is Atomic' attribute. + * + * + * @generated + * @ordered + */ + int PA_REQUESTED_STEP__IS_ATOMIC = PA_STEP__IS_ATOMIC; + + /** + * The feature id for the 'Block T' attribute. + * + * + * @generated + * @ordered + */ + int PA_REQUESTED_STEP__BLOCK_T = PA_STEP__BLOCK_T; + + /** + * The feature id for the 'Rep' attribute. + * + * + * @generated + * @ordered + */ + int PA_REQUESTED_STEP__REP = PA_STEP__REP; + + /** + * The feature id for the 'Prob' attribute. + * + * + * @generated + * @ordered + */ + int PA_REQUESTED_STEP__PROB = PA_STEP__PROB; + + /** + * The feature id for the 'Priority' attribute. + * + * + * @generated + * @ordered + */ + int PA_REQUESTED_STEP__PRIORITY = PA_STEP__PRIORITY; + + /** + * The feature id for the 'Concur Res' reference. + * + * + * @generated + * @ordered + */ + int PA_REQUESTED_STEP__CONCUR_RES = PA_STEP__CONCUR_RES; + + /** + * The feature id for the 'Host' reference. + * + * + * @generated + * @ordered + */ + int PA_REQUESTED_STEP__HOST = PA_STEP__HOST; + + /** + * The feature id for the 'Serv Demand' reference list. + * + * + * @generated + * @ordered + */ + int PA_REQUESTED_STEP__SERV_DEMAND = PA_STEP__SERV_DEMAND; + + /** + * The feature id for the 'Serv Count' attribute list. + * + * + * @generated + * @ordered + */ + int PA_REQUESTED_STEP__SERV_COUNT = PA_STEP__SERV_COUNT; + + /** + * The feature id for the 'Self Delay' attribute. + * + * + * @generated + * @ordered + */ + int PA_REQUESTED_STEP__SELF_DELAY = PA_STEP__SELF_DELAY; + + /** + * The feature id for the 'Scenario' reference. + * + * + * @generated + * @ordered + */ + int PA_REQUESTED_STEP__SCENARIO = PA_STEP__SCENARIO; + + /** + * The feature id for the 'Child Scenario' reference. + * + * + * @generated + * @ordered + */ + int PA_REQUESTED_STEP__CHILD_SCENARIO = PA_STEP__CHILD_SCENARIO; + + /** + * The feature id for the 'No Sync' attribute. + * + * + * @generated + * @ordered + */ + int PA_REQUESTED_STEP__NO_SYNC = PA_STEP__NO_SYNC; + + /** + * The feature id for the 'Ext Op Demand' attribute list. + * + * + * @generated + * @ordered + */ + int PA_REQUESTED_STEP__EXT_OP_DEMAND = PA_STEP__EXT_OP_DEMAND; + + /** + * The feature id for the 'Ext Op Count' attribute list. + * + * + * @generated + * @ordered + */ + int PA_REQUESTED_STEP__EXT_OP_COUNT = PA_STEP__EXT_OP_COUNT; + + /** + * The feature id for the 'Behav Demand' reference list. + * + * + * @generated + * @ordered + */ + int PA_REQUESTED_STEP__BEHAV_DEMAND = PA_STEP__BEHAV_DEMAND; + + /** + * The feature id for the 'Behav Count' attribute list. + * + * + * @generated + * @ordered + */ + int PA_REQUESTED_STEP__BEHAV_COUNT = PA_STEP__BEHAV_COUNT; + + /** + * The feature id for the 'Base Operation' reference. + * + * + * @generated + * @ordered + */ + int PA_REQUESTED_STEP__BASE_OPERATION = PA_STEP_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Pa Requested Step' class. + * + * + * @generated + * @ordered + */ + int PA_REQUESTED_STEP_FEATURE_COUNT = PA_STEP_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PaCommStepImpl Pa Comm Step}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PaCommStepImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PAMPackageImpl#getPaCommStep() + * @generated + */ + int PA_COMM_STEP = 2; + + /** + * The feature id for the 'Exec Time' attribute list. + * + * + * @generated + * @ordered + */ + int PA_COMM_STEP__EXEC_TIME = PA_STEP__EXEC_TIME; + + /** + * The feature id for the 'Allocated Memory' attribute list. + * + * + * @generated + * @ordered + */ + int PA_COMM_STEP__ALLOCATED_MEMORY = PA_STEP__ALLOCATED_MEMORY; + + /** + * The feature id for the 'Used Memory' attribute list. + * + * + * @generated + * @ordered + */ + int PA_COMM_STEP__USED_MEMORY = PA_STEP__USED_MEMORY; + + /** + * The feature id for the 'Power Peak' attribute list. + * + * + * @generated + * @ordered + */ + int PA_COMM_STEP__POWER_PEAK = PA_STEP__POWER_PEAK; + + /** + * The feature id for the 'Energy' attribute list. + * + * + * @generated + * @ordered + */ + int PA_COMM_STEP__ENERGY = PA_STEP__ENERGY; + + /** + * The feature id for the 'Base Named Element' reference. + * + * + * @generated + * @ordered + */ + int PA_COMM_STEP__BASE_NAMED_ELEMENT = PA_STEP__BASE_NAMED_ELEMENT; + + /** + * The feature id for the 'Sub Usage' reference list. + * + * + * @generated + * @ordered + */ + int PA_COMM_STEP__SUB_USAGE = PA_STEP__SUB_USAGE; + + /** + * The feature id for the 'Used Resources' reference list. + * + * + * @generated + * @ordered + */ + int PA_COMM_STEP__USED_RESOURCES = PA_STEP__USED_RESOURCES; + + /** + * The feature id for the 'Msg Size' attribute list. + * + * + * @generated + * @ordered + */ + int PA_COMM_STEP__MSG_SIZE = PA_STEP__MSG_SIZE; + + /** + * The feature id for the 'On' reference list. + * + * + * @generated + * @ordered + */ + int PA_COMM_STEP__ON = PA_STEP__ON; + + /** + * The feature id for the 'Base Action' reference. + * + * + * @generated + * @ordered + */ + int PA_COMM_STEP__BASE_ACTION = PA_STEP__BASE_ACTION; + + /** + * The feature id for the 'Base Behavior' reference. + * + * + * @generated + * @ordered + */ + int PA_COMM_STEP__BASE_BEHAVIOR = PA_STEP__BASE_BEHAVIOR; + + /** + * The feature id for the 'Base Message' reference. + * + * + * @generated + * @ordered + */ + int PA_COMM_STEP__BASE_MESSAGE = PA_STEP__BASE_MESSAGE; + + /** + * The feature id for the 'Duration' containment reference. + * + * + * @generated + * @ordered + */ + int PA_COMM_STEP__DURATION = PA_STEP__DURATION; + + /** + * The feature id for the 'Start' reference. + * + * + * @generated + * @ordered + */ + int PA_COMM_STEP__START = PA_STEP__START; + + /** + * The feature id for the 'Finish' reference. + * + * + * @generated + * @ordered + */ + int PA_COMM_STEP__FINISH = PA_STEP__FINISH; + + /** + * The feature id for the 'Cause' reference. + * + * + * @generated + * @ordered + */ + int PA_COMM_STEP__CAUSE = PA_STEP__CAUSE; + + /** + * The feature id for the 'Host Demand' attribute list. + * + * + * @generated + * @ordered + */ + int PA_COMM_STEP__HOST_DEMAND = PA_STEP__HOST_DEMAND; + + /** + * The feature id for the 'Host Demand Ops' attribute list. + * + * + * @generated + * @ordered + */ + int PA_COMM_STEP__HOST_DEMAND_OPS = PA_STEP__HOST_DEMAND_OPS; + + /** + * The feature id for the 'Inter Occ T' attribute list. + * + * + * @generated + * @ordered + */ + int PA_COMM_STEP__INTER_OCC_T = PA_STEP__INTER_OCC_T; + + /** + * The feature id for the 'Throughput' attribute list. + * + * + * @generated + * @ordered + */ + int PA_COMM_STEP__THROUGHPUT = PA_STEP__THROUGHPUT; + + /** + * The feature id for the 'Resp T' attribute list. + * + * + * @generated + * @ordered + */ + int PA_COMM_STEP__RESP_T = PA_STEP__RESP_T; + + /** + * The feature id for the 'Utilization' attribute list. + * + * + * @generated + * @ordered + */ + int PA_COMM_STEP__UTILIZATION = PA_STEP__UTILIZATION; + + /** + * The feature id for the 'Utilization On Host' attribute list. + * + * + * @generated + * @ordered + */ + int PA_COMM_STEP__UTILIZATION_ON_HOST = PA_STEP__UTILIZATION_ON_HOST; + + /** + * The feature id for the 'Root' reference. + * + * + * @generated + * @ordered + */ + int PA_COMM_STEP__ROOT = PA_STEP__ROOT; + + /** + * The feature id for the 'Steps' reference list. + * + * + * @generated + * @ordered + */ + int PA_COMM_STEP__STEPS = PA_STEP__STEPS; + + /** + * The feature id for the 'Parent Step' reference list. + * + * + * @generated + * @ordered + */ + int PA_COMM_STEP__PARENT_STEP = PA_STEP__PARENT_STEP; + + /** + * The feature id for the 'Timing' reference list. + * + * + * @generated + * @ordered + */ + int PA_COMM_STEP__TIMING = PA_STEP__TIMING; + + /** + * The feature id for the 'Is Atomic' attribute. + * + * + * @generated + * @ordered + */ + int PA_COMM_STEP__IS_ATOMIC = PA_STEP__IS_ATOMIC; + + /** + * The feature id for the 'Block T' attribute. + * + * + * @generated + * @ordered + */ + int PA_COMM_STEP__BLOCK_T = PA_STEP__BLOCK_T; + + /** + * The feature id for the 'Rep' attribute. + * + * + * @generated + * @ordered + */ + int PA_COMM_STEP__REP = PA_STEP__REP; + + /** + * The feature id for the 'Prob' attribute. + * + * + * @generated + * @ordered + */ + int PA_COMM_STEP__PROB = PA_STEP__PROB; + + /** + * The feature id for the 'Priority' attribute. + * + * + * @generated + * @ordered + */ + int PA_COMM_STEP__PRIORITY = PA_STEP__PRIORITY; + + /** + * The feature id for the 'Concur Res' reference. + * + * + * @generated + * @ordered + */ + int PA_COMM_STEP__CONCUR_RES = PA_STEP__CONCUR_RES; + + /** + * The feature id for the 'Host' reference. + * + * + * @generated + * @ordered + */ + int PA_COMM_STEP__HOST = PA_STEP__HOST; + + /** + * The feature id for the 'Serv Demand' reference list. + * + * + * @generated + * @ordered + */ + int PA_COMM_STEP__SERV_DEMAND = PA_STEP__SERV_DEMAND; + + /** + * The feature id for the 'Serv Count' attribute list. + * + * + * @generated + * @ordered + */ + int PA_COMM_STEP__SERV_COUNT = PA_STEP__SERV_COUNT; + + /** + * The feature id for the 'Self Delay' attribute. + * + * + * @generated + * @ordered + */ + int PA_COMM_STEP__SELF_DELAY = PA_STEP__SELF_DELAY; + + /** + * The feature id for the 'Scenario' reference. + * + * + * @generated + * @ordered + */ + int PA_COMM_STEP__SCENARIO = PA_STEP__SCENARIO; + + /** + * The feature id for the 'Child Scenario' reference. + * + * + * @generated + * @ordered + */ + int PA_COMM_STEP__CHILD_SCENARIO = PA_STEP__CHILD_SCENARIO; + + /** + * The feature id for the 'No Sync' attribute. + * + * + * @generated + * @ordered + */ + int PA_COMM_STEP__NO_SYNC = PA_STEP__NO_SYNC; + + /** + * The feature id for the 'Ext Op Demand' attribute list. + * + * + * @generated + * @ordered + */ + int PA_COMM_STEP__EXT_OP_DEMAND = PA_STEP__EXT_OP_DEMAND; + + /** + * The feature id for the 'Ext Op Count' attribute list. + * + * + * @generated + * @ordered + */ + int PA_COMM_STEP__EXT_OP_COUNT = PA_STEP__EXT_OP_COUNT; + + /** + * The feature id for the 'Behav Demand' reference list. + * + * + * @generated + * @ordered + */ + int PA_COMM_STEP__BEHAV_DEMAND = PA_STEP__BEHAV_DEMAND; + + /** + * The feature id for the 'Behav Count' attribute list. + * + * + * @generated + * @ordered + */ + int PA_COMM_STEP__BEHAV_COUNT = PA_STEP__BEHAV_COUNT; + + /** + * The number of structural features of the 'Pa Comm Step' class. + * + * + * @generated + * @ordered + */ + int PA_COMM_STEP_FEATURE_COUNT = PA_STEP_FEATURE_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PaResPassStepImpl Pa Res Pass Step}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PaResPassStepImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PAMPackageImpl#getPaResPassStep() + * @generated + */ + int PA_RES_PASS_STEP = 3; + + /** + * The feature id for the 'Exec Time' attribute list. + * + * + * @generated + * @ordered + */ + int PA_RES_PASS_STEP__EXEC_TIME = GQAMPackage.GA_STEP__EXEC_TIME; + + /** + * The feature id for the 'Allocated Memory' attribute list. + * + * + * @generated + * @ordered + */ + int PA_RES_PASS_STEP__ALLOCATED_MEMORY = GQAMPackage.GA_STEP__ALLOCATED_MEMORY; + + /** + * The feature id for the 'Used Memory' attribute list. + * + * + * @generated + * @ordered + */ + int PA_RES_PASS_STEP__USED_MEMORY = GQAMPackage.GA_STEP__USED_MEMORY; + + /** + * The feature id for the 'Power Peak' attribute list. + * + * + * @generated + * @ordered + */ + int PA_RES_PASS_STEP__POWER_PEAK = GQAMPackage.GA_STEP__POWER_PEAK; + + /** + * The feature id for the 'Energy' attribute list. + * + * + * @generated + * @ordered + */ + int PA_RES_PASS_STEP__ENERGY = GQAMPackage.GA_STEP__ENERGY; + + /** + * The feature id for the 'Base Named Element' reference. + * + * + * @generated + * @ordered + */ + int PA_RES_PASS_STEP__BASE_NAMED_ELEMENT = GQAMPackage.GA_STEP__BASE_NAMED_ELEMENT; + + /** + * The feature id for the 'Sub Usage' reference list. + * + * + * @generated + * @ordered + */ + int PA_RES_PASS_STEP__SUB_USAGE = GQAMPackage.GA_STEP__SUB_USAGE; + + /** + * The feature id for the 'Used Resources' reference list. + * + * + * @generated + * @ordered + */ + int PA_RES_PASS_STEP__USED_RESOURCES = GQAMPackage.GA_STEP__USED_RESOURCES; + + /** + * The feature id for the 'Msg Size' attribute list. + * + * + * @generated + * @ordered + */ + int PA_RES_PASS_STEP__MSG_SIZE = GQAMPackage.GA_STEP__MSG_SIZE; + + /** + * The feature id for the 'On' reference list. + * + * + * @generated + * @ordered + */ + int PA_RES_PASS_STEP__ON = GQAMPackage.GA_STEP__ON; + + /** + * The feature id for the 'Base Action' reference. + * + * + * @generated + * @ordered + */ + int PA_RES_PASS_STEP__BASE_ACTION = GQAMPackage.GA_STEP__BASE_ACTION; + + /** + * The feature id for the 'Base Behavior' reference. + * + * + * @generated + * @ordered + */ + int PA_RES_PASS_STEP__BASE_BEHAVIOR = GQAMPackage.GA_STEP__BASE_BEHAVIOR; + + /** + * The feature id for the 'Base Message' reference. + * + * + * @generated + * @ordered + */ + int PA_RES_PASS_STEP__BASE_MESSAGE = GQAMPackage.GA_STEP__BASE_MESSAGE; + + /** + * The feature id for the 'Duration' containment reference. + * + * + * @generated + * @ordered + */ + int PA_RES_PASS_STEP__DURATION = GQAMPackage.GA_STEP__DURATION; + + /** + * The feature id for the 'Start' reference. + * + * + * @generated + * @ordered + */ + int PA_RES_PASS_STEP__START = GQAMPackage.GA_STEP__START; + + /** + * The feature id for the 'Finish' reference. + * + * + * @generated + * @ordered + */ + int PA_RES_PASS_STEP__FINISH = GQAMPackage.GA_STEP__FINISH; + + /** + * The feature id for the 'Cause' reference. + * + * + * @generated + * @ordered + */ + int PA_RES_PASS_STEP__CAUSE = GQAMPackage.GA_STEP__CAUSE; + + /** + * The feature id for the 'Host Demand' attribute list. + * + * + * @generated + * @ordered + */ + int PA_RES_PASS_STEP__HOST_DEMAND = GQAMPackage.GA_STEP__HOST_DEMAND; + + /** + * The feature id for the 'Host Demand Ops' attribute list. + * + * + * @generated + * @ordered + */ + int PA_RES_PASS_STEP__HOST_DEMAND_OPS = GQAMPackage.GA_STEP__HOST_DEMAND_OPS; + + /** + * The feature id for the 'Inter Occ T' attribute list. + * + * + * @generated + * @ordered + */ + int PA_RES_PASS_STEP__INTER_OCC_T = GQAMPackage.GA_STEP__INTER_OCC_T; + + /** + * The feature id for the 'Throughput' attribute list. + * + * + * @generated + * @ordered + */ + int PA_RES_PASS_STEP__THROUGHPUT = GQAMPackage.GA_STEP__THROUGHPUT; + + /** + * The feature id for the 'Resp T' attribute list. + * + * + * @generated + * @ordered + */ + int PA_RES_PASS_STEP__RESP_T = GQAMPackage.GA_STEP__RESP_T; + + /** + * The feature id for the 'Utilization' attribute list. + * + * + * @generated + * @ordered + */ + int PA_RES_PASS_STEP__UTILIZATION = GQAMPackage.GA_STEP__UTILIZATION; + + /** + * The feature id for the 'Utilization On Host' attribute list. + * + * + * @generated + * @ordered + */ + int PA_RES_PASS_STEP__UTILIZATION_ON_HOST = GQAMPackage.GA_STEP__UTILIZATION_ON_HOST; + + /** + * The feature id for the 'Root' reference. + * + * + * @generated + * @ordered + */ + int PA_RES_PASS_STEP__ROOT = GQAMPackage.GA_STEP__ROOT; + + /** + * The feature id for the 'Steps' reference list. + * + * + * @generated + * @ordered + */ + int PA_RES_PASS_STEP__STEPS = GQAMPackage.GA_STEP__STEPS; + + /** + * The feature id for the 'Parent Step' reference list. + * + * + * @generated + * @ordered + */ + int PA_RES_PASS_STEP__PARENT_STEP = GQAMPackage.GA_STEP__PARENT_STEP; + + /** + * The feature id for the 'Timing' reference list. + * + * + * @generated + * @ordered + */ + int PA_RES_PASS_STEP__TIMING = GQAMPackage.GA_STEP__TIMING; + + /** + * The feature id for the 'Is Atomic' attribute. + * + * + * @generated + * @ordered + */ + int PA_RES_PASS_STEP__IS_ATOMIC = GQAMPackage.GA_STEP__IS_ATOMIC; + + /** + * The feature id for the 'Block T' attribute. + * + * + * @generated + * @ordered + */ + int PA_RES_PASS_STEP__BLOCK_T = GQAMPackage.GA_STEP__BLOCK_T; + + /** + * The feature id for the 'Rep' attribute. + * + * + * @generated + * @ordered + */ + int PA_RES_PASS_STEP__REP = GQAMPackage.GA_STEP__REP; + + /** + * The feature id for the 'Prob' attribute. + * + * + * @generated + * @ordered + */ + int PA_RES_PASS_STEP__PROB = GQAMPackage.GA_STEP__PROB; + + /** + * The feature id for the 'Priority' attribute. + * + * + * @generated + * @ordered + */ + int PA_RES_PASS_STEP__PRIORITY = GQAMPackage.GA_STEP__PRIORITY; + + /** + * The feature id for the 'Concur Res' reference. + * + * + * @generated + * @ordered + */ + int PA_RES_PASS_STEP__CONCUR_RES = GQAMPackage.GA_STEP__CONCUR_RES; + + /** + * The feature id for the 'Host' reference. + * + * + * @generated + * @ordered + */ + int PA_RES_PASS_STEP__HOST = GQAMPackage.GA_STEP__HOST; + + /** + * The feature id for the 'Serv Demand' reference list. + * + * + * @generated + * @ordered + */ + int PA_RES_PASS_STEP__SERV_DEMAND = GQAMPackage.GA_STEP__SERV_DEMAND; + + /** + * The feature id for the 'Serv Count' attribute list. + * + * + * @generated + * @ordered + */ + int PA_RES_PASS_STEP__SERV_COUNT = GQAMPackage.GA_STEP__SERV_COUNT; + + /** + * The feature id for the 'Self Delay' attribute. + * + * + * @generated + * @ordered + */ + int PA_RES_PASS_STEP__SELF_DELAY = GQAMPackage.GA_STEP__SELF_DELAY; + + /** + * The feature id for the 'Scenario' reference. + * + * + * @generated + * @ordered + */ + int PA_RES_PASS_STEP__SCENARIO = GQAMPackage.GA_STEP__SCENARIO; + + /** + * The feature id for the 'Child Scenario' reference. + * + * + * @generated + * @ordered + */ + int PA_RES_PASS_STEP__CHILD_SCENARIO = GQAMPackage.GA_STEP__CHILD_SCENARIO; + + /** + * The feature id for the 'Resource' reference. + * + * + * @generated + * @ordered + */ + int PA_RES_PASS_STEP__RESOURCE = GQAMPackage.GA_STEP_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Res Units' attribute. + * + * + * @generated + * @ordered + */ + int PA_RES_PASS_STEP__RES_UNITS = GQAMPackage.GA_STEP_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Pa Res Pass Step' class. + * + * + * @generated + * @ordered + */ + int PA_RES_PASS_STEP_FEATURE_COUNT = GQAMPackage.GA_STEP_FEATURE_COUNT + 2; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PaLogicalResourceImpl Pa Logical Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PaLogicalResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PAMPackageImpl#getPaLogicalResource() + * @generated + */ + int PA_LOGICAL_RESOURCE = 4; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int PA_LOGICAL_RESOURCE__RES_MULT = GRMPackage.RESOURCE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int PA_LOGICAL_RESOURCE__IS_PROTECTED = GRMPackage.RESOURCE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int PA_LOGICAL_RESOURCE__IS_ACTIVE = GRMPackage.RESOURCE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int PA_LOGICAL_RESOURCE__BASE_PROPERTY = GRMPackage.RESOURCE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int PA_LOGICAL_RESOURCE__BASE_INSTANCE_SPECIFICATION = GRMPackage.RESOURCE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int PA_LOGICAL_RESOURCE__BASE_CLASSIFIER = GRMPackage.RESOURCE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int PA_LOGICAL_RESOURCE__BASE_LIFELINE = GRMPackage.RESOURCE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int PA_LOGICAL_RESOURCE__BASE_CONNECTABLE_ELEMENT = GRMPackage.RESOURCE__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Utilization' attribute. + * + * + * @generated + * @ordered + */ + int PA_LOGICAL_RESOURCE__UTILIZATION = GRMPackage.RESOURCE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Throughput' attribute. + * + * + * @generated + * @ordered + */ + int PA_LOGICAL_RESOURCE__THROUGHPUT = GRMPackage.RESOURCE_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Pool Size' attribute. + * + * + * @generated + * @ordered + */ + int PA_LOGICAL_RESOURCE__POOL_SIZE = GRMPackage.RESOURCE_FEATURE_COUNT + 2; + + /** + * The number of structural features of the 'Pa Logical Resource' class. + * + * + * @generated + * @ordered + */ + int PA_LOGICAL_RESOURCE_FEATURE_COUNT = GRMPackage.RESOURCE_FEATURE_COUNT + 3; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PaRunTInstanceImpl Pa Run TInstance}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PaRunTInstanceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PAMPackageImpl#getPaRunTInstance() + * @generated + */ + int PA_RUN_TINSTANCE = 5; + + /** + * The feature id for the 'Pool Size' attribute. + * + * + * @generated + * @ordered + */ + int PA_RUN_TINSTANCE__POOL_SIZE = 0; + + /** + * The feature id for the 'Unbdd Pool' attribute. + * + * + * @generated + * @ordered + */ + int PA_RUN_TINSTANCE__UNBDD_POOL = 1; + + /** + * The feature id for the 'Instance' reference. + * + * + * @generated + * @ordered + */ + int PA_RUN_TINSTANCE__INSTANCE = 2; + + /** + * The feature id for the 'Host' reference. + * + * + * @generated + * @ordered + */ + int PA_RUN_TINSTANCE__HOST = 3; + + /** + * The feature id for the 'Utilization' attribute. + * + * + * @generated + * @ordered + */ + int PA_RUN_TINSTANCE__UTILIZATION = 4; + + /** + * The feature id for the 'Throughput' attribute. + * + * + * @generated + * @ordered + */ + int PA_RUN_TINSTANCE__THROUGHPUT = 5; + + /** + * The feature id for the 'Base Named Element' reference. + * + * + * @generated + * @ordered + */ + int PA_RUN_TINSTANCE__BASE_NAMED_ELEMENT = 6; + + /** + * The number of structural features of the 'Pa Run TInstance' class. + * + * + * @generated + * @ordered + */ + int PA_RUN_TINSTANCE_FEATURE_COUNT = 7; + + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaStep Pa Step}'. + * + * + * @return the meta object for class 'Pa Step'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaStep + * @generated + */ + EClass getPaStep(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaStep#getNoSync No Sync}'. + * + * + * @return the meta object for the attribute 'No Sync'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaStep#getNoSync() + * @see #getPaStep() + * @generated + */ + EAttribute getPaStep_NoSync(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaStep#getExtOpDemand Ext Op Demand}'. + * + * + * @return the meta object for the attribute list 'Ext Op Demand'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaStep#getExtOpDemand() + * @see #getPaStep() + * @generated + */ + EAttribute getPaStep_ExtOpDemand(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaStep#getExtOpCount Ext Op Count}'. + * + * + * @return the meta object for the attribute list 'Ext Op Count'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaStep#getExtOpCount() + * @see #getPaStep() + * @generated + */ + EAttribute getPaStep_ExtOpCount(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaStep#getBehavDemand Behav Demand}'. + * + * + * @return the meta object for the reference list 'Behav Demand'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaStep#getBehavDemand() + * @see #getPaStep() + * @generated + */ + EReference getPaStep_BehavDemand(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaStep#getBehavCount Behav Count}'. + * + * + * @return the meta object for the attribute list 'Behav Count'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaStep#getBehavCount() + * @see #getPaStep() + * @generated + */ + EAttribute getPaStep_BehavCount(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaRequestedStep Pa Requested Step}'. + * + * + * @return the meta object for class 'Pa Requested Step'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaRequestedStep + * @generated + */ + EClass getPaRequestedStep(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaCommStep Pa Comm Step}'. + * + * + * @return the meta object for class 'Pa Comm Step'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaCommStep + * @generated + */ + EClass getPaCommStep(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaResPassStep Pa Res Pass Step}'. + * + * + * @return the meta object for class 'Pa Res Pass Step'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaResPassStep + * @generated + */ + EClass getPaResPassStep(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaResPassStep#getResource Resource}'. + * + * + * @return the meta object for the reference 'Resource'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaResPassStep#getResource() + * @see #getPaResPassStep() + * @generated + */ + EReference getPaResPassStep_Resource(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaResPassStep#getResUnits Res Units}'. + * + * + * @return the meta object for the attribute 'Res Units'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaResPassStep#getResUnits() + * @see #getPaResPassStep() + * @generated + */ + EAttribute getPaResPassStep_ResUnits(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaLogicalResource Pa Logical Resource}'. + * + * + * @return the meta object for class 'Pa Logical Resource'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaLogicalResource + * @generated + */ + EClass getPaLogicalResource(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaLogicalResource#getUtilization Utilization}'. + * + * + * @return the meta object for the attribute 'Utilization'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaLogicalResource#getUtilization() + * @see #getPaLogicalResource() + * @generated + */ + EAttribute getPaLogicalResource_Utilization(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaLogicalResource#getThroughput Throughput}'. + * + * + * @return the meta object for the attribute 'Throughput'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaLogicalResource#getThroughput() + * @see #getPaLogicalResource() + * @generated + */ + EAttribute getPaLogicalResource_Throughput(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaLogicalResource#getPoolSize Pool Size}'. + * + * + * @return the meta object for the attribute 'Pool Size'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaLogicalResource#getPoolSize() + * @see #getPaLogicalResource() + * @generated + */ + EAttribute getPaLogicalResource_PoolSize(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaRunTInstance Pa Run TInstance}'. + * + * + * @return the meta object for class 'Pa Run TInstance'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaRunTInstance + * @generated + */ + EClass getPaRunTInstance(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaRunTInstance#getPoolSize Pool Size}'. + * + * + * @return the meta object for the attribute 'Pool Size'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaRunTInstance#getPoolSize() + * @see #getPaRunTInstance() + * @generated + */ + EAttribute getPaRunTInstance_PoolSize(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaRunTInstance#isUnbddPool Unbdd Pool}'. + * + * + * @return the meta object for the attribute 'Unbdd Pool'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaRunTInstance#isUnbddPool() + * @see #getPaRunTInstance() + * @generated + */ + EAttribute getPaRunTInstance_UnbddPool(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaRunTInstance#getInstance Instance}'. + * + * + * @return the meta object for the reference 'Instance'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaRunTInstance#getInstance() + * @see #getPaRunTInstance() + * @generated + */ + EReference getPaRunTInstance_Instance(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaRunTInstance#getHost Host}'. + * + * + * @return the meta object for the reference 'Host'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaRunTInstance#getHost() + * @see #getPaRunTInstance() + * @generated + */ + EReference getPaRunTInstance_Host(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaRunTInstance#getUtilization Utilization}'. + * + * + * @return the meta object for the attribute 'Utilization'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaRunTInstance#getUtilization() + * @see #getPaRunTInstance() + * @generated + */ + EAttribute getPaRunTInstance_Utilization(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaRunTInstance#getThroughput Throughput}'. + * + * + * @return the meta object for the attribute 'Throughput'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaRunTInstance#getThroughput() + * @see #getPaRunTInstance() + * @generated + */ + EAttribute getPaRunTInstance_Throughput(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaRunTInstance#getBase_NamedElement Base Named Element}'. + * + * + * @return the meta object for the reference 'Base Named Element'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaRunTInstance#getBase_NamedElement() + * @see #getPaRunTInstance() + * @generated + */ + EReference getPaRunTInstance_Base_NamedElement(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + PAMFactory getPAMFactory(); + + /** + * + * 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.MARTE_AnalysisModel.PAM.impl.PaStepImpl Pa Step}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PaStepImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PAMPackageImpl#getPaStep() + * @generated + */ + EClass PA_STEP = eINSTANCE.getPaStep(); + + /** + * The meta object literal for the 'No Sync' attribute feature. + * + * + * @generated + */ + EAttribute PA_STEP__NO_SYNC = eINSTANCE.getPaStep_NoSync(); + + /** + * The meta object literal for the 'Ext Op Demand' attribute list feature. + * + * + * @generated + */ + EAttribute PA_STEP__EXT_OP_DEMAND = eINSTANCE.getPaStep_ExtOpDemand(); + + /** + * The meta object literal for the 'Ext Op Count' attribute list feature. + * + * + * @generated + */ + EAttribute PA_STEP__EXT_OP_COUNT = eINSTANCE.getPaStep_ExtOpCount(); + + /** + * The meta object literal for the 'Behav Demand' reference list feature. + * + * + * @generated + */ + EReference PA_STEP__BEHAV_DEMAND = eINSTANCE.getPaStep_BehavDemand(); + + /** + * The meta object literal for the 'Behav Count' attribute list feature. + * + * + * @generated + */ + EAttribute PA_STEP__BEHAV_COUNT = eINSTANCE.getPaStep_BehavCount(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PaRequestedStepImpl Pa Requested Step}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PaRequestedStepImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PAMPackageImpl#getPaRequestedStep() + * @generated + */ + EClass PA_REQUESTED_STEP = eINSTANCE.getPaRequestedStep(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PaCommStepImpl Pa Comm Step}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PaCommStepImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PAMPackageImpl#getPaCommStep() + * @generated + */ + EClass PA_COMM_STEP = eINSTANCE.getPaCommStep(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PaResPassStepImpl Pa Res Pass Step}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PaResPassStepImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PAMPackageImpl#getPaResPassStep() + * @generated + */ + EClass PA_RES_PASS_STEP = eINSTANCE.getPaResPassStep(); + + /** + * The meta object literal for the 'Resource' reference feature. + * + * + * @generated + */ + EReference PA_RES_PASS_STEP__RESOURCE = eINSTANCE.getPaResPassStep_Resource(); + + /** + * The meta object literal for the 'Res Units' attribute feature. + * + * + * @generated + */ + EAttribute PA_RES_PASS_STEP__RES_UNITS = eINSTANCE.getPaResPassStep_ResUnits(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PaLogicalResourceImpl Pa Logical Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PaLogicalResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PAMPackageImpl#getPaLogicalResource() + * @generated + */ + EClass PA_LOGICAL_RESOURCE = eINSTANCE.getPaLogicalResource(); + + /** + * The meta object literal for the 'Utilization' attribute feature. + * + * + * @generated + */ + EAttribute PA_LOGICAL_RESOURCE__UTILIZATION = eINSTANCE.getPaLogicalResource_Utilization(); + + /** + * The meta object literal for the 'Throughput' attribute feature. + * + * + * @generated + */ + EAttribute PA_LOGICAL_RESOURCE__THROUGHPUT = eINSTANCE.getPaLogicalResource_Throughput(); + + /** + * The meta object literal for the 'Pool Size' attribute feature. + * + * + * @generated + */ + EAttribute PA_LOGICAL_RESOURCE__POOL_SIZE = eINSTANCE.getPaLogicalResource_PoolSize(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PaRunTInstanceImpl Pa Run TInstance}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PaRunTInstanceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PAMPackageImpl#getPaRunTInstance() + * @generated + */ + EClass PA_RUN_TINSTANCE = eINSTANCE.getPaRunTInstance(); + + /** + * The meta object literal for the 'Pool Size' attribute feature. + * + * + * @generated + */ + EAttribute PA_RUN_TINSTANCE__POOL_SIZE = eINSTANCE.getPaRunTInstance_PoolSize(); + + /** + * The meta object literal for the 'Unbdd Pool' attribute feature. + * + * + * @generated + */ + EAttribute PA_RUN_TINSTANCE__UNBDD_POOL = eINSTANCE.getPaRunTInstance_UnbddPool(); + + /** + * The meta object literal for the 'Instance' reference feature. + * + * + * @generated + */ + EReference PA_RUN_TINSTANCE__INSTANCE = eINSTANCE.getPaRunTInstance_Instance(); + + /** + * The meta object literal for the 'Host' reference feature. + * + * + * @generated + */ + EReference PA_RUN_TINSTANCE__HOST = eINSTANCE.getPaRunTInstance_Host(); + + /** + * The meta object literal for the 'Utilization' attribute feature. + * + * + * @generated + */ + EAttribute PA_RUN_TINSTANCE__UTILIZATION = eINSTANCE.getPaRunTInstance_Utilization(); + + /** + * The meta object literal for the 'Throughput' attribute feature. + * + * + * @generated + */ + EAttribute PA_RUN_TINSTANCE__THROUGHPUT = eINSTANCE.getPaRunTInstance_Throughput(); + + /** + * The meta object literal for the 'Base Named Element' reference feature. + * + * + * @generated + */ + EReference PA_RUN_TINSTANCE__BASE_NAMED_ELEMENT = eINSTANCE.getPaRunTInstance_Base_NamedElement(); + + } + +} //PAMPackage diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/PaCommStep.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/PaCommStep.java new file mode 100644 index 00000000000..26d2b56a102 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/PaCommStep.java @@ -0,0 +1,29 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.PAM; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaCommStep; + +/** + * + * A representation of the model object 'Pa Comm Step'. + * + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PAMPackage#getPaCommStep() + * @model + * @generated + */ +public interface PaCommStep extends PaStep, GaCommStep { +} // PaCommStep diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/PaLogicalResource.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/PaLogicalResource.java new file mode 100644 index 00000000000..a795ce1c2c4 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/PaLogicalResource.java @@ -0,0 +1,115 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.PAM; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource; + +/** + * + * A representation of the model object 'Pa Logical Resource'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaLogicalResource#getUtilization Utilization}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaLogicalResource#getThroughput Throughput}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaLogicalResource#getPoolSize Pool Size}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PAMPackage#getPaLogicalResource() + * @model + * @generated + */ +public interface PaLogicalResource extends Resource { + /** + * Returns the value of the 'Utilization' attribute. + * + *

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

+ * + * @return the value of the 'Utilization' attribute. + * @see #setUtilization(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PAMPackage#getPaLogicalResource_Utilization() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Real" ordered="false" + * @generated + */ + String getUtilization(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaLogicalResource#getUtilization Utilization}' attribute. + * + * + * @param value the new value of the 'Utilization' attribute. + * @see #getUtilization() + * @generated + */ + void setUtilization(String value); + + /** + * Returns the value of the 'Throughput' attribute. + * + *

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

+ * + * @return the value of the 'Throughput' attribute. + * @see #setThroughput(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PAMPackage#getPaLogicalResource_Throughput() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Frequency" ordered="false" + * @generated + */ + String getThroughput(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaLogicalResource#getThroughput Throughput}' attribute. + * + * + * @param value the new value of the 'Throughput' attribute. + * @see #getThroughput() + * @generated + */ + void setThroughput(String value); + + /** + * Returns the value of the 'Pool Size' attribute. + * + *

+ * If the meaning of the 'Pool Size' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Pool Size' attribute. + * @see #setPoolSize(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PAMPackage#getPaLogicalResource_PoolSize() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Integer" required="true" ordered="false" + * @generated + */ + String getPoolSize(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaLogicalResource#getPoolSize Pool Size}' attribute. + * + * + * @param value the new value of the 'Pool Size' attribute. + * @see #getPoolSize() + * @generated + */ + void setPoolSize(String value); + +} // PaLogicalResource diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/PaRequestedStep.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/PaRequestedStep.java new file mode 100644 index 00000000000..b76cc2c01a8 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/PaRequestedStep.java @@ -0,0 +1,29 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.PAM; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaRequestedService; + +/** + * + * A representation of the model object 'Pa Requested Step'. + * + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PAMPackage#getPaRequestedStep() + * @model + * @generated + */ +public interface PaRequestedStep extends PaStep, GaRequestedService { +} // PaRequestedStep diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/PaResPassStep.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/PaResPassStep.java new file mode 100644 index 00000000000..7f90e75986b --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/PaResPassStep.java @@ -0,0 +1,91 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.PAM; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource; + +/** + * + * A representation of the model object 'Pa Res Pass Step'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaResPassStep#getResource Resource}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaResPassStep#getResUnits Res Units}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PAMPackage#getPaResPassStep() + * @model + * @generated + */ +public interface PaResPassStep extends GaStep { + /** + * Returns the value of the 'Resource' reference. + * + *

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

+ * + * @return the value of the 'Resource' reference. + * @see #setResource(Resource) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PAMPackage#getPaResPassStep_Resource() + * @model ordered="false" + * @generated + */ + Resource getResource(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaResPassStep#getResource Resource}' reference. + * + * + * @param value the new value of the 'Resource' reference. + * @see #getResource() + * @generated + */ + void setResource(Resource value); + + /** + * Returns the value of the 'Res Units' attribute. + * The default value is "1". + * + *

+ * If the meaning of the 'Res Units' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Res Units' attribute. + * @see #setResUnits(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PAMPackage#getPaResPassStep_ResUnits() + * @model default="1" unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Integer" ordered="false" + * @generated + */ + String getResUnits(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaResPassStep#getResUnits Res Units}' attribute. + * + * + * @param value the new value of the 'Res Units' attribute. + * @see #getResUnits() + * @generated + */ + void setResUnits(String value); + +} // PaResPassStep diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/PaRunTInstance.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/PaRunTInstance.java new file mode 100644 index 00000000000..d04d76fbad7 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/PaRunTInstance.java @@ -0,0 +1,230 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.PAM; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaExecHost; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SchedulableResource; + +import org.eclipse.uml2.uml.NamedElement; + +/** + * + * A representation of the model object 'Pa Run TInstance'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaRunTInstance#getPoolSize Pool Size}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaRunTInstance#isUnbddPool Unbdd Pool}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaRunTInstance#getInstance Instance}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaRunTInstance#getHost Host}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaRunTInstance#getUtilization Utilization}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaRunTInstance#getThroughput Throughput}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaRunTInstance#getBase_NamedElement Base Named Element}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PAMPackage#getPaRunTInstance() + * @model + * @generated + */ +public interface PaRunTInstance extends EObject { + /** + * Returns the value of the 'Pool Size' attribute. + * + *

+ * If the meaning of the 'Pool Size' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Pool Size' attribute. + * @see #setPoolSize(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PAMPackage#getPaRunTInstance_PoolSize() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Integer" ordered="false" + * @generated + */ + String getPoolSize(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaRunTInstance#getPoolSize Pool Size}' attribute. + * + * + * @param value the new value of the 'Pool Size' attribute. + * @see #getPoolSize() + * @generated + */ + void setPoolSize(String value); + + /** + * Returns the value of the 'Unbdd Pool' attribute. + * The default value is "false". + * + *

+ * If the meaning of the 'Unbdd Pool' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Unbdd Pool' attribute. + * @see #setUnbddPool(boolean) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PAMPackage#getPaRunTInstance_UnbddPool() + * @model default="false" unique="false" dataType="org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.Boolean" ordered="false" + * @generated + */ + boolean isUnbddPool(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaRunTInstance#isUnbddPool Unbdd Pool}' attribute. + * + * + * @param value the new value of the 'Unbdd Pool' attribute. + * @see #isUnbddPool() + * @generated + */ + void setUnbddPool(boolean value); + + /** + * Returns the value of the 'Instance' reference. + * + *

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

+ * + * @return the value of the 'Instance' reference. + * @see #setInstance(SchedulableResource) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PAMPackage#getPaRunTInstance_Instance() + * @model ordered="false" + * @generated + */ + SchedulableResource getInstance(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaRunTInstance#getInstance Instance}' reference. + * + * + * @param value the new value of the 'Instance' reference. + * @see #getInstance() + * @generated + */ + void setInstance(SchedulableResource value); + + /** + * Returns the value of the 'Host' reference. + * + *

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

+ * + * @return the value of the 'Host' reference. + * @see #setHost(GaExecHost) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PAMPackage#getPaRunTInstance_Host() + * @model ordered="false" + * @generated + */ + GaExecHost getHost(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaRunTInstance#getHost Host}' reference. + * + * + * @param value the new value of the 'Host' reference. + * @see #getHost() + * @generated + */ + void setHost(GaExecHost value); + + /** + * Returns the value of the 'Utilization' attribute. + * + *

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

+ * + * @return the value of the 'Utilization' attribute. + * @see #setUtilization(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PAMPackage#getPaRunTInstance_Utilization() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Real" ordered="false" + * @generated + */ + String getUtilization(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaRunTInstance#getUtilization Utilization}' attribute. + * + * + * @param value the new value of the 'Utilization' attribute. + * @see #getUtilization() + * @generated + */ + void setUtilization(String value); + + /** + * Returns the value of the 'Throughput' attribute. + * + *

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

+ * + * @return the value of the 'Throughput' attribute. + * @see #setThroughput(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PAMPackage#getPaRunTInstance_Throughput() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Frequency" ordered="false" + * @generated + */ + String getThroughput(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaRunTInstance#getThroughput Throughput}' attribute. + * + * + * @param value the new value of the 'Throughput' attribute. + * @see #getThroughput() + * @generated + */ + void setThroughput(String value); + + /** + * Returns the value of the 'Base Named Element' reference. + * + *

+ * If the meaning of the 'Base Named Element' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Named Element' reference. + * @see #setBase_NamedElement(NamedElement) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PAMPackage#getPaRunTInstance_Base_NamedElement() + * @model required="true" ordered="false" + * @generated + */ + NamedElement getBase_NamedElement(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaRunTInstance#getBase_NamedElement Base Named Element}' reference. + * + * + * @param value the new value of the 'Base Named Element' reference. + * @see #getBase_NamedElement() + * @generated + */ + void setBase_NamedElement(NamedElement value); + +} // PaRunTInstance diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/PaStep.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/PaStep.java new file mode 100644 index 00000000000..db29d4f12f4 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/PaStep.java @@ -0,0 +1,133 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.PAM; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep; + +/** + * + * A representation of the model object 'Pa Step'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaStep#getNoSync No Sync}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaStep#getExtOpDemand Ext Op Demand}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaStep#getExtOpCount Ext Op Count}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaStep#getBehavDemand Behav Demand}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaStep#getBehavCount Behav Count}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PAMPackage#getPaStep() + * @model + * @generated + */ +public interface PaStep extends GaStep { + /** + * Returns the value of the 'No Sync' attribute. + * The default value is "false". + * + *

+ * If the meaning of the 'No Sync' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'No Sync' attribute. + * @see #setNoSync(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PAMPackage#getPaStep_NoSync() + * @model default="false" unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Boolean" ordered="false" + * @generated + */ + String getNoSync(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaStep#getNoSync No Sync}' attribute. + * + * + * @param value the new value of the 'No Sync' attribute. + * @see #getNoSync() + * @generated + */ + void setNoSync(String value); + + /** + * Returns the value of the 'Ext Op Demand' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Ext Op Demand' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Ext Op Demand' attribute list. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PAMPackage#getPaStep_ExtOpDemand() + * @model dataType="org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.String" + * @generated + */ + EList getExtOpDemand(); + + /** + * Returns the value of the 'Ext Op Count' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Ext Op Count' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Ext Op Count' attribute list. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PAMPackage#getPaStep_ExtOpCount() + * @model default="1" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Real" + * @generated + */ + EList getExtOpCount(); + + /** + * Returns the value of the 'Behav Demand' reference list. + * The list contents are of type {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario}. + * + *

+ * If the meaning of the 'Behav Demand' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Behav Demand' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PAMPackage#getPaStep_BehavDemand() + * @model + * @generated + */ + EList getBehavDemand(); + + /** + * Returns the value of the 'Behav Count' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Behav Count' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Behav Count' attribute list. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PAMPackage#getPaStep_BehavCount() + * @model dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Real" + * @generated + */ + EList getBehavCount(); + +} // PaStep diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/impl/PAMFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/impl/PAMFactoryImpl.java new file mode 100644 index 00000000000..ed1f758e07d --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/impl/PAMFactoryImpl.java @@ -0,0 +1,161 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.PAM.impl; + +import org.eclipse.emf.ecore.EClass; +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.MARTE_AnalysisModel.PAM.*; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class PAMFactoryImpl extends EFactoryImpl implements PAMFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static PAMFactory init() { + try { + PAMFactory thePAMFactory = (PAMFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/PAM/1"); + if (thePAMFactory != null) { + return thePAMFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new PAMFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public PAMFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case PAMPackage.PA_STEP: return createPaStep(); + case PAMPackage.PA_REQUESTED_STEP: return createPaRequestedStep(); + case PAMPackage.PA_COMM_STEP: return createPaCommStep(); + case PAMPackage.PA_RES_PASS_STEP: return createPaResPassStep(); + case PAMPackage.PA_LOGICAL_RESOURCE: return createPaLogicalResource(); + case PAMPackage.PA_RUN_TINSTANCE: return createPaRunTInstance(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public PaStep createPaStep() { + PaStepImpl paStep = new PaStepImpl(); + return paStep; + } + + /** + * + * + * @generated + */ + public PaRequestedStep createPaRequestedStep() { + PaRequestedStepImpl paRequestedStep = new PaRequestedStepImpl(); + return paRequestedStep; + } + + /** + * + * + * @generated + */ + public PaCommStep createPaCommStep() { + PaCommStepImpl paCommStep = new PaCommStepImpl(); + return paCommStep; + } + + /** + * + * + * @generated + */ + public PaResPassStep createPaResPassStep() { + PaResPassStepImpl paResPassStep = new PaResPassStepImpl(); + return paResPassStep; + } + + /** + * + * + * @generated + */ + public PaLogicalResource createPaLogicalResource() { + PaLogicalResourceImpl paLogicalResource = new PaLogicalResourceImpl(); + return paLogicalResource; + } + + /** + * + * + * @generated + */ + public PaRunTInstance createPaRunTInstance() { + PaRunTInstanceImpl paRunTInstance = new PaRunTInstanceImpl(); + return paRunTInstance; + } + + /** + * + * + * @generated + */ + public PAMPackage getPAMPackage() { + return (PAMPackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static PAMPackage getPackage() { + return PAMPackage.eINSTANCE; + } + +} //PAMFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/impl/PAMPackageImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/impl/PAMPackageImpl.java new file mode 100644 index 00000000000..1dfda574a73 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/impl/PAMPackageImpl.java @@ -0,0 +1,731 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.PAM.impl; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +import org.eclipse.emf.ecore.impl.EPackageImpl; + +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.PAMFactory; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PAMPackage; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaCommStep; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaLogicalResource; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaRequestedStep; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaResPassStep; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaRunTInstance; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaStep; + +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.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 PAMPackageImpl extends EPackageImpl implements PAMPackage { + /** + * + * + * @generated + */ + private EClass paStepEClass = null; + + /** + * + * + * @generated + */ + private EClass paRequestedStepEClass = null; + + /** + * + * + * @generated + */ + private EClass paCommStepEClass = null; + + /** + * + * + * @generated + */ + private EClass paResPassStepEClass = null; + + /** + * + * + * @generated + */ + private EClass paLogicalResourceEClass = null; + + /** + * + * + * @generated + */ + private EClass paRunTInstanceEClass = 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.MARTE_AnalysisModel.PAM.PAMPackage#eNS_URI + * @see #init() + * @generated + */ + private PAMPackageImpl() { + super(eNS_URI, PAMFactory.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 PAMPackage#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 PAMPackage init() { + if (isInited) return (PAMPackage)EPackage.Registry.INSTANCE.getEPackage(PAMPackage.eNS_URI); + + // Obtain or create and register package + PAMPackageImpl thePAMPackage = (PAMPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof PAMPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new PAMPackageImpl()); + + 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); + 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); + 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 + thePAMPackage.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(); + theMeasurementUnitsPackage.createPackageContents(); + theGRM_BasicTypesPackage.createPackageContents(); + theMARTE_DataTypesPackage.createPackageContents(); + theBasicNFP_TypesPackage.createPackageContents(); + theTimeTypesLibraryPackage.createPackageContents(); + theTimeLibraryPackage.createPackageContents(); + theRS_LibraryPackage.createPackageContents(); + theMARTE_PrimitivesTypesPackage.createPackageContents(); + + // Initialize created meta-data + thePAMPackage.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(); + theMeasurementUnitsPackage.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 + thePAMPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(PAMPackage.eNS_URI, thePAMPackage); + return thePAMPackage; + } + + /** + * + * + * @generated + */ + public EClass getPaStep() { + return paStepEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getPaStep_NoSync() { + return (EAttribute)paStepEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getPaStep_ExtOpDemand() { + return (EAttribute)paStepEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getPaStep_ExtOpCount() { + return (EAttribute)paStepEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getPaStep_BehavDemand() { + return (EReference)paStepEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getPaStep_BehavCount() { + return (EAttribute)paStepEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EClass getPaRequestedStep() { + return paRequestedStepEClass; + } + + /** + * + * + * @generated + */ + public EClass getPaCommStep() { + return paCommStepEClass; + } + + /** + * + * + * @generated + */ + public EClass getPaResPassStep() { + return paResPassStepEClass; + } + + /** + * + * + * @generated + */ + public EReference getPaResPassStep_Resource() { + return (EReference)paResPassStepEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getPaResPassStep_ResUnits() { + return (EAttribute)paResPassStepEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getPaLogicalResource() { + return paLogicalResourceEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getPaLogicalResource_Utilization() { + return (EAttribute)paLogicalResourceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getPaLogicalResource_Throughput() { + return (EAttribute)paLogicalResourceEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getPaLogicalResource_PoolSize() { + return (EAttribute)paLogicalResourceEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getPaRunTInstance() { + return paRunTInstanceEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getPaRunTInstance_PoolSize() { + return (EAttribute)paRunTInstanceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getPaRunTInstance_UnbddPool() { + return (EAttribute)paRunTInstanceEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getPaRunTInstance_Instance() { + return (EReference)paRunTInstanceEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getPaRunTInstance_Host() { + return (EReference)paRunTInstanceEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getPaRunTInstance_Utilization() { + return (EAttribute)paRunTInstanceEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getPaRunTInstance_Throughput() { + return (EAttribute)paRunTInstanceEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EReference getPaRunTInstance_Base_NamedElement() { + return (EReference)paRunTInstanceEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public PAMFactory getPAMFactory() { + return (PAMFactory)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 + paStepEClass = createEClass(PA_STEP); + createEAttribute(paStepEClass, PA_STEP__NO_SYNC); + createEAttribute(paStepEClass, PA_STEP__EXT_OP_DEMAND); + createEAttribute(paStepEClass, PA_STEP__EXT_OP_COUNT); + createEReference(paStepEClass, PA_STEP__BEHAV_DEMAND); + createEAttribute(paStepEClass, PA_STEP__BEHAV_COUNT); + + paRequestedStepEClass = createEClass(PA_REQUESTED_STEP); + + paCommStepEClass = createEClass(PA_COMM_STEP); + + paResPassStepEClass = createEClass(PA_RES_PASS_STEP); + createEReference(paResPassStepEClass, PA_RES_PASS_STEP__RESOURCE); + createEAttribute(paResPassStepEClass, PA_RES_PASS_STEP__RES_UNITS); + + paLogicalResourceEClass = createEClass(PA_LOGICAL_RESOURCE); + createEAttribute(paLogicalResourceEClass, PA_LOGICAL_RESOURCE__UTILIZATION); + createEAttribute(paLogicalResourceEClass, PA_LOGICAL_RESOURCE__THROUGHPUT); + createEAttribute(paLogicalResourceEClass, PA_LOGICAL_RESOURCE__POOL_SIZE); + + paRunTInstanceEClass = createEClass(PA_RUN_TINSTANCE); + createEAttribute(paRunTInstanceEClass, PA_RUN_TINSTANCE__POOL_SIZE); + createEAttribute(paRunTInstanceEClass, PA_RUN_TINSTANCE__UNBDD_POOL); + createEReference(paRunTInstanceEClass, PA_RUN_TINSTANCE__INSTANCE); + createEReference(paRunTInstanceEClass, PA_RUN_TINSTANCE__HOST); + createEAttribute(paRunTInstanceEClass, PA_RUN_TINSTANCE__UTILIZATION); + createEAttribute(paRunTInstanceEClass, PA_RUN_TINSTANCE__THROUGHPUT); + createEReference(paRunTInstanceEClass, PA_RUN_TINSTANCE__BASE_NAMED_ELEMENT); + } + + /** + * + * + * @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 + GQAMPackage theGQAMPackage = (GQAMPackage)EPackage.Registry.INSTANCE.getEPackage(GQAMPackage.eNS_URI); + BasicNFP_TypesPackage theBasicNFP_TypesPackage = (BasicNFP_TypesPackage)EPackage.Registry.INSTANCE.getEPackage(BasicNFP_TypesPackage.eNS_URI); + MARTE_PrimitivesTypesPackage theMARTE_PrimitivesTypesPackage = (MARTE_PrimitivesTypesPackage)EPackage.Registry.INSTANCE.getEPackage(MARTE_PrimitivesTypesPackage.eNS_URI); + GRMPackage theGRMPackage = (GRMPackage)EPackage.Registry.INSTANCE.getEPackage(GRMPackage.eNS_URI); + UMLPackage theUMLPackage = (UMLPackage)EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + paStepEClass.getESuperTypes().add(theGQAMPackage.getGaStep()); + paRequestedStepEClass.getESuperTypes().add(this.getPaStep()); + paRequestedStepEClass.getESuperTypes().add(theGQAMPackage.getGaRequestedService()); + paCommStepEClass.getESuperTypes().add(this.getPaStep()); + paCommStepEClass.getESuperTypes().add(theGQAMPackage.getGaCommStep()); + paResPassStepEClass.getESuperTypes().add(theGQAMPackage.getGaStep()); + paLogicalResourceEClass.getESuperTypes().add(theGRMPackage.getResource()); + + // Initialize classes and features; add operations and parameters + initEClass(paStepEClass, PaStep.class, "PaStep", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getPaStep_NoSync(), theBasicNFP_TypesPackage.getNFP_Boolean(), "noSync", "false", 0, 1, PaStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getPaStep_ExtOpDemand(), theMARTE_PrimitivesTypesPackage.getString(), "extOpDemand", null, 0, -1, PaStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getPaStep_ExtOpCount(), theBasicNFP_TypesPackage.getNFP_Real(), "extOpCount", "1", 0, -1, PaStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getPaStep_BehavDemand(), theGQAMPackage.getGaScenario(), null, "behavDemand", null, 0, -1, PaStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getPaStep_BehavCount(), theBasicNFP_TypesPackage.getNFP_Real(), "behavCount", null, 0, -1, PaStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(paRequestedStepEClass, PaRequestedStep.class, "PaRequestedStep", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(paCommStepEClass, PaCommStep.class, "PaCommStep", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(paResPassStepEClass, PaResPassStep.class, "PaResPassStep", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getPaResPassStep_Resource(), theGRMPackage.getResource(), null, "resource", null, 0, 1, PaResPassStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getPaResPassStep_ResUnits(), theBasicNFP_TypesPackage.getNFP_Integer(), "resUnits", "1", 0, 1, PaResPassStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(paLogicalResourceEClass, PaLogicalResource.class, "PaLogicalResource", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getPaLogicalResource_Utilization(), theBasicNFP_TypesPackage.getNFP_Real(), "utilization", null, 0, 1, PaLogicalResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getPaLogicalResource_Throughput(), theBasicNFP_TypesPackage.getNFP_Frequency(), "throughput", null, 0, 1, PaLogicalResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getPaLogicalResource_PoolSize(), theBasicNFP_TypesPackage.getNFP_Integer(), "poolSize", null, 1, 1, PaLogicalResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(paRunTInstanceEClass, PaRunTInstance.class, "PaRunTInstance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getPaRunTInstance_PoolSize(), theBasicNFP_TypesPackage.getNFP_Integer(), "poolSize", null, 0, 1, PaRunTInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getPaRunTInstance_UnbddPool(), theMARTE_PrimitivesTypesPackage.getBoolean(), "unbddPool", "false", 0, 1, PaRunTInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getPaRunTInstance_Instance(), theGRMPackage.getSchedulableResource(), null, "instance", null, 0, 1, PaRunTInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getPaRunTInstance_Host(), theGQAMPackage.getGaExecHost(), null, "host", null, 0, 1, PaRunTInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getPaRunTInstance_Utilization(), theBasicNFP_TypesPackage.getNFP_Real(), "utilization", null, 0, 1, PaRunTInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getPaRunTInstance_Throughput(), theBasicNFP_TypesPackage.getNFP_Frequency(), "throughput", null, 0, 1, PaRunTInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getPaRunTInstance_Base_NamedElement(), theUMLPackage.getNamedElement(), null, "base_NamedElement", null, 1, 1, PaRunTInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + } + +} //PAMPackageImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/impl/PaCommStepImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/impl/PaCommStepImpl.java new file mode 100644 index 00000000000..3de4220d801 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/impl/PaCommStepImpl.java @@ -0,0 +1,50 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.PAM.impl; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PAMPackage; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaCommStep; + +/** + * + * An implementation of the model object 'Pa Comm Step'. + * + *

+ *

+ * + * @generated + */ +public class PaCommStepImpl extends PaStepImpl implements PaCommStep { + /** + * + * + * @generated + */ + protected PaCommStepImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return PAMPackage.Literals.PA_COMM_STEP; + } + +} //PaCommStepImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/impl/PaLogicalResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/impl/PaLogicalResourceImpl.java new file mode 100644 index 00000000000..e040940cf61 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/impl/PaLogicalResourceImpl.java @@ -0,0 +1,283 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.PAM.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PAMPackage; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaLogicalResource; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ResourceImpl; + +/** + * + * An implementation of the model object 'Pa Logical Resource'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PaLogicalResourceImpl#getUtilization Utilization}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PaLogicalResourceImpl#getThroughput Throughput}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PaLogicalResourceImpl#getPoolSize Pool Size}
  • + *
+ *

+ * + * @generated + */ +public class PaLogicalResourceImpl extends ResourceImpl implements PaLogicalResource { + /** + * The default value of the '{@link #getUtilization() Utilization}' attribute. + * + * + * @see #getUtilization() + * @generated + * @ordered + */ + protected static final String UTILIZATION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getUtilization() Utilization}' attribute. + * + * + * @see #getUtilization() + * @generated + * @ordered + */ + protected String utilization = UTILIZATION_EDEFAULT; + + /** + * The default value of the '{@link #getThroughput() Throughput}' attribute. + * + * + * @see #getThroughput() + * @generated + * @ordered + */ + protected static final String THROUGHPUT_EDEFAULT = null; + + /** + * The cached value of the '{@link #getThroughput() Throughput}' attribute. + * + * + * @see #getThroughput() + * @generated + * @ordered + */ + protected String throughput = THROUGHPUT_EDEFAULT; + + /** + * The default value of the '{@link #getPoolSize() Pool Size}' attribute. + * + * + * @see #getPoolSize() + * @generated + * @ordered + */ + protected static final String POOL_SIZE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPoolSize() Pool Size}' attribute. + * + * + * @see #getPoolSize() + * @generated + * @ordered + */ + protected String poolSize = POOL_SIZE_EDEFAULT; + + /** + * + * + * @generated + */ + protected PaLogicalResourceImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return PAMPackage.Literals.PA_LOGICAL_RESOURCE; + } + + /** + * + * + * @generated + */ + public String getUtilization() { + return utilization; + } + + /** + * + * + * @generated + */ + public void setUtilization(String newUtilization) { + String oldUtilization = utilization; + utilization = newUtilization; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, PAMPackage.PA_LOGICAL_RESOURCE__UTILIZATION, oldUtilization, utilization)); + } + + /** + * + * + * @generated + */ + public String getThroughput() { + return throughput; + } + + /** + * + * + * @generated + */ + public void setThroughput(String newThroughput) { + String oldThroughput = throughput; + throughput = newThroughput; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, PAMPackage.PA_LOGICAL_RESOURCE__THROUGHPUT, oldThroughput, throughput)); + } + + /** + * + * + * @generated + */ + public String getPoolSize() { + return poolSize; + } + + /** + * + * + * @generated + */ + public void setPoolSize(String newPoolSize) { + String oldPoolSize = poolSize; + poolSize = newPoolSize; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, PAMPackage.PA_LOGICAL_RESOURCE__POOL_SIZE, oldPoolSize, poolSize)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case PAMPackage.PA_LOGICAL_RESOURCE__UTILIZATION: + return getUtilization(); + case PAMPackage.PA_LOGICAL_RESOURCE__THROUGHPUT: + return getThroughput(); + case PAMPackage.PA_LOGICAL_RESOURCE__POOL_SIZE: + return getPoolSize(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case PAMPackage.PA_LOGICAL_RESOURCE__UTILIZATION: + setUtilization((String)newValue); + return; + case PAMPackage.PA_LOGICAL_RESOURCE__THROUGHPUT: + setThroughput((String)newValue); + return; + case PAMPackage.PA_LOGICAL_RESOURCE__POOL_SIZE: + setPoolSize((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case PAMPackage.PA_LOGICAL_RESOURCE__UTILIZATION: + setUtilization(UTILIZATION_EDEFAULT); + return; + case PAMPackage.PA_LOGICAL_RESOURCE__THROUGHPUT: + setThroughput(THROUGHPUT_EDEFAULT); + return; + case PAMPackage.PA_LOGICAL_RESOURCE__POOL_SIZE: + setPoolSize(POOL_SIZE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case PAMPackage.PA_LOGICAL_RESOURCE__UTILIZATION: + return UTILIZATION_EDEFAULT == null ? utilization != null : !UTILIZATION_EDEFAULT.equals(utilization); + case PAMPackage.PA_LOGICAL_RESOURCE__THROUGHPUT: + return THROUGHPUT_EDEFAULT == null ? throughput != null : !THROUGHPUT_EDEFAULT.equals(throughput); + case PAMPackage.PA_LOGICAL_RESOURCE__POOL_SIZE: + return POOL_SIZE_EDEFAULT == null ? poolSize != null : !POOL_SIZE_EDEFAULT.equals(poolSize); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (utilization: "); + result.append(utilization); + result.append(", throughput: "); + result.append(throughput); + result.append(", poolSize: "); + result.append(poolSize); + result.append(')'); + return result.toString(); + } + +} //PaLogicalResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/impl/PaRequestedStepImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/impl/PaRequestedStepImpl.java new file mode 100644 index 00000000000..efc71ab5419 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/impl/PaRequestedStepImpl.java @@ -0,0 +1,203 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.PAM.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaRequestedService; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PAMPackage; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaRequestedStep; + +import org.eclipse.uml2.uml.Operation; + +/** + * + * An implementation of the model object 'Pa Requested Step'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PaRequestedStepImpl#getBase_Operation Base Operation}
  • + *
+ *

+ * + * @generated + */ +public class PaRequestedStepImpl extends PaStepImpl implements PaRequestedStep { + /** + * The cached value of the '{@link #getBase_Operation() Base Operation}' reference. + * + * + * @see #getBase_Operation() + * @generated + * @ordered + */ + protected Operation base_Operation; + + /** + * + * + * @generated + */ + protected PaRequestedStepImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return PAMPackage.Literals.PA_REQUESTED_STEP; + } + + /** + * + * + * @generated + */ + public Operation getBase_Operation() { + if (base_Operation != null && base_Operation.eIsProxy()) { + InternalEObject oldBase_Operation = (InternalEObject)base_Operation; + base_Operation = (Operation)eResolveProxy(oldBase_Operation); + if (base_Operation != oldBase_Operation) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, PAMPackage.PA_REQUESTED_STEP__BASE_OPERATION, oldBase_Operation, base_Operation)); + } + } + return base_Operation; + } + + /** + * + * + * @generated + */ + public Operation basicGetBase_Operation() { + return base_Operation; + } + + /** + * + * + * @generated + */ + public void setBase_Operation(Operation newBase_Operation) { + Operation oldBase_Operation = base_Operation; + base_Operation = newBase_Operation; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, PAMPackage.PA_REQUESTED_STEP__BASE_OPERATION, oldBase_Operation, base_Operation)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case PAMPackage.PA_REQUESTED_STEP__BASE_OPERATION: + if (resolve) return getBase_Operation(); + return basicGetBase_Operation(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case PAMPackage.PA_REQUESTED_STEP__BASE_OPERATION: + setBase_Operation((Operation)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case PAMPackage.PA_REQUESTED_STEP__BASE_OPERATION: + setBase_Operation((Operation)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case PAMPackage.PA_REQUESTED_STEP__BASE_OPERATION: + return base_Operation != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) { + if (baseClass == GaRequestedService.class) { + switch (derivedFeatureID) { + case PAMPackage.PA_REQUESTED_STEP__BASE_OPERATION: return GQAMPackage.GA_REQUESTED_SERVICE__BASE_OPERATION; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) { + if (baseClass == GaRequestedService.class) { + switch (baseFeatureID) { + case GQAMPackage.GA_REQUESTED_SERVICE__BASE_OPERATION: return PAMPackage.PA_REQUESTED_STEP__BASE_OPERATION; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + +} //PaRequestedStepImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/impl/PaResPassStepImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/impl/PaResPassStepImpl.java new file mode 100644 index 00000000000..1f1ba0453ff --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/impl/PaResPassStepImpl.java @@ -0,0 +1,238 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.PAM.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaStepImpl; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PAMPackage; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaResPassStep; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource; + +/** + * + * An implementation of the model object 'Pa Res Pass Step'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PaResPassStepImpl#getResource Resource}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PaResPassStepImpl#getResUnits Res Units}
  • + *
+ *

+ * + * @generated + */ +public class PaResPassStepImpl extends GaStepImpl implements PaResPassStep { + /** + * The cached value of the '{@link #getResource() Resource}' reference. + * + * + * @see #getResource() + * @generated + * @ordered + */ + protected Resource resource; + + /** + * The default value of the '{@link #getResUnits() Res Units}' attribute. + * + * + * @see #getResUnits() + * @generated + * @ordered + */ + protected static final String RES_UNITS_EDEFAULT = "1"; + + /** + * The cached value of the '{@link #getResUnits() Res Units}' attribute. + * + * + * @see #getResUnits() + * @generated + * @ordered + */ + protected String resUnits = RES_UNITS_EDEFAULT; + + /** + * + * + * @generated + */ + protected PaResPassStepImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return PAMPackage.Literals.PA_RES_PASS_STEP; + } + + /** + * + * + * @generated + */ + public Resource getResource() { + if (resource != null && resource.eIsProxy()) { + InternalEObject oldResource = (InternalEObject)resource; + resource = (Resource)eResolveProxy(oldResource); + if (resource != oldResource) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, PAMPackage.PA_RES_PASS_STEP__RESOURCE, oldResource, resource)); + } + } + return resource; + } + + /** + * + * + * @generated + */ + public Resource basicGetResource() { + return resource; + } + + /** + * + * + * @generated + */ + public void setResource(Resource newResource) { + Resource oldResource = resource; + resource = newResource; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, PAMPackage.PA_RES_PASS_STEP__RESOURCE, oldResource, resource)); + } + + /** + * + * + * @generated + */ + public String getResUnits() { + return resUnits; + } + + /** + * + * + * @generated + */ + public void setResUnits(String newResUnits) { + String oldResUnits = resUnits; + resUnits = newResUnits; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, PAMPackage.PA_RES_PASS_STEP__RES_UNITS, oldResUnits, resUnits)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case PAMPackage.PA_RES_PASS_STEP__RESOURCE: + if (resolve) return getResource(); + return basicGetResource(); + case PAMPackage.PA_RES_PASS_STEP__RES_UNITS: + return getResUnits(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case PAMPackage.PA_RES_PASS_STEP__RESOURCE: + setResource((Resource)newValue); + return; + case PAMPackage.PA_RES_PASS_STEP__RES_UNITS: + setResUnits((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case PAMPackage.PA_RES_PASS_STEP__RESOURCE: + setResource((Resource)null); + return; + case PAMPackage.PA_RES_PASS_STEP__RES_UNITS: + setResUnits(RES_UNITS_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case PAMPackage.PA_RES_PASS_STEP__RESOURCE: + return resource != null; + case PAMPackage.PA_RES_PASS_STEP__RES_UNITS: + return RES_UNITS_EDEFAULT == null ? resUnits != null : !RES_UNITS_EDEFAULT.equals(resUnits); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (resUnits: "); + result.append(resUnits); + result.append(')'); + return result.toString(); + } + +} //PaResPassStepImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/impl/PaRunTInstanceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/impl/PaRunTInstanceImpl.java new file mode 100644 index 00000000000..fd67191dcfc --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/impl/PaRunTInstanceImpl.java @@ -0,0 +1,523 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.PAM.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaExecHost; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PAMPackage; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaRunTInstance; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SchedulableResource; + +import org.eclipse.uml2.uml.NamedElement; + +/** + * + * An implementation of the model object 'Pa Run TInstance'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PaRunTInstanceImpl#getPoolSize Pool Size}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PaRunTInstanceImpl#isUnbddPool Unbdd Pool}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PaRunTInstanceImpl#getInstance Instance}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PaRunTInstanceImpl#getHost Host}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PaRunTInstanceImpl#getUtilization Utilization}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PaRunTInstanceImpl#getThroughput Throughput}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PaRunTInstanceImpl#getBase_NamedElement Base Named Element}
  • + *
+ *

+ * + * @generated + */ +public class PaRunTInstanceImpl extends EObjectImpl implements PaRunTInstance { + /** + * The default value of the '{@link #getPoolSize() Pool Size}' attribute. + * + * + * @see #getPoolSize() + * @generated + * @ordered + */ + protected static final String POOL_SIZE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPoolSize() Pool Size}' attribute. + * + * + * @see #getPoolSize() + * @generated + * @ordered + */ + protected String poolSize = POOL_SIZE_EDEFAULT; + + /** + * The default value of the '{@link #isUnbddPool() Unbdd Pool}' attribute. + * + * + * @see #isUnbddPool() + * @generated + * @ordered + */ + protected static final boolean UNBDD_POOL_EDEFAULT = false; + + /** + * The cached value of the '{@link #isUnbddPool() Unbdd Pool}' attribute. + * + * + * @see #isUnbddPool() + * @generated + * @ordered + */ + protected boolean unbddPool = UNBDD_POOL_EDEFAULT; + + /** + * The cached value of the '{@link #getInstance() Instance}' reference. + * + * + * @see #getInstance() + * @generated + * @ordered + */ + protected SchedulableResource instance; + + /** + * The cached value of the '{@link #getHost() Host}' reference. + * + * + * @see #getHost() + * @generated + * @ordered + */ + protected GaExecHost host; + + /** + * The default value of the '{@link #getUtilization() Utilization}' attribute. + * + * + * @see #getUtilization() + * @generated + * @ordered + */ + protected static final String UTILIZATION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getUtilization() Utilization}' attribute. + * + * + * @see #getUtilization() + * @generated + * @ordered + */ + protected String utilization = UTILIZATION_EDEFAULT; + + /** + * The default value of the '{@link #getThroughput() Throughput}' attribute. + * + * + * @see #getThroughput() + * @generated + * @ordered + */ + protected static final String THROUGHPUT_EDEFAULT = null; + + /** + * The cached value of the '{@link #getThroughput() Throughput}' attribute. + * + * + * @see #getThroughput() + * @generated + * @ordered + */ + protected String throughput = THROUGHPUT_EDEFAULT; + + /** + * The cached value of the '{@link #getBase_NamedElement() Base Named Element}' reference. + * + * + * @see #getBase_NamedElement() + * @generated + * @ordered + */ + protected NamedElement base_NamedElement; + + /** + * + * + * @generated + */ + protected PaRunTInstanceImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return PAMPackage.Literals.PA_RUN_TINSTANCE; + } + + /** + * + * + * @generated + */ + public String getPoolSize() { + return poolSize; + } + + /** + * + * + * @generated + */ + public void setPoolSize(String newPoolSize) { + String oldPoolSize = poolSize; + poolSize = newPoolSize; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, PAMPackage.PA_RUN_TINSTANCE__POOL_SIZE, oldPoolSize, poolSize)); + } + + /** + * + * + * @generated + */ + public boolean isUnbddPool() { + return unbddPool; + } + + /** + * + * + * @generated + */ + public void setUnbddPool(boolean newUnbddPool) { + boolean oldUnbddPool = unbddPool; + unbddPool = newUnbddPool; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, PAMPackage.PA_RUN_TINSTANCE__UNBDD_POOL, oldUnbddPool, unbddPool)); + } + + /** + * + * + * @generated + */ + public SchedulableResource getInstance() { + if (instance != null && instance.eIsProxy()) { + InternalEObject oldInstance = (InternalEObject)instance; + instance = (SchedulableResource)eResolveProxy(oldInstance); + if (instance != oldInstance) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, PAMPackage.PA_RUN_TINSTANCE__INSTANCE, oldInstance, instance)); + } + } + return instance; + } + + /** + * + * + * @generated + */ + public SchedulableResource basicGetInstance() { + return instance; + } + + /** + * + * + * @generated + */ + public void setInstance(SchedulableResource newInstance) { + SchedulableResource oldInstance = instance; + instance = newInstance; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, PAMPackage.PA_RUN_TINSTANCE__INSTANCE, oldInstance, instance)); + } + + /** + * + * + * @generated + */ + public GaExecHost getHost() { + if (host != null && host.eIsProxy()) { + InternalEObject oldHost = (InternalEObject)host; + host = (GaExecHost)eResolveProxy(oldHost); + if (host != oldHost) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, PAMPackage.PA_RUN_TINSTANCE__HOST, oldHost, host)); + } + } + return host; + } + + /** + * + * + * @generated + */ + public GaExecHost basicGetHost() { + return host; + } + + /** + * + * + * @generated + */ + public void setHost(GaExecHost newHost) { + GaExecHost oldHost = host; + host = newHost; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, PAMPackage.PA_RUN_TINSTANCE__HOST, oldHost, host)); + } + + /** + * + * + * @generated + */ + public String getUtilization() { + return utilization; + } + + /** + * + * + * @generated + */ + public void setUtilization(String newUtilization) { + String oldUtilization = utilization; + utilization = newUtilization; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, PAMPackage.PA_RUN_TINSTANCE__UTILIZATION, oldUtilization, utilization)); + } + + /** + * + * + * @generated + */ + public String getThroughput() { + return throughput; + } + + /** + * + * + * @generated + */ + public void setThroughput(String newThroughput) { + String oldThroughput = throughput; + throughput = newThroughput; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, PAMPackage.PA_RUN_TINSTANCE__THROUGHPUT, oldThroughput, throughput)); + } + + /** + * + * + * @generated + */ + public NamedElement getBase_NamedElement() { + if (base_NamedElement != null && base_NamedElement.eIsProxy()) { + InternalEObject oldBase_NamedElement = (InternalEObject)base_NamedElement; + base_NamedElement = (NamedElement)eResolveProxy(oldBase_NamedElement); + if (base_NamedElement != oldBase_NamedElement) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, PAMPackage.PA_RUN_TINSTANCE__BASE_NAMED_ELEMENT, oldBase_NamedElement, base_NamedElement)); + } + } + return base_NamedElement; + } + + /** + * + * + * @generated + */ + public NamedElement basicGetBase_NamedElement() { + return base_NamedElement; + } + + /** + * + * + * @generated + */ + public void setBase_NamedElement(NamedElement newBase_NamedElement) { + NamedElement oldBase_NamedElement = base_NamedElement; + base_NamedElement = newBase_NamedElement; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, PAMPackage.PA_RUN_TINSTANCE__BASE_NAMED_ELEMENT, oldBase_NamedElement, base_NamedElement)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case PAMPackage.PA_RUN_TINSTANCE__POOL_SIZE: + return getPoolSize(); + case PAMPackage.PA_RUN_TINSTANCE__UNBDD_POOL: + return isUnbddPool(); + case PAMPackage.PA_RUN_TINSTANCE__INSTANCE: + if (resolve) return getInstance(); + return basicGetInstance(); + case PAMPackage.PA_RUN_TINSTANCE__HOST: + if (resolve) return getHost(); + return basicGetHost(); + case PAMPackage.PA_RUN_TINSTANCE__UTILIZATION: + return getUtilization(); + case PAMPackage.PA_RUN_TINSTANCE__THROUGHPUT: + return getThroughput(); + case PAMPackage.PA_RUN_TINSTANCE__BASE_NAMED_ELEMENT: + if (resolve) return getBase_NamedElement(); + return basicGetBase_NamedElement(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case PAMPackage.PA_RUN_TINSTANCE__POOL_SIZE: + setPoolSize((String)newValue); + return; + case PAMPackage.PA_RUN_TINSTANCE__UNBDD_POOL: + setUnbddPool((Boolean)newValue); + return; + case PAMPackage.PA_RUN_TINSTANCE__INSTANCE: + setInstance((SchedulableResource)newValue); + return; + case PAMPackage.PA_RUN_TINSTANCE__HOST: + setHost((GaExecHost)newValue); + return; + case PAMPackage.PA_RUN_TINSTANCE__UTILIZATION: + setUtilization((String)newValue); + return; + case PAMPackage.PA_RUN_TINSTANCE__THROUGHPUT: + setThroughput((String)newValue); + return; + case PAMPackage.PA_RUN_TINSTANCE__BASE_NAMED_ELEMENT: + setBase_NamedElement((NamedElement)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case PAMPackage.PA_RUN_TINSTANCE__POOL_SIZE: + setPoolSize(POOL_SIZE_EDEFAULT); + return; + case PAMPackage.PA_RUN_TINSTANCE__UNBDD_POOL: + setUnbddPool(UNBDD_POOL_EDEFAULT); + return; + case PAMPackage.PA_RUN_TINSTANCE__INSTANCE: + setInstance((SchedulableResource)null); + return; + case PAMPackage.PA_RUN_TINSTANCE__HOST: + setHost((GaExecHost)null); + return; + case PAMPackage.PA_RUN_TINSTANCE__UTILIZATION: + setUtilization(UTILIZATION_EDEFAULT); + return; + case PAMPackage.PA_RUN_TINSTANCE__THROUGHPUT: + setThroughput(THROUGHPUT_EDEFAULT); + return; + case PAMPackage.PA_RUN_TINSTANCE__BASE_NAMED_ELEMENT: + setBase_NamedElement((NamedElement)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case PAMPackage.PA_RUN_TINSTANCE__POOL_SIZE: + return POOL_SIZE_EDEFAULT == null ? poolSize != null : !POOL_SIZE_EDEFAULT.equals(poolSize); + case PAMPackage.PA_RUN_TINSTANCE__UNBDD_POOL: + return unbddPool != UNBDD_POOL_EDEFAULT; + case PAMPackage.PA_RUN_TINSTANCE__INSTANCE: + return instance != null; + case PAMPackage.PA_RUN_TINSTANCE__HOST: + return host != null; + case PAMPackage.PA_RUN_TINSTANCE__UTILIZATION: + return UTILIZATION_EDEFAULT == null ? utilization != null : !UTILIZATION_EDEFAULT.equals(utilization); + case PAMPackage.PA_RUN_TINSTANCE__THROUGHPUT: + return THROUGHPUT_EDEFAULT == null ? throughput != null : !THROUGHPUT_EDEFAULT.equals(throughput); + case PAMPackage.PA_RUN_TINSTANCE__BASE_NAMED_ELEMENT: + return base_NamedElement != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (poolSize: "); + result.append(poolSize); + result.append(", unbddPool: "); + result.append(unbddPool); + result.append(", utilization: "); + result.append(utilization); + result.append(", throughput: "); + result.append(throughput); + result.append(')'); + return result.toString(); + } + +} //PaRunTInstanceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/impl/PaStepImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/impl/PaStepImpl.java new file mode 100644 index 00000000000..f6ca6c9d68d --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/impl/PaStepImpl.java @@ -0,0 +1,327 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.PAM.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EDataTypeUniqueEList; +import org.eclipse.emf.ecore.util.EObjectResolvingEList; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaStepImpl; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PAMPackage; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaStep; + +/** + * + * An implementation of the model object 'Pa Step'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PaStepImpl#getNoSync No Sync}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PaStepImpl#getExtOpDemand Ext Op Demand}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PaStepImpl#getExtOpCount Ext Op Count}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PaStepImpl#getBehavDemand Behav Demand}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PaStepImpl#getBehavCount Behav Count}
  • + *
+ *

+ * + * @generated + */ +public class PaStepImpl extends GaStepImpl implements PaStep { + /** + * The default value of the '{@link #getNoSync() No Sync}' attribute. + * + * + * @see #getNoSync() + * @generated + * @ordered + */ + protected static final String NO_SYNC_EDEFAULT = "false"; + + /** + * The cached value of the '{@link #getNoSync() No Sync}' attribute. + * + * + * @see #getNoSync() + * @generated + * @ordered + */ + protected String noSync = NO_SYNC_EDEFAULT; + + /** + * The cached value of the '{@link #getExtOpDemand() Ext Op Demand}' attribute list. + * + * + * @see #getExtOpDemand() + * @generated + * @ordered + */ + protected EList extOpDemand; + + /** + * The cached value of the '{@link #getExtOpCount() Ext Op Count}' attribute list. + * + * + * @see #getExtOpCount() + * @generated + * @ordered + */ + protected EList extOpCount; + + /** + * The cached value of the '{@link #getBehavDemand() Behav Demand}' reference list. + * + * + * @see #getBehavDemand() + * @generated + * @ordered + */ + protected EList behavDemand; + + /** + * The cached value of the '{@link #getBehavCount() Behav Count}' attribute list. + * + * + * @see #getBehavCount() + * @generated + * @ordered + */ + protected EList behavCount; + + /** + * + * + * @generated + */ + protected PaStepImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return PAMPackage.Literals.PA_STEP; + } + + /** + * + * + * @generated + */ + public String getNoSync() { + return noSync; + } + + /** + * + * + * @generated + */ + public void setNoSync(String newNoSync) { + String oldNoSync = noSync; + noSync = newNoSync; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, PAMPackage.PA_STEP__NO_SYNC, oldNoSync, noSync)); + } + + /** + * + * + * @generated + */ + public EList getExtOpDemand() { + if (extOpDemand == null) { + extOpDemand = new EDataTypeUniqueEList(String.class, this, PAMPackage.PA_STEP__EXT_OP_DEMAND); + } + return extOpDemand; + } + + /** + * + * + * @generated + */ + public EList getExtOpCount() { + if (extOpCount == null) { + extOpCount = new EDataTypeUniqueEList(String.class, this, PAMPackage.PA_STEP__EXT_OP_COUNT); + } + return extOpCount; + } + + /** + * + * + * @generated + */ + public EList getBehavDemand() { + if (behavDemand == null) { + behavDemand = new EObjectResolvingEList(GaScenario.class, this, PAMPackage.PA_STEP__BEHAV_DEMAND); + } + return behavDemand; + } + + /** + * + * + * @generated + */ + public EList getBehavCount() { + if (behavCount == null) { + behavCount = new EDataTypeUniqueEList(String.class, this, PAMPackage.PA_STEP__BEHAV_COUNT); + } + return behavCount; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case PAMPackage.PA_STEP__NO_SYNC: + return getNoSync(); + case PAMPackage.PA_STEP__EXT_OP_DEMAND: + return getExtOpDemand(); + case PAMPackage.PA_STEP__EXT_OP_COUNT: + return getExtOpCount(); + case PAMPackage.PA_STEP__BEHAV_DEMAND: + return getBehavDemand(); + case PAMPackage.PA_STEP__BEHAV_COUNT: + return getBehavCount(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case PAMPackage.PA_STEP__NO_SYNC: + setNoSync((String)newValue); + return; + case PAMPackage.PA_STEP__EXT_OP_DEMAND: + getExtOpDemand().clear(); + getExtOpDemand().addAll((Collection)newValue); + return; + case PAMPackage.PA_STEP__EXT_OP_COUNT: + getExtOpCount().clear(); + getExtOpCount().addAll((Collection)newValue); + return; + case PAMPackage.PA_STEP__BEHAV_DEMAND: + getBehavDemand().clear(); + getBehavDemand().addAll((Collection)newValue); + return; + case PAMPackage.PA_STEP__BEHAV_COUNT: + getBehavCount().clear(); + getBehavCount().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case PAMPackage.PA_STEP__NO_SYNC: + setNoSync(NO_SYNC_EDEFAULT); + return; + case PAMPackage.PA_STEP__EXT_OP_DEMAND: + getExtOpDemand().clear(); + return; + case PAMPackage.PA_STEP__EXT_OP_COUNT: + getExtOpCount().clear(); + return; + case PAMPackage.PA_STEP__BEHAV_DEMAND: + getBehavDemand().clear(); + return; + case PAMPackage.PA_STEP__BEHAV_COUNT: + getBehavCount().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case PAMPackage.PA_STEP__NO_SYNC: + return NO_SYNC_EDEFAULT == null ? noSync != null : !NO_SYNC_EDEFAULT.equals(noSync); + case PAMPackage.PA_STEP__EXT_OP_DEMAND: + return extOpDemand != null && !extOpDemand.isEmpty(); + case PAMPackage.PA_STEP__EXT_OP_COUNT: + return extOpCount != null && !extOpCount.isEmpty(); + case PAMPackage.PA_STEP__BEHAV_DEMAND: + return behavDemand != null && !behavDemand.isEmpty(); + case PAMPackage.PA_STEP__BEHAV_COUNT: + return behavCount != null && !behavCount.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (noSync: "); + result.append(noSync); + result.append(", extOpDemand: "); + result.append(extOpDemand); + result.append(", extOpCount: "); + result.append(extOpCount); + result.append(", behavCount: "); + result.append(behavCount); + result.append(')'); + return result.toString(); + } + +} //PaStepImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/util/PAMAdapterFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/util/PAMAdapterFactory.java new file mode 100644 index 00000000000..6799526a946 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/util/PAMAdapterFactory.java @@ -0,0 +1,376 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.PAM.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.MARTE_AnalysisModel.GQAM.GaCommStep; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaRequestedService; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.*; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ResourceUsage; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedElement; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedProcessing; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PAMPackage + * @generated + */ +public class PAMAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * @generated + */ + protected static PAMPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public PAMAdapterFactory() { + if (modelPackage == null) { + modelPackage = PAMPackage.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 PAMSwitch modelSwitch = + new PAMSwitch() { + @Override + public Adapter casePaStep(PaStep object) { + return createPaStepAdapter(); + } + @Override + public Adapter casePaRequestedStep(PaRequestedStep object) { + return createPaRequestedStepAdapter(); + } + @Override + public Adapter casePaCommStep(PaCommStep object) { + return createPaCommStepAdapter(); + } + @Override + public Adapter casePaResPassStep(PaResPassStep object) { + return createPaResPassStepAdapter(); + } + @Override + public Adapter casePaLogicalResource(PaLogicalResource object) { + return createPaLogicalResourceAdapter(); + } + @Override + public Adapter casePaRunTInstance(PaRunTInstance object) { + return createPaRunTInstanceAdapter(); + } + @Override + public Adapter caseResourceUsage(ResourceUsage object) { + return createResourceUsageAdapter(); + } + @Override + public Adapter caseTimedElement(TimedElement object) { + return createTimedElementAdapter(); + } + @Override + public Adapter caseTimedProcessing(TimedProcessing object) { + return createTimedProcessingAdapter(); + } + @Override + public Adapter caseGaScenario(GaScenario object) { + return createGaScenarioAdapter(); + } + @Override + public Adapter caseGaStep(GaStep object) { + return createGaStepAdapter(); + } + @Override + public Adapter caseGaRequestedService(GaRequestedService object) { + return createGaRequestedServiceAdapter(); + } + @Override + public Adapter caseGaCommStep(GaCommStep object) { + return createGaCommStepAdapter(); + } + @Override + public Adapter caseResource(Resource object) { + return createResourceAdapter(); + } + @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.MARTE_AnalysisModel.PAM.PaStep Pa Step}'. + * + * 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.MARTE_AnalysisModel.PAM.PaStep + * @generated + */ + public Adapter createPaStepAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaRequestedStep Pa Requested Step}'. + * + * 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.MARTE_AnalysisModel.PAM.PaRequestedStep + * @generated + */ + public Adapter createPaRequestedStepAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaCommStep Pa Comm Step}'. + * + * 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.MARTE_AnalysisModel.PAM.PaCommStep + * @generated + */ + public Adapter createPaCommStepAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaResPassStep Pa Res Pass Step}'. + * + * 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.MARTE_AnalysisModel.PAM.PaResPassStep + * @generated + */ + public Adapter createPaResPassStepAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaLogicalResource Pa Logical Resource}'. + * + * 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.MARTE_AnalysisModel.PAM.PaLogicalResource + * @generated + */ + public Adapter createPaLogicalResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaRunTInstance Pa Run TInstance}'. + * + * 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.MARTE_AnalysisModel.PAM.PaRunTInstance + * @generated + */ + public Adapter createPaRunTInstanceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ResourceUsage Resource Usage}'. + * + * 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.MARTE_Foundations.GRM.ResourceUsage + * @generated + */ + public Adapter createResourceUsageAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedElement Timed Element}'. + * + * 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.MARTE_Foundations.Time.TimedElement + * @generated + */ + public Adapter createTimedElementAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedProcessing Timed Processing}'. + * + * 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.MARTE_Foundations.Time.TimedProcessing + * @generated + */ + public Adapter createTimedProcessingAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario Ga Scenario}'. + * + * 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.MARTE_AnalysisModel.GQAM.GaScenario + * @generated + */ + public Adapter createGaScenarioAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep Ga Step}'. + * + * 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.MARTE_AnalysisModel.GQAM.GaStep + * @generated + */ + public Adapter createGaStepAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaRequestedService Ga Requested Service}'. + * + * 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.MARTE_AnalysisModel.GQAM.GaRequestedService + * @generated + */ + public Adapter createGaRequestedServiceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaCommStep Ga Comm Step}'. + * + * 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.MARTE_AnalysisModel.GQAM.GaCommStep + * @generated + */ + public Adapter createGaCommStepAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource Resource}'. + * + * 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.MARTE_Foundations.GRM.Resource + * @generated + */ + public Adapter createResourceAdapter() { + 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; + } + +} //PAMAdapterFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/util/PAMResourceFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/util/PAMResourceFactoryImpl.java new file mode 100644 index 00000000000..145ccc8f44e --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/util/PAMResourceFactoryImpl.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.MARTE_AnalysisModel.PAM.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; + +import org.eclipse.emf.ecore.xmi.XMLResource; + +/** + * + * The Resource Factory associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.util.PAMResourceImpl + * @generated + */ +public class PAMResourceFactoryImpl extends ResourceFactoryImpl { + /** + * Creates an instance of the resource factory. + * + * + * @generated + */ + public PAMResourceFactoryImpl() { + super(); + } + + /** + * Creates an instance of the resource. + * + * + * @generated + */ + @Override + public Resource createResource(URI uri) { + XMLResource result = new PAMResourceImpl(uri); + result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + + result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); + return result; + } + +} //PAMResourceFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/util/PAMResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/util/PAMResourceImpl.java new file mode 100644 index 00000000000..3b3cd9574bb --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/util/PAMResourceImpl.java @@ -0,0 +1,39 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.PAM.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; + +/** + * + * The Resource associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.util.PAMResourceFactoryImpl + * @generated + */ +public class PAMResourceImpl extends XMLResourceImpl { + /** + * Creates an instance of the resource. + * + * + * @param uri the URI of the new resource. + * @generated + */ + public PAMResourceImpl(URI uri) { + super(uri); + } + +} //PAMResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/util/PAMSwitch.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/util/PAMSwitch.java new file mode 100644 index 00000000000..b5c17c1e6b8 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/util/PAMSwitch.java @@ -0,0 +1,398 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.PAM.util; + +import java.util.List; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaCommStep; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaRequestedService; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.*; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ResourceUsage; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedElement; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedProcessing; + +/** + * + * 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.MARTE_AnalysisModel.PAM.PAMPackage + * @generated + */ +public class PAMSwitch { + /** + * The cached model package + * + * + * @generated + */ + protected static PAMPackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public PAMSwitch() { + if (modelPackage == null) { + modelPackage = PAMPackage.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 PAMPackage.PA_STEP: { + PaStep paStep = (PaStep)theEObject; + T result = casePaStep(paStep); + if (result == null) result = caseGaStep(paStep); + if (result == null) result = caseGaScenario(paStep); + if (result == null) result = caseResourceUsage(paStep); + if (result == null) result = caseTimedProcessing(paStep); + if (result == null) result = caseTimedElement(paStep); + if (result == null) result = defaultCase(theEObject); + return result; + } + case PAMPackage.PA_REQUESTED_STEP: { + PaRequestedStep paRequestedStep = (PaRequestedStep)theEObject; + T result = casePaRequestedStep(paRequestedStep); + if (result == null) result = casePaStep(paRequestedStep); + if (result == null) result = caseGaRequestedService(paRequestedStep); + if (result == null) result = caseGaStep(paRequestedStep); + if (result == null) result = caseGaScenario(paRequestedStep); + if (result == null) result = caseResourceUsage(paRequestedStep); + if (result == null) result = caseTimedProcessing(paRequestedStep); + if (result == null) result = caseTimedElement(paRequestedStep); + if (result == null) result = defaultCase(theEObject); + return result; + } + case PAMPackage.PA_COMM_STEP: { + PaCommStep paCommStep = (PaCommStep)theEObject; + T result = casePaCommStep(paCommStep); + if (result == null) result = casePaStep(paCommStep); + if (result == null) result = caseGaCommStep(paCommStep); + if (result == null) result = caseGaStep(paCommStep); + if (result == null) result = caseGaScenario(paCommStep); + if (result == null) result = caseResourceUsage(paCommStep); + if (result == null) result = caseTimedProcessing(paCommStep); + if (result == null) result = caseTimedElement(paCommStep); + if (result == null) result = defaultCase(theEObject); + return result; + } + case PAMPackage.PA_RES_PASS_STEP: { + PaResPassStep paResPassStep = (PaResPassStep)theEObject; + T result = casePaResPassStep(paResPassStep); + if (result == null) result = caseGaStep(paResPassStep); + if (result == null) result = caseGaScenario(paResPassStep); + if (result == null) result = caseResourceUsage(paResPassStep); + if (result == null) result = caseTimedProcessing(paResPassStep); + if (result == null) result = caseTimedElement(paResPassStep); + if (result == null) result = defaultCase(theEObject); + return result; + } + case PAMPackage.PA_LOGICAL_RESOURCE: { + PaLogicalResource paLogicalResource = (PaLogicalResource)theEObject; + T result = casePaLogicalResource(paLogicalResource); + if (result == null) result = caseResource(paLogicalResource); + if (result == null) result = defaultCase(theEObject); + return result; + } + case PAMPackage.PA_RUN_TINSTANCE: { + PaRunTInstance paRunTInstance = (PaRunTInstance)theEObject; + T result = casePaRunTInstance(paRunTInstance); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Pa Step'. + * + * 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 'Pa Step'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T casePaStep(PaStep object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Pa Requested Step'. + * + * 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 'Pa Requested Step'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T casePaRequestedStep(PaRequestedStep object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Pa Comm Step'. + * + * 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 'Pa Comm Step'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T casePaCommStep(PaCommStep object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Pa Res Pass Step'. + * + * 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 'Pa Res Pass Step'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T casePaResPassStep(PaResPassStep object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Pa Logical Resource'. + * + * 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 'Pa Logical Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T casePaLogicalResource(PaLogicalResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Pa Run TInstance'. + * + * 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 'Pa Run TInstance'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T casePaRunTInstance(PaRunTInstance object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Resource Usage'. + * + * 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 'Resource Usage'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseResourceUsage(ResourceUsage object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Timed Element'. + * + * 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 'Timed Element'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseTimedElement(TimedElement object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Timed Processing'. + * + * 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 'Timed Processing'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseTimedProcessing(TimedProcessing object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Ga Scenario'. + * + * 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 'Ga Scenario'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseGaScenario(GaScenario object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Ga Step'. + * + * 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 'Ga Step'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseGaStep(GaStep object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Ga Requested Service'. + * + * 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 'Ga Requested Service'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseGaRequestedService(GaRequestedService object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Ga Comm Step'. + * + * 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 'Ga Comm Step'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseGaCommStep(GaCommStep object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Resource'. + * + * 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 'Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseResource(Resource 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; + } + +} //PAMSwitch diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/util/PAMXMLProcessor.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/util/PAMXMLProcessor.java new file mode 100644 index 00000000000..f907bfd2714 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/util/PAMXMLProcessor.java @@ -0,0 +1,61 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.PAM.util; + +import java.util.Map; + +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.xmi.util.XMLProcessor; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PAMPackage; + +/** + * This class contains helper methods to serialize and deserialize XML documents + * + * + * @generated + */ +public class PAMXMLProcessor extends XMLProcessor { + + /** + * Public constructor to instantiate the helper. + * + * + * @generated + */ + public PAMXMLProcessor() { + super((EPackage.Registry.INSTANCE)); + PAMPackage.eINSTANCE.eClass(); + } + + /** + * Register for "*" and "xml" file extensions the PAMResourceFactoryImpl factory. + * + * + * @generated + */ + @Override + protected Map getRegistrations() { + if (registrations == null) { + super.getRegistrations(); + registrations.put(XML_EXTENSION, new PAMResourceFactoryImpl()); + registrations.put(STAR_EXTENSION, new PAMResourceFactoryImpl()); + } + return registrations; + } + +} //PAMXMLProcessor diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/OptimallityCriterionKind.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/OptimallityCriterionKind.java new file mode 100644 index 00000000000..925147a1136 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/OptimallityCriterionKind.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.MARTE_AnalysisModel.SAM; + +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 'Optimallity Criterion Kind', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage#getOptimallityCriterionKind() + * @model + * @generated + */ +public enum OptimallityCriterionKind implements Enumerator { + /** + * The 'Meet Hard Deadlines' literal object. + * + * + * @see #MEET_HARD_DEADLINES_VALUE + * @generated + * @ordered + */ + MEET_HARD_DEADLINES(0, "meetHardDeadlines", "meetHardDeadlines"), + + /** + * The 'Minimize Missed Deadlines' literal object. + * + * + * @see #MINIMIZE_MISSED_DEADLINES_VALUE + * @generated + * @ordered + */ + MINIMIZE_MISSED_DEADLINES(1, "minimizeMissedDeadlines", "minimizeMissedDeadlines"), + + /** + * The 'Minimized Mean Tardiness' literal object. + * + * + * @see #MINIMIZED_MEAN_TARDINESS_VALUE + * @generated + * @ordered + */ + MINIMIZED_MEAN_TARDINESS(2, "minimizedMeanTardiness", "minimizedMeanTardiness"), + + /** + * The 'Undef' literal object. + * + * + * @see #UNDEF_VALUE + * @generated + * @ordered + */ + UNDEF(3, "undef", "undef"), + + /** + * The 'Other' literal object. + * + * + * @see #OTHER_VALUE + * @generated + * @ordered + */ + OTHER(4, "other", "other"); + + /** + * The 'Meet Hard Deadlines' literal value. + * + *

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

+ * + * @see #MEET_HARD_DEADLINES + * @model name="meetHardDeadlines" + * @generated + * @ordered + */ + public static final int MEET_HARD_DEADLINES_VALUE = 0; + + /** + * The 'Minimize Missed Deadlines' literal value. + * + *

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

+ * + * @see #MINIMIZE_MISSED_DEADLINES + * @model name="minimizeMissedDeadlines" + * @generated + * @ordered + */ + public static final int MINIMIZE_MISSED_DEADLINES_VALUE = 1; + + /** + * The 'Minimized Mean Tardiness' literal value. + * + *

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

+ * + * @see #MINIMIZED_MEAN_TARDINESS + * @model name="minimizedMeanTardiness" + * @generated + * @ordered + */ + public static final int MINIMIZED_MEAN_TARDINESS_VALUE = 2; + + /** + * 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 = 3; + + /** + * 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 = 4; + + /** + * An array of all the 'Optimallity Criterion Kind' enumerators. + * + * + * @generated + */ + private static final OptimallityCriterionKind[] VALUES_ARRAY = + new OptimallityCriterionKind[] { + MEET_HARD_DEADLINES, + MINIMIZE_MISSED_DEADLINES, + MINIMIZED_MEAN_TARDINESS, + UNDEF, + OTHER, + }; + + /** + * A public read-only list of all the 'Optimallity Criterion Kind' enumerators. + * + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Optimallity Criterion Kind' literal with the specified literal value. + * + * + * @generated + */ + public static OptimallityCriterionKind get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + OptimallityCriterionKind result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Optimallity Criterion Kind' literal with the specified name. + * + * + * @generated + */ + public static OptimallityCriterionKind getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + OptimallityCriterionKind result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Optimallity Criterion Kind' literal with the specified integer value. + * + * + * @generated + */ + public static OptimallityCriterionKind get(int value) { + switch (value) { + case MEET_HARD_DEADLINES_VALUE: return MEET_HARD_DEADLINES; + case MINIMIZE_MISSED_DEADLINES_VALUE: return MINIMIZE_MISSED_DEADLINES; + case MINIMIZED_MEAN_TARDINESS_VALUE: return MINIMIZED_MEAN_TARDINESS; + 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 OptimallityCriterionKind(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; + } + +} //OptimallityCriterionKind diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/SAMFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/SAMFactory.java new file mode 100644 index 00000000000..3fd708504d5 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/SAMFactory.java @@ -0,0 +1,116 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.SAM; + +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.MARTE_AnalysisModel.SAM.SAMPackage + * @generated + */ +public interface SAMFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + SAMFactory eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SAMFactoryImpl.init(); + + /** + * Returns a new object of class 'Sa Analysis Context'. + * + * + * @return a new object of class 'Sa Analysis Context'. + * @generated + */ + SaAnalysisContext createSaAnalysisContext(); + + /** + * Returns a new object of class 'Sa Endto End Flow'. + * + * + * @return a new object of class 'Sa Endto End Flow'. + * @generated + */ + SaEndtoEndFlow createSaEndtoEndFlow(); + + /** + * Returns a new object of class 'Sa Comm Step'. + * + * + * @return a new object of class 'Sa Comm Step'. + * @generated + */ + SaCommStep createSaCommStep(); + + /** + * Returns a new object of class 'Sa Step'. + * + * + * @return a new object of class 'Sa Step'. + * @generated + */ + SaStep createSaStep(); + + /** + * Returns a new object of class 'Sa Shared Resource'. + * + * + * @return a new object of class 'Sa Shared Resource'. + * @generated + */ + SaSharedResource createSaSharedResource(); + + /** + * Returns a new object of class 'Sa Sched Obs'. + * + * + * @return a new object of class 'Sa Sched Obs'. + * @generated + */ + SaSchedObs createSaSchedObs(); + + /** + * Returns a new object of class 'Sa Comm Host'. + * + * + * @return a new object of class 'Sa Comm Host'. + * @generated + */ + SaCommHost createSaCommHost(); + + /** + * Returns a new object of class 'Sa Exec Host'. + * + * + * @return a new object of class 'Sa Exec Host'. + * @generated + */ + SaExecHost createSaExecHost(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + SAMPackage getSAMPackage(); + +} //SAMFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/SAMPackage.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/SAMPackage.java new file mode 100644 index 00000000000..2805863081a --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/SAMPackage.java @@ -0,0 +1,2890 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.SAM; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GQAMPackage; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage; + +/** + * + * 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.MARTE_AnalysisModel.SAM.SAMFactory + * @model kind="package" + * @generated + */ +public interface SAMPackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "SAM"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "http://www.eclipse.org/papyrus/SAM/1"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "SAM"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + SAMPackage eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SAMPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaAnalysisContextImpl Sa Analysis Context}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaAnalysisContextImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SAMPackageImpl#getSaAnalysisContext() + * @generated + */ + int SA_ANALYSIS_CONTEXT = 0; + + /** + * The feature id for the 'Base Structured Classifier' reference. + * + * + * @generated + * @ordered + */ + int SA_ANALYSIS_CONTEXT__BASE_STRUCTURED_CLASSIFIER = GQAMPackage.GA_ANALYSIS_CONTEXT__BASE_STRUCTURED_CLASSIFIER; + + /** + * The feature id for the 'Base Package' reference. + * + * + * @generated + * @ordered + */ + int SA_ANALYSIS_CONTEXT__BASE_PACKAGE = GQAMPackage.GA_ANALYSIS_CONTEXT__BASE_PACKAGE; + + /** + * The feature id for the 'Mode' reference list. + * + * + * @generated + * @ordered + */ + int SA_ANALYSIS_CONTEXT__MODE = GQAMPackage.GA_ANALYSIS_CONTEXT__MODE; + + /** + * The feature id for the 'Base Named Element' reference. + * + * + * @generated + * @ordered + */ + int SA_ANALYSIS_CONTEXT__BASE_NAMED_ELEMENT = GQAMPackage.GA_ANALYSIS_CONTEXT__BASE_NAMED_ELEMENT; + + /** + * The feature id for the 'Context' attribute list. + * + * + * @generated + * @ordered + */ + int SA_ANALYSIS_CONTEXT__CONTEXT = GQAMPackage.GA_ANALYSIS_CONTEXT__CONTEXT; + + /** + * The feature id for the 'Workload' reference list. + * + * + * @generated + * @ordered + */ + int SA_ANALYSIS_CONTEXT__WORKLOAD = GQAMPackage.GA_ANALYSIS_CONTEXT__WORKLOAD; + + /** + * The feature id for the 'Platform' reference list. + * + * + * @generated + * @ordered + */ + int SA_ANALYSIS_CONTEXT__PLATFORM = GQAMPackage.GA_ANALYSIS_CONTEXT__PLATFORM; + + /** + * The feature id for the 'Is Sched' attribute. + * + * + * @generated + * @ordered + */ + int SA_ANALYSIS_CONTEXT__IS_SCHED = GQAMPackage.GA_ANALYSIS_CONTEXT_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Opt Criterion' attribute. + * + * + * @generated + * @ordered + */ + int SA_ANALYSIS_CONTEXT__OPT_CRITERION = GQAMPackage.GA_ANALYSIS_CONTEXT_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Sa Analysis Context' class. + * + * + * @generated + * @ordered + */ + int SA_ANALYSIS_CONTEXT_FEATURE_COUNT = GQAMPackage.GA_ANALYSIS_CONTEXT_FEATURE_COUNT + 2; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaEndtoEndFlowImpl Sa Endto End Flow}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaEndtoEndFlowImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SAMPackageImpl#getSaEndtoEndFlow() + * @generated + */ + int SA_ENDTO_END_FLOW = 1; + + /** + * The feature id for the 'Is Sched' attribute. + * + * + * @generated + * @ordered + */ + int SA_ENDTO_END_FLOW__IS_SCHED = 0; + + /** + * The feature id for the 'Sch Slack' attribute. + * + * + * @generated + * @ordered + */ + int SA_ENDTO_END_FLOW__SCH_SLACK = 1; + + /** + * The feature id for the 'End2 End T' attribute list. + * + * + * @generated + * @ordered + */ + int SA_ENDTO_END_FLOW__END2_END_T = 2; + + /** + * The feature id for the 'End2 End D' attribute list. + * + * + * @generated + * @ordered + */ + int SA_ENDTO_END_FLOW__END2_END_D = 3; + + /** + * The feature id for the 'Timing' reference list. + * + * + * @generated + * @ordered + */ + int SA_ENDTO_END_FLOW__TIMING = 4; + + /** + * The feature id for the 'Base Named Element' reference. + * + * + * @generated + * @ordered + */ + int SA_ENDTO_END_FLOW__BASE_NAMED_ELEMENT = 5; + + /** + * The number of structural features of the 'Sa Endto End Flow' class. + * + * + * @generated + * @ordered + */ + int SA_ENDTO_END_FLOW_FEATURE_COUNT = 6; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaCommStepImpl Sa Comm Step}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaCommStepImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SAMPackageImpl#getSaCommStep() + * @generated + */ + int SA_COMM_STEP = 2; + + /** + * The feature id for the 'Exec Time' attribute list. + * + * + * @generated + * @ordered + */ + int SA_COMM_STEP__EXEC_TIME = GQAMPackage.GA_COMM_STEP__EXEC_TIME; + + /** + * The feature id for the 'Allocated Memory' attribute list. + * + * + * @generated + * @ordered + */ + int SA_COMM_STEP__ALLOCATED_MEMORY = GQAMPackage.GA_COMM_STEP__ALLOCATED_MEMORY; + + /** + * The feature id for the 'Used Memory' attribute list. + * + * + * @generated + * @ordered + */ + int SA_COMM_STEP__USED_MEMORY = GQAMPackage.GA_COMM_STEP__USED_MEMORY; + + /** + * The feature id for the 'Power Peak' attribute list. + * + * + * @generated + * @ordered + */ + int SA_COMM_STEP__POWER_PEAK = GQAMPackage.GA_COMM_STEP__POWER_PEAK; + + /** + * The feature id for the 'Energy' attribute list. + * + * + * @generated + * @ordered + */ + int SA_COMM_STEP__ENERGY = GQAMPackage.GA_COMM_STEP__ENERGY; + + /** + * The feature id for the 'Base Named Element' reference. + * + * + * @generated + * @ordered + */ + int SA_COMM_STEP__BASE_NAMED_ELEMENT = GQAMPackage.GA_COMM_STEP__BASE_NAMED_ELEMENT; + + /** + * The feature id for the 'Sub Usage' reference list. + * + * + * @generated + * @ordered + */ + int SA_COMM_STEP__SUB_USAGE = GQAMPackage.GA_COMM_STEP__SUB_USAGE; + + /** + * The feature id for the 'Used Resources' reference list. + * + * + * @generated + * @ordered + */ + int SA_COMM_STEP__USED_RESOURCES = GQAMPackage.GA_COMM_STEP__USED_RESOURCES; + + /** + * The feature id for the 'Msg Size' attribute list. + * + * + * @generated + * @ordered + */ + int SA_COMM_STEP__MSG_SIZE = GQAMPackage.GA_COMM_STEP__MSG_SIZE; + + /** + * The feature id for the 'On' reference list. + * + * + * @generated + * @ordered + */ + int SA_COMM_STEP__ON = GQAMPackage.GA_COMM_STEP__ON; + + /** + * The feature id for the 'Base Action' reference. + * + * + * @generated + * @ordered + */ + int SA_COMM_STEP__BASE_ACTION = GQAMPackage.GA_COMM_STEP__BASE_ACTION; + + /** + * The feature id for the 'Base Behavior' reference. + * + * + * @generated + * @ordered + */ + int SA_COMM_STEP__BASE_BEHAVIOR = GQAMPackage.GA_COMM_STEP__BASE_BEHAVIOR; + + /** + * The feature id for the 'Base Message' reference. + * + * + * @generated + * @ordered + */ + int SA_COMM_STEP__BASE_MESSAGE = GQAMPackage.GA_COMM_STEP__BASE_MESSAGE; + + /** + * The feature id for the 'Duration' containment reference. + * + * + * @generated + * @ordered + */ + int SA_COMM_STEP__DURATION = GQAMPackage.GA_COMM_STEP__DURATION; + + /** + * The feature id for the 'Start' reference. + * + * + * @generated + * @ordered + */ + int SA_COMM_STEP__START = GQAMPackage.GA_COMM_STEP__START; + + /** + * The feature id for the 'Finish' reference. + * + * + * @generated + * @ordered + */ + int SA_COMM_STEP__FINISH = GQAMPackage.GA_COMM_STEP__FINISH; + + /** + * The feature id for the 'Cause' reference. + * + * + * @generated + * @ordered + */ + int SA_COMM_STEP__CAUSE = GQAMPackage.GA_COMM_STEP__CAUSE; + + /** + * The feature id for the 'Host Demand' attribute list. + * + * + * @generated + * @ordered + */ + int SA_COMM_STEP__HOST_DEMAND = GQAMPackage.GA_COMM_STEP__HOST_DEMAND; + + /** + * The feature id for the 'Host Demand Ops' attribute list. + * + * + * @generated + * @ordered + */ + int SA_COMM_STEP__HOST_DEMAND_OPS = GQAMPackage.GA_COMM_STEP__HOST_DEMAND_OPS; + + /** + * The feature id for the 'Inter Occ T' attribute list. + * + * + * @generated + * @ordered + */ + int SA_COMM_STEP__INTER_OCC_T = GQAMPackage.GA_COMM_STEP__INTER_OCC_T; + + /** + * The feature id for the 'Throughput' attribute list. + * + * + * @generated + * @ordered + */ + int SA_COMM_STEP__THROUGHPUT = GQAMPackage.GA_COMM_STEP__THROUGHPUT; + + /** + * The feature id for the 'Resp T' attribute list. + * + * + * @generated + * @ordered + */ + int SA_COMM_STEP__RESP_T = GQAMPackage.GA_COMM_STEP__RESP_T; + + /** + * The feature id for the 'Utilization' attribute list. + * + * + * @generated + * @ordered + */ + int SA_COMM_STEP__UTILIZATION = GQAMPackage.GA_COMM_STEP__UTILIZATION; + + /** + * The feature id for the 'Utilization On Host' attribute list. + * + * + * @generated + * @ordered + */ + int SA_COMM_STEP__UTILIZATION_ON_HOST = GQAMPackage.GA_COMM_STEP__UTILIZATION_ON_HOST; + + /** + * The feature id for the 'Root' reference. + * + * + * @generated + * @ordered + */ + int SA_COMM_STEP__ROOT = GQAMPackage.GA_COMM_STEP__ROOT; + + /** + * The feature id for the 'Steps' reference list. + * + * + * @generated + * @ordered + */ + int SA_COMM_STEP__STEPS = GQAMPackage.GA_COMM_STEP__STEPS; + + /** + * The feature id for the 'Parent Step' reference list. + * + * + * @generated + * @ordered + */ + int SA_COMM_STEP__PARENT_STEP = GQAMPackage.GA_COMM_STEP__PARENT_STEP; + + /** + * The feature id for the 'Timing' reference list. + * + * + * @generated + * @ordered + */ + int SA_COMM_STEP__TIMING = GQAMPackage.GA_COMM_STEP__TIMING; + + /** + * The feature id for the 'Is Atomic' attribute. + * + * + * @generated + * @ordered + */ + int SA_COMM_STEP__IS_ATOMIC = GQAMPackage.GA_COMM_STEP__IS_ATOMIC; + + /** + * The feature id for the 'Block T' attribute. + * + * + * @generated + * @ordered + */ + int SA_COMM_STEP__BLOCK_T = GQAMPackage.GA_COMM_STEP__BLOCK_T; + + /** + * The feature id for the 'Rep' attribute. + * + * + * @generated + * @ordered + */ + int SA_COMM_STEP__REP = GQAMPackage.GA_COMM_STEP__REP; + + /** + * The feature id for the 'Prob' attribute. + * + * + * @generated + * @ordered + */ + int SA_COMM_STEP__PROB = GQAMPackage.GA_COMM_STEP__PROB; + + /** + * The feature id for the 'Priority' attribute. + * + * + * @generated + * @ordered + */ + int SA_COMM_STEP__PRIORITY = GQAMPackage.GA_COMM_STEP__PRIORITY; + + /** + * The feature id for the 'Concur Res' reference. + * + * + * @generated + * @ordered + */ + int SA_COMM_STEP__CONCUR_RES = GQAMPackage.GA_COMM_STEP__CONCUR_RES; + + /** + * The feature id for the 'Host' reference. + * + * + * @generated + * @ordered + */ + int SA_COMM_STEP__HOST = GQAMPackage.GA_COMM_STEP__HOST; + + /** + * The feature id for the 'Serv Demand' reference list. + * + * + * @generated + * @ordered + */ + int SA_COMM_STEP__SERV_DEMAND = GQAMPackage.GA_COMM_STEP__SERV_DEMAND; + + /** + * The feature id for the 'Serv Count' attribute list. + * + * + * @generated + * @ordered + */ + int SA_COMM_STEP__SERV_COUNT = GQAMPackage.GA_COMM_STEP__SERV_COUNT; + + /** + * The feature id for the 'Self Delay' attribute. + * + * + * @generated + * @ordered + */ + int SA_COMM_STEP__SELF_DELAY = GQAMPackage.GA_COMM_STEP__SELF_DELAY; + + /** + * The feature id for the 'Scenario' reference. + * + * + * @generated + * @ordered + */ + int SA_COMM_STEP__SCENARIO = GQAMPackage.GA_COMM_STEP__SCENARIO; + + /** + * The feature id for the 'Child Scenario' reference. + * + * + * @generated + * @ordered + */ + int SA_COMM_STEP__CHILD_SCENARIO = GQAMPackage.GA_COMM_STEP__CHILD_SCENARIO; + + /** + * The feature id for the 'Deadline' attribute. + * + * + * @generated + * @ordered + */ + int SA_COMM_STEP__DEADLINE = GQAMPackage.GA_COMM_STEP_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Spare Cap' attribute. + * + * + * @generated + * @ordered + */ + int SA_COMM_STEP__SPARE_CAP = GQAMPackage.GA_COMM_STEP_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Sch Slack' attribute. + * + * + * @generated + * @ordered + */ + int SA_COMM_STEP__SCH_SLACK = GQAMPackage.GA_COMM_STEP_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Base Behavioral Feature' reference. + * + * + * @generated + * @ordered + */ + int SA_COMM_STEP__BASE_BEHAVIORAL_FEATURE = GQAMPackage.GA_COMM_STEP_FEATURE_COUNT + 3; + + /** + * The number of structural features of the 'Sa Comm Step' class. + * + * + * @generated + * @ordered + */ + int SA_COMM_STEP_FEATURE_COUNT = GQAMPackage.GA_COMM_STEP_FEATURE_COUNT + 4; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaStepImpl Sa Step}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaStepImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SAMPackageImpl#getSaStep() + * @generated + */ + int SA_STEP = 3; + + /** + * The feature id for the 'Exec Time' attribute list. + * + * + * @generated + * @ordered + */ + int SA_STEP__EXEC_TIME = GQAMPackage.GA_STEP__EXEC_TIME; + + /** + * The feature id for the 'Allocated Memory' attribute list. + * + * + * @generated + * @ordered + */ + int SA_STEP__ALLOCATED_MEMORY = GQAMPackage.GA_STEP__ALLOCATED_MEMORY; + + /** + * The feature id for the 'Used Memory' attribute list. + * + * + * @generated + * @ordered + */ + int SA_STEP__USED_MEMORY = GQAMPackage.GA_STEP__USED_MEMORY; + + /** + * The feature id for the 'Power Peak' attribute list. + * + * + * @generated + * @ordered + */ + int SA_STEP__POWER_PEAK = GQAMPackage.GA_STEP__POWER_PEAK; + + /** + * The feature id for the 'Energy' attribute list. + * + * + * @generated + * @ordered + */ + int SA_STEP__ENERGY = GQAMPackage.GA_STEP__ENERGY; + + /** + * The feature id for the 'Base Named Element' reference. + * + * + * @generated + * @ordered + */ + int SA_STEP__BASE_NAMED_ELEMENT = GQAMPackage.GA_STEP__BASE_NAMED_ELEMENT; + + /** + * The feature id for the 'Sub Usage' reference list. + * + * + * @generated + * @ordered + */ + int SA_STEP__SUB_USAGE = GQAMPackage.GA_STEP__SUB_USAGE; + + /** + * The feature id for the 'Used Resources' reference list. + * + * + * @generated + * @ordered + */ + int SA_STEP__USED_RESOURCES = GQAMPackage.GA_STEP__USED_RESOURCES; + + /** + * The feature id for the 'Msg Size' attribute list. + * + * + * @generated + * @ordered + */ + int SA_STEP__MSG_SIZE = GQAMPackage.GA_STEP__MSG_SIZE; + + /** + * The feature id for the 'On' reference list. + * + * + * @generated + * @ordered + */ + int SA_STEP__ON = GQAMPackage.GA_STEP__ON; + + /** + * The feature id for the 'Base Action' reference. + * + * + * @generated + * @ordered + */ + int SA_STEP__BASE_ACTION = GQAMPackage.GA_STEP__BASE_ACTION; + + /** + * The feature id for the 'Base Behavior' reference. + * + * + * @generated + * @ordered + */ + int SA_STEP__BASE_BEHAVIOR = GQAMPackage.GA_STEP__BASE_BEHAVIOR; + + /** + * The feature id for the 'Base Message' reference. + * + * + * @generated + * @ordered + */ + int SA_STEP__BASE_MESSAGE = GQAMPackage.GA_STEP__BASE_MESSAGE; + + /** + * The feature id for the 'Duration' containment reference. + * + * + * @generated + * @ordered + */ + int SA_STEP__DURATION = GQAMPackage.GA_STEP__DURATION; + + /** + * The feature id for the 'Start' reference. + * + * + * @generated + * @ordered + */ + int SA_STEP__START = GQAMPackage.GA_STEP__START; + + /** + * The feature id for the 'Finish' reference. + * + * + * @generated + * @ordered + */ + int SA_STEP__FINISH = GQAMPackage.GA_STEP__FINISH; + + /** + * The feature id for the 'Cause' reference. + * + * + * @generated + * @ordered + */ + int SA_STEP__CAUSE = GQAMPackage.GA_STEP__CAUSE; + + /** + * The feature id for the 'Host Demand' attribute list. + * + * + * @generated + * @ordered + */ + int SA_STEP__HOST_DEMAND = GQAMPackage.GA_STEP__HOST_DEMAND; + + /** + * The feature id for the 'Host Demand Ops' attribute list. + * + * + * @generated + * @ordered + */ + int SA_STEP__HOST_DEMAND_OPS = GQAMPackage.GA_STEP__HOST_DEMAND_OPS; + + /** + * The feature id for the 'Inter Occ T' attribute list. + * + * + * @generated + * @ordered + */ + int SA_STEP__INTER_OCC_T = GQAMPackage.GA_STEP__INTER_OCC_T; + + /** + * The feature id for the 'Throughput' attribute list. + * + * + * @generated + * @ordered + */ + int SA_STEP__THROUGHPUT = GQAMPackage.GA_STEP__THROUGHPUT; + + /** + * The feature id for the 'Resp T' attribute list. + * + * + * @generated + * @ordered + */ + int SA_STEP__RESP_T = GQAMPackage.GA_STEP__RESP_T; + + /** + * The feature id for the 'Utilization' attribute list. + * + * + * @generated + * @ordered + */ + int SA_STEP__UTILIZATION = GQAMPackage.GA_STEP__UTILIZATION; + + /** + * The feature id for the 'Utilization On Host' attribute list. + * + * + * @generated + * @ordered + */ + int SA_STEP__UTILIZATION_ON_HOST = GQAMPackage.GA_STEP__UTILIZATION_ON_HOST; + + /** + * The feature id for the 'Root' reference. + * + * + * @generated + * @ordered + */ + int SA_STEP__ROOT = GQAMPackage.GA_STEP__ROOT; + + /** + * The feature id for the 'Steps' reference list. + * + * + * @generated + * @ordered + */ + int SA_STEP__STEPS = GQAMPackage.GA_STEP__STEPS; + + /** + * The feature id for the 'Parent Step' reference list. + * + * + * @generated + * @ordered + */ + int SA_STEP__PARENT_STEP = GQAMPackage.GA_STEP__PARENT_STEP; + + /** + * The feature id for the 'Timing' reference list. + * + * + * @generated + * @ordered + */ + int SA_STEP__TIMING = GQAMPackage.GA_STEP__TIMING; + + /** + * The feature id for the 'Is Atomic' attribute. + * + * + * @generated + * @ordered + */ + int SA_STEP__IS_ATOMIC = GQAMPackage.GA_STEP__IS_ATOMIC; + + /** + * The feature id for the 'Block T' attribute. + * + * + * @generated + * @ordered + */ + int SA_STEP__BLOCK_T = GQAMPackage.GA_STEP__BLOCK_T; + + /** + * The feature id for the 'Rep' attribute. + * + * + * @generated + * @ordered + */ + int SA_STEP__REP = GQAMPackage.GA_STEP__REP; + + /** + * The feature id for the 'Prob' attribute. + * + * + * @generated + * @ordered + */ + int SA_STEP__PROB = GQAMPackage.GA_STEP__PROB; + + /** + * The feature id for the 'Priority' attribute. + * + * + * @generated + * @ordered + */ + int SA_STEP__PRIORITY = GQAMPackage.GA_STEP__PRIORITY; + + /** + * The feature id for the 'Concur Res' reference. + * + * + * @generated + * @ordered + */ + int SA_STEP__CONCUR_RES = GQAMPackage.GA_STEP__CONCUR_RES; + + /** + * The feature id for the 'Host' reference. + * + * + * @generated + * @ordered + */ + int SA_STEP__HOST = GQAMPackage.GA_STEP__HOST; + + /** + * The feature id for the 'Serv Demand' reference list. + * + * + * @generated + * @ordered + */ + int SA_STEP__SERV_DEMAND = GQAMPackage.GA_STEP__SERV_DEMAND; + + /** + * The feature id for the 'Serv Count' attribute list. + * + * + * @generated + * @ordered + */ + int SA_STEP__SERV_COUNT = GQAMPackage.GA_STEP__SERV_COUNT; + + /** + * The feature id for the 'Self Delay' attribute. + * + * + * @generated + * @ordered + */ + int SA_STEP__SELF_DELAY = GQAMPackage.GA_STEP__SELF_DELAY; + + /** + * The feature id for the 'Scenario' reference. + * + * + * @generated + * @ordered + */ + int SA_STEP__SCENARIO = GQAMPackage.GA_STEP__SCENARIO; + + /** + * The feature id for the 'Child Scenario' reference. + * + * + * @generated + * @ordered + */ + int SA_STEP__CHILD_SCENARIO = GQAMPackage.GA_STEP__CHILD_SCENARIO; + + /** + * The feature id for the 'Base Behavioral Feature' reference. + * + * + * @generated + * @ordered + */ + int SA_STEP__BASE_BEHAVIORAL_FEATURE = GQAMPackage.GA_STEP_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Deadline' attribute. + * + * + * @generated + * @ordered + */ + int SA_STEP__DEADLINE = GQAMPackage.GA_STEP_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Spare Cap' attribute. + * + * + * @generated + * @ordered + */ + int SA_STEP__SPARE_CAP = GQAMPackage.GA_STEP_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Sch Slack' attribute. + * + * + * @generated + * @ordered + */ + int SA_STEP__SCH_SLACK = GQAMPackage.GA_STEP_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Preempt T' attribute. + * + * + * @generated + * @ordered + */ + int SA_STEP__PREEMPT_T = GQAMPackage.GA_STEP_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Ready T' attribute. + * + * + * @generated + * @ordered + */ + int SA_STEP__READY_T = GQAMPackage.GA_STEP_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Nonpreemption Blocking' attribute. + * + * + * @generated + * @ordered + */ + int SA_STEP__NONPREEMPTION_BLOCKING = GQAMPackage.GA_STEP_FEATURE_COUNT + 6; + + /** + * The feature id for the 'Shared Res' reference list. + * + * + * @generated + * @ordered + */ + int SA_STEP__SHARED_RES = GQAMPackage.GA_STEP_FEATURE_COUNT + 7; + + /** + * The feature id for the 'Self Suspension Blocking' attribute. + * + * + * @generated + * @ordered + */ + int SA_STEP__SELF_SUSPENSION_BLOCKING = GQAMPackage.GA_STEP_FEATURE_COUNT + 8; + + /** + * The feature id for the 'Number Self Suspensions' attribute. + * + * + * @generated + * @ordered + */ + int SA_STEP__NUMBER_SELF_SUSPENSIONS = GQAMPackage.GA_STEP_FEATURE_COUNT + 9; + + /** + * The number of structural features of the 'Sa Step' class. + * + * + * @generated + * @ordered + */ + int SA_STEP_FEATURE_COUNT = GQAMPackage.GA_STEP_FEATURE_COUNT + 10; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaSharedResourceImpl Sa Shared Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaSharedResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SAMPackageImpl#getSaSharedResource() + * @generated + */ + int SA_SHARED_RESOURCE = 4; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int SA_SHARED_RESOURCE__RES_MULT = GRMPackage.MUTUAL_EXCLUSION_RESOURCE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int SA_SHARED_RESOURCE__IS_PROTECTED = GRMPackage.MUTUAL_EXCLUSION_RESOURCE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int SA_SHARED_RESOURCE__IS_ACTIVE = GRMPackage.MUTUAL_EXCLUSION_RESOURCE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int SA_SHARED_RESOURCE__BASE_PROPERTY = GRMPackage.MUTUAL_EXCLUSION_RESOURCE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int SA_SHARED_RESOURCE__BASE_INSTANCE_SPECIFICATION = GRMPackage.MUTUAL_EXCLUSION_RESOURCE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int SA_SHARED_RESOURCE__BASE_CLASSIFIER = GRMPackage.MUTUAL_EXCLUSION_RESOURCE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int SA_SHARED_RESOURCE__BASE_LIFELINE = GRMPackage.MUTUAL_EXCLUSION_RESOURCE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int SA_SHARED_RESOURCE__BASE_CONNECTABLE_ELEMENT = GRMPackage.MUTUAL_EXCLUSION_RESOURCE__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Protect Kind' attribute. + * + * + * @generated + * @ordered + */ + int SA_SHARED_RESOURCE__PROTECT_KIND = GRMPackage.MUTUAL_EXCLUSION_RESOURCE__PROTECT_KIND; + + /** + * The feature id for the 'Ceiling' attribute. + * + * + * @generated + * @ordered + */ + int SA_SHARED_RESOURCE__CEILING = GRMPackage.MUTUAL_EXCLUSION_RESOURCE__CEILING; + + /** + * The feature id for the 'Other Protect Protocol' attribute. + * + * + * @generated + * @ordered + */ + int SA_SHARED_RESOURCE__OTHER_PROTECT_PROTOCOL = GRMPackage.MUTUAL_EXCLUSION_RESOURCE__OTHER_PROTECT_PROTOCOL; + + /** + * The feature id for the 'Scheduler' reference. + * + * + * @generated + * @ordered + */ + int SA_SHARED_RESOURCE__SCHEDULER = GRMPackage.MUTUAL_EXCLUSION_RESOURCE__SCHEDULER; + + /** + * The feature id for the 'Capacity' attribute. + * + * + * @generated + * @ordered + */ + int SA_SHARED_RESOURCE__CAPACITY = GRMPackage.MUTUAL_EXCLUSION_RESOURCE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Is Preemp' attribute. + * + * + * @generated + * @ordered + */ + int SA_SHARED_RESOURCE__IS_PREEMP = GRMPackage.MUTUAL_EXCLUSION_RESOURCE_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Is Consum' attribute. + * + * + * @generated + * @ordered + */ + int SA_SHARED_RESOURCE__IS_CONSUM = GRMPackage.MUTUAL_EXCLUSION_RESOURCE_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Acquis T' attribute list. + * + * + * @generated + * @ordered + */ + int SA_SHARED_RESOURCE__ACQUIS_T = GRMPackage.MUTUAL_EXCLUSION_RESOURCE_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Release T' attribute list. + * + * + * @generated + * @ordered + */ + int SA_SHARED_RESOURCE__RELEASE_T = GRMPackage.MUTUAL_EXCLUSION_RESOURCE_FEATURE_COUNT + 4; + + /** + * The number of structural features of the 'Sa Shared Resource' class. + * + * + * @generated + * @ordered + */ + int SA_SHARED_RESOURCE_FEATURE_COUNT = GRMPackage.MUTUAL_EXCLUSION_RESOURCE_FEATURE_COUNT + 5; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaSchedObsImpl Sa Sched Obs}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaSchedObsImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SAMPackageImpl#getSaSchedObs() + * @generated + */ + int SA_SCHED_OBS = 5; + + /** + * The feature id for the 'Kind' attribute. + * + * + * @generated + * @ordered + */ + int SA_SCHED_OBS__KIND = GQAMPackage.GA_TIMED_OBS__KIND; + + /** + * The feature id for the 'Base Constraint' reference. + * + * + * @generated + * @ordered + */ + int SA_SCHED_OBS__BASE_CONSTRAINT = GQAMPackage.GA_TIMED_OBS__BASE_CONSTRAINT; + + /** + * The feature id for the 'Mode' reference list. + * + * + * @generated + * @ordered + */ + int SA_SCHED_OBS__MODE = GQAMPackage.GA_TIMED_OBS__MODE; + + /** + * The feature id for the 'Laxity' attribute. + * + * + * @generated + * @ordered + */ + int SA_SCHED_OBS__LAXITY = GQAMPackage.GA_TIMED_OBS__LAXITY; + + /** + * The feature id for the 'Start Obs' reference list. + * + * + * @generated + * @ordered + */ + int SA_SCHED_OBS__START_OBS = GQAMPackage.GA_TIMED_OBS__START_OBS; + + /** + * The feature id for the 'End Obs' reference list. + * + * + * @generated + * @ordered + */ + int SA_SCHED_OBS__END_OBS = GQAMPackage.GA_TIMED_OBS__END_OBS; + + /** + * The feature id for the 'Suspentions' attribute list. + * + * + * @generated + * @ordered + */ + int SA_SCHED_OBS__SUSPENTIONS = GQAMPackage.GA_TIMED_OBS_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Block T' attribute list. + * + * + * @generated + * @ordered + */ + int SA_SCHED_OBS__BLOCK_T = GQAMPackage.GA_TIMED_OBS_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Overlaps' attribute list. + * + * + * @generated + * @ordered + */ + int SA_SCHED_OBS__OVERLAPS = GQAMPackage.GA_TIMED_OBS_FEATURE_COUNT + 2; + + /** + * The number of structural features of the 'Sa Sched Obs' class. + * + * + * @generated + * @ordered + */ + int SA_SCHED_OBS_FEATURE_COUNT = GQAMPackage.GA_TIMED_OBS_FEATURE_COUNT + 3; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaCommHostImpl Sa Comm Host}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaCommHostImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SAMPackageImpl#getSaCommHost() + * @generated + */ + int SA_COMM_HOST = 6; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int SA_COMM_HOST__RES_MULT = GQAMPackage.GA_COMM_HOST__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int SA_COMM_HOST__IS_PROTECTED = GQAMPackage.GA_COMM_HOST__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int SA_COMM_HOST__IS_ACTIVE = GQAMPackage.GA_COMM_HOST__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int SA_COMM_HOST__BASE_PROPERTY = GQAMPackage.GA_COMM_HOST__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int SA_COMM_HOST__BASE_INSTANCE_SPECIFICATION = GQAMPackage.GA_COMM_HOST__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int SA_COMM_HOST__BASE_CLASSIFIER = GQAMPackage.GA_COMM_HOST__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int SA_COMM_HOST__BASE_LIFELINE = GQAMPackage.GA_COMM_HOST__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int SA_COMM_HOST__BASE_CONNECTABLE_ELEMENT = GQAMPackage.GA_COMM_HOST__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Speed Factor' attribute. + * + * + * @generated + * @ordered + */ + int SA_COMM_HOST__SPEED_FACTOR = GQAMPackage.GA_COMM_HOST__SPEED_FACTOR; + + /** + * The feature id for the 'Main Scheduler' reference. + * + * + * @generated + * @ordered + */ + int SA_COMM_HOST__MAIN_SCHEDULER = GQAMPackage.GA_COMM_HOST__MAIN_SCHEDULER; + + /** + * The feature id for the 'Element Size' attribute. + * + * + * @generated + * @ordered + */ + int SA_COMM_HOST__ELEMENT_SIZE = GQAMPackage.GA_COMM_HOST__ELEMENT_SIZE; + + /** + * The feature id for the 'Base Connector' reference. + * + * + * @generated + * @ordered + */ + int SA_COMM_HOST__BASE_CONNECTOR = GQAMPackage.GA_COMM_HOST__BASE_CONNECTOR; + + /** + * The feature id for the 'Transm Mode' attribute. + * + * + * @generated + * @ordered + */ + int SA_COMM_HOST__TRANSM_MODE = GQAMPackage.GA_COMM_HOST__TRANSM_MODE; + + /** + * The feature id for the 'Block T' attribute list. + * + * + * @generated + * @ordered + */ + int SA_COMM_HOST__BLOCK_T = GQAMPackage.GA_COMM_HOST__BLOCK_T; + + /** + * The feature id for the 'Packet T' attribute list. + * + * + * @generated + * @ordered + */ + int SA_COMM_HOST__PACKET_T = GQAMPackage.GA_COMM_HOST__PACKET_T; + + /** + * The feature id for the 'Capacity' attribute list. + * + * + * @generated + * @ordered + */ + int SA_COMM_HOST__CAPACITY = GQAMPackage.GA_COMM_HOST__CAPACITY; + + /** + * The feature id for the 'Is Preemptible' attribute. + * + * + * @generated + * @ordered + */ + int SA_COMM_HOST__IS_PREEMPTIBLE = GQAMPackage.GA_COMM_HOST__IS_PREEMPTIBLE; + + /** + * The feature id for the 'Sched Policy' attribute. + * + * + * @generated + * @ordered + */ + int SA_COMM_HOST__SCHED_POLICY = GQAMPackage.GA_COMM_HOST__SCHED_POLICY; + + /** + * The feature id for the 'Other Sched Policy' attribute. + * + * + * @generated + * @ordered + */ + int SA_COMM_HOST__OTHER_SCHED_POLICY = GQAMPackage.GA_COMM_HOST__OTHER_SCHED_POLICY; + + /** + * The feature id for the 'Schedule' attribute. + * + * + * @generated + * @ordered + */ + int SA_COMM_HOST__SCHEDULE = GQAMPackage.GA_COMM_HOST__SCHEDULE; + + /** + * The feature id for the 'Processing Units' reference list. + * + * + * @generated + * @ordered + */ + int SA_COMM_HOST__PROCESSING_UNITS = GQAMPackage.GA_COMM_HOST__PROCESSING_UNITS; + + /** + * The feature id for the 'Host' reference. + * + * + * @generated + * @ordered + */ + int SA_COMM_HOST__HOST = GQAMPackage.GA_COMM_HOST__HOST; + + /** + * The feature id for the 'Protected Shared Resources' reference list. + * + * + * @generated + * @ordered + */ + int SA_COMM_HOST__PROTECTED_SHARED_RESOURCES = GQAMPackage.GA_COMM_HOST__PROTECTED_SHARED_RESOURCES; + + /** + * The feature id for the 'Schedulable Resources' reference list. + * + * + * @generated + * @ordered + */ + int SA_COMM_HOST__SCHEDULABLE_RESOURCES = GQAMPackage.GA_COMM_HOST__SCHEDULABLE_RESOURCES; + + /** + * The feature id for the 'Throughput' attribute list. + * + * + * @generated + * @ordered + */ + int SA_COMM_HOST__THROUGHPUT = GQAMPackage.GA_COMM_HOST__THROUGHPUT; + + /** + * The feature id for the 'Utilization' attribute list. + * + * + * @generated + * @ordered + */ + int SA_COMM_HOST__UTILIZATION = GQAMPackage.GA_COMM_HOST__UTILIZATION; + + /** + * The feature id for the 'Is Sched' attribute. + * + * + * @generated + * @ordered + */ + int SA_COMM_HOST__IS_SCHED = GQAMPackage.GA_COMM_HOST_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Sch Slack' attribute. + * + * + * @generated + * @ordered + */ + int SA_COMM_HOST__SCH_SLACK = GQAMPackage.GA_COMM_HOST_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Sa Comm Host' class. + * + * + * @generated + * @ordered + */ + int SA_COMM_HOST_FEATURE_COUNT = GQAMPackage.GA_COMM_HOST_FEATURE_COUNT + 2; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaExecHostImpl Sa Exec Host}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaExecHostImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SAMPackageImpl#getSaExecHost() + * @generated + */ + int SA_EXEC_HOST = 7; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int SA_EXEC_HOST__RES_MULT = GQAMPackage.GA_EXEC_HOST__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int SA_EXEC_HOST__IS_PROTECTED = GQAMPackage.GA_EXEC_HOST__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int SA_EXEC_HOST__IS_ACTIVE = GQAMPackage.GA_EXEC_HOST__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int SA_EXEC_HOST__BASE_PROPERTY = GQAMPackage.GA_EXEC_HOST__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int SA_EXEC_HOST__BASE_INSTANCE_SPECIFICATION = GQAMPackage.GA_EXEC_HOST__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int SA_EXEC_HOST__BASE_CLASSIFIER = GQAMPackage.GA_EXEC_HOST__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int SA_EXEC_HOST__BASE_LIFELINE = GQAMPackage.GA_EXEC_HOST__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int SA_EXEC_HOST__BASE_CONNECTABLE_ELEMENT = GQAMPackage.GA_EXEC_HOST__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Is Preemptible' attribute. + * + * + * @generated + * @ordered + */ + int SA_EXEC_HOST__IS_PREEMPTIBLE = GQAMPackage.GA_EXEC_HOST__IS_PREEMPTIBLE; + + /** + * The feature id for the 'Sched Policy' attribute. + * + * + * @generated + * @ordered + */ + int SA_EXEC_HOST__SCHED_POLICY = GQAMPackage.GA_EXEC_HOST__SCHED_POLICY; + + /** + * The feature id for the 'Other Sched Policy' attribute. + * + * + * @generated + * @ordered + */ + int SA_EXEC_HOST__OTHER_SCHED_POLICY = GQAMPackage.GA_EXEC_HOST__OTHER_SCHED_POLICY; + + /** + * The feature id for the 'Schedule' attribute. + * + * + * @generated + * @ordered + */ + int SA_EXEC_HOST__SCHEDULE = GQAMPackage.GA_EXEC_HOST__SCHEDULE; + + /** + * The feature id for the 'Processing Units' reference list. + * + * + * @generated + * @ordered + */ + int SA_EXEC_HOST__PROCESSING_UNITS = GQAMPackage.GA_EXEC_HOST__PROCESSING_UNITS; + + /** + * The feature id for the 'Host' reference. + * + * + * @generated + * @ordered + */ + int SA_EXEC_HOST__HOST = GQAMPackage.GA_EXEC_HOST__HOST; + + /** + * The feature id for the 'Protected Shared Resources' reference list. + * + * + * @generated + * @ordered + */ + int SA_EXEC_HOST__PROTECTED_SHARED_RESOURCES = GQAMPackage.GA_EXEC_HOST__PROTECTED_SHARED_RESOURCES; + + /** + * The feature id for the 'Schedulable Resources' reference list. + * + * + * @generated + * @ordered + */ + int SA_EXEC_HOST__SCHEDULABLE_RESOURCES = GQAMPackage.GA_EXEC_HOST__SCHEDULABLE_RESOURCES; + + /** + * The feature id for the 'Speed Factor' attribute. + * + * + * @generated + * @ordered + */ + int SA_EXEC_HOST__SPEED_FACTOR = GQAMPackage.GA_EXEC_HOST__SPEED_FACTOR; + + /** + * The feature id for the 'Main Scheduler' reference. + * + * + * @generated + * @ordered + */ + int SA_EXEC_HOST__MAIN_SCHEDULER = GQAMPackage.GA_EXEC_HOST__MAIN_SCHEDULER; + + /** + * The feature id for the 'Comm Tx Ovh' attribute. + * + * + * @generated + * @ordered + */ + int SA_EXEC_HOST__COMM_TX_OVH = GQAMPackage.GA_EXEC_HOST__COMM_TX_OVH; + + /** + * The feature id for the 'Comm Rcv Ovh' attribute. + * + * + * @generated + * @ordered + */ + int SA_EXEC_HOST__COMM_RCV_OVH = GQAMPackage.GA_EXEC_HOST__COMM_RCV_OVH; + + /** + * The feature id for the 'Cntxt Sw T' attribute. + * + * + * @generated + * @ordered + */ + int SA_EXEC_HOST__CNTXT_SW_T = GQAMPackage.GA_EXEC_HOST__CNTXT_SW_T; + + /** + * The feature id for the 'Clock Ovh' attribute. + * + * + * @generated + * @ordered + */ + int SA_EXEC_HOST__CLOCK_OVH = GQAMPackage.GA_EXEC_HOST__CLOCK_OVH; + + /** + * The feature id for the 'Sched Pri Range' attribute. + * + * + * @generated + * @ordered + */ + int SA_EXEC_HOST__SCHED_PRI_RANGE = GQAMPackage.GA_EXEC_HOST__SCHED_PRI_RANGE; + + /** + * The feature id for the 'Mem Size' attribute. + * + * + * @generated + * @ordered + */ + int SA_EXEC_HOST__MEM_SIZE = GQAMPackage.GA_EXEC_HOST__MEM_SIZE; + + /** + * The feature id for the 'Utilization' attribute list. + * + * + * @generated + * @ordered + */ + int SA_EXEC_HOST__UTILIZATION = GQAMPackage.GA_EXEC_HOST__UTILIZATION; + + /** + * The feature id for the 'Throughput' attribute list. + * + * + * @generated + * @ordered + */ + int SA_EXEC_HOST__THROUGHPUT = GQAMPackage.GA_EXEC_HOST__THROUGHPUT; + + /** + * The feature id for the 'Is Sched' attribute. + * + * + * @generated + * @ordered + */ + int SA_EXEC_HOST__IS_SCHED = GQAMPackage.GA_EXEC_HOST_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Sch Slack' attribute. + * + * + * @generated + * @ordered + */ + int SA_EXEC_HOST__SCH_SLACK = GQAMPackage.GA_EXEC_HOST_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Sched Utiliz' attribute. + * + * + * @generated + * @ordered + */ + int SA_EXEC_HOST__SCHED_UTILIZ = GQAMPackage.GA_EXEC_HOST_FEATURE_COUNT + 2; + + /** + * The feature id for the 'IS Rswitch T' attribute. + * + * + * @generated + * @ordered + */ + int SA_EXEC_HOST__IS_RSWITCH_T = GQAMPackage.GA_EXEC_HOST_FEATURE_COUNT + 3; + + /** + * The feature id for the 'IS Rprio Range' attribute. + * + * + * @generated + * @ordered + */ + int SA_EXEC_HOST__IS_RPRIO_RANGE = GQAMPackage.GA_EXEC_HOST_FEATURE_COUNT + 4; + + /** + * The number of structural features of the 'Sa Exec Host' class. + * + * + * @generated + * @ordered + */ + int SA_EXEC_HOST_FEATURE_COUNT = GQAMPackage.GA_EXEC_HOST_FEATURE_COUNT + 5; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.OptimallityCriterionKind Optimallity Criterion Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.OptimallityCriterionKind + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SAMPackageImpl#getOptimallityCriterionKind() + * @generated + */ + int OPTIMALLITY_CRITERION_KIND = 8; + + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaAnalysisContext Sa Analysis Context}'. + * + * + * @return the meta object for class 'Sa Analysis Context'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaAnalysisContext + * @generated + */ + EClass getSaAnalysisContext(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaAnalysisContext#getIsSched Is Sched}'. + * + * + * @return the meta object for the attribute 'Is Sched'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaAnalysisContext#getIsSched() + * @see #getSaAnalysisContext() + * @generated + */ + EAttribute getSaAnalysisContext_IsSched(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaAnalysisContext#getOptCriterion Opt Criterion}'. + * + * + * @return the meta object for the attribute 'Opt Criterion'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaAnalysisContext#getOptCriterion() + * @see #getSaAnalysisContext() + * @generated + */ + EAttribute getSaAnalysisContext_OptCriterion(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaEndtoEndFlow Sa Endto End Flow}'. + * + * + * @return the meta object for class 'Sa Endto End Flow'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaEndtoEndFlow + * @generated + */ + EClass getSaEndtoEndFlow(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaEndtoEndFlow#getIsSched Is Sched}'. + * + * + * @return the meta object for the attribute 'Is Sched'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaEndtoEndFlow#getIsSched() + * @see #getSaEndtoEndFlow() + * @generated + */ + EAttribute getSaEndtoEndFlow_IsSched(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaEndtoEndFlow#getSchSlack Sch Slack}'. + * + * + * @return the meta object for the attribute 'Sch Slack'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaEndtoEndFlow#getSchSlack() + * @see #getSaEndtoEndFlow() + * @generated + */ + EAttribute getSaEndtoEndFlow_SchSlack(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaEndtoEndFlow#getEnd2EndT End2 End T}'. + * + * + * @return the meta object for the attribute list 'End2 End T'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaEndtoEndFlow#getEnd2EndT() + * @see #getSaEndtoEndFlow() + * @generated + */ + EAttribute getSaEndtoEndFlow_End2EndT(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaEndtoEndFlow#getEnd2EndD End2 End D}'. + * + * + * @return the meta object for the attribute list 'End2 End D'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaEndtoEndFlow#getEnd2EndD() + * @see #getSaEndtoEndFlow() + * @generated + */ + EAttribute getSaEndtoEndFlow_End2EndD(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaEndtoEndFlow#getTiming Timing}'. + * + * + * @return the meta object for the reference list 'Timing'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaEndtoEndFlow#getTiming() + * @see #getSaEndtoEndFlow() + * @generated + */ + EReference getSaEndtoEndFlow_Timing(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaEndtoEndFlow#getBase_NamedElement Base Named Element}'. + * + * + * @return the meta object for the reference 'Base Named Element'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaEndtoEndFlow#getBase_NamedElement() + * @see #getSaEndtoEndFlow() + * @generated + */ + EReference getSaEndtoEndFlow_Base_NamedElement(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaCommStep Sa Comm Step}'. + * + * + * @return the meta object for class 'Sa Comm Step'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaCommStep + * @generated + */ + EClass getSaCommStep(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaCommStep#getDeadline Deadline}'. + * + * + * @return the meta object for the attribute 'Deadline'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaCommStep#getDeadline() + * @see #getSaCommStep() + * @generated + */ + EAttribute getSaCommStep_Deadline(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaCommStep#getSpareCap Spare Cap}'. + * + * + * @return the meta object for the attribute 'Spare Cap'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaCommStep#getSpareCap() + * @see #getSaCommStep() + * @generated + */ + EAttribute getSaCommStep_SpareCap(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaCommStep#getSchSlack Sch Slack}'. + * + * + * @return the meta object for the attribute 'Sch Slack'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaCommStep#getSchSlack() + * @see #getSaCommStep() + * @generated + */ + EAttribute getSaCommStep_SchSlack(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaCommStep#getBase_BehavioralFeature Base Behavioral Feature}'. + * + * + * @return the meta object for the reference 'Base Behavioral Feature'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaCommStep#getBase_BehavioralFeature() + * @see #getSaCommStep() + * @generated + */ + EReference getSaCommStep_Base_BehavioralFeature(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaStep Sa Step}'. + * + * + * @return the meta object for class 'Sa Step'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaStep + * @generated + */ + EClass getSaStep(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaStep#getBase_BehavioralFeature Base Behavioral Feature}'. + * + * + * @return the meta object for the reference 'Base Behavioral Feature'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaStep#getBase_BehavioralFeature() + * @see #getSaStep() + * @generated + */ + EReference getSaStep_Base_BehavioralFeature(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaStep#getDeadline Deadline}'. + * + * + * @return the meta object for the attribute 'Deadline'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaStep#getDeadline() + * @see #getSaStep() + * @generated + */ + EAttribute getSaStep_Deadline(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaStep#getSpareCap Spare Cap}'. + * + * + * @return the meta object for the attribute 'Spare Cap'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaStep#getSpareCap() + * @see #getSaStep() + * @generated + */ + EAttribute getSaStep_SpareCap(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaStep#getSchSlack Sch Slack}'. + * + * + * @return the meta object for the attribute 'Sch Slack'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaStep#getSchSlack() + * @see #getSaStep() + * @generated + */ + EAttribute getSaStep_SchSlack(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaStep#getPreemptT Preempt T}'. + * + * + * @return the meta object for the attribute 'Preempt T'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaStep#getPreemptT() + * @see #getSaStep() + * @generated + */ + EAttribute getSaStep_PreemptT(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaStep#getReadyT Ready T}'. + * + * + * @return the meta object for the attribute 'Ready T'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaStep#getReadyT() + * @see #getSaStep() + * @generated + */ + EAttribute getSaStep_ReadyT(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaStep#getNonpreemptionBlocking Nonpreemption Blocking}'. + * + * + * @return the meta object for the attribute 'Nonpreemption Blocking'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaStep#getNonpreemptionBlocking() + * @see #getSaStep() + * @generated + */ + EAttribute getSaStep_NonpreemptionBlocking(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaStep#getSharedRes Shared Res}'. + * + * + * @return the meta object for the reference list 'Shared Res'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaStep#getSharedRes() + * @see #getSaStep() + * @generated + */ + EReference getSaStep_SharedRes(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaStep#getSelfSuspensionBlocking Self Suspension Blocking}'. + * + * + * @return the meta object for the attribute 'Self Suspension Blocking'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaStep#getSelfSuspensionBlocking() + * @see #getSaStep() + * @generated + */ + EAttribute getSaStep_SelfSuspensionBlocking(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaStep#getNumberSelfSuspensions Number Self Suspensions}'. + * + * + * @return the meta object for the attribute 'Number Self Suspensions'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaStep#getNumberSelfSuspensions() + * @see #getSaStep() + * @generated + */ + EAttribute getSaStep_NumberSelfSuspensions(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaSharedResource Sa Shared Resource}'. + * + * + * @return the meta object for class 'Sa Shared Resource'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaSharedResource + * @generated + */ + EClass getSaSharedResource(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaSharedResource#getCapacity Capacity}'. + * + * + * @return the meta object for the attribute 'Capacity'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaSharedResource#getCapacity() + * @see #getSaSharedResource() + * @generated + */ + EAttribute getSaSharedResource_Capacity(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaSharedResource#getIsPreemp Is Preemp}'. + * + * + * @return the meta object for the attribute 'Is Preemp'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaSharedResource#getIsPreemp() + * @see #getSaSharedResource() + * @generated + */ + EAttribute getSaSharedResource_IsPreemp(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaSharedResource#getIsConsum Is Consum}'. + * + * + * @return the meta object for the attribute 'Is Consum'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaSharedResource#getIsConsum() + * @see #getSaSharedResource() + * @generated + */ + EAttribute getSaSharedResource_IsConsum(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaSharedResource#getAcquisT Acquis T}'. + * + * + * @return the meta object for the attribute list 'Acquis T'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaSharedResource#getAcquisT() + * @see #getSaSharedResource() + * @generated + */ + EAttribute getSaSharedResource_AcquisT(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaSharedResource#getReleaseT Release T}'. + * + * + * @return the meta object for the attribute list 'Release T'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaSharedResource#getReleaseT() + * @see #getSaSharedResource() + * @generated + */ + EAttribute getSaSharedResource_ReleaseT(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaSchedObs Sa Sched Obs}'. + * + * + * @return the meta object for class 'Sa Sched Obs'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaSchedObs + * @generated + */ + EClass getSaSchedObs(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaSchedObs#getSuspentions Suspentions}'. + * + * + * @return the meta object for the attribute list 'Suspentions'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaSchedObs#getSuspentions() + * @see #getSaSchedObs() + * @generated + */ + EAttribute getSaSchedObs_Suspentions(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaSchedObs#getBlockT Block T}'. + * + * + * @return the meta object for the attribute list 'Block T'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaSchedObs#getBlockT() + * @see #getSaSchedObs() + * @generated + */ + EAttribute getSaSchedObs_BlockT(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaSchedObs#getOverlaps Overlaps}'. + * + * + * @return the meta object for the attribute list 'Overlaps'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaSchedObs#getOverlaps() + * @see #getSaSchedObs() + * @generated + */ + EAttribute getSaSchedObs_Overlaps(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaCommHost Sa Comm Host}'. + * + * + * @return the meta object for class 'Sa Comm Host'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaCommHost + * @generated + */ + EClass getSaCommHost(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaCommHost#getIsSched Is Sched}'. + * + * + * @return the meta object for the attribute 'Is Sched'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaCommHost#getIsSched() + * @see #getSaCommHost() + * @generated + */ + EAttribute getSaCommHost_IsSched(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaCommHost#getSchSlack Sch Slack}'. + * + * + * @return the meta object for the attribute 'Sch Slack'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaCommHost#getSchSlack() + * @see #getSaCommHost() + * @generated + */ + EAttribute getSaCommHost_SchSlack(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaExecHost Sa Exec Host}'. + * + * + * @return the meta object for class 'Sa Exec Host'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaExecHost + * @generated + */ + EClass getSaExecHost(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaExecHost#getIsSched Is Sched}'. + * + * + * @return the meta object for the attribute 'Is Sched'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaExecHost#getIsSched() + * @see #getSaExecHost() + * @generated + */ + EAttribute getSaExecHost_IsSched(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaExecHost#getSchSlack Sch Slack}'. + * + * + * @return the meta object for the attribute 'Sch Slack'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaExecHost#getSchSlack() + * @see #getSaExecHost() + * @generated + */ + EAttribute getSaExecHost_SchSlack(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaExecHost#getSchedUtiliz Sched Utiliz}'. + * + * + * @return the meta object for the attribute 'Sched Utiliz'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaExecHost#getSchedUtiliz() + * @see #getSaExecHost() + * @generated + */ + EAttribute getSaExecHost_SchedUtiliz(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaExecHost#getISRswitchT IS Rswitch T}'. + * + * + * @return the meta object for the attribute 'IS Rswitch T'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaExecHost#getISRswitchT() + * @see #getSaExecHost() + * @generated + */ + EAttribute getSaExecHost_ISRswitchT(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaExecHost#getISRprioRange IS Rprio Range}'. + * + * + * @return the meta object for the attribute 'IS Rprio Range'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaExecHost#getISRprioRange() + * @see #getSaExecHost() + * @generated + */ + EAttribute getSaExecHost_ISRprioRange(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.OptimallityCriterionKind Optimallity Criterion Kind}'. + * + * + * @return the meta object for enum 'Optimallity Criterion Kind'. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.OptimallityCriterionKind + * @generated + */ + EEnum getOptimallityCriterionKind(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + SAMFactory getSAMFactory(); + + /** + * + * 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.MARTE_AnalysisModel.SAM.impl.SaAnalysisContextImpl Sa Analysis Context}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaAnalysisContextImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SAMPackageImpl#getSaAnalysisContext() + * @generated + */ + EClass SA_ANALYSIS_CONTEXT = eINSTANCE.getSaAnalysisContext(); + + /** + * The meta object literal for the 'Is Sched' attribute feature. + * + * + * @generated + */ + EAttribute SA_ANALYSIS_CONTEXT__IS_SCHED = eINSTANCE.getSaAnalysisContext_IsSched(); + + /** + * The meta object literal for the 'Opt Criterion' attribute feature. + * + * + * @generated + */ + EAttribute SA_ANALYSIS_CONTEXT__OPT_CRITERION = eINSTANCE.getSaAnalysisContext_OptCriterion(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaEndtoEndFlowImpl Sa Endto End Flow}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaEndtoEndFlowImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SAMPackageImpl#getSaEndtoEndFlow() + * @generated + */ + EClass SA_ENDTO_END_FLOW = eINSTANCE.getSaEndtoEndFlow(); + + /** + * The meta object literal for the 'Is Sched' attribute feature. + * + * + * @generated + */ + EAttribute SA_ENDTO_END_FLOW__IS_SCHED = eINSTANCE.getSaEndtoEndFlow_IsSched(); + + /** + * The meta object literal for the 'Sch Slack' attribute feature. + * + * + * @generated + */ + EAttribute SA_ENDTO_END_FLOW__SCH_SLACK = eINSTANCE.getSaEndtoEndFlow_SchSlack(); + + /** + * The meta object literal for the 'End2 End T' attribute list feature. + * + * + * @generated + */ + EAttribute SA_ENDTO_END_FLOW__END2_END_T = eINSTANCE.getSaEndtoEndFlow_End2EndT(); + + /** + * The meta object literal for the 'End2 End D' attribute list feature. + * + * + * @generated + */ + EAttribute SA_ENDTO_END_FLOW__END2_END_D = eINSTANCE.getSaEndtoEndFlow_End2EndD(); + + /** + * The meta object literal for the 'Timing' reference list feature. + * + * + * @generated + */ + EReference SA_ENDTO_END_FLOW__TIMING = eINSTANCE.getSaEndtoEndFlow_Timing(); + + /** + * The meta object literal for the 'Base Named Element' reference feature. + * + * + * @generated + */ + EReference SA_ENDTO_END_FLOW__BASE_NAMED_ELEMENT = eINSTANCE.getSaEndtoEndFlow_Base_NamedElement(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaCommStepImpl Sa Comm Step}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaCommStepImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SAMPackageImpl#getSaCommStep() + * @generated + */ + EClass SA_COMM_STEP = eINSTANCE.getSaCommStep(); + + /** + * The meta object literal for the 'Deadline' attribute feature. + * + * + * @generated + */ + EAttribute SA_COMM_STEP__DEADLINE = eINSTANCE.getSaCommStep_Deadline(); + + /** + * The meta object literal for the 'Spare Cap' attribute feature. + * + * + * @generated + */ + EAttribute SA_COMM_STEP__SPARE_CAP = eINSTANCE.getSaCommStep_SpareCap(); + + /** + * The meta object literal for the 'Sch Slack' attribute feature. + * + * + * @generated + */ + EAttribute SA_COMM_STEP__SCH_SLACK = eINSTANCE.getSaCommStep_SchSlack(); + + /** + * The meta object literal for the 'Base Behavioral Feature' reference feature. + * + * + * @generated + */ + EReference SA_COMM_STEP__BASE_BEHAVIORAL_FEATURE = eINSTANCE.getSaCommStep_Base_BehavioralFeature(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaStepImpl Sa Step}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaStepImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SAMPackageImpl#getSaStep() + * @generated + */ + EClass SA_STEP = eINSTANCE.getSaStep(); + + /** + * The meta object literal for the 'Base Behavioral Feature' reference feature. + * + * + * @generated + */ + EReference SA_STEP__BASE_BEHAVIORAL_FEATURE = eINSTANCE.getSaStep_Base_BehavioralFeature(); + + /** + * The meta object literal for the 'Deadline' attribute feature. + * + * + * @generated + */ + EAttribute SA_STEP__DEADLINE = eINSTANCE.getSaStep_Deadline(); + + /** + * The meta object literal for the 'Spare Cap' attribute feature. + * + * + * @generated + */ + EAttribute SA_STEP__SPARE_CAP = eINSTANCE.getSaStep_SpareCap(); + + /** + * The meta object literal for the 'Sch Slack' attribute feature. + * + * + * @generated + */ + EAttribute SA_STEP__SCH_SLACK = eINSTANCE.getSaStep_SchSlack(); + + /** + * The meta object literal for the 'Preempt T' attribute feature. + * + * + * @generated + */ + EAttribute SA_STEP__PREEMPT_T = eINSTANCE.getSaStep_PreemptT(); + + /** + * The meta object literal for the 'Ready T' attribute feature. + * + * + * @generated + */ + EAttribute SA_STEP__READY_T = eINSTANCE.getSaStep_ReadyT(); + + /** + * The meta object literal for the 'Nonpreemption Blocking' attribute feature. + * + * + * @generated + */ + EAttribute SA_STEP__NONPREEMPTION_BLOCKING = eINSTANCE.getSaStep_NonpreemptionBlocking(); + + /** + * The meta object literal for the 'Shared Res' reference list feature. + * + * + * @generated + */ + EReference SA_STEP__SHARED_RES = eINSTANCE.getSaStep_SharedRes(); + + /** + * The meta object literal for the 'Self Suspension Blocking' attribute feature. + * + * + * @generated + */ + EAttribute SA_STEP__SELF_SUSPENSION_BLOCKING = eINSTANCE.getSaStep_SelfSuspensionBlocking(); + + /** + * The meta object literal for the 'Number Self Suspensions' attribute feature. + * + * + * @generated + */ + EAttribute SA_STEP__NUMBER_SELF_SUSPENSIONS = eINSTANCE.getSaStep_NumberSelfSuspensions(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaSharedResourceImpl Sa Shared Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaSharedResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SAMPackageImpl#getSaSharedResource() + * @generated + */ + EClass SA_SHARED_RESOURCE = eINSTANCE.getSaSharedResource(); + + /** + * The meta object literal for the 'Capacity' attribute feature. + * + * + * @generated + */ + EAttribute SA_SHARED_RESOURCE__CAPACITY = eINSTANCE.getSaSharedResource_Capacity(); + + /** + * The meta object literal for the 'Is Preemp' attribute feature. + * + * + * @generated + */ + EAttribute SA_SHARED_RESOURCE__IS_PREEMP = eINSTANCE.getSaSharedResource_IsPreemp(); + + /** + * The meta object literal for the 'Is Consum' attribute feature. + * + * + * @generated + */ + EAttribute SA_SHARED_RESOURCE__IS_CONSUM = eINSTANCE.getSaSharedResource_IsConsum(); + + /** + * The meta object literal for the 'Acquis T' attribute list feature. + * + * + * @generated + */ + EAttribute SA_SHARED_RESOURCE__ACQUIS_T = eINSTANCE.getSaSharedResource_AcquisT(); + + /** + * The meta object literal for the 'Release T' attribute list feature. + * + * + * @generated + */ + EAttribute SA_SHARED_RESOURCE__RELEASE_T = eINSTANCE.getSaSharedResource_ReleaseT(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaSchedObsImpl Sa Sched Obs}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaSchedObsImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SAMPackageImpl#getSaSchedObs() + * @generated + */ + EClass SA_SCHED_OBS = eINSTANCE.getSaSchedObs(); + + /** + * The meta object literal for the 'Suspentions' attribute list feature. + * + * + * @generated + */ + EAttribute SA_SCHED_OBS__SUSPENTIONS = eINSTANCE.getSaSchedObs_Suspentions(); + + /** + * The meta object literal for the 'Block T' attribute list feature. + * + * + * @generated + */ + EAttribute SA_SCHED_OBS__BLOCK_T = eINSTANCE.getSaSchedObs_BlockT(); + + /** + * The meta object literal for the 'Overlaps' attribute list feature. + * + * + * @generated + */ + EAttribute SA_SCHED_OBS__OVERLAPS = eINSTANCE.getSaSchedObs_Overlaps(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaCommHostImpl Sa Comm Host}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaCommHostImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SAMPackageImpl#getSaCommHost() + * @generated + */ + EClass SA_COMM_HOST = eINSTANCE.getSaCommHost(); + + /** + * The meta object literal for the 'Is Sched' attribute feature. + * + * + * @generated + */ + EAttribute SA_COMM_HOST__IS_SCHED = eINSTANCE.getSaCommHost_IsSched(); + + /** + * The meta object literal for the 'Sch Slack' attribute feature. + * + * + * @generated + */ + EAttribute SA_COMM_HOST__SCH_SLACK = eINSTANCE.getSaCommHost_SchSlack(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaExecHostImpl Sa Exec Host}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaExecHostImpl + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SAMPackageImpl#getSaExecHost() + * @generated + */ + EClass SA_EXEC_HOST = eINSTANCE.getSaExecHost(); + + /** + * The meta object literal for the 'Is Sched' attribute feature. + * + * + * @generated + */ + EAttribute SA_EXEC_HOST__IS_SCHED = eINSTANCE.getSaExecHost_IsSched(); + + /** + * The meta object literal for the 'Sch Slack' attribute feature. + * + * + * @generated + */ + EAttribute SA_EXEC_HOST__SCH_SLACK = eINSTANCE.getSaExecHost_SchSlack(); + + /** + * The meta object literal for the 'Sched Utiliz' attribute feature. + * + * + * @generated + */ + EAttribute SA_EXEC_HOST__SCHED_UTILIZ = eINSTANCE.getSaExecHost_SchedUtiliz(); + + /** + * The meta object literal for the 'IS Rswitch T' attribute feature. + * + * + * @generated + */ + EAttribute SA_EXEC_HOST__IS_RSWITCH_T = eINSTANCE.getSaExecHost_ISRswitchT(); + + /** + * The meta object literal for the 'IS Rprio Range' attribute feature. + * + * + * @generated + */ + EAttribute SA_EXEC_HOST__IS_RPRIO_RANGE = eINSTANCE.getSaExecHost_ISRprioRange(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.OptimallityCriterionKind Optimallity Criterion Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.OptimallityCriterionKind + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SAMPackageImpl#getOptimallityCriterionKind() + * @generated + */ + EEnum OPTIMALLITY_CRITERION_KIND = eINSTANCE.getOptimallityCriterionKind(); + + } + +} //SAMPackage diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/SaAnalysisContext.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/SaAnalysisContext.java new file mode 100644 index 00000000000..165d0ce2580 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/SaAnalysisContext.java @@ -0,0 +1,91 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.SAM; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaAnalysisContext; + +/** + * + * A representation of the model object 'Sa Analysis Context'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaAnalysisContext#getIsSched Is Sched}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaAnalysisContext#getOptCriterion Opt Criterion}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage#getSaAnalysisContext() + * @model + * @generated + */ +public interface SaAnalysisContext extends GaAnalysisContext { + /** + * Returns the value of the 'Is Sched' attribute. + * + *

+ * If the meaning of the 'Is Sched' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Is Sched' attribute. + * @see #setIsSched(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage#getSaAnalysisContext_IsSched() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Boolean" ordered="false" + * @generated + */ + String getIsSched(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaAnalysisContext#getIsSched Is Sched}' attribute. + * + * + * @param value the new value of the 'Is Sched' attribute. + * @see #getIsSched() + * @generated + */ + void setIsSched(String value); + + /** + * Returns the value of the 'Opt Criterion' attribute. + * The literals are from the enumeration {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.OptimallityCriterionKind}. + * + *

+ * If the meaning of the 'Opt Criterion' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Opt Criterion' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.OptimallityCriterionKind + * @see #setOptCriterion(OptimallityCriterionKind) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage#getSaAnalysisContext_OptCriterion() + * @model unique="false" ordered="false" + * @generated + */ + OptimallityCriterionKind getOptCriterion(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaAnalysisContext#getOptCriterion Opt Criterion}' attribute. + * + * + * @param value the new value of the 'Opt Criterion' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.OptimallityCriterionKind + * @see #getOptCriterion() + * @generated + */ + void setOptCriterion(OptimallityCriterionKind value); + +} // SaAnalysisContext diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/SaCommHost.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/SaCommHost.java new file mode 100644 index 00000000000..da0f2a27c68 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/SaCommHost.java @@ -0,0 +1,88 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.SAM; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaCommHost; + +/** + * + * A representation of the model object 'Sa Comm Host'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaCommHost#getIsSched Is Sched}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaCommHost#getSchSlack Sch Slack}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage#getSaCommHost() + * @model + * @generated + */ +public interface SaCommHost extends GaCommHost { + /** + * Returns the value of the 'Is Sched' attribute. + * + *

+ * If the meaning of the 'Is Sched' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Is Sched' attribute. + * @see #setIsSched(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage#getSaCommHost_IsSched() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Boolean" ordered="false" + * @generated + */ + String getIsSched(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaCommHost#getIsSched Is Sched}' attribute. + * + * + * @param value the new value of the 'Is Sched' attribute. + * @see #getIsSched() + * @generated + */ + void setIsSched(String value); + + /** + * Returns the value of the 'Sch Slack' attribute. + * + *

+ * If the meaning of the 'Sch Slack' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Sch Slack' attribute. + * @see #setSchSlack(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage#getSaCommHost_SchSlack() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Real" ordered="false" + * @generated + */ + String getSchSlack(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaCommHost#getSchSlack Sch Slack}' attribute. + * + * + * @param value the new value of the 'Sch Slack' attribute. + * @see #getSchSlack() + * @generated + */ + void setSchSlack(String value); + +} // SaCommHost diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/SaCommStep.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/SaCommStep.java new file mode 100644 index 00000000000..15650927d7e --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/SaCommStep.java @@ -0,0 +1,144 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.SAM; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaCommStep; + +import org.eclipse.uml2.uml.BehavioralFeature; + +/** + * + * A representation of the model object 'Sa Comm Step'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaCommStep#getDeadline Deadline}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaCommStep#getSpareCap Spare Cap}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaCommStep#getSchSlack Sch Slack}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaCommStep#getBase_BehavioralFeature Base Behavioral Feature}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage#getSaCommStep() + * @model + * @generated + */ +public interface SaCommStep extends GaCommStep { + /** + * Returns the value of the 'Deadline' attribute. + * + *

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

+ * + * @return the value of the 'Deadline' attribute. + * @see #setDeadline(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage#getSaCommStep_Deadline() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Duration" ordered="false" + * @generated + */ + String getDeadline(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaCommStep#getDeadline Deadline}' attribute. + * + * + * @param value the new value of the 'Deadline' attribute. + * @see #getDeadline() + * @generated + */ + void setDeadline(String value); + + /** + * Returns the value of the 'Spare Cap' attribute. + * + *

+ * If the meaning of the 'Spare Cap' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Spare Cap' attribute. + * @see #setSpareCap(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage#getSaCommStep_SpareCap() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Duration" ordered="false" + * @generated + */ + String getSpareCap(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaCommStep#getSpareCap Spare Cap}' attribute. + * + * + * @param value the new value of the 'Spare Cap' attribute. + * @see #getSpareCap() + * @generated + */ + void setSpareCap(String value); + + /** + * Returns the value of the 'Sch Slack' attribute. + * + *

+ * If the meaning of the 'Sch Slack' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Sch Slack' attribute. + * @see #setSchSlack(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage#getSaCommStep_SchSlack() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Real" ordered="false" + * @generated + */ + String getSchSlack(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaCommStep#getSchSlack Sch Slack}' attribute. + * + * + * @param value the new value of the 'Sch Slack' attribute. + * @see #getSchSlack() + * @generated + */ + void setSchSlack(String value); + + /** + * Returns the value of the 'Base Behavioral Feature' reference. + * + *

+ * If the meaning of the 'Base Behavioral Feature' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Behavioral Feature' reference. + * @see #setBase_BehavioralFeature(BehavioralFeature) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage#getSaCommStep_Base_BehavioralFeature() + * @model required="true" ordered="false" + * @generated + */ + BehavioralFeature getBase_BehavioralFeature(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaCommStep#getBase_BehavioralFeature Base Behavioral Feature}' reference. + * + * + * @param value the new value of the 'Base Behavioral Feature' reference. + * @see #getBase_BehavioralFeature() + * @generated + */ + void setBase_BehavioralFeature(BehavioralFeature value); + +} // SaCommStep diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/SaEndtoEndFlow.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/SaEndtoEndFlow.java new file mode 100644 index 00000000000..f52f41a0f8e --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/SaEndtoEndFlow.java @@ -0,0 +1,172 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.SAM; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaTimedObs; + +import org.eclipse.uml2.uml.NamedElement; + +/** + * + * A representation of the model object 'Sa Endto End Flow'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaEndtoEndFlow#getIsSched Is Sched}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaEndtoEndFlow#getSchSlack Sch Slack}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaEndtoEndFlow#getEnd2EndT End2 End T}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaEndtoEndFlow#getEnd2EndD End2 End D}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaEndtoEndFlow#getTiming Timing}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaEndtoEndFlow#getBase_NamedElement Base Named Element}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage#getSaEndtoEndFlow() + * @model + * @generated + */ +public interface SaEndtoEndFlow extends EObject { + /** + * Returns the value of the 'Is Sched' attribute. + * + *

+ * If the meaning of the 'Is Sched' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Is Sched' attribute. + * @see #setIsSched(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage#getSaEndtoEndFlow_IsSched() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Boolean" ordered="false" + * @generated + */ + String getIsSched(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaEndtoEndFlow#getIsSched Is Sched}' attribute. + * + * + * @param value the new value of the 'Is Sched' attribute. + * @see #getIsSched() + * @generated + */ + void setIsSched(String value); + + /** + * Returns the value of the 'Sch Slack' attribute. + * + *

+ * If the meaning of the 'Sch Slack' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Sch Slack' attribute. + * @see #setSchSlack(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage#getSaEndtoEndFlow_SchSlack() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Real" ordered="false" + * @generated + */ + String getSchSlack(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaEndtoEndFlow#getSchSlack Sch Slack}' attribute. + * + * + * @param value the new value of the 'Sch Slack' attribute. + * @see #getSchSlack() + * @generated + */ + void setSchSlack(String value); + + /** + * Returns the value of the 'End2 End T' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'End2 End T' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'End2 End T' attribute list. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage#getSaEndtoEndFlow_End2EndT() + * @model dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Duration" ordered="false" + * @generated + */ + EList getEnd2EndT(); + + /** + * Returns the value of the 'End2 End D' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'End2 End D' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'End2 End D' attribute list. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage#getSaEndtoEndFlow_End2EndD() + * @model dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Duration" ordered="false" + * @generated + */ + EList getEnd2EndD(); + + /** + * Returns the value of the 'Timing' reference list. + * The list contents are of type {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaTimedObs}. + * + *

+ * If the meaning of the 'Timing' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Timing' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage#getSaEndtoEndFlow_Timing() + * @model + * @generated + */ + EList getTiming(); + + /** + * Returns the value of the 'Base Named Element' reference. + * + *

+ * If the meaning of the 'Base Named Element' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Named Element' reference. + * @see #setBase_NamedElement(NamedElement) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage#getSaEndtoEndFlow_Base_NamedElement() + * @model required="true" ordered="false" + * @generated + */ + NamedElement getBase_NamedElement(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaEndtoEndFlow#getBase_NamedElement Base Named Element}' reference. + * + * + * @param value the new value of the 'Base Named Element' reference. + * @see #getBase_NamedElement() + * @generated + */ + void setBase_NamedElement(NamedElement value); + +} // SaEndtoEndFlow diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/SaExecHost.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/SaExecHost.java new file mode 100644 index 00000000000..a63af8dc4d1 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/SaExecHost.java @@ -0,0 +1,169 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.SAM; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaExecHost; + +/** + * + * A representation of the model object 'Sa Exec Host'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaExecHost#getIsSched Is Sched}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaExecHost#getSchSlack Sch Slack}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaExecHost#getSchedUtiliz Sched Utiliz}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaExecHost#getISRswitchT IS Rswitch T}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaExecHost#getISRprioRange IS Rprio Range}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage#getSaExecHost() + * @model + * @generated + */ +public interface SaExecHost extends GaExecHost { + /** + * Returns the value of the 'Is Sched' attribute. + * + *

+ * If the meaning of the 'Is Sched' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Is Sched' attribute. + * @see #setIsSched(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage#getSaExecHost_IsSched() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Boolean" ordered="false" + * @generated + */ + String getIsSched(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaExecHost#getIsSched Is Sched}' attribute. + * + * + * @param value the new value of the 'Is Sched' attribute. + * @see #getIsSched() + * @generated + */ + void setIsSched(String value); + + /** + * Returns the value of the 'Sch Slack' attribute. + * + *

+ * If the meaning of the 'Sch Slack' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Sch Slack' attribute. + * @see #setSchSlack(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage#getSaExecHost_SchSlack() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Real" ordered="false" + * @generated + */ + String getSchSlack(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaExecHost#getSchSlack Sch Slack}' attribute. + * + * + * @param value the new value of the 'Sch Slack' attribute. + * @see #getSchSlack() + * @generated + */ + void setSchSlack(String value); + + /** + * Returns the value of the 'Sched Utiliz' attribute. + * + *

+ * If the meaning of the 'Sched Utiliz' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Sched Utiliz' attribute. + * @see #setSchedUtiliz(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage#getSaExecHost_SchedUtiliz() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Real" ordered="false" + * @generated + */ + String getSchedUtiliz(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaExecHost#getSchedUtiliz Sched Utiliz}' attribute. + * + * + * @param value the new value of the 'Sched Utiliz' attribute. + * @see #getSchedUtiliz() + * @generated + */ + void setSchedUtiliz(String value); + + /** + * Returns the value of the 'IS Rswitch T' attribute. + * + *

+ * If the meaning of the 'IS Rswitch T' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'IS Rswitch T' attribute. + * @see #setISRswitchT(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage#getSaExecHost_ISRswitchT() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Duration" ordered="false" + * @generated + */ + String getISRswitchT(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaExecHost#getISRswitchT IS Rswitch T}' attribute. + * + * + * @param value the new value of the 'IS Rswitch T' attribute. + * @see #getISRswitchT() + * @generated + */ + void setISRswitchT(String value); + + /** + * Returns the value of the 'IS Rprio Range' attribute. + * + *

+ * If the meaning of the 'IS Rprio Range' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'IS Rprio Range' attribute. + * @see #setISRprioRange(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage#getSaExecHost_ISRprioRange() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.IntegerInterval" ordered="false" + * @generated + */ + String getISRprioRange(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaExecHost#getISRprioRange IS Rprio Range}' attribute. + * + * + * @param value the new value of the 'IS Rprio Range' attribute. + * @see #getISRprioRange() + * @generated + */ + void setISRprioRange(String value); + +} // SaExecHost diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/SaSchedObs.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/SaSchedObs.java new file mode 100644 index 00000000000..34087dcd916 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/SaSchedObs.java @@ -0,0 +1,87 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.SAM; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaTimedObs; + +/** + * + * A representation of the model object 'Sa Sched Obs'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaSchedObs#getSuspentions Suspentions}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaSchedObs#getBlockT Block T}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaSchedObs#getOverlaps Overlaps}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage#getSaSchedObs() + * @model + * @generated + */ +public interface SaSchedObs extends GaTimedObs { + /** + * Returns the value of the 'Suspentions' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Suspentions' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Suspentions' attribute list. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage#getSaSchedObs_Suspentions() + * @model dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Integer" ordered="false" + * @generated + */ + EList getSuspentions(); + + /** + * Returns the value of the 'Block T' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Block T' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Block T' attribute list. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage#getSaSchedObs_BlockT() + * @model dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Duration" ordered="false" + * @generated + */ + EList getBlockT(); + + /** + * Returns the value of the 'Overlaps' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Overlaps' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Overlaps' attribute list. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage#getSaSchedObs_Overlaps() + * @model dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Integer" ordered="false" + * @generated + */ + EList getOverlaps(); + +} // SaSchedObs diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/SaSharedResource.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/SaSharedResource.java new file mode 100644 index 00000000000..6a6a08df939 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/SaSharedResource.java @@ -0,0 +1,151 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.SAM; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.MutualExclusionResource; + +/** + * + * A representation of the model object 'Sa Shared Resource'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaSharedResource#getCapacity Capacity}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaSharedResource#getIsPreemp Is Preemp}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaSharedResource#getIsConsum Is Consum}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaSharedResource#getAcquisT Acquis T}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaSharedResource#getReleaseT Release T}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage#getSaSharedResource() + * @model + * @generated + */ +public interface SaSharedResource extends MutualExclusionResource { + /** + * Returns the value of the 'Capacity' attribute. + * + *

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

+ * + * @return the value of the 'Capacity' attribute. + * @see #setCapacity(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage#getSaSharedResource_Capacity() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Integer" ordered="false" + * @generated + */ + String getCapacity(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaSharedResource#getCapacity Capacity}' attribute. + * + * + * @param value the new value of the 'Capacity' attribute. + * @see #getCapacity() + * @generated + */ + void setCapacity(String value); + + /** + * Returns the value of the 'Is Preemp' attribute. + * + *

+ * If the meaning of the 'Is Preemp' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Is Preemp' attribute. + * @see #setIsPreemp(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage#getSaSharedResource_IsPreemp() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Boolean" ordered="false" + * @generated + */ + String getIsPreemp(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaSharedResource#getIsPreemp Is Preemp}' attribute. + * + * + * @param value the new value of the 'Is Preemp' attribute. + * @see #getIsPreemp() + * @generated + */ + void setIsPreemp(String value); + + /** + * Returns the value of the 'Is Consum' attribute. + * + *

+ * If the meaning of the 'Is Consum' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Is Consum' attribute. + * @see #setIsConsum(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage#getSaSharedResource_IsConsum() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Boolean" ordered="false" + * @generated + */ + String getIsConsum(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaSharedResource#getIsConsum Is Consum}' attribute. + * + * + * @param value the new value of the 'Is Consum' attribute. + * @see #getIsConsum() + * @generated + */ + void setIsConsum(String value); + + /** + * Returns the value of the 'Acquis T' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Acquis T' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Acquis T' attribute list. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage#getSaSharedResource_AcquisT() + * @model dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Duration" ordered="false" + * @generated + */ + EList getAcquisT(); + + /** + * Returns the value of the 'Release T' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Release T' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Release T' attribute list. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage#getSaSharedResource_ReleaseT() + * @model dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Duration" ordered="false" + * @generated + */ + EList getReleaseT(); + +} // SaSharedResource diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/SaStep.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/SaStep.java new file mode 100644 index 00000000000..cf70b5541d8 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/SaStep.java @@ -0,0 +1,298 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.SAM; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep; + +import org.eclipse.uml2.uml.BehavioralFeature; + +/** + * + * A representation of the model object 'Sa Step'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaStep#getBase_BehavioralFeature Base Behavioral Feature}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaStep#getDeadline Deadline}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaStep#getSpareCap Spare Cap}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaStep#getSchSlack Sch Slack}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaStep#getPreemptT Preempt T}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaStep#getReadyT Ready T}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaStep#getNonpreemptionBlocking Nonpreemption Blocking}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaStep#getSharedRes Shared Res}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaStep#getSelfSuspensionBlocking Self Suspension Blocking}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaStep#getNumberSelfSuspensions Number Self Suspensions}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage#getSaStep() + * @model + * @generated + */ +public interface SaStep extends GaStep { + /** + * Returns the value of the 'Base Behavioral Feature' reference. + * + *

+ * If the meaning of the 'Base Behavioral Feature' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Behavioral Feature' reference. + * @see #setBase_BehavioralFeature(BehavioralFeature) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage#getSaStep_Base_BehavioralFeature() + * @model required="true" ordered="false" + * @generated + */ + BehavioralFeature getBase_BehavioralFeature(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaStep#getBase_BehavioralFeature Base Behavioral Feature}' reference. + * + * + * @param value the new value of the 'Base Behavioral Feature' reference. + * @see #getBase_BehavioralFeature() + * @generated + */ + void setBase_BehavioralFeature(BehavioralFeature value); + + /** + * Returns the value of the 'Deadline' attribute. + * + *

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

+ * + * @return the value of the 'Deadline' attribute. + * @see #setDeadline(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage#getSaStep_Deadline() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Duration" ordered="false" + * @generated + */ + String getDeadline(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaStep#getDeadline Deadline}' attribute. + * + * + * @param value the new value of the 'Deadline' attribute. + * @see #getDeadline() + * @generated + */ + void setDeadline(String value); + + /** + * Returns the value of the 'Spare Cap' attribute. + * + *

+ * If the meaning of the 'Spare Cap' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Spare Cap' attribute. + * @see #setSpareCap(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage#getSaStep_SpareCap() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Duration" ordered="false" + * @generated + */ + String getSpareCap(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaStep#getSpareCap Spare Cap}' attribute. + * + * + * @param value the new value of the 'Spare Cap' attribute. + * @see #getSpareCap() + * @generated + */ + void setSpareCap(String value); + + /** + * Returns the value of the 'Sch Slack' attribute. + * + *

+ * If the meaning of the 'Sch Slack' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Sch Slack' attribute. + * @see #setSchSlack(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage#getSaStep_SchSlack() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Real" ordered="false" + * @generated + */ + String getSchSlack(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaStep#getSchSlack Sch Slack}' attribute. + * + * + * @param value the new value of the 'Sch Slack' attribute. + * @see #getSchSlack() + * @generated + */ + void setSchSlack(String value); + + /** + * Returns the value of the 'Preempt T' attribute. + * + *

+ * If the meaning of the 'Preempt T' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Preempt T' attribute. + * @see #setPreemptT(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage#getSaStep_PreemptT() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Duration" ordered="false" + * @generated + */ + String getPreemptT(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaStep#getPreemptT Preempt T}' attribute. + * + * + * @param value the new value of the 'Preempt T' attribute. + * @see #getPreemptT() + * @generated + */ + void setPreemptT(String value); + + /** + * Returns the value of the 'Ready T' attribute. + * + *

+ * If the meaning of the 'Ready T' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Ready T' attribute. + * @see #setReadyT(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage#getSaStep_ReadyT() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Duration" ordered="false" + * @generated + */ + String getReadyT(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaStep#getReadyT Ready T}' attribute. + * + * + * @param value the new value of the 'Ready T' attribute. + * @see #getReadyT() + * @generated + */ + void setReadyT(String value); + + /** + * Returns the value of the 'Nonpreemption Blocking' attribute. + * + *

+ * If the meaning of the 'Nonpreemption Blocking' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Nonpreemption Blocking' attribute. + * @see #setNonpreemptionBlocking(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage#getSaStep_NonpreemptionBlocking() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Duration" ordered="false" + * @generated + */ + String getNonpreemptionBlocking(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaStep#getNonpreemptionBlocking Nonpreemption Blocking}' attribute. + * + * + * @param value the new value of the 'Nonpreemption Blocking' attribute. + * @see #getNonpreemptionBlocking() + * @generated + */ + void setNonpreemptionBlocking(String value); + + /** + * Returns the value of the 'Shared Res' reference list. + * The list contents are of type {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaSharedResource}. + * + *

+ * If the meaning of the 'Shared Res' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Shared Res' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage#getSaStep_SharedRes() + * @model ordered="false" + * @generated + */ + EList getSharedRes(); + + /** + * Returns the value of the 'Self Suspension Blocking' attribute. + * + *

+ * If the meaning of the 'Self Suspension Blocking' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Self Suspension Blocking' attribute. + * @see #setSelfSuspensionBlocking(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage#getSaStep_SelfSuspensionBlocking() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Duration" ordered="false" + * @generated + */ + String getSelfSuspensionBlocking(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaStep#getSelfSuspensionBlocking Self Suspension Blocking}' attribute. + * + * + * @param value the new value of the 'Self Suspension Blocking' attribute. + * @see #getSelfSuspensionBlocking() + * @generated + */ + void setSelfSuspensionBlocking(String value); + + /** + * Returns the value of the 'Number Self Suspensions' attribute. + * + *

+ * If the meaning of the 'Number Self Suspensions' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Number Self Suspensions' attribute. + * @see #setNumberSelfSuspensions(String) + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage#getSaStep_NumberSelfSuspensions() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Integer" ordered="false" + * @generated + */ + String getNumberSelfSuspensions(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaStep#getNumberSelfSuspensions Number Self Suspensions}' attribute. + * + * + * @param value the new value of the 'Number Self Suspensions' attribute. + * @see #getNumberSelfSuspensions() + * @generated + */ + void setNumberSelfSuspensions(String value); + +} // SaStep diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/impl/SAMFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/impl/SAMFactoryImpl.java new file mode 100644 index 00000000000..544772820f8 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/impl/SAMFactoryImpl.java @@ -0,0 +1,234 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.SAM.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.MARTE_AnalysisModel.SAM.*; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class SAMFactoryImpl extends EFactoryImpl implements SAMFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static SAMFactory init() { + try { + SAMFactory theSAMFactory = (SAMFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/SAM/1"); + if (theSAMFactory != null) { + return theSAMFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new SAMFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public SAMFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case SAMPackage.SA_ANALYSIS_CONTEXT: return createSaAnalysisContext(); + case SAMPackage.SA_ENDTO_END_FLOW: return createSaEndtoEndFlow(); + case SAMPackage.SA_COMM_STEP: return createSaCommStep(); + case SAMPackage.SA_STEP: return createSaStep(); + case SAMPackage.SA_SHARED_RESOURCE: return createSaSharedResource(); + case SAMPackage.SA_SCHED_OBS: return createSaSchedObs(); + case SAMPackage.SA_COMM_HOST: return createSaCommHost(); + case SAMPackage.SA_EXEC_HOST: return createSaExecHost(); + 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 SAMPackage.OPTIMALLITY_CRITERION_KIND: + return createOptimallityCriterionKindFromString(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 SAMPackage.OPTIMALLITY_CRITERION_KIND: + return convertOptimallityCriterionKindToString(eDataType, instanceValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public SaAnalysisContext createSaAnalysisContext() { + SaAnalysisContextImpl saAnalysisContext = new SaAnalysisContextImpl(); + return saAnalysisContext; + } + + /** + * + * + * @generated + */ + public SaEndtoEndFlow createSaEndtoEndFlow() { + SaEndtoEndFlowImpl saEndtoEndFlow = new SaEndtoEndFlowImpl(); + return saEndtoEndFlow; + } + + /** + * + * + * @generated + */ + public SaCommStep createSaCommStep() { + SaCommStepImpl saCommStep = new SaCommStepImpl(); + return saCommStep; + } + + /** + * + * + * @generated + */ + public SaStep createSaStep() { + SaStepImpl saStep = new SaStepImpl(); + return saStep; + } + + /** + * + * + * @generated + */ + public SaSharedResource createSaSharedResource() { + SaSharedResourceImpl saSharedResource = new SaSharedResourceImpl(); + return saSharedResource; + } + + /** + * + * + * @generated + */ + public SaSchedObs createSaSchedObs() { + SaSchedObsImpl saSchedObs = new SaSchedObsImpl(); + return saSchedObs; + } + + /** + * + * + * @generated + */ + public SaCommHost createSaCommHost() { + SaCommHostImpl saCommHost = new SaCommHostImpl(); + return saCommHost; + } + + /** + * + * + * @generated + */ + public SaExecHost createSaExecHost() { + SaExecHostImpl saExecHost = new SaExecHostImpl(); + return saExecHost; + } + + /** + * + * + * @generated + */ + public OptimallityCriterionKind createOptimallityCriterionKindFromString(EDataType eDataType, String initialValue) { + OptimallityCriterionKind result = OptimallityCriterionKind.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertOptimallityCriterionKindToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public SAMPackage getSAMPackage() { + return (SAMPackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static SAMPackage getPackage() { + return SAMPackage.eINSTANCE; + } + +} //SAMFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/impl/SAMPackageImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/impl/SAMPackageImpl.java new file mode 100644 index 00000000000..760c83b9eeb --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/impl/SAMPackageImpl.java @@ -0,0 +1,1046 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.SAM.impl; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +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.OptimallityCriterionKind; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMFactory; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaAnalysisContext; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaCommHost; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaCommStep; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaEndtoEndFlow; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaExecHost; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaSchedObs; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaSharedResource; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaStep; + +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.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 SAMPackageImpl extends EPackageImpl implements SAMPackage { + /** + * + * + * @generated + */ + private EClass saAnalysisContextEClass = null; + + /** + * + * + * @generated + */ + private EClass saEndtoEndFlowEClass = null; + + /** + * + * + * @generated + */ + private EClass saCommStepEClass = null; + + /** + * + * + * @generated + */ + private EClass saStepEClass = null; + + /** + * + * + * @generated + */ + private EClass saSharedResourceEClass = null; + + /** + * + * + * @generated + */ + private EClass saSchedObsEClass = null; + + /** + * + * + * @generated + */ + private EClass saCommHostEClass = null; + + /** + * + * + * @generated + */ + private EClass saExecHostEClass = null; + + /** + * + * + * @generated + */ + private EEnum optimallityCriterionKindEEnum = 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.MARTE_AnalysisModel.SAM.SAMPackage#eNS_URI + * @see #init() + * @generated + */ + private SAMPackageImpl() { + super(eNS_URI, SAMFactory.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 SAMPackage#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 SAMPackage init() { + if (isInited) return (SAMPackage)EPackage.Registry.INSTANCE.getEPackage(SAMPackage.eNS_URI); + + // Obtain or create and register package + SAMPackageImpl theSAMPackage = (SAMPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof SAMPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new SAMPackageImpl()); + + 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); + 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); + 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 + theSAMPackage.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(); + thePAMPackage.createPackageContents(); + theMeasurementUnitsPackage.createPackageContents(); + theGRM_BasicTypesPackage.createPackageContents(); + theMARTE_DataTypesPackage.createPackageContents(); + theBasicNFP_TypesPackage.createPackageContents(); + theTimeTypesLibraryPackage.createPackageContents(); + theTimeLibraryPackage.createPackageContents(); + theRS_LibraryPackage.createPackageContents(); + theMARTE_PrimitivesTypesPackage.createPackageContents(); + + // Initialize created meta-data + theSAMPackage.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(); + thePAMPackage.initializePackageContents(); + theMeasurementUnitsPackage.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 + theSAMPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(SAMPackage.eNS_URI, theSAMPackage); + return theSAMPackage; + } + + /** + * + * + * @generated + */ + public EClass getSaAnalysisContext() { + return saAnalysisContextEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSaAnalysisContext_IsSched() { + return (EAttribute)saAnalysisContextEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getSaAnalysisContext_OptCriterion() { + return (EAttribute)saAnalysisContextEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getSaEndtoEndFlow() { + return saEndtoEndFlowEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSaEndtoEndFlow_IsSched() { + return (EAttribute)saEndtoEndFlowEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getSaEndtoEndFlow_SchSlack() { + return (EAttribute)saEndtoEndFlowEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getSaEndtoEndFlow_End2EndT() { + return (EAttribute)saEndtoEndFlowEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getSaEndtoEndFlow_End2EndD() { + return (EAttribute)saEndtoEndFlowEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EReference getSaEndtoEndFlow_Timing() { + return (EReference)saEndtoEndFlowEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EReference getSaEndtoEndFlow_Base_NamedElement() { + return (EReference)saEndtoEndFlowEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EClass getSaCommStep() { + return saCommStepEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSaCommStep_Deadline() { + return (EAttribute)saCommStepEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getSaCommStep_SpareCap() { + return (EAttribute)saCommStepEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getSaCommStep_SchSlack() { + return (EAttribute)saCommStepEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getSaCommStep_Base_BehavioralFeature() { + return (EReference)saCommStepEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EClass getSaStep() { + return saStepEClass; + } + + /** + * + * + * @generated + */ + public EReference getSaStep_Base_BehavioralFeature() { + return (EReference)saStepEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getSaStep_Deadline() { + return (EAttribute)saStepEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getSaStep_SpareCap() { + return (EAttribute)saStepEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getSaStep_SchSlack() { + return (EAttribute)saStepEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getSaStep_PreemptT() { + return (EAttribute)saStepEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getSaStep_ReadyT() { + return (EAttribute)saStepEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getSaStep_NonpreemptionBlocking() { + return (EAttribute)saStepEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EReference getSaStep_SharedRes() { + return (EReference)saStepEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EAttribute getSaStep_SelfSuspensionBlocking() { + return (EAttribute)saStepEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + public EAttribute getSaStep_NumberSelfSuspensions() { + return (EAttribute)saStepEClass.getEStructuralFeatures().get(9); + } + + /** + * + * + * @generated + */ + public EClass getSaSharedResource() { + return saSharedResourceEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSaSharedResource_Capacity() { + return (EAttribute)saSharedResourceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getSaSharedResource_IsPreemp() { + return (EAttribute)saSharedResourceEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getSaSharedResource_IsConsum() { + return (EAttribute)saSharedResourceEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getSaSharedResource_AcquisT() { + return (EAttribute)saSharedResourceEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getSaSharedResource_ReleaseT() { + return (EAttribute)saSharedResourceEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EClass getSaSchedObs() { + return saSchedObsEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSaSchedObs_Suspentions() { + return (EAttribute)saSchedObsEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getSaSchedObs_BlockT() { + return (EAttribute)saSchedObsEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getSaSchedObs_Overlaps() { + return (EAttribute)saSchedObsEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getSaCommHost() { + return saCommHostEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSaCommHost_IsSched() { + return (EAttribute)saCommHostEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getSaCommHost_SchSlack() { + return (EAttribute)saCommHostEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getSaExecHost() { + return saExecHostEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSaExecHost_IsSched() { + return (EAttribute)saExecHostEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getSaExecHost_SchSlack() { + return (EAttribute)saExecHostEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getSaExecHost_SchedUtiliz() { + return (EAttribute)saExecHostEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getSaExecHost_ISRswitchT() { + return (EAttribute)saExecHostEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getSaExecHost_ISRprioRange() { + return (EAttribute)saExecHostEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EEnum getOptimallityCriterionKind() { + return optimallityCriterionKindEEnum; + } + + /** + * + * + * @generated + */ + public SAMFactory getSAMFactory() { + return (SAMFactory)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 + saAnalysisContextEClass = createEClass(SA_ANALYSIS_CONTEXT); + createEAttribute(saAnalysisContextEClass, SA_ANALYSIS_CONTEXT__IS_SCHED); + createEAttribute(saAnalysisContextEClass, SA_ANALYSIS_CONTEXT__OPT_CRITERION); + + saEndtoEndFlowEClass = createEClass(SA_ENDTO_END_FLOW); + createEAttribute(saEndtoEndFlowEClass, SA_ENDTO_END_FLOW__IS_SCHED); + createEAttribute(saEndtoEndFlowEClass, SA_ENDTO_END_FLOW__SCH_SLACK); + createEAttribute(saEndtoEndFlowEClass, SA_ENDTO_END_FLOW__END2_END_T); + createEAttribute(saEndtoEndFlowEClass, SA_ENDTO_END_FLOW__END2_END_D); + createEReference(saEndtoEndFlowEClass, SA_ENDTO_END_FLOW__TIMING); + createEReference(saEndtoEndFlowEClass, SA_ENDTO_END_FLOW__BASE_NAMED_ELEMENT); + + saCommStepEClass = createEClass(SA_COMM_STEP); + createEAttribute(saCommStepEClass, SA_COMM_STEP__DEADLINE); + createEAttribute(saCommStepEClass, SA_COMM_STEP__SPARE_CAP); + createEAttribute(saCommStepEClass, SA_COMM_STEP__SCH_SLACK); + createEReference(saCommStepEClass, SA_COMM_STEP__BASE_BEHAVIORAL_FEATURE); + + saStepEClass = createEClass(SA_STEP); + createEReference(saStepEClass, SA_STEP__BASE_BEHAVIORAL_FEATURE); + createEAttribute(saStepEClass, SA_STEP__DEADLINE); + createEAttribute(saStepEClass, SA_STEP__SPARE_CAP); + createEAttribute(saStepEClass, SA_STEP__SCH_SLACK); + createEAttribute(saStepEClass, SA_STEP__PREEMPT_T); + createEAttribute(saStepEClass, SA_STEP__READY_T); + createEAttribute(saStepEClass, SA_STEP__NONPREEMPTION_BLOCKING); + createEReference(saStepEClass, SA_STEP__SHARED_RES); + createEAttribute(saStepEClass, SA_STEP__SELF_SUSPENSION_BLOCKING); + createEAttribute(saStepEClass, SA_STEP__NUMBER_SELF_SUSPENSIONS); + + saSharedResourceEClass = createEClass(SA_SHARED_RESOURCE); + createEAttribute(saSharedResourceEClass, SA_SHARED_RESOURCE__CAPACITY); + createEAttribute(saSharedResourceEClass, SA_SHARED_RESOURCE__IS_PREEMP); + createEAttribute(saSharedResourceEClass, SA_SHARED_RESOURCE__IS_CONSUM); + createEAttribute(saSharedResourceEClass, SA_SHARED_RESOURCE__ACQUIS_T); + createEAttribute(saSharedResourceEClass, SA_SHARED_RESOURCE__RELEASE_T); + + saSchedObsEClass = createEClass(SA_SCHED_OBS); + createEAttribute(saSchedObsEClass, SA_SCHED_OBS__SUSPENTIONS); + createEAttribute(saSchedObsEClass, SA_SCHED_OBS__BLOCK_T); + createEAttribute(saSchedObsEClass, SA_SCHED_OBS__OVERLAPS); + + saCommHostEClass = createEClass(SA_COMM_HOST); + createEAttribute(saCommHostEClass, SA_COMM_HOST__IS_SCHED); + createEAttribute(saCommHostEClass, SA_COMM_HOST__SCH_SLACK); + + saExecHostEClass = createEClass(SA_EXEC_HOST); + createEAttribute(saExecHostEClass, SA_EXEC_HOST__IS_SCHED); + createEAttribute(saExecHostEClass, SA_EXEC_HOST__SCH_SLACK); + createEAttribute(saExecHostEClass, SA_EXEC_HOST__SCHED_UTILIZ); + createEAttribute(saExecHostEClass, SA_EXEC_HOST__IS_RSWITCH_T); + createEAttribute(saExecHostEClass, SA_EXEC_HOST__IS_RPRIO_RANGE); + + // Create enums + optimallityCriterionKindEEnum = createEEnum(OPTIMALLITY_CRITERION_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); + + // Obtain other dependent packages + GQAMPackage theGQAMPackage = (GQAMPackage)EPackage.Registry.INSTANCE.getEPackage(GQAMPackage.eNS_URI); + BasicNFP_TypesPackage theBasicNFP_TypesPackage = (BasicNFP_TypesPackage)EPackage.Registry.INSTANCE.getEPackage(BasicNFP_TypesPackage.eNS_URI); + UMLPackage theUMLPackage = (UMLPackage)EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI); + GRMPackage theGRMPackage = (GRMPackage)EPackage.Registry.INSTANCE.getEPackage(GRMPackage.eNS_URI); + MARTE_DataTypesPackage theMARTE_DataTypesPackage = (MARTE_DataTypesPackage)EPackage.Registry.INSTANCE.getEPackage(MARTE_DataTypesPackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + saAnalysisContextEClass.getESuperTypes().add(theGQAMPackage.getGaAnalysisContext()); + saCommStepEClass.getESuperTypes().add(theGQAMPackage.getGaCommStep()); + saStepEClass.getESuperTypes().add(theGQAMPackage.getGaStep()); + saSharedResourceEClass.getESuperTypes().add(theGRMPackage.getMutualExclusionResource()); + saSchedObsEClass.getESuperTypes().add(theGQAMPackage.getGaTimedObs()); + saCommHostEClass.getESuperTypes().add(theGQAMPackage.getGaCommHost()); + saExecHostEClass.getESuperTypes().add(theGQAMPackage.getGaExecHost()); + + // Initialize classes and features; add operations and parameters + initEClass(saAnalysisContextEClass, SaAnalysisContext.class, "SaAnalysisContext", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSaAnalysisContext_IsSched(), theBasicNFP_TypesPackage.getNFP_Boolean(), "isSched", null, 0, 1, SaAnalysisContext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getSaAnalysisContext_OptCriterion(), this.getOptimallityCriterionKind(), "optCriterion", null, 0, 1, SaAnalysisContext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(saEndtoEndFlowEClass, SaEndtoEndFlow.class, "SaEndtoEndFlow", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSaEndtoEndFlow_IsSched(), theBasicNFP_TypesPackage.getNFP_Boolean(), "isSched", null, 0, 1, SaEndtoEndFlow.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getSaEndtoEndFlow_SchSlack(), theBasicNFP_TypesPackage.getNFP_Real(), "schSlack", null, 0, 1, SaEndtoEndFlow.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getSaEndtoEndFlow_End2EndT(), theBasicNFP_TypesPackage.getNFP_Duration(), "end2EndT", null, 0, -1, SaEndtoEndFlow.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getSaEndtoEndFlow_End2EndD(), theBasicNFP_TypesPackage.getNFP_Duration(), "end2EndD", null, 0, -1, SaEndtoEndFlow.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getSaEndtoEndFlow_Timing(), theGQAMPackage.getGaTimedObs(), null, "timing", null, 0, -1, SaEndtoEndFlow.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSaEndtoEndFlow_Base_NamedElement(), theUMLPackage.getNamedElement(), null, "base_NamedElement", null, 1, 1, SaEndtoEndFlow.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(saCommStepEClass, SaCommStep.class, "SaCommStep", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSaCommStep_Deadline(), theBasicNFP_TypesPackage.getNFP_Duration(), "deadline", null, 0, 1, SaCommStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getSaCommStep_SpareCap(), theBasicNFP_TypesPackage.getNFP_Duration(), "spareCap", null, 0, 1, SaCommStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getSaCommStep_SchSlack(), theBasicNFP_TypesPackage.getNFP_Real(), "schSlack", null, 0, 1, SaCommStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getSaCommStep_Base_BehavioralFeature(), theUMLPackage.getBehavioralFeature(), null, "base_BehavioralFeature", null, 1, 1, SaCommStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(saStepEClass, SaStep.class, "SaStep", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSaStep_Base_BehavioralFeature(), theUMLPackage.getBehavioralFeature(), null, "base_BehavioralFeature", null, 1, 1, SaStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getSaStep_Deadline(), theBasicNFP_TypesPackage.getNFP_Duration(), "deadline", null, 0, 1, SaStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getSaStep_SpareCap(), theBasicNFP_TypesPackage.getNFP_Duration(), "spareCap", null, 0, 1, SaStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getSaStep_SchSlack(), theBasicNFP_TypesPackage.getNFP_Real(), "schSlack", null, 0, 1, SaStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getSaStep_PreemptT(), theBasicNFP_TypesPackage.getNFP_Duration(), "preemptT", null, 0, 1, SaStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getSaStep_ReadyT(), theBasicNFP_TypesPackage.getNFP_Duration(), "readyT", null, 0, 1, SaStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getSaStep_NonpreemptionBlocking(), theBasicNFP_TypesPackage.getNFP_Duration(), "nonpreemptionBlocking", null, 0, 1, SaStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getSaStep_SharedRes(), this.getSaSharedResource(), null, "sharedRes", null, 0, -1, SaStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getSaStep_SelfSuspensionBlocking(), theBasicNFP_TypesPackage.getNFP_Duration(), "selfSuspensionBlocking", null, 0, 1, SaStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getSaStep_NumberSelfSuspensions(), theBasicNFP_TypesPackage.getNFP_Integer(), "numberSelfSuspensions", null, 0, 1, SaStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(saSharedResourceEClass, SaSharedResource.class, "SaSharedResource", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSaSharedResource_Capacity(), theBasicNFP_TypesPackage.getNFP_Integer(), "capacity", null, 0, 1, SaSharedResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getSaSharedResource_IsPreemp(), theBasicNFP_TypesPackage.getNFP_Boolean(), "isPreemp", null, 0, 1, SaSharedResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getSaSharedResource_IsConsum(), theBasicNFP_TypesPackage.getNFP_Boolean(), "isConsum", null, 0, 1, SaSharedResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getSaSharedResource_AcquisT(), theBasicNFP_TypesPackage.getNFP_Duration(), "acquisT", null, 0, -1, SaSharedResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getSaSharedResource_ReleaseT(), theBasicNFP_TypesPackage.getNFP_Duration(), "releaseT", null, 0, -1, SaSharedResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(saSchedObsEClass, SaSchedObs.class, "SaSchedObs", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSaSchedObs_Suspentions(), theBasicNFP_TypesPackage.getNFP_Integer(), "suspentions", null, 0, -1, SaSchedObs.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getSaSchedObs_BlockT(), theBasicNFP_TypesPackage.getNFP_Duration(), "blockT", null, 0, -1, SaSchedObs.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getSaSchedObs_Overlaps(), theBasicNFP_TypesPackage.getNFP_Integer(), "overlaps", null, 0, -1, SaSchedObs.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(saCommHostEClass, SaCommHost.class, "SaCommHost", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSaCommHost_IsSched(), theBasicNFP_TypesPackage.getNFP_Boolean(), "isSched", null, 0, 1, SaCommHost.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getSaCommHost_SchSlack(), theBasicNFP_TypesPackage.getNFP_Real(), "schSlack", null, 0, 1, SaCommHost.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(saExecHostEClass, SaExecHost.class, "SaExecHost", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSaExecHost_IsSched(), theBasicNFP_TypesPackage.getNFP_Boolean(), "isSched", null, 0, 1, SaExecHost.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getSaExecHost_SchSlack(), theBasicNFP_TypesPackage.getNFP_Real(), "schSlack", null, 0, 1, SaExecHost.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getSaExecHost_SchedUtiliz(), theBasicNFP_TypesPackage.getNFP_Real(), "schedUtiliz", null, 0, 1, SaExecHost.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getSaExecHost_ISRswitchT(), theBasicNFP_TypesPackage.getNFP_Duration(), "ISRswitchT", null, 0, 1, SaExecHost.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getSaExecHost_ISRprioRange(), theMARTE_DataTypesPackage.getIntegerInterval(), "ISRprioRange", null, 0, 1, SaExecHost.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + // Initialize enums and add enum literals + initEEnum(optimallityCriterionKindEEnum, OptimallityCriterionKind.class, "OptimallityCriterionKind"); + addEEnumLiteral(optimallityCriterionKindEEnum, OptimallityCriterionKind.MEET_HARD_DEADLINES); + addEEnumLiteral(optimallityCriterionKindEEnum, OptimallityCriterionKind.MINIMIZE_MISSED_DEADLINES); + addEEnumLiteral(optimallityCriterionKindEEnum, OptimallityCriterionKind.MINIMIZED_MEAN_TARDINESS); + addEEnumLiteral(optimallityCriterionKindEEnum, OptimallityCriterionKind.UNDEF); + addEEnumLiteral(optimallityCriterionKindEEnum, OptimallityCriterionKind.OTHER); + + // Create annotations + // redefines + createRedefinesAnnotations(); + } + + /** + * Initializes the annotations for redefines. + * + * + * @generated + */ + protected void createRedefinesAnnotations() { + String source = "redefines"; + addAnnotation + (getSaStep_SharedRes(), + source, + new String[] { + }, + new URI[] { + URI.createURI(MARTEPackage.eNS_URI).appendFragment("//MARTE_Foundations/GRM/ResourceUsage/usedResources") + }); + } + +} //SAMPackageImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/impl/SaAnalysisContextImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/impl/SaAnalysisContextImpl.java new file mode 100644 index 00000000000..4be5d9397e0 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/impl/SaAnalysisContextImpl.java @@ -0,0 +1,230 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.SAM.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaAnalysisContextImpl; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.OptimallityCriterionKind; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaAnalysisContext; + +/** + * + * An implementation of the model object 'Sa Analysis Context'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaAnalysisContextImpl#getIsSched Is Sched}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaAnalysisContextImpl#getOptCriterion Opt Criterion}
  • + *
+ *

+ * + * @generated + */ +public class SaAnalysisContextImpl extends GaAnalysisContextImpl implements SaAnalysisContext { + /** + * The default value of the '{@link #getIsSched() Is Sched}' attribute. + * + * + * @see #getIsSched() + * @generated + * @ordered + */ + protected static final String IS_SCHED_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIsSched() Is Sched}' attribute. + * + * + * @see #getIsSched() + * @generated + * @ordered + */ + protected String isSched = IS_SCHED_EDEFAULT; + + /** + * The default value of the '{@link #getOptCriterion() Opt Criterion}' attribute. + * + * + * @see #getOptCriterion() + * @generated + * @ordered + */ + protected static final OptimallityCriterionKind OPT_CRITERION_EDEFAULT = OptimallityCriterionKind.MEET_HARD_DEADLINES; + + /** + * The cached value of the '{@link #getOptCriterion() Opt Criterion}' attribute. + * + * + * @see #getOptCriterion() + * @generated + * @ordered + */ + protected OptimallityCriterionKind optCriterion = OPT_CRITERION_EDEFAULT; + + /** + * + * + * @generated + */ + protected SaAnalysisContextImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SAMPackage.Literals.SA_ANALYSIS_CONTEXT; + } + + /** + * + * + * @generated + */ + public String getIsSched() { + return isSched; + } + + /** + * + * + * @generated + */ + public void setIsSched(String newIsSched) { + String oldIsSched = isSched; + isSched = newIsSched; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SAMPackage.SA_ANALYSIS_CONTEXT__IS_SCHED, oldIsSched, isSched)); + } + + /** + * + * + * @generated + */ + public OptimallityCriterionKind getOptCriterion() { + return optCriterion; + } + + /** + * + * + * @generated + */ + public void setOptCriterion(OptimallityCriterionKind newOptCriterion) { + OptimallityCriterionKind oldOptCriterion = optCriterion; + optCriterion = newOptCriterion == null ? OPT_CRITERION_EDEFAULT : newOptCriterion; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SAMPackage.SA_ANALYSIS_CONTEXT__OPT_CRITERION, oldOptCriterion, optCriterion)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SAMPackage.SA_ANALYSIS_CONTEXT__IS_SCHED: + return getIsSched(); + case SAMPackage.SA_ANALYSIS_CONTEXT__OPT_CRITERION: + return getOptCriterion(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SAMPackage.SA_ANALYSIS_CONTEXT__IS_SCHED: + setIsSched((String)newValue); + return; + case SAMPackage.SA_ANALYSIS_CONTEXT__OPT_CRITERION: + setOptCriterion((OptimallityCriterionKind)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SAMPackage.SA_ANALYSIS_CONTEXT__IS_SCHED: + setIsSched(IS_SCHED_EDEFAULT); + return; + case SAMPackage.SA_ANALYSIS_CONTEXT__OPT_CRITERION: + setOptCriterion(OPT_CRITERION_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SAMPackage.SA_ANALYSIS_CONTEXT__IS_SCHED: + return IS_SCHED_EDEFAULT == null ? isSched != null : !IS_SCHED_EDEFAULT.equals(isSched); + case SAMPackage.SA_ANALYSIS_CONTEXT__OPT_CRITERION: + return optCriterion != OPT_CRITERION_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (isSched: "); + result.append(isSched); + result.append(", optCriterion: "); + result.append(optCriterion); + result.append(')'); + return result.toString(); + } + +} //SaAnalysisContextImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/impl/SaCommHostImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/impl/SaCommHostImpl.java new file mode 100644 index 00000000000..d974861ee2c --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/impl/SaCommHostImpl.java @@ -0,0 +1,229 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.SAM.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaCommHostImpl; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaCommHost; + +/** + * + * An implementation of the model object 'Sa Comm Host'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaCommHostImpl#getIsSched Is Sched}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaCommHostImpl#getSchSlack Sch Slack}
  • + *
+ *

+ * + * @generated + */ +public class SaCommHostImpl extends GaCommHostImpl implements SaCommHost { + /** + * The default value of the '{@link #getIsSched() Is Sched}' attribute. + * + * + * @see #getIsSched() + * @generated + * @ordered + */ + protected static final String IS_SCHED_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIsSched() Is Sched}' attribute. + * + * + * @see #getIsSched() + * @generated + * @ordered + */ + protected String isSched = IS_SCHED_EDEFAULT; + + /** + * The default value of the '{@link #getSchSlack() Sch Slack}' attribute. + * + * + * @see #getSchSlack() + * @generated + * @ordered + */ + protected static final String SCH_SLACK_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSchSlack() Sch Slack}' attribute. + * + * + * @see #getSchSlack() + * @generated + * @ordered + */ + protected String schSlack = SCH_SLACK_EDEFAULT; + + /** + * + * + * @generated + */ + protected SaCommHostImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SAMPackage.Literals.SA_COMM_HOST; + } + + /** + * + * + * @generated + */ + public String getIsSched() { + return isSched; + } + + /** + * + * + * @generated + */ + public void setIsSched(String newIsSched) { + String oldIsSched = isSched; + isSched = newIsSched; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SAMPackage.SA_COMM_HOST__IS_SCHED, oldIsSched, isSched)); + } + + /** + * + * + * @generated + */ + public String getSchSlack() { + return schSlack; + } + + /** + * + * + * @generated + */ + public void setSchSlack(String newSchSlack) { + String oldSchSlack = schSlack; + schSlack = newSchSlack; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SAMPackage.SA_COMM_HOST__SCH_SLACK, oldSchSlack, schSlack)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SAMPackage.SA_COMM_HOST__IS_SCHED: + return getIsSched(); + case SAMPackage.SA_COMM_HOST__SCH_SLACK: + return getSchSlack(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SAMPackage.SA_COMM_HOST__IS_SCHED: + setIsSched((String)newValue); + return; + case SAMPackage.SA_COMM_HOST__SCH_SLACK: + setSchSlack((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SAMPackage.SA_COMM_HOST__IS_SCHED: + setIsSched(IS_SCHED_EDEFAULT); + return; + case SAMPackage.SA_COMM_HOST__SCH_SLACK: + setSchSlack(SCH_SLACK_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SAMPackage.SA_COMM_HOST__IS_SCHED: + return IS_SCHED_EDEFAULT == null ? isSched != null : !IS_SCHED_EDEFAULT.equals(isSched); + case SAMPackage.SA_COMM_HOST__SCH_SLACK: + return SCH_SLACK_EDEFAULT == null ? schSlack != null : !SCH_SLACK_EDEFAULT.equals(schSlack); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (isSched: "); + result.append(isSched); + result.append(", schSlack: "); + result.append(schSlack); + result.append(')'); + return result.toString(); + } + +} //SaCommHostImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/impl/SaCommStepImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/impl/SaCommStepImpl.java new file mode 100644 index 00000000000..31b46bdb241 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/impl/SaCommStepImpl.java @@ -0,0 +1,346 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.SAM.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaCommStepImpl; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaCommStep; + +import org.eclipse.uml2.uml.BehavioralFeature; + +/** + * + * An implementation of the model object 'Sa Comm Step'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaCommStepImpl#getDeadline Deadline}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaCommStepImpl#getSpareCap Spare Cap}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaCommStepImpl#getSchSlack Sch Slack}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaCommStepImpl#getBase_BehavioralFeature Base Behavioral Feature}
  • + *
+ *

+ * + * @generated + */ +public class SaCommStepImpl extends GaCommStepImpl implements SaCommStep { + /** + * The default value of the '{@link #getDeadline() Deadline}' attribute. + * + * + * @see #getDeadline() + * @generated + * @ordered + */ + protected static final String DEADLINE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDeadline() Deadline}' attribute. + * + * + * @see #getDeadline() + * @generated + * @ordered + */ + protected String deadline = DEADLINE_EDEFAULT; + + /** + * The default value of the '{@link #getSpareCap() Spare Cap}' attribute. + * + * + * @see #getSpareCap() + * @generated + * @ordered + */ + protected static final String SPARE_CAP_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSpareCap() Spare Cap}' attribute. + * + * + * @see #getSpareCap() + * @generated + * @ordered + */ + protected String spareCap = SPARE_CAP_EDEFAULT; + + /** + * The default value of the '{@link #getSchSlack() Sch Slack}' attribute. + * + * + * @see #getSchSlack() + * @generated + * @ordered + */ + protected static final String SCH_SLACK_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSchSlack() Sch Slack}' attribute. + * + * + * @see #getSchSlack() + * @generated + * @ordered + */ + protected String schSlack = SCH_SLACK_EDEFAULT; + + /** + * The cached value of the '{@link #getBase_BehavioralFeature() Base Behavioral Feature}' reference. + * + * + * @see #getBase_BehavioralFeature() + * @generated + * @ordered + */ + protected BehavioralFeature base_BehavioralFeature; + + /** + * + * + * @generated + */ + protected SaCommStepImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SAMPackage.Literals.SA_COMM_STEP; + } + + /** + * + * + * @generated + */ + public String getDeadline() { + return deadline; + } + + /** + * + * + * @generated + */ + public void setDeadline(String newDeadline) { + String oldDeadline = deadline; + deadline = newDeadline; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SAMPackage.SA_COMM_STEP__DEADLINE, oldDeadline, deadline)); + } + + /** + * + * + * @generated + */ + public String getSpareCap() { + return spareCap; + } + + /** + * + * + * @generated + */ + public void setSpareCap(String newSpareCap) { + String oldSpareCap = spareCap; + spareCap = newSpareCap; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SAMPackage.SA_COMM_STEP__SPARE_CAP, oldSpareCap, spareCap)); + } + + /** + * + * + * @generated + */ + public String getSchSlack() { + return schSlack; + } + + /** + * + * + * @generated + */ + public void setSchSlack(String newSchSlack) { + String oldSchSlack = schSlack; + schSlack = newSchSlack; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SAMPackage.SA_COMM_STEP__SCH_SLACK, oldSchSlack, schSlack)); + } + + /** + * + * + * @generated + */ + public BehavioralFeature getBase_BehavioralFeature() { + if (base_BehavioralFeature != null && base_BehavioralFeature.eIsProxy()) { + InternalEObject oldBase_BehavioralFeature = (InternalEObject)base_BehavioralFeature; + base_BehavioralFeature = (BehavioralFeature)eResolveProxy(oldBase_BehavioralFeature); + if (base_BehavioralFeature != oldBase_BehavioralFeature) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, SAMPackage.SA_COMM_STEP__BASE_BEHAVIORAL_FEATURE, oldBase_BehavioralFeature, base_BehavioralFeature)); + } + } + return base_BehavioralFeature; + } + + /** + * + * + * @generated + */ + public BehavioralFeature basicGetBase_BehavioralFeature() { + return base_BehavioralFeature; + } + + /** + * + * + * @generated + */ + public void setBase_BehavioralFeature(BehavioralFeature newBase_BehavioralFeature) { + BehavioralFeature oldBase_BehavioralFeature = base_BehavioralFeature; + base_BehavioralFeature = newBase_BehavioralFeature; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SAMPackage.SA_COMM_STEP__BASE_BEHAVIORAL_FEATURE, oldBase_BehavioralFeature, base_BehavioralFeature)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SAMPackage.SA_COMM_STEP__DEADLINE: + return getDeadline(); + case SAMPackage.SA_COMM_STEP__SPARE_CAP: + return getSpareCap(); + case SAMPackage.SA_COMM_STEP__SCH_SLACK: + return getSchSlack(); + case SAMPackage.SA_COMM_STEP__BASE_BEHAVIORAL_FEATURE: + if (resolve) return getBase_BehavioralFeature(); + return basicGetBase_BehavioralFeature(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SAMPackage.SA_COMM_STEP__DEADLINE: + setDeadline((String)newValue); + return; + case SAMPackage.SA_COMM_STEP__SPARE_CAP: + setSpareCap((String)newValue); + return; + case SAMPackage.SA_COMM_STEP__SCH_SLACK: + setSchSlack((String)newValue); + return; + case SAMPackage.SA_COMM_STEP__BASE_BEHAVIORAL_FEATURE: + setBase_BehavioralFeature((BehavioralFeature)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SAMPackage.SA_COMM_STEP__DEADLINE: + setDeadline(DEADLINE_EDEFAULT); + return; + case SAMPackage.SA_COMM_STEP__SPARE_CAP: + setSpareCap(SPARE_CAP_EDEFAULT); + return; + case SAMPackage.SA_COMM_STEP__SCH_SLACK: + setSchSlack(SCH_SLACK_EDEFAULT); + return; + case SAMPackage.SA_COMM_STEP__BASE_BEHAVIORAL_FEATURE: + setBase_BehavioralFeature((BehavioralFeature)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SAMPackage.SA_COMM_STEP__DEADLINE: + return DEADLINE_EDEFAULT == null ? deadline != null : !DEADLINE_EDEFAULT.equals(deadline); + case SAMPackage.SA_COMM_STEP__SPARE_CAP: + return SPARE_CAP_EDEFAULT == null ? spareCap != null : !SPARE_CAP_EDEFAULT.equals(spareCap); + case SAMPackage.SA_COMM_STEP__SCH_SLACK: + return SCH_SLACK_EDEFAULT == null ? schSlack != null : !SCH_SLACK_EDEFAULT.equals(schSlack); + case SAMPackage.SA_COMM_STEP__BASE_BEHAVIORAL_FEATURE: + return base_BehavioralFeature != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (deadline: "); + result.append(deadline); + result.append(", spareCap: "); + result.append(spareCap); + result.append(", schSlack: "); + result.append(schSlack); + result.append(')'); + return result.toString(); + } + +} //SaCommStepImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/impl/SaEndtoEndFlowImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/impl/SaEndtoEndFlowImpl.java new file mode 100644 index 00000000000..566a9d6e041 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/impl/SaEndtoEndFlowImpl.java @@ -0,0 +1,407 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.SAM.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.ecore.util.EDataTypeUniqueEList; +import org.eclipse.emf.ecore.util.EObjectResolvingEList; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaTimedObs; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaEndtoEndFlow; + +import org.eclipse.uml2.uml.NamedElement; + +/** + * + * An implementation of the model object 'Sa Endto End Flow'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaEndtoEndFlowImpl#getIsSched Is Sched}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaEndtoEndFlowImpl#getSchSlack Sch Slack}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaEndtoEndFlowImpl#getEnd2EndT End2 End T}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaEndtoEndFlowImpl#getEnd2EndD End2 End D}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaEndtoEndFlowImpl#getTiming Timing}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaEndtoEndFlowImpl#getBase_NamedElement Base Named Element}
  • + *
+ *

+ * + * @generated + */ +public class SaEndtoEndFlowImpl extends EObjectImpl implements SaEndtoEndFlow { + /** + * The default value of the '{@link #getIsSched() Is Sched}' attribute. + * + * + * @see #getIsSched() + * @generated + * @ordered + */ + protected static final String IS_SCHED_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIsSched() Is Sched}' attribute. + * + * + * @see #getIsSched() + * @generated + * @ordered + */ + protected String isSched = IS_SCHED_EDEFAULT; + + /** + * The default value of the '{@link #getSchSlack() Sch Slack}' attribute. + * + * + * @see #getSchSlack() + * @generated + * @ordered + */ + protected static final String SCH_SLACK_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSchSlack() Sch Slack}' attribute. + * + * + * @see #getSchSlack() + * @generated + * @ordered + */ + protected String schSlack = SCH_SLACK_EDEFAULT; + + /** + * The cached value of the '{@link #getEnd2EndT() End2 End T}' attribute list. + * + * + * @see #getEnd2EndT() + * @generated + * @ordered + */ + protected EList end2EndT; + + /** + * The cached value of the '{@link #getEnd2EndD() End2 End D}' attribute list. + * + * + * @see #getEnd2EndD() + * @generated + * @ordered + */ + protected EList end2EndD; + + /** + * The cached value of the '{@link #getTiming() Timing}' reference list. + * + * + * @see #getTiming() + * @generated + * @ordered + */ + protected EList timing; + + /** + * The cached value of the '{@link #getBase_NamedElement() Base Named Element}' reference. + * + * + * @see #getBase_NamedElement() + * @generated + * @ordered + */ + protected NamedElement base_NamedElement; + + /** + * + * + * @generated + */ + protected SaEndtoEndFlowImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SAMPackage.Literals.SA_ENDTO_END_FLOW; + } + + /** + * + * + * @generated + */ + public String getIsSched() { + return isSched; + } + + /** + * + * + * @generated + */ + public void setIsSched(String newIsSched) { + String oldIsSched = isSched; + isSched = newIsSched; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SAMPackage.SA_ENDTO_END_FLOW__IS_SCHED, oldIsSched, isSched)); + } + + /** + * + * + * @generated + */ + public String getSchSlack() { + return schSlack; + } + + /** + * + * + * @generated + */ + public void setSchSlack(String newSchSlack) { + String oldSchSlack = schSlack; + schSlack = newSchSlack; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SAMPackage.SA_ENDTO_END_FLOW__SCH_SLACK, oldSchSlack, schSlack)); + } + + /** + * + * + * @generated + */ + public EList getEnd2EndT() { + if (end2EndT == null) { + end2EndT = new EDataTypeUniqueEList(String.class, this, SAMPackage.SA_ENDTO_END_FLOW__END2_END_T); + } + return end2EndT; + } + + /** + * + * + * @generated + */ + public EList getEnd2EndD() { + if (end2EndD == null) { + end2EndD = new EDataTypeUniqueEList(String.class, this, SAMPackage.SA_ENDTO_END_FLOW__END2_END_D); + } + return end2EndD; + } + + /** + * + * + * @generated + */ + public EList getTiming() { + if (timing == null) { + timing = new EObjectResolvingEList(GaTimedObs.class, this, SAMPackage.SA_ENDTO_END_FLOW__TIMING); + } + return timing; + } + + /** + * + * + * @generated + */ + public NamedElement getBase_NamedElement() { + if (base_NamedElement != null && base_NamedElement.eIsProxy()) { + InternalEObject oldBase_NamedElement = (InternalEObject)base_NamedElement; + base_NamedElement = (NamedElement)eResolveProxy(oldBase_NamedElement); + if (base_NamedElement != oldBase_NamedElement) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, SAMPackage.SA_ENDTO_END_FLOW__BASE_NAMED_ELEMENT, oldBase_NamedElement, base_NamedElement)); + } + } + return base_NamedElement; + } + + /** + * + * + * @generated + */ + public NamedElement basicGetBase_NamedElement() { + return base_NamedElement; + } + + /** + * + * + * @generated + */ + public void setBase_NamedElement(NamedElement newBase_NamedElement) { + NamedElement oldBase_NamedElement = base_NamedElement; + base_NamedElement = newBase_NamedElement; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SAMPackage.SA_ENDTO_END_FLOW__BASE_NAMED_ELEMENT, oldBase_NamedElement, base_NamedElement)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SAMPackage.SA_ENDTO_END_FLOW__IS_SCHED: + return getIsSched(); + case SAMPackage.SA_ENDTO_END_FLOW__SCH_SLACK: + return getSchSlack(); + case SAMPackage.SA_ENDTO_END_FLOW__END2_END_T: + return getEnd2EndT(); + case SAMPackage.SA_ENDTO_END_FLOW__END2_END_D: + return getEnd2EndD(); + case SAMPackage.SA_ENDTO_END_FLOW__TIMING: + return getTiming(); + case SAMPackage.SA_ENDTO_END_FLOW__BASE_NAMED_ELEMENT: + if (resolve) return getBase_NamedElement(); + return basicGetBase_NamedElement(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SAMPackage.SA_ENDTO_END_FLOW__IS_SCHED: + setIsSched((String)newValue); + return; + case SAMPackage.SA_ENDTO_END_FLOW__SCH_SLACK: + setSchSlack((String)newValue); + return; + case SAMPackage.SA_ENDTO_END_FLOW__END2_END_T: + getEnd2EndT().clear(); + getEnd2EndT().addAll((Collection)newValue); + return; + case SAMPackage.SA_ENDTO_END_FLOW__END2_END_D: + getEnd2EndD().clear(); + getEnd2EndD().addAll((Collection)newValue); + return; + case SAMPackage.SA_ENDTO_END_FLOW__TIMING: + getTiming().clear(); + getTiming().addAll((Collection)newValue); + return; + case SAMPackage.SA_ENDTO_END_FLOW__BASE_NAMED_ELEMENT: + setBase_NamedElement((NamedElement)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SAMPackage.SA_ENDTO_END_FLOW__IS_SCHED: + setIsSched(IS_SCHED_EDEFAULT); + return; + case SAMPackage.SA_ENDTO_END_FLOW__SCH_SLACK: + setSchSlack(SCH_SLACK_EDEFAULT); + return; + case SAMPackage.SA_ENDTO_END_FLOW__END2_END_T: + getEnd2EndT().clear(); + return; + case SAMPackage.SA_ENDTO_END_FLOW__END2_END_D: + getEnd2EndD().clear(); + return; + case SAMPackage.SA_ENDTO_END_FLOW__TIMING: + getTiming().clear(); + return; + case SAMPackage.SA_ENDTO_END_FLOW__BASE_NAMED_ELEMENT: + setBase_NamedElement((NamedElement)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SAMPackage.SA_ENDTO_END_FLOW__IS_SCHED: + return IS_SCHED_EDEFAULT == null ? isSched != null : !IS_SCHED_EDEFAULT.equals(isSched); + case SAMPackage.SA_ENDTO_END_FLOW__SCH_SLACK: + return SCH_SLACK_EDEFAULT == null ? schSlack != null : !SCH_SLACK_EDEFAULT.equals(schSlack); + case SAMPackage.SA_ENDTO_END_FLOW__END2_END_T: + return end2EndT != null && !end2EndT.isEmpty(); + case SAMPackage.SA_ENDTO_END_FLOW__END2_END_D: + return end2EndD != null && !end2EndD.isEmpty(); + case SAMPackage.SA_ENDTO_END_FLOW__TIMING: + return timing != null && !timing.isEmpty(); + case SAMPackage.SA_ENDTO_END_FLOW__BASE_NAMED_ELEMENT: + return base_NamedElement != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (isSched: "); + result.append(isSched); + result.append(", schSlack: "); + result.append(schSlack); + result.append(", end2EndT: "); + result.append(end2EndT); + result.append(", end2EndD: "); + result.append(end2EndD); + result.append(')'); + return result.toString(); + } + +} //SaEndtoEndFlowImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/impl/SaExecHostImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/impl/SaExecHostImpl.java new file mode 100644 index 00000000000..6f8fcfc1d20 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/impl/SaExecHostImpl.java @@ -0,0 +1,391 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.SAM.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaExecHostImpl; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaExecHost; + +/** + * + * An implementation of the model object 'Sa Exec Host'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaExecHostImpl#getIsSched Is Sched}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaExecHostImpl#getSchSlack Sch Slack}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaExecHostImpl#getSchedUtiliz Sched Utiliz}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaExecHostImpl#getISRswitchT IS Rswitch T}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaExecHostImpl#getISRprioRange IS Rprio Range}
  • + *
+ *

+ * + * @generated + */ +public class SaExecHostImpl extends GaExecHostImpl implements SaExecHost { + /** + * The default value of the '{@link #getIsSched() Is Sched}' attribute. + * + * + * @see #getIsSched() + * @generated + * @ordered + */ + protected static final String IS_SCHED_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIsSched() Is Sched}' attribute. + * + * + * @see #getIsSched() + * @generated + * @ordered + */ + protected String isSched = IS_SCHED_EDEFAULT; + + /** + * The default value of the '{@link #getSchSlack() Sch Slack}' attribute. + * + * + * @see #getSchSlack() + * @generated + * @ordered + */ + protected static final String SCH_SLACK_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSchSlack() Sch Slack}' attribute. + * + * + * @see #getSchSlack() + * @generated + * @ordered + */ + protected String schSlack = SCH_SLACK_EDEFAULT; + + /** + * The default value of the '{@link #getSchedUtiliz() Sched Utiliz}' attribute. + * + * + * @see #getSchedUtiliz() + * @generated + * @ordered + */ + protected static final String SCHED_UTILIZ_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSchedUtiliz() Sched Utiliz}' attribute. + * + * + * @see #getSchedUtiliz() + * @generated + * @ordered + */ + protected String schedUtiliz = SCHED_UTILIZ_EDEFAULT; + + /** + * The default value of the '{@link #getISRswitchT() IS Rswitch T}' attribute. + * + * + * @see #getISRswitchT() + * @generated + * @ordered + */ + protected static final String IS_RSWITCH_T_EDEFAULT = null; + + /** + * The cached value of the '{@link #getISRswitchT() IS Rswitch T}' attribute. + * + * + * @see #getISRswitchT() + * @generated + * @ordered + */ + protected String isRswitchT = IS_RSWITCH_T_EDEFAULT; + + /** + * The default value of the '{@link #getISRprioRange() IS Rprio Range}' attribute. + * + * + * @see #getISRprioRange() + * @generated + * @ordered + */ + protected static final String IS_RPRIO_RANGE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getISRprioRange() IS Rprio Range}' attribute. + * + * + * @see #getISRprioRange() + * @generated + * @ordered + */ + protected String isRprioRange = IS_RPRIO_RANGE_EDEFAULT; + + /** + * + * + * @generated + */ + protected SaExecHostImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SAMPackage.Literals.SA_EXEC_HOST; + } + + /** + * + * + * @generated + */ + public String getIsSched() { + return isSched; + } + + /** + * + * + * @generated + */ + public void setIsSched(String newIsSched) { + String oldIsSched = isSched; + isSched = newIsSched; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SAMPackage.SA_EXEC_HOST__IS_SCHED, oldIsSched, isSched)); + } + + /** + * + * + * @generated + */ + public String getSchSlack() { + return schSlack; + } + + /** + * + * + * @generated + */ + public void setSchSlack(String newSchSlack) { + String oldSchSlack = schSlack; + schSlack = newSchSlack; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SAMPackage.SA_EXEC_HOST__SCH_SLACK, oldSchSlack, schSlack)); + } + + /** + * + * + * @generated + */ + public String getSchedUtiliz() { + return schedUtiliz; + } + + /** + * + * + * @generated + */ + public void setSchedUtiliz(String newSchedUtiliz) { + String oldSchedUtiliz = schedUtiliz; + schedUtiliz = newSchedUtiliz; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SAMPackage.SA_EXEC_HOST__SCHED_UTILIZ, oldSchedUtiliz, schedUtiliz)); + } + + /** + * + * + * @generated + */ + public String getISRswitchT() { + return isRswitchT; + } + + /** + * + * + * @generated + */ + public void setISRswitchT(String newISRswitchT) { + String oldISRswitchT = isRswitchT; + isRswitchT = newISRswitchT; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SAMPackage.SA_EXEC_HOST__IS_RSWITCH_T, oldISRswitchT, isRswitchT)); + } + + /** + * + * + * @generated + */ + public String getISRprioRange() { + return isRprioRange; + } + + /** + * + * + * @generated + */ + public void setISRprioRange(String newISRprioRange) { + String oldISRprioRange = isRprioRange; + isRprioRange = newISRprioRange; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SAMPackage.SA_EXEC_HOST__IS_RPRIO_RANGE, oldISRprioRange, isRprioRange)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SAMPackage.SA_EXEC_HOST__IS_SCHED: + return getIsSched(); + case SAMPackage.SA_EXEC_HOST__SCH_SLACK: + return getSchSlack(); + case SAMPackage.SA_EXEC_HOST__SCHED_UTILIZ: + return getSchedUtiliz(); + case SAMPackage.SA_EXEC_HOST__IS_RSWITCH_T: + return getISRswitchT(); + case SAMPackage.SA_EXEC_HOST__IS_RPRIO_RANGE: + return getISRprioRange(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SAMPackage.SA_EXEC_HOST__IS_SCHED: + setIsSched((String)newValue); + return; + case SAMPackage.SA_EXEC_HOST__SCH_SLACK: + setSchSlack((String)newValue); + return; + case SAMPackage.SA_EXEC_HOST__SCHED_UTILIZ: + setSchedUtiliz((String)newValue); + return; + case SAMPackage.SA_EXEC_HOST__IS_RSWITCH_T: + setISRswitchT((String)newValue); + return; + case SAMPackage.SA_EXEC_HOST__IS_RPRIO_RANGE: + setISRprioRange((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SAMPackage.SA_EXEC_HOST__IS_SCHED: + setIsSched(IS_SCHED_EDEFAULT); + return; + case SAMPackage.SA_EXEC_HOST__SCH_SLACK: + setSchSlack(SCH_SLACK_EDEFAULT); + return; + case SAMPackage.SA_EXEC_HOST__SCHED_UTILIZ: + setSchedUtiliz(SCHED_UTILIZ_EDEFAULT); + return; + case SAMPackage.SA_EXEC_HOST__IS_RSWITCH_T: + setISRswitchT(IS_RSWITCH_T_EDEFAULT); + return; + case SAMPackage.SA_EXEC_HOST__IS_RPRIO_RANGE: + setISRprioRange(IS_RPRIO_RANGE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SAMPackage.SA_EXEC_HOST__IS_SCHED: + return IS_SCHED_EDEFAULT == null ? isSched != null : !IS_SCHED_EDEFAULT.equals(isSched); + case SAMPackage.SA_EXEC_HOST__SCH_SLACK: + return SCH_SLACK_EDEFAULT == null ? schSlack != null : !SCH_SLACK_EDEFAULT.equals(schSlack); + case SAMPackage.SA_EXEC_HOST__SCHED_UTILIZ: + return SCHED_UTILIZ_EDEFAULT == null ? schedUtiliz != null : !SCHED_UTILIZ_EDEFAULT.equals(schedUtiliz); + case SAMPackage.SA_EXEC_HOST__IS_RSWITCH_T: + return IS_RSWITCH_T_EDEFAULT == null ? isRswitchT != null : !IS_RSWITCH_T_EDEFAULT.equals(isRswitchT); + case SAMPackage.SA_EXEC_HOST__IS_RPRIO_RANGE: + return IS_RPRIO_RANGE_EDEFAULT == null ? isRprioRange != null : !IS_RPRIO_RANGE_EDEFAULT.equals(isRprioRange); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (isSched: "); + result.append(isSched); + result.append(", schSlack: "); + result.append(schSlack); + result.append(", schedUtiliz: "); + result.append(schedUtiliz); + result.append(", ISRswitchT: "); + result.append(isRswitchT); + result.append(", ISRprioRange: "); + result.append(isRprioRange); + result.append(')'); + return result.toString(); + } + +} //SaExecHostImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/impl/SaSchedObsImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/impl/SaSchedObsImpl.java new file mode 100644 index 00000000000..7a763381426 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/impl/SaSchedObsImpl.java @@ -0,0 +1,232 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.SAM.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.util.EDataTypeUniqueEList; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaTimedObsImpl; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaSchedObs; + +/** + * + * An implementation of the model object 'Sa Sched Obs'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaSchedObsImpl#getSuspentions Suspentions}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaSchedObsImpl#getBlockT Block T}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaSchedObsImpl#getOverlaps Overlaps}
  • + *
+ *

+ * + * @generated + */ +public class SaSchedObsImpl extends GaTimedObsImpl implements SaSchedObs { + /** + * The cached value of the '{@link #getSuspentions() Suspentions}' attribute list. + * + * + * @see #getSuspentions() + * @generated + * @ordered + */ + protected EList suspentions; + + /** + * The cached value of the '{@link #getBlockT() Block T}' attribute list. + * + * + * @see #getBlockT() + * @generated + * @ordered + */ + protected EList blockT; + + /** + * The cached value of the '{@link #getOverlaps() Overlaps}' attribute list. + * + * + * @see #getOverlaps() + * @generated + * @ordered + */ + protected EList overlaps; + + /** + * + * + * @generated + */ + protected SaSchedObsImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SAMPackage.Literals.SA_SCHED_OBS; + } + + /** + * + * + * @generated + */ + public EList getSuspentions() { + if (suspentions == null) { + suspentions = new EDataTypeUniqueEList(String.class, this, SAMPackage.SA_SCHED_OBS__SUSPENTIONS); + } + return suspentions; + } + + /** + * + * + * @generated + */ + public EList getBlockT() { + if (blockT == null) { + blockT = new EDataTypeUniqueEList(String.class, this, SAMPackage.SA_SCHED_OBS__BLOCK_T); + } + return blockT; + } + + /** + * + * + * @generated + */ + public EList getOverlaps() { + if (overlaps == null) { + overlaps = new EDataTypeUniqueEList(String.class, this, SAMPackage.SA_SCHED_OBS__OVERLAPS); + } + return overlaps; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SAMPackage.SA_SCHED_OBS__SUSPENTIONS: + return getSuspentions(); + case SAMPackage.SA_SCHED_OBS__BLOCK_T: + return getBlockT(); + case SAMPackage.SA_SCHED_OBS__OVERLAPS: + return getOverlaps(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SAMPackage.SA_SCHED_OBS__SUSPENTIONS: + getSuspentions().clear(); + getSuspentions().addAll((Collection)newValue); + return; + case SAMPackage.SA_SCHED_OBS__BLOCK_T: + getBlockT().clear(); + getBlockT().addAll((Collection)newValue); + return; + case SAMPackage.SA_SCHED_OBS__OVERLAPS: + getOverlaps().clear(); + getOverlaps().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SAMPackage.SA_SCHED_OBS__SUSPENTIONS: + getSuspentions().clear(); + return; + case SAMPackage.SA_SCHED_OBS__BLOCK_T: + getBlockT().clear(); + return; + case SAMPackage.SA_SCHED_OBS__OVERLAPS: + getOverlaps().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SAMPackage.SA_SCHED_OBS__SUSPENTIONS: + return suspentions != null && !suspentions.isEmpty(); + case SAMPackage.SA_SCHED_OBS__BLOCK_T: + return blockT != null && !blockT.isEmpty(); + case SAMPackage.SA_SCHED_OBS__OVERLAPS: + return overlaps != null && !overlaps.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (suspentions: "); + result.append(suspentions); + result.append(", blockT: "); + result.append(blockT); + result.append(", overlaps: "); + result.append(overlaps); + result.append(')'); + return result.toString(); + } + +} //SaSchedObsImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/impl/SaSharedResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/impl/SaSharedResourceImpl.java new file mode 100644 index 00000000000..ac5fd46f4d7 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/impl/SaSharedResourceImpl.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.MARTE_AnalysisModel.SAM.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EDataTypeUniqueEList; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaSharedResource; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.MutualExclusionResourceImpl; + +/** + * + * An implementation of the model object 'Sa Shared Resource'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaSharedResourceImpl#getCapacity Capacity}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaSharedResourceImpl#getIsPreemp Is Preemp}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaSharedResourceImpl#getIsConsum Is Consum}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaSharedResourceImpl#getAcquisT Acquis T}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaSharedResourceImpl#getReleaseT Release T}
  • + *
+ *

+ * + * @generated + */ +public class SaSharedResourceImpl extends MutualExclusionResourceImpl implements SaSharedResource { + /** + * The default value of the '{@link #getCapacity() Capacity}' attribute. + * + * + * @see #getCapacity() + * @generated + * @ordered + */ + protected static final String CAPACITY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCapacity() Capacity}' attribute. + * + * + * @see #getCapacity() + * @generated + * @ordered + */ + protected String capacity = CAPACITY_EDEFAULT; + + /** + * The default value of the '{@link #getIsPreemp() Is Preemp}' attribute. + * + * + * @see #getIsPreemp() + * @generated + * @ordered + */ + protected static final String IS_PREEMP_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIsPreemp() Is Preemp}' attribute. + * + * + * @see #getIsPreemp() + * @generated + * @ordered + */ + protected String isPreemp = IS_PREEMP_EDEFAULT; + + /** + * The default value of the '{@link #getIsConsum() Is Consum}' attribute. + * + * + * @see #getIsConsum() + * @generated + * @ordered + */ + protected static final String IS_CONSUM_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIsConsum() Is Consum}' attribute. + * + * + * @see #getIsConsum() + * @generated + * @ordered + */ + protected String isConsum = IS_CONSUM_EDEFAULT; + + /** + * The cached value of the '{@link #getAcquisT() Acquis T}' attribute list. + * + * + * @see #getAcquisT() + * @generated + * @ordered + */ + protected EList acquisT; + + /** + * The cached value of the '{@link #getReleaseT() Release T}' attribute list. + * + * + * @see #getReleaseT() + * @generated + * @ordered + */ + protected EList releaseT; + + /** + * + * + * @generated + */ + protected SaSharedResourceImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SAMPackage.Literals.SA_SHARED_RESOURCE; + } + + /** + * + * + * @generated + */ + public String getCapacity() { + return capacity; + } + + /** + * + * + * @generated + */ + public void setCapacity(String newCapacity) { + String oldCapacity = capacity; + capacity = newCapacity; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SAMPackage.SA_SHARED_RESOURCE__CAPACITY, oldCapacity, capacity)); + } + + /** + * + * + * @generated + */ + public String getIsPreemp() { + return isPreemp; + } + + /** + * + * + * @generated + */ + public void setIsPreemp(String newIsPreemp) { + String oldIsPreemp = isPreemp; + isPreemp = newIsPreemp; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SAMPackage.SA_SHARED_RESOURCE__IS_PREEMP, oldIsPreemp, isPreemp)); + } + + /** + * + * + * @generated + */ + public String getIsConsum() { + return isConsum; + } + + /** + * + * + * @generated + */ + public void setIsConsum(String newIsConsum) { + String oldIsConsum = isConsum; + isConsum = newIsConsum; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SAMPackage.SA_SHARED_RESOURCE__IS_CONSUM, oldIsConsum, isConsum)); + } + + /** + * + * + * @generated + */ + public EList getAcquisT() { + if (acquisT == null) { + acquisT = new EDataTypeUniqueEList(String.class, this, SAMPackage.SA_SHARED_RESOURCE__ACQUIS_T); + } + return acquisT; + } + + /** + * + * + * @generated + */ + public EList getReleaseT() { + if (releaseT == null) { + releaseT = new EDataTypeUniqueEList(String.class, this, SAMPackage.SA_SHARED_RESOURCE__RELEASE_T); + } + return releaseT; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SAMPackage.SA_SHARED_RESOURCE__CAPACITY: + return getCapacity(); + case SAMPackage.SA_SHARED_RESOURCE__IS_PREEMP: + return getIsPreemp(); + case SAMPackage.SA_SHARED_RESOURCE__IS_CONSUM: + return getIsConsum(); + case SAMPackage.SA_SHARED_RESOURCE__ACQUIS_T: + return getAcquisT(); + case SAMPackage.SA_SHARED_RESOURCE__RELEASE_T: + return getReleaseT(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SAMPackage.SA_SHARED_RESOURCE__CAPACITY: + setCapacity((String)newValue); + return; + case SAMPackage.SA_SHARED_RESOURCE__IS_PREEMP: + setIsPreemp((String)newValue); + return; + case SAMPackage.SA_SHARED_RESOURCE__IS_CONSUM: + setIsConsum((String)newValue); + return; + case SAMPackage.SA_SHARED_RESOURCE__ACQUIS_T: + getAcquisT().clear(); + getAcquisT().addAll((Collection)newValue); + return; + case SAMPackage.SA_SHARED_RESOURCE__RELEASE_T: + getReleaseT().clear(); + getReleaseT().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SAMPackage.SA_SHARED_RESOURCE__CAPACITY: + setCapacity(CAPACITY_EDEFAULT); + return; + case SAMPackage.SA_SHARED_RESOURCE__IS_PREEMP: + setIsPreemp(IS_PREEMP_EDEFAULT); + return; + case SAMPackage.SA_SHARED_RESOURCE__IS_CONSUM: + setIsConsum(IS_CONSUM_EDEFAULT); + return; + case SAMPackage.SA_SHARED_RESOURCE__ACQUIS_T: + getAcquisT().clear(); + return; + case SAMPackage.SA_SHARED_RESOURCE__RELEASE_T: + getReleaseT().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SAMPackage.SA_SHARED_RESOURCE__CAPACITY: + return CAPACITY_EDEFAULT == null ? capacity != null : !CAPACITY_EDEFAULT.equals(capacity); + case SAMPackage.SA_SHARED_RESOURCE__IS_PREEMP: + return IS_PREEMP_EDEFAULT == null ? isPreemp != null : !IS_PREEMP_EDEFAULT.equals(isPreemp); + case SAMPackage.SA_SHARED_RESOURCE__IS_CONSUM: + return IS_CONSUM_EDEFAULT == null ? isConsum != null : !IS_CONSUM_EDEFAULT.equals(isConsum); + case SAMPackage.SA_SHARED_RESOURCE__ACQUIS_T: + return acquisT != null && !acquisT.isEmpty(); + case SAMPackage.SA_SHARED_RESOURCE__RELEASE_T: + return releaseT != null && !releaseT.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (capacity: "); + result.append(capacity); + result.append(", isPreemp: "); + result.append(isPreemp); + result.append(", isConsum: "); + result.append(isConsum); + result.append(", acquisT: "); + result.append(acquisT); + result.append(", releaseT: "); + result.append(releaseT); + result.append(')'); + return result.toString(); + } + +} //SaSharedResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/impl/SaStepImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/impl/SaStepImpl.java new file mode 100644 index 00000000000..b5cf610c95b --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/impl/SaStepImpl.java @@ -0,0 +1,658 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.SAM.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EObjectResolvingEList; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.impl.GaStepImpl; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaSharedResource; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaStep; + +import org.eclipse.uml2.uml.BehavioralFeature; + +/** + * + * An implementation of the model object 'Sa Step'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaStepImpl#getBase_BehavioralFeature Base Behavioral Feature}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaStepImpl#getDeadline Deadline}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaStepImpl#getSpareCap Spare Cap}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaStepImpl#getSchSlack Sch Slack}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaStepImpl#getPreemptT Preempt T}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaStepImpl#getReadyT Ready T}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaStepImpl#getNonpreemptionBlocking Nonpreemption Blocking}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaStepImpl#getSharedRes Shared Res}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaStepImpl#getSelfSuspensionBlocking Self Suspension Blocking}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.impl.SaStepImpl#getNumberSelfSuspensions Number Self Suspensions}
  • + *
+ *

+ * + * @generated + */ +public class SaStepImpl extends GaStepImpl implements SaStep { + /** + * The cached value of the '{@link #getBase_BehavioralFeature() Base Behavioral Feature}' reference. + * + * + * @see #getBase_BehavioralFeature() + * @generated + * @ordered + */ + protected BehavioralFeature base_BehavioralFeature; + + /** + * The default value of the '{@link #getDeadline() Deadline}' attribute. + * + * + * @see #getDeadline() + * @generated + * @ordered + */ + protected static final String DEADLINE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDeadline() Deadline}' attribute. + * + * + * @see #getDeadline() + * @generated + * @ordered + */ + protected String deadline = DEADLINE_EDEFAULT; + + /** + * The default value of the '{@link #getSpareCap() Spare Cap}' attribute. + * + * + * @see #getSpareCap() + * @generated + * @ordered + */ + protected static final String SPARE_CAP_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSpareCap() Spare Cap}' attribute. + * + * + * @see #getSpareCap() + * @generated + * @ordered + */ + protected String spareCap = SPARE_CAP_EDEFAULT; + + /** + * The default value of the '{@link #getSchSlack() Sch Slack}' attribute. + * + * + * @see #getSchSlack() + * @generated + * @ordered + */ + protected static final String SCH_SLACK_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSchSlack() Sch Slack}' attribute. + * + * + * @see #getSchSlack() + * @generated + * @ordered + */ + protected String schSlack = SCH_SLACK_EDEFAULT; + + /** + * The default value of the '{@link #getPreemptT() Preempt T}' attribute. + * + * + * @see #getPreemptT() + * @generated + * @ordered + */ + protected static final String PREEMPT_T_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPreemptT() Preempt T}' attribute. + * + * + * @see #getPreemptT() + * @generated + * @ordered + */ + protected String preemptT = PREEMPT_T_EDEFAULT; + + /** + * The default value of the '{@link #getReadyT() Ready T}' attribute. + * + * + * @see #getReadyT() + * @generated + * @ordered + */ + protected static final String READY_T_EDEFAULT = null; + + /** + * The cached value of the '{@link #getReadyT() Ready T}' attribute. + * + * + * @see #getReadyT() + * @generated + * @ordered + */ + protected String readyT = READY_T_EDEFAULT; + + /** + * The default value of the '{@link #getNonpreemptionBlocking() Nonpreemption Blocking}' attribute. + * + * + * @see #getNonpreemptionBlocking() + * @generated + * @ordered + */ + protected static final String NONPREEMPTION_BLOCKING_EDEFAULT = null; + + /** + * The cached value of the '{@link #getNonpreemptionBlocking() Nonpreemption Blocking}' attribute. + * + * + * @see #getNonpreemptionBlocking() + * @generated + * @ordered + */ + protected String nonpreemptionBlocking = NONPREEMPTION_BLOCKING_EDEFAULT; + + /** + * The cached value of the '{@link #getSharedRes() Shared Res}' reference list. + * + * + * @see #getSharedRes() + * @generated + * @ordered + */ + protected EList sharedRes; + + /** + * The default value of the '{@link #getSelfSuspensionBlocking() Self Suspension Blocking}' attribute. + * + * + * @see #getSelfSuspensionBlocking() + * @generated + * @ordered + */ + protected static final String SELF_SUSPENSION_BLOCKING_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSelfSuspensionBlocking() Self Suspension Blocking}' attribute. + * + * + * @see #getSelfSuspensionBlocking() + * @generated + * @ordered + */ + protected String selfSuspensionBlocking = SELF_SUSPENSION_BLOCKING_EDEFAULT; + + /** + * The default value of the '{@link #getNumberSelfSuspensions() Number Self Suspensions}' attribute. + * + * + * @see #getNumberSelfSuspensions() + * @generated + * @ordered + */ + protected static final String NUMBER_SELF_SUSPENSIONS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getNumberSelfSuspensions() Number Self Suspensions}' attribute. + * + * + * @see #getNumberSelfSuspensions() + * @generated + * @ordered + */ + protected String numberSelfSuspensions = NUMBER_SELF_SUSPENSIONS_EDEFAULT; + + /** + * + * + * @generated + */ + protected SaStepImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SAMPackage.Literals.SA_STEP; + } + + /** + * + * + * @generated + */ + public BehavioralFeature getBase_BehavioralFeature() { + if (base_BehavioralFeature != null && base_BehavioralFeature.eIsProxy()) { + InternalEObject oldBase_BehavioralFeature = (InternalEObject)base_BehavioralFeature; + base_BehavioralFeature = (BehavioralFeature)eResolveProxy(oldBase_BehavioralFeature); + if (base_BehavioralFeature != oldBase_BehavioralFeature) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, SAMPackage.SA_STEP__BASE_BEHAVIORAL_FEATURE, oldBase_BehavioralFeature, base_BehavioralFeature)); + } + } + return base_BehavioralFeature; + } + + /** + * + * + * @generated + */ + public BehavioralFeature basicGetBase_BehavioralFeature() { + return base_BehavioralFeature; + } + + /** + * + * + * @generated + */ + public void setBase_BehavioralFeature(BehavioralFeature newBase_BehavioralFeature) { + BehavioralFeature oldBase_BehavioralFeature = base_BehavioralFeature; + base_BehavioralFeature = newBase_BehavioralFeature; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SAMPackage.SA_STEP__BASE_BEHAVIORAL_FEATURE, oldBase_BehavioralFeature, base_BehavioralFeature)); + } + + /** + * + * + * @generated + */ + public String getDeadline() { + return deadline; + } + + /** + * + * + * @generated + */ + public void setDeadline(String newDeadline) { + String oldDeadline = deadline; + deadline = newDeadline; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SAMPackage.SA_STEP__DEADLINE, oldDeadline, deadline)); + } + + /** + * + * + * @generated + */ + public String getSpareCap() { + return spareCap; + } + + /** + * + * + * @generated + */ + public void setSpareCap(String newSpareCap) { + String oldSpareCap = spareCap; + spareCap = newSpareCap; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SAMPackage.SA_STEP__SPARE_CAP, oldSpareCap, spareCap)); + } + + /** + * + * + * @generated + */ + public String getSchSlack() { + return schSlack; + } + + /** + * + * + * @generated + */ + public void setSchSlack(String newSchSlack) { + String oldSchSlack = schSlack; + schSlack = newSchSlack; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SAMPackage.SA_STEP__SCH_SLACK, oldSchSlack, schSlack)); + } + + /** + * + * + * @generated + */ + public String getPreemptT() { + return preemptT; + } + + /** + * + * + * @generated + */ + public void setPreemptT(String newPreemptT) { + String oldPreemptT = preemptT; + preemptT = newPreemptT; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SAMPackage.SA_STEP__PREEMPT_T, oldPreemptT, preemptT)); + } + + /** + * + * + * @generated + */ + public String getReadyT() { + return readyT; + } + + /** + * + * + * @generated + */ + public void setReadyT(String newReadyT) { + String oldReadyT = readyT; + readyT = newReadyT; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SAMPackage.SA_STEP__READY_T, oldReadyT, readyT)); + } + + /** + * + * + * @generated + */ + public String getNonpreemptionBlocking() { + return nonpreemptionBlocking; + } + + /** + * + * + * @generated + */ + public void setNonpreemptionBlocking(String newNonpreemptionBlocking) { + String oldNonpreemptionBlocking = nonpreemptionBlocking; + nonpreemptionBlocking = newNonpreemptionBlocking; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SAMPackage.SA_STEP__NONPREEMPTION_BLOCKING, oldNonpreemptionBlocking, nonpreemptionBlocking)); + } + + /** + * + * + * @generated + */ + public EList getSharedRes() { + if (sharedRes == null) { + sharedRes = new EObjectResolvingEList(SaSharedResource.class, this, SAMPackage.SA_STEP__SHARED_RES); + } + return sharedRes; + } + + /** + * + * + * @generated + */ + public String getSelfSuspensionBlocking() { + return selfSuspensionBlocking; + } + + /** + * + * + * @generated + */ + public void setSelfSuspensionBlocking(String newSelfSuspensionBlocking) { + String oldSelfSuspensionBlocking = selfSuspensionBlocking; + selfSuspensionBlocking = newSelfSuspensionBlocking; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SAMPackage.SA_STEP__SELF_SUSPENSION_BLOCKING, oldSelfSuspensionBlocking, selfSuspensionBlocking)); + } + + /** + * + * + * @generated + */ + public String getNumberSelfSuspensions() { + return numberSelfSuspensions; + } + + /** + * + * + * @generated + */ + public void setNumberSelfSuspensions(String newNumberSelfSuspensions) { + String oldNumberSelfSuspensions = numberSelfSuspensions; + numberSelfSuspensions = newNumberSelfSuspensions; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SAMPackage.SA_STEP__NUMBER_SELF_SUSPENSIONS, oldNumberSelfSuspensions, numberSelfSuspensions)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SAMPackage.SA_STEP__BASE_BEHAVIORAL_FEATURE: + if (resolve) return getBase_BehavioralFeature(); + return basicGetBase_BehavioralFeature(); + case SAMPackage.SA_STEP__DEADLINE: + return getDeadline(); + case SAMPackage.SA_STEP__SPARE_CAP: + return getSpareCap(); + case SAMPackage.SA_STEP__SCH_SLACK: + return getSchSlack(); + case SAMPackage.SA_STEP__PREEMPT_T: + return getPreemptT(); + case SAMPackage.SA_STEP__READY_T: + return getReadyT(); + case SAMPackage.SA_STEP__NONPREEMPTION_BLOCKING: + return getNonpreemptionBlocking(); + case SAMPackage.SA_STEP__SHARED_RES: + return getSharedRes(); + case SAMPackage.SA_STEP__SELF_SUSPENSION_BLOCKING: + return getSelfSuspensionBlocking(); + case SAMPackage.SA_STEP__NUMBER_SELF_SUSPENSIONS: + return getNumberSelfSuspensions(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SAMPackage.SA_STEP__BASE_BEHAVIORAL_FEATURE: + setBase_BehavioralFeature((BehavioralFeature)newValue); + return; + case SAMPackage.SA_STEP__DEADLINE: + setDeadline((String)newValue); + return; + case SAMPackage.SA_STEP__SPARE_CAP: + setSpareCap((String)newValue); + return; + case SAMPackage.SA_STEP__SCH_SLACK: + setSchSlack((String)newValue); + return; + case SAMPackage.SA_STEP__PREEMPT_T: + setPreemptT((String)newValue); + return; + case SAMPackage.SA_STEP__READY_T: + setReadyT((String)newValue); + return; + case SAMPackage.SA_STEP__NONPREEMPTION_BLOCKING: + setNonpreemptionBlocking((String)newValue); + return; + case SAMPackage.SA_STEP__SHARED_RES: + getSharedRes().clear(); + getSharedRes().addAll((Collection)newValue); + return; + case SAMPackage.SA_STEP__SELF_SUSPENSION_BLOCKING: + setSelfSuspensionBlocking((String)newValue); + return; + case SAMPackage.SA_STEP__NUMBER_SELF_SUSPENSIONS: + setNumberSelfSuspensions((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SAMPackage.SA_STEP__BASE_BEHAVIORAL_FEATURE: + setBase_BehavioralFeature((BehavioralFeature)null); + return; + case SAMPackage.SA_STEP__DEADLINE: + setDeadline(DEADLINE_EDEFAULT); + return; + case SAMPackage.SA_STEP__SPARE_CAP: + setSpareCap(SPARE_CAP_EDEFAULT); + return; + case SAMPackage.SA_STEP__SCH_SLACK: + setSchSlack(SCH_SLACK_EDEFAULT); + return; + case SAMPackage.SA_STEP__PREEMPT_T: + setPreemptT(PREEMPT_T_EDEFAULT); + return; + case SAMPackage.SA_STEP__READY_T: + setReadyT(READY_T_EDEFAULT); + return; + case SAMPackage.SA_STEP__NONPREEMPTION_BLOCKING: + setNonpreemptionBlocking(NONPREEMPTION_BLOCKING_EDEFAULT); + return; + case SAMPackage.SA_STEP__SHARED_RES: + getSharedRes().clear(); + return; + case SAMPackage.SA_STEP__SELF_SUSPENSION_BLOCKING: + setSelfSuspensionBlocking(SELF_SUSPENSION_BLOCKING_EDEFAULT); + return; + case SAMPackage.SA_STEP__NUMBER_SELF_SUSPENSIONS: + setNumberSelfSuspensions(NUMBER_SELF_SUSPENSIONS_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SAMPackage.SA_STEP__BASE_BEHAVIORAL_FEATURE: + return base_BehavioralFeature != null; + case SAMPackage.SA_STEP__DEADLINE: + return DEADLINE_EDEFAULT == null ? deadline != null : !DEADLINE_EDEFAULT.equals(deadline); + case SAMPackage.SA_STEP__SPARE_CAP: + return SPARE_CAP_EDEFAULT == null ? spareCap != null : !SPARE_CAP_EDEFAULT.equals(spareCap); + case SAMPackage.SA_STEP__SCH_SLACK: + return SCH_SLACK_EDEFAULT == null ? schSlack != null : !SCH_SLACK_EDEFAULT.equals(schSlack); + case SAMPackage.SA_STEP__PREEMPT_T: + return PREEMPT_T_EDEFAULT == null ? preemptT != null : !PREEMPT_T_EDEFAULT.equals(preemptT); + case SAMPackage.SA_STEP__READY_T: + return READY_T_EDEFAULT == null ? readyT != null : !READY_T_EDEFAULT.equals(readyT); + case SAMPackage.SA_STEP__NONPREEMPTION_BLOCKING: + return NONPREEMPTION_BLOCKING_EDEFAULT == null ? nonpreemptionBlocking != null : !NONPREEMPTION_BLOCKING_EDEFAULT.equals(nonpreemptionBlocking); + case SAMPackage.SA_STEP__SHARED_RES: + return sharedRes != null && !sharedRes.isEmpty(); + case SAMPackage.SA_STEP__SELF_SUSPENSION_BLOCKING: + return SELF_SUSPENSION_BLOCKING_EDEFAULT == null ? selfSuspensionBlocking != null : !SELF_SUSPENSION_BLOCKING_EDEFAULT.equals(selfSuspensionBlocking); + case SAMPackage.SA_STEP__NUMBER_SELF_SUSPENSIONS: + return NUMBER_SELF_SUSPENSIONS_EDEFAULT == null ? numberSelfSuspensions != null : !NUMBER_SELF_SUSPENSIONS_EDEFAULT.equals(numberSelfSuspensions); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (deadline: "); + result.append(deadline); + result.append(", spareCap: "); + result.append(spareCap); + result.append(", schSlack: "); + result.append(schSlack); + result.append(", preemptT: "); + result.append(preemptT); + result.append(", readyT: "); + result.append(readyT); + result.append(", nonpreemptionBlocking: "); + result.append(nonpreemptionBlocking); + result.append(", selfSuspensionBlocking: "); + result.append(selfSuspensionBlocking); + result.append(", numberSelfSuspensions: "); + result.append(numberSelfSuspensions); + result.append(')'); + return result.toString(); + } + +} //SaStepImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/util/SAMAdapterFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/util/SAMAdapterFactory.java new file mode 100644 index 00000000000..b94af5c0a91 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/util/SAMAdapterFactory.java @@ -0,0 +1,624 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.SAM.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.MARTE_AnalysisModel.GQAM.GaAnalysisContext; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaCommHost; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaCommStep; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaExecHost; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaTimedObs; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.*; + +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.ExpressionContext; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.Configuration; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationMedia; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ComputingResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.MutualExclusionResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ProcessingResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ResourceUsage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpConstraint; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedElement; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedProcessing; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage + * @generated + */ +public class SAMAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * @generated + */ + protected static SAMPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public SAMAdapterFactory() { + if (modelPackage == null) { + modelPackage = SAMPackage.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 SAMSwitch modelSwitch = + new SAMSwitch() { + @Override + public Adapter caseSaAnalysisContext(SaAnalysisContext object) { + return createSaAnalysisContextAdapter(); + } + @Override + public Adapter caseSaEndtoEndFlow(SaEndtoEndFlow object) { + return createSaEndtoEndFlowAdapter(); + } + @Override + public Adapter caseSaCommStep(SaCommStep object) { + return createSaCommStepAdapter(); + } + @Override + public Adapter caseSaStep(SaStep object) { + return createSaStepAdapter(); + } + @Override + public Adapter caseSaSharedResource(SaSharedResource object) { + return createSaSharedResourceAdapter(); + } + @Override + public Adapter caseSaSchedObs(SaSchedObs object) { + return createSaSchedObsAdapter(); + } + @Override + public Adapter caseSaCommHost(SaCommHost object) { + return createSaCommHostAdapter(); + } + @Override + public Adapter caseSaExecHost(SaExecHost object) { + return createSaExecHostAdapter(); + } + @Override + public Adapter caseConfiguration(Configuration object) { + return createConfigurationAdapter(); + } + @Override + public Adapter caseExpressionContext(ExpressionContext object) { + return createExpressionContextAdapter(); + } + @Override + public Adapter caseGaAnalysisContext(GaAnalysisContext object) { + return createGaAnalysisContextAdapter(); + } + @Override + public Adapter caseResourceUsage(ResourceUsage object) { + return createResourceUsageAdapter(); + } + @Override + public Adapter caseTimedElement(TimedElement object) { + return createTimedElementAdapter(); + } + @Override + public Adapter caseTimedProcessing(TimedProcessing object) { + return createTimedProcessingAdapter(); + } + @Override + public Adapter caseGaScenario(GaScenario object) { + return createGaScenarioAdapter(); + } + @Override + public Adapter caseGaStep(GaStep object) { + return createGaStepAdapter(); + } + @Override + public Adapter caseGaCommStep(GaCommStep object) { + return createGaCommStepAdapter(); + } + @Override + public Adapter caseResource(Resource object) { + return createResourceAdapter(); + } + @Override + public Adapter caseMutualExclusionResource(MutualExclusionResource object) { + return createMutualExclusionResourceAdapter(); + } + @Override + public Adapter caseNfpConstraint(NfpConstraint object) { + return createNfpConstraintAdapter(); + } + @Override + public Adapter caseGaTimedObs(GaTimedObs object) { + return createGaTimedObsAdapter(); + } + @Override + public Adapter caseProcessingResource(ProcessingResource object) { + return createProcessingResourceAdapter(); + } + @Override + public Adapter caseCommunicationMedia(CommunicationMedia object) { + return createCommunicationMediaAdapter(); + } + @Override + public Adapter caseScheduler(Scheduler object) { + return createSchedulerAdapter(); + } + @Override + public Adapter caseGaCommHost(GaCommHost object) { + return createGaCommHostAdapter(); + } + @Override + public Adapter caseComputingResource(ComputingResource object) { + return createComputingResourceAdapter(); + } + @Override + public Adapter caseGaExecHost(GaExecHost object) { + return createGaExecHostAdapter(); + } + @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.MARTE_AnalysisModel.SAM.SaAnalysisContext Sa Analysis Context}'. + * + * 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.MARTE_AnalysisModel.SAM.SaAnalysisContext + * @generated + */ + public Adapter createSaAnalysisContextAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaEndtoEndFlow Sa Endto End Flow}'. + * + * 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.MARTE_AnalysisModel.SAM.SaEndtoEndFlow + * @generated + */ + public Adapter createSaEndtoEndFlowAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaCommStep Sa Comm Step}'. + * + * 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.MARTE_AnalysisModel.SAM.SaCommStep + * @generated + */ + public Adapter createSaCommStepAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaStep Sa Step}'. + * + * 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.MARTE_AnalysisModel.SAM.SaStep + * @generated + */ + public Adapter createSaStepAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaSharedResource Sa Shared Resource}'. + * + * 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.MARTE_AnalysisModel.SAM.SaSharedResource + * @generated + */ + public Adapter createSaSharedResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaSchedObs Sa Sched Obs}'. + * + * 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.MARTE_AnalysisModel.SAM.SaSchedObs + * @generated + */ + public Adapter createSaSchedObsAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaCommHost Sa Comm Host}'. + * + * 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.MARTE_AnalysisModel.SAM.SaCommHost + * @generated + */ + public Adapter createSaCommHostAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SaExecHost Sa Exec Host}'. + * + * 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.MARTE_AnalysisModel.SAM.SaExecHost + * @generated + */ + public Adapter createSaExecHostAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.Configuration Configuration}'. + * + * 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.MARTE_Foundations.CoreElements.Configuration + * @generated + */ + public Adapter createConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.ExpressionContext Expression Context}'. + * + * 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.MARTE_Annexes.VSL.Variables.ExpressionContext + * @generated + */ + public Adapter createExpressionContextAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaAnalysisContext Ga Analysis Context}'. + * + * 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.MARTE_AnalysisModel.GQAM.GaAnalysisContext + * @generated + */ + public Adapter createGaAnalysisContextAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ResourceUsage Resource Usage}'. + * + * 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.MARTE_Foundations.GRM.ResourceUsage + * @generated + */ + public Adapter createResourceUsageAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedElement Timed Element}'. + * + * 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.MARTE_Foundations.Time.TimedElement + * @generated + */ + public Adapter createTimedElementAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedProcessing Timed Processing}'. + * + * 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.MARTE_Foundations.Time.TimedProcessing + * @generated + */ + public Adapter createTimedProcessingAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario Ga Scenario}'. + * + * 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.MARTE_AnalysisModel.GQAM.GaScenario + * @generated + */ + public Adapter createGaScenarioAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep Ga Step}'. + * + * 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.MARTE_AnalysisModel.GQAM.GaStep + * @generated + */ + public Adapter createGaStepAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaCommStep Ga Comm Step}'. + * + * 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.MARTE_AnalysisModel.GQAM.GaCommStep + * @generated + */ + public Adapter createGaCommStepAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource Resource}'. + * + * 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.MARTE_Foundations.GRM.Resource + * @generated + */ + public Adapter createResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.MutualExclusionResource Mutual Exclusion Resource}'. + * + * 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.MARTE_Foundations.GRM.MutualExclusionResource + * @generated + */ + public Adapter createMutualExclusionResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpConstraint Nfp Constraint}'. + * + * 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.MARTE_Foundations.NFPs.NfpConstraint + * @generated + */ + public Adapter createNfpConstraintAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaTimedObs Ga Timed Obs}'. + * + * 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.MARTE_AnalysisModel.GQAM.GaTimedObs + * @generated + */ + public Adapter createGaTimedObsAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ProcessingResource Processing Resource}'. + * + * 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.MARTE_Foundations.GRM.ProcessingResource + * @generated + */ + public Adapter createProcessingResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationMedia Communication Media}'. + * + * 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.MARTE_Foundations.GRM.CommunicationMedia + * @generated + */ + public Adapter createCommunicationMediaAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler Scheduler}'. + * + * 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.MARTE_Foundations.GRM.Scheduler + * @generated + */ + public Adapter createSchedulerAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaCommHost Ga Comm Host}'. + * + * 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.MARTE_AnalysisModel.GQAM.GaCommHost + * @generated + */ + public Adapter createGaCommHostAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ComputingResource Computing Resource}'. + * + * 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.MARTE_Foundations.GRM.ComputingResource + * @generated + */ + public Adapter createComputingResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaExecHost Ga Exec Host}'. + * + * 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.MARTE_AnalysisModel.GQAM.GaExecHost + * @generated + */ + public Adapter createGaExecHostAdapter() { + 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; + } + +} //SAMAdapterFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/util/SAMResourceFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/util/SAMResourceFactoryImpl.java new file mode 100644 index 00000000000..c9f1ae58352 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/util/SAMResourceFactoryImpl.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.MARTE_AnalysisModel.SAM.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; + +import org.eclipse.emf.ecore.xmi.XMLResource; + +/** + * + * The Resource Factory associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.util.SAMResourceImpl + * @generated + */ +public class SAMResourceFactoryImpl extends ResourceFactoryImpl { + /** + * Creates an instance of the resource factory. + * + * + * @generated + */ + public SAMResourceFactoryImpl() { + super(); + } + + /** + * Creates an instance of the resource. + * + * + * @generated + */ + @Override + public Resource createResource(URI uri) { + XMLResource result = new SAMResourceImpl(uri); + result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + + result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); + return result; + } + +} //SAMResourceFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/util/SAMResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/util/SAMResourceImpl.java new file mode 100644 index 00000000000..4eb6fc9ab9c --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/util/SAMResourceImpl.java @@ -0,0 +1,39 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.SAM.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; + +/** + * + * The Resource associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.util.SAMResourceFactoryImpl + * @generated + */ +public class SAMResourceImpl extends XMLResourceImpl { + /** + * Creates an instance of the resource. + * + * + * @param uri the URI of the new resource. + * @generated + */ + public SAMResourceImpl(URI uri) { + super(uri); + } + +} //SAMResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/util/SAMSwitch.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/util/SAMSwitch.java new file mode 100644 index 00000000000..7f7d2a82b34 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/util/SAMSwitch.java @@ -0,0 +1,622 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.SAM.util; + +import java.util.List; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaAnalysisContext; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaCommHost; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaCommStep; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaExecHost; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaScenario; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaStep; +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.GQAM.GaTimedObs; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.*; + +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.ExpressionContext; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.Configuration; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationMedia; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ComputingResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.MutualExclusionResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ProcessingResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ResourceUsage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpConstraint; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedElement; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedProcessing; + +/** + * + * 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.MARTE_AnalysisModel.SAM.SAMPackage + * @generated + */ +public class SAMSwitch { + /** + * The cached model package + * + * + * @generated + */ + protected static SAMPackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public SAMSwitch() { + if (modelPackage == null) { + modelPackage = SAMPackage.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 SAMPackage.SA_ANALYSIS_CONTEXT: { + SaAnalysisContext saAnalysisContext = (SaAnalysisContext)theEObject; + T result = caseSaAnalysisContext(saAnalysisContext); + if (result == null) result = caseGaAnalysisContext(saAnalysisContext); + if (result == null) result = caseConfiguration(saAnalysisContext); + if (result == null) result = caseExpressionContext(saAnalysisContext); + if (result == null) result = defaultCase(theEObject); + return result; + } + case SAMPackage.SA_ENDTO_END_FLOW: { + SaEndtoEndFlow saEndtoEndFlow = (SaEndtoEndFlow)theEObject; + T result = caseSaEndtoEndFlow(saEndtoEndFlow); + if (result == null) result = defaultCase(theEObject); + return result; + } + case SAMPackage.SA_COMM_STEP: { + SaCommStep saCommStep = (SaCommStep)theEObject; + T result = caseSaCommStep(saCommStep); + if (result == null) result = caseGaCommStep(saCommStep); + if (result == null) result = caseGaStep(saCommStep); + if (result == null) result = caseGaScenario(saCommStep); + if (result == null) result = caseResourceUsage(saCommStep); + if (result == null) result = caseTimedProcessing(saCommStep); + if (result == null) result = caseTimedElement(saCommStep); + if (result == null) result = defaultCase(theEObject); + return result; + } + case SAMPackage.SA_STEP: { + SaStep saStep = (SaStep)theEObject; + T result = caseSaStep(saStep); + if (result == null) result = caseGaStep(saStep); + if (result == null) result = caseGaScenario(saStep); + if (result == null) result = caseResourceUsage(saStep); + if (result == null) result = caseTimedProcessing(saStep); + if (result == null) result = caseTimedElement(saStep); + if (result == null) result = defaultCase(theEObject); + return result; + } + case SAMPackage.SA_SHARED_RESOURCE: { + SaSharedResource saSharedResource = (SaSharedResource)theEObject; + T result = caseSaSharedResource(saSharedResource); + if (result == null) result = caseMutualExclusionResource(saSharedResource); + if (result == null) result = caseResource(saSharedResource); + if (result == null) result = defaultCase(theEObject); + return result; + } + case SAMPackage.SA_SCHED_OBS: { + SaSchedObs saSchedObs = (SaSchedObs)theEObject; + T result = caseSaSchedObs(saSchedObs); + if (result == null) result = caseGaTimedObs(saSchedObs); + if (result == null) result = caseNfpConstraint(saSchedObs); + if (result == null) result = defaultCase(theEObject); + return result; + } + case SAMPackage.SA_COMM_HOST: { + SaCommHost saCommHost = (SaCommHost)theEObject; + T result = caseSaCommHost(saCommHost); + if (result == null) result = caseGaCommHost(saCommHost); + if (result == null) result = caseCommunicationMedia(saCommHost); + if (result == null) result = caseScheduler(saCommHost); + if (result == null) result = caseProcessingResource(saCommHost); + if (result == null) result = caseResource(saCommHost); + if (result == null) result = defaultCase(theEObject); + return result; + } + case SAMPackage.SA_EXEC_HOST: { + SaExecHost saExecHost = (SaExecHost)theEObject; + T result = caseSaExecHost(saExecHost); + if (result == null) result = caseGaExecHost(saExecHost); + if (result == null) result = caseScheduler(saExecHost); + if (result == null) result = caseComputingResource(saExecHost); + if (result == null) result = caseProcessingResource(saExecHost); + if (result == null) result = caseResource(saExecHost); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Sa Analysis Context'. + * + * 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 'Sa Analysis Context'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSaAnalysisContext(SaAnalysisContext object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Sa Endto End Flow'. + * + * 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 'Sa Endto End Flow'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSaEndtoEndFlow(SaEndtoEndFlow object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Sa Comm Step'. + * + * 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 'Sa Comm Step'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSaCommStep(SaCommStep object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Sa Step'. + * + * 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 'Sa Step'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSaStep(SaStep object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Sa Shared Resource'. + * + * 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 'Sa Shared Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSaSharedResource(SaSharedResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Sa Sched Obs'. + * + * 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 'Sa Sched Obs'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSaSchedObs(SaSchedObs object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Sa Comm Host'. + * + * 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 'Sa Comm Host'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSaCommHost(SaCommHost object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Sa Exec Host'. + * + * 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 'Sa Exec Host'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSaExecHost(SaExecHost object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Configuration'. + * + * 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 'Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseConfiguration(Configuration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Expression Context'. + * + * 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 'Expression Context'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseExpressionContext(ExpressionContext object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Ga Analysis Context'. + * + * 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 'Ga Analysis Context'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseGaAnalysisContext(GaAnalysisContext object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Resource Usage'. + * + * 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 'Resource Usage'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseResourceUsage(ResourceUsage object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Timed Element'. + * + * 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 'Timed Element'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseTimedElement(TimedElement object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Timed Processing'. + * + * 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 'Timed Processing'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseTimedProcessing(TimedProcessing object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Ga Scenario'. + * + * 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 'Ga Scenario'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseGaScenario(GaScenario object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Ga Step'. + * + * 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 'Ga Step'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseGaStep(GaStep object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Ga Comm Step'. + * + * 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 'Ga Comm Step'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseGaCommStep(GaCommStep object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Resource'. + * + * 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 'Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseResource(Resource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Mutual Exclusion Resource'. + * + * 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 'Mutual Exclusion Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseMutualExclusionResource(MutualExclusionResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Nfp Constraint'. + * + * 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 'Nfp Constraint'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseNfpConstraint(NfpConstraint object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Ga Timed Obs'. + * + * 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 'Ga Timed Obs'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseGaTimedObs(GaTimedObs object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Processing Resource'. + * + * 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 'Processing Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseProcessingResource(ProcessingResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Communication Media'. + * + * 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 'Communication Media'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCommunicationMedia(CommunicationMedia object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Scheduler'. + * + * 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 'Scheduler'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseScheduler(Scheduler object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Ga Comm Host'. + * + * 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 'Ga Comm Host'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseGaCommHost(GaCommHost object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Computing Resource'. + * + * 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 'Computing Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseComputingResource(ComputingResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Ga Exec Host'. + * + * 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 'Ga Exec Host'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseGaExecHost(GaExecHost 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; + } + +} //SAMSwitch diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/util/SAMXMLProcessor.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/util/SAMXMLProcessor.java new file mode 100644 index 00000000000..050a229496f --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/SAM/util/SAMXMLProcessor.java @@ -0,0 +1,61 @@ +/***************************************************************************** + * 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.MARTE_AnalysisModel.SAM.util; + +import java.util.Map; + +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.xmi.util.XMLProcessor; + +import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.SAM.SAMPackage; + +/** + * This class contains helper methods to serialize and deserialize XML documents + * + * + * @generated + */ +public class SAMXMLProcessor extends XMLProcessor { + + /** + * Public constructor to instantiate the helper. + * + * + * @generated + */ + public SAMXMLProcessor() { + super((EPackage.Registry.INSTANCE)); + SAMPackage.eINSTANCE.eClass(); + } + + /** + * Register for "*" and "xml" file extensions the SAMResourceFactoryImpl factory. + * + * + * @generated + */ + @Override + protected Map getRegistrations() { + if (registrations == null) { + super.getRegistrations(); + registrations.put(XML_EXTENSION, new SAMResourceFactoryImpl()); + registrations.put(STAR_EXTENSION, new SAMResourceFactoryImpl()); + } + return registrations; + } + +} //SAMXMLProcessor diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/DefaultLink.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/DefaultLink.java new file mode 100644 index 00000000000..ceb59021144 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/DefaultLink.java @@ -0,0 +1,28 @@ +/***************************************************************************** + * 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.MARTE_Annexes.RSM; + + +/** + * + * A representation of the model object 'Default Link'. + * + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.RSMPackage#getDefaultLink() + * @model + * @generated + */ +public interface DefaultLink extends LinkTopology { +} // DefaultLink diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/Distribute.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/Distribute.java new file mode 100644 index 00000000000..93ce2f67e84 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/Distribute.java @@ -0,0 +1,142 @@ +/***************************************************************************** + * 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.MARTE_Annexes.RSM; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Allocate; + +/** + * + * A representation of the model object 'Distribute'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Distribute#getPatternShape Pattern Shape}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Distribute#getRepetitionSpace Repetition Space}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Distribute#getFromTiler From Tiler}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Distribute#getToTiler To Tiler}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.RSMPackage#getDistribute() + * @model + * @generated + */ +public interface Distribute extends Allocate { + /** + * Returns the value of the 'Pattern Shape' attribute. + * + *

+ * If the meaning of the 'Pattern Shape' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Pattern Shape' attribute. + * @see #setPatternShape(String) + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.RSMPackage#getDistribute_PatternShape() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.RS_Library.ShapeSpecification" required="true" ordered="false" + * @generated + */ + String getPatternShape(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Distribute#getPatternShape Pattern Shape}' attribute. + * + * + * @param value the new value of the 'Pattern Shape' attribute. + * @see #getPatternShape() + * @generated + */ + void setPatternShape(String value); + + /** + * Returns the value of the 'Repetition Space' attribute. + * + *

+ * If the meaning of the 'Repetition Space' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Repetition Space' attribute. + * @see #setRepetitionSpace(String) + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.RSMPackage#getDistribute_RepetitionSpace() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.RS_Library.ShapeSpecification" required="true" ordered="false" + * @generated + */ + String getRepetitionSpace(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Distribute#getRepetitionSpace Repetition Space}' attribute. + * + * + * @param value the new value of the 'Repetition Space' attribute. + * @see #getRepetitionSpace() + * @generated + */ + void setRepetitionSpace(String value); + + /** + * Returns the value of the 'From Tiler' attribute. + * + *

+ * If the meaning of the 'From Tiler' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'From Tiler' attribute. + * @see #setFromTiler(String) + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.RSMPackage#getDistribute_FromTiler() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.RS_Library.TilerSpecification" required="true" ordered="false" + * @generated + */ + String getFromTiler(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Distribute#getFromTiler From Tiler}' attribute. + * + * + * @param value the new value of the 'From Tiler' attribute. + * @see #getFromTiler() + * @generated + */ + void setFromTiler(String value); + + /** + * Returns the value of the 'To Tiler' attribute. + * + *

+ * If the meaning of the 'To Tiler' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'To Tiler' attribute. + * @see #setToTiler(String) + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.RSMPackage#getDistribute_ToTiler() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.RS_Library.TilerSpecification" required="true" ordered="false" + * @generated + */ + String getToTiler(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Distribute#getToTiler To Tiler}' attribute. + * + * + * @param value the new value of the 'To Tiler' attribute. + * @see #getToTiler() + * @generated + */ + void setToTiler(String value); + +} // Distribute diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/InterRepetition.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/InterRepetition.java new file mode 100644 index 00000000000..f009d1d5ee8 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/InterRepetition.java @@ -0,0 +1,88 @@ +/***************************************************************************** + * 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.MARTE_Annexes.RSM; + + +/** + * + * A representation of the model object 'Inter Repetition'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.InterRepetition#getRepetitionShapeDependence Repetition Shape Dependence}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.InterRepetition#isIsModulo Is Modulo}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.RSMPackage#getInterRepetition() + * @model + * @generated + */ +public interface InterRepetition extends LinkTopology { + /** + * Returns the value of the 'Repetition Shape Dependence' attribute. + * + *

+ * If the meaning of the 'Repetition Shape Dependence' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Repetition Shape Dependence' attribute. + * @see #setRepetitionShapeDependence(String) + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.RSMPackage#getInterRepetition_RepetitionShapeDependence() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.IntegerVector" required="true" ordered="false" + * @generated + */ + String getRepetitionShapeDependence(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.InterRepetition#getRepetitionShapeDependence Repetition Shape Dependence}' attribute. + * + * + * @param value the new value of the 'Repetition Shape Dependence' attribute. + * @see #getRepetitionShapeDependence() + * @generated + */ + void setRepetitionShapeDependence(String value); + + /** + * Returns the value of the 'Is Modulo' attribute. + * The default value is "false". + * + *

+ * If the meaning of the 'Is Modulo' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Is Modulo' attribute. + * @see #setIsModulo(boolean) + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.RSMPackage#getInterRepetition_IsModulo() + * @model default="false" unique="false" dataType="org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.Boolean" ordered="false" + * @generated + */ + boolean isIsModulo(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.InterRepetition#isIsModulo Is Modulo}' attribute. + * + * + * @param value the new value of the 'Is Modulo' attribute. + * @see #isIsModulo() + * @generated + */ + void setIsModulo(boolean value); + +} // InterRepetition diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/LinkTopology.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/LinkTopology.java new file mode 100644 index 00000000000..f3718def1ce --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/LinkTopology.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.MARTE_Annexes.RSM; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.uml2.uml.Connector; + +/** + * + * A representation of the model object 'Link Topology'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.LinkTopology#getBase_Connector Base Connector}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.RSMPackage#getLinkTopology() + * @model abstract="true" + * @generated + */ +public interface LinkTopology extends EObject { + /** + * Returns the value of the 'Base Connector' reference. + * + *

+ * If the meaning of the 'Base Connector' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Connector' reference. + * @see #setBase_Connector(Connector) + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.RSMPackage#getLinkTopology_Base_Connector() + * @model required="true" ordered="false" + * @generated + */ + Connector getBase_Connector(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.LinkTopology#getBase_Connector Base Connector}' reference. + * + * + * @param value the new value of the 'Base Connector' reference. + * @see #getBase_Connector() + * @generated + */ + void setBase_Connector(Connector value); + +} // LinkTopology diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/RSMFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/RSMFactory.java new file mode 100644 index 00000000000..09be1c4f278 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/RSMFactory.java @@ -0,0 +1,98 @@ +/***************************************************************************** + * 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.MARTE_Annexes.RSM; + +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.MARTE_Annexes.RSM.RSMPackage + * @generated + */ +public interface RSMFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + RSMFactory eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.RSMFactoryImpl.init(); + + /** + * Returns a new object of class 'Default Link'. + * + * + * @return a new object of class 'Default Link'. + * @generated + */ + DefaultLink createDefaultLink(); + + /** + * Returns a new object of class 'Inter Repetition'. + * + * + * @return a new object of class 'Inter Repetition'. + * @generated + */ + InterRepetition createInterRepetition(); + + /** + * Returns a new object of class 'Distribute'. + * + * + * @return a new object of class 'Distribute'. + * @generated + */ + Distribute createDistribute(); + + /** + * Returns a new object of class 'Reshape'. + * + * + * @return a new object of class 'Reshape'. + * @generated + */ + Reshape createReshape(); + + /** + * Returns a new object of class 'Tiler'. + * + * + * @return a new object of class 'Tiler'. + * @generated + */ + Tiler createTiler(); + + /** + * Returns a new object of class 'Shaped'. + * + * + * @return a new object of class 'Shaped'. + * @generated + */ + Shaped createShaped(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + RSMPackage getRSMPackage(); + +} //RSMFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/RSMPackage.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/RSMPackage.java new file mode 100644 index 00000000000..b212262faa9 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/RSMPackage.java @@ -0,0 +1,889 @@ +/***************************************************************************** + * 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.MARTE_Annexes.RSM; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocPackage; + +/** + * + * 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.MARTE_Annexes.RSM.RSMFactory + * @model kind="package" + * @generated + */ +public interface RSMPackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "RSM"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "http://www.eclipse.org/papyrus/RSM/1"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "RSM"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + RSMPackage eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.RSMPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.LinkTopologyImpl Link Topology}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.LinkTopologyImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.RSMPackageImpl#getLinkTopology() + * @generated + */ + int LINK_TOPOLOGY = 0; + + /** + * The feature id for the 'Base Connector' reference. + * + * + * @generated + * @ordered + */ + int LINK_TOPOLOGY__BASE_CONNECTOR = 0; + + /** + * The number of structural features of the 'Link Topology' class. + * + * + * @generated + * @ordered + */ + int LINK_TOPOLOGY_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.DefaultLinkImpl Default Link}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.DefaultLinkImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.RSMPackageImpl#getDefaultLink() + * @generated + */ + int DEFAULT_LINK = 1; + + /** + * The feature id for the 'Base Connector' reference. + * + * + * @generated + * @ordered + */ + int DEFAULT_LINK__BASE_CONNECTOR = LINK_TOPOLOGY__BASE_CONNECTOR; + + /** + * The number of structural features of the 'Default Link' class. + * + * + * @generated + * @ordered + */ + int DEFAULT_LINK_FEATURE_COUNT = LINK_TOPOLOGY_FEATURE_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.InterRepetitionImpl Inter Repetition}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.InterRepetitionImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.RSMPackageImpl#getInterRepetition() + * @generated + */ + int INTER_REPETITION = 2; + + /** + * The feature id for the 'Base Connector' reference. + * + * + * @generated + * @ordered + */ + int INTER_REPETITION__BASE_CONNECTOR = LINK_TOPOLOGY__BASE_CONNECTOR; + + /** + * The feature id for the 'Repetition Shape Dependence' attribute. + * + * + * @generated + * @ordered + */ + int INTER_REPETITION__REPETITION_SHAPE_DEPENDENCE = LINK_TOPOLOGY_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Is Modulo' attribute. + * + * + * @generated + * @ordered + */ + int INTER_REPETITION__IS_MODULO = LINK_TOPOLOGY_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Inter Repetition' class. + * + * + * @generated + * @ordered + */ + int INTER_REPETITION_FEATURE_COUNT = LINK_TOPOLOGY_FEATURE_COUNT + 2; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.DistributeImpl Distribute}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.DistributeImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.RSMPackageImpl#getDistribute() + * @generated + */ + int DISTRIBUTE = 3; + + /** + * The feature id for the 'Kind' attribute. + * + * + * @generated + * @ordered + */ + int DISTRIBUTE__KIND = AllocPackage.ALLOCATE__KIND; + + /** + * The feature id for the 'Nature' attribute. + * + * + * @generated + * @ordered + */ + int DISTRIBUTE__NATURE = AllocPackage.ALLOCATE__NATURE; + + /** + * The feature id for the 'Base Abstraction' reference. + * + * + * @generated + * @ordered + */ + int DISTRIBUTE__BASE_ABSTRACTION = AllocPackage.ALLOCATE__BASE_ABSTRACTION; + + /** + * The feature id for the 'Implied Constraint' reference list. + * + * + * @generated + * @ordered + */ + int DISTRIBUTE__IMPLIED_CONSTRAINT = AllocPackage.ALLOCATE__IMPLIED_CONSTRAINT; + + /** + * The feature id for the 'Pattern Shape' attribute. + * + * + * @generated + * @ordered + */ + int DISTRIBUTE__PATTERN_SHAPE = AllocPackage.ALLOCATE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Repetition Space' attribute. + * + * + * @generated + * @ordered + */ + int DISTRIBUTE__REPETITION_SPACE = AllocPackage.ALLOCATE_FEATURE_COUNT + 1; + + /** + * The feature id for the 'From Tiler' attribute. + * + * + * @generated + * @ordered + */ + int DISTRIBUTE__FROM_TILER = AllocPackage.ALLOCATE_FEATURE_COUNT + 2; + + /** + * The feature id for the 'To Tiler' attribute. + * + * + * @generated + * @ordered + */ + int DISTRIBUTE__TO_TILER = AllocPackage.ALLOCATE_FEATURE_COUNT + 3; + + /** + * The number of structural features of the 'Distribute' class. + * + * + * @generated + * @ordered + */ + int DISTRIBUTE_FEATURE_COUNT = AllocPackage.ALLOCATE_FEATURE_COUNT + 4; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.ReshapeImpl Reshape}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.ReshapeImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.RSMPackageImpl#getReshape() + * @generated + */ + int RESHAPE = 4; + + /** + * The feature id for the 'Base Connector' reference. + * + * + * @generated + * @ordered + */ + int RESHAPE__BASE_CONNECTOR = LINK_TOPOLOGY__BASE_CONNECTOR; + + /** + * The feature id for the 'Pattern Shape' attribute. + * + * + * @generated + * @ordered + */ + int RESHAPE__PATTERN_SHAPE = LINK_TOPOLOGY_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Repetiton Shape' attribute. + * + * + * @generated + * @ordered + */ + int RESHAPE__REPETITON_SHAPE = LINK_TOPOLOGY_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Reshape' class. + * + * + * @generated + * @ordered + */ + int RESHAPE_FEATURE_COUNT = LINK_TOPOLOGY_FEATURE_COUNT + 2; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.TilerImpl Tiler}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.TilerImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.RSMPackageImpl#getTiler() + * @generated + */ + int TILER = 5; + + /** + * The feature id for the 'Base Connector' reference. + * + * + * @generated + * @ordered + */ + int TILER__BASE_CONNECTOR = LINK_TOPOLOGY__BASE_CONNECTOR; + + /** + * The feature id for the 'Origin' attribute. + * + * + * @generated + * @ordered + */ + int TILER__ORIGIN = LINK_TOPOLOGY_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Paving' attribute. + * + * + * @generated + * @ordered + */ + int TILER__PAVING = LINK_TOPOLOGY_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Fitting' attribute. + * + * + * @generated + * @ordered + */ + int TILER__FITTING = LINK_TOPOLOGY_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Tiler' attribute. + * + * + * @generated + * @ordered + */ + int TILER__TILER = LINK_TOPOLOGY_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Base Connector End' reference. + * + * + * @generated + * @ordered + */ + int TILER__BASE_CONNECTOR_END = LINK_TOPOLOGY_FEATURE_COUNT + 4; + + /** + * The number of structural features of the 'Tiler' class. + * + * + * @generated + * @ordered + */ + int TILER_FEATURE_COUNT = LINK_TOPOLOGY_FEATURE_COUNT + 5; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.ShapedImpl Shaped}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.ShapedImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.RSMPackageImpl#getShaped() + * @generated + */ + int SHAPED = 6; + + /** + * The feature id for the 'Shape' attribute. + * + * + * @generated + * @ordered + */ + int SHAPED__SHAPE = 0; + + /** + * The feature id for the 'Base Multiplicity Element' reference. + * + * + * @generated + * @ordered + */ + int SHAPED__BASE_MULTIPLICITY_ELEMENT = 1; + + /** + * The number of structural features of the 'Shaped' class. + * + * + * @generated + * @ordered + */ + int SHAPED_FEATURE_COUNT = 2; + + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.LinkTopology Link Topology}'. + * + * + * @return the meta object for class 'Link Topology'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.LinkTopology + * @generated + */ + EClass getLinkTopology(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.LinkTopology#getBase_Connector Base Connector}'. + * + * + * @return the meta object for the reference 'Base Connector'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.LinkTopology#getBase_Connector() + * @see #getLinkTopology() + * @generated + */ + EReference getLinkTopology_Base_Connector(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.DefaultLink Default Link}'. + * + * + * @return the meta object for class 'Default Link'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.DefaultLink + * @generated + */ + EClass getDefaultLink(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.InterRepetition Inter Repetition}'. + * + * + * @return the meta object for class 'Inter Repetition'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.InterRepetition + * @generated + */ + EClass getInterRepetition(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.InterRepetition#getRepetitionShapeDependence Repetition Shape Dependence}'. + * + * + * @return the meta object for the attribute 'Repetition Shape Dependence'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.InterRepetition#getRepetitionShapeDependence() + * @see #getInterRepetition() + * @generated + */ + EAttribute getInterRepetition_RepetitionShapeDependence(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.InterRepetition#isIsModulo Is Modulo}'. + * + * + * @return the meta object for the attribute 'Is Modulo'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.InterRepetition#isIsModulo() + * @see #getInterRepetition() + * @generated + */ + EAttribute getInterRepetition_IsModulo(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Distribute Distribute}'. + * + * + * @return the meta object for class 'Distribute'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Distribute + * @generated + */ + EClass getDistribute(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Distribute#getPatternShape Pattern Shape}'. + * + * + * @return the meta object for the attribute 'Pattern Shape'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Distribute#getPatternShape() + * @see #getDistribute() + * @generated + */ + EAttribute getDistribute_PatternShape(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Distribute#getRepetitionSpace Repetition Space}'. + * + * + * @return the meta object for the attribute 'Repetition Space'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Distribute#getRepetitionSpace() + * @see #getDistribute() + * @generated + */ + EAttribute getDistribute_RepetitionSpace(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Distribute#getFromTiler From Tiler}'. + * + * + * @return the meta object for the attribute 'From Tiler'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Distribute#getFromTiler() + * @see #getDistribute() + * @generated + */ + EAttribute getDistribute_FromTiler(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Distribute#getToTiler To Tiler}'. + * + * + * @return the meta object for the attribute 'To Tiler'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Distribute#getToTiler() + * @see #getDistribute() + * @generated + */ + EAttribute getDistribute_ToTiler(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Reshape Reshape}'. + * + * + * @return the meta object for class 'Reshape'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Reshape + * @generated + */ + EClass getReshape(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Reshape#getPatternShape Pattern Shape}'. + * + * + * @return the meta object for the attribute 'Pattern Shape'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Reshape#getPatternShape() + * @see #getReshape() + * @generated + */ + EAttribute getReshape_PatternShape(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Reshape#getRepetitonShape Repetiton Shape}'. + * + * + * @return the meta object for the attribute 'Repetiton Shape'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Reshape#getRepetitonShape() + * @see #getReshape() + * @generated + */ + EAttribute getReshape_RepetitonShape(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Tiler Tiler}'. + * + * + * @return the meta object for class 'Tiler'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Tiler + * @generated + */ + EClass getTiler(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Tiler#getOrigin Origin}'. + * + * + * @return the meta object for the attribute 'Origin'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Tiler#getOrigin() + * @see #getTiler() + * @generated + */ + EAttribute getTiler_Origin(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Tiler#getPaving Paving}'. + * + * + * @return the meta object for the attribute 'Paving'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Tiler#getPaving() + * @see #getTiler() + * @generated + */ + EAttribute getTiler_Paving(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Tiler#getFitting Fitting}'. + * + * + * @return the meta object for the attribute 'Fitting'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Tiler#getFitting() + * @see #getTiler() + * @generated + */ + EAttribute getTiler_Fitting(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Tiler#getTiler Tiler}'. + * + * + * @return the meta object for the attribute 'Tiler'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Tiler#getTiler() + * @see #getTiler() + * @generated + */ + EAttribute getTiler_Tiler(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Tiler#getBase_ConnectorEnd Base Connector End}'. + * + * + * @return the meta object for the reference 'Base Connector End'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Tiler#getBase_ConnectorEnd() + * @see #getTiler() + * @generated + */ + EReference getTiler_Base_ConnectorEnd(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Shaped Shaped}'. + * + * + * @return the meta object for class 'Shaped'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Shaped + * @generated + */ + EClass getShaped(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Shaped#getShape Shape}'. + * + * + * @return the meta object for the attribute 'Shape'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Shaped#getShape() + * @see #getShaped() + * @generated + */ + EAttribute getShaped_Shape(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Shaped#getBase_MultiplicityElement Base Multiplicity Element}'. + * + * + * @return the meta object for the reference 'Base Multiplicity Element'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Shaped#getBase_MultiplicityElement() + * @see #getShaped() + * @generated + */ + EReference getShaped_Base_MultiplicityElement(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + RSMFactory getRSMFactory(); + + /** + * + * 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.MARTE_Annexes.RSM.impl.LinkTopologyImpl Link Topology}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.LinkTopologyImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.RSMPackageImpl#getLinkTopology() + * @generated + */ + EClass LINK_TOPOLOGY = eINSTANCE.getLinkTopology(); + + /** + * The meta object literal for the 'Base Connector' reference feature. + * + * + * @generated + */ + EReference LINK_TOPOLOGY__BASE_CONNECTOR = eINSTANCE.getLinkTopology_Base_Connector(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.DefaultLinkImpl Default Link}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.DefaultLinkImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.RSMPackageImpl#getDefaultLink() + * @generated + */ + EClass DEFAULT_LINK = eINSTANCE.getDefaultLink(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.InterRepetitionImpl Inter Repetition}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.InterRepetitionImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.RSMPackageImpl#getInterRepetition() + * @generated + */ + EClass INTER_REPETITION = eINSTANCE.getInterRepetition(); + + /** + * The meta object literal for the 'Repetition Shape Dependence' attribute feature. + * + * + * @generated + */ + EAttribute INTER_REPETITION__REPETITION_SHAPE_DEPENDENCE = eINSTANCE.getInterRepetition_RepetitionShapeDependence(); + + /** + * The meta object literal for the 'Is Modulo' attribute feature. + * + * + * @generated + */ + EAttribute INTER_REPETITION__IS_MODULO = eINSTANCE.getInterRepetition_IsModulo(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.DistributeImpl Distribute}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.DistributeImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.RSMPackageImpl#getDistribute() + * @generated + */ + EClass DISTRIBUTE = eINSTANCE.getDistribute(); + + /** + * The meta object literal for the 'Pattern Shape' attribute feature. + * + * + * @generated + */ + EAttribute DISTRIBUTE__PATTERN_SHAPE = eINSTANCE.getDistribute_PatternShape(); + + /** + * The meta object literal for the 'Repetition Space' attribute feature. + * + * + * @generated + */ + EAttribute DISTRIBUTE__REPETITION_SPACE = eINSTANCE.getDistribute_RepetitionSpace(); + + /** + * The meta object literal for the 'From Tiler' attribute feature. + * + * + * @generated + */ + EAttribute DISTRIBUTE__FROM_TILER = eINSTANCE.getDistribute_FromTiler(); + + /** + * The meta object literal for the 'To Tiler' attribute feature. + * + * + * @generated + */ + EAttribute DISTRIBUTE__TO_TILER = eINSTANCE.getDistribute_ToTiler(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.ReshapeImpl Reshape}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.ReshapeImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.RSMPackageImpl#getReshape() + * @generated + */ + EClass RESHAPE = eINSTANCE.getReshape(); + + /** + * The meta object literal for the 'Pattern Shape' attribute feature. + * + * + * @generated + */ + EAttribute RESHAPE__PATTERN_SHAPE = eINSTANCE.getReshape_PatternShape(); + + /** + * The meta object literal for the 'Repetiton Shape' attribute feature. + * + * + * @generated + */ + EAttribute RESHAPE__REPETITON_SHAPE = eINSTANCE.getReshape_RepetitonShape(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.TilerImpl Tiler}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.TilerImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.RSMPackageImpl#getTiler() + * @generated + */ + EClass TILER = eINSTANCE.getTiler(); + + /** + * The meta object literal for the 'Origin' attribute feature. + * + * + * @generated + */ + EAttribute TILER__ORIGIN = eINSTANCE.getTiler_Origin(); + + /** + * The meta object literal for the 'Paving' attribute feature. + * + * + * @generated + */ + EAttribute TILER__PAVING = eINSTANCE.getTiler_Paving(); + + /** + * The meta object literal for the 'Fitting' attribute feature. + * + * + * @generated + */ + EAttribute TILER__FITTING = eINSTANCE.getTiler_Fitting(); + + /** + * The meta object literal for the 'Tiler' attribute feature. + * + * + * @generated + */ + EAttribute TILER__TILER = eINSTANCE.getTiler_Tiler(); + + /** + * The meta object literal for the 'Base Connector End' reference feature. + * + * + * @generated + */ + EReference TILER__BASE_CONNECTOR_END = eINSTANCE.getTiler_Base_ConnectorEnd(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.ShapedImpl Shaped}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.ShapedImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.RSMPackageImpl#getShaped() + * @generated + */ + EClass SHAPED = eINSTANCE.getShaped(); + + /** + * The meta object literal for the 'Shape' attribute feature. + * + * + * @generated + */ + EAttribute SHAPED__SHAPE = eINSTANCE.getShaped_Shape(); + + /** + * The meta object literal for the 'Base Multiplicity Element' reference feature. + * + * + * @generated + */ + EReference SHAPED__BASE_MULTIPLICITY_ELEMENT = eINSTANCE.getShaped_Base_MultiplicityElement(); + + } + +} //RSMPackage diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/Reshape.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/Reshape.java new file mode 100644 index 00000000000..f06823f9c8f --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/Reshape.java @@ -0,0 +1,87 @@ +/***************************************************************************** + * 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.MARTE_Annexes.RSM; + + +/** + * + * A representation of the model object 'Reshape'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Reshape#getPatternShape Pattern Shape}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Reshape#getRepetitonShape Repetiton Shape}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.RSMPackage#getReshape() + * @model + * @generated + */ +public interface Reshape extends LinkTopology { + /** + * Returns the value of the 'Pattern Shape' attribute. + * + *

+ * If the meaning of the 'Pattern Shape' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Pattern Shape' attribute. + * @see #setPatternShape(String) + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.RSMPackage#getReshape_PatternShape() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.RS_Library.ShapeSpecification" required="true" ordered="false" + * @generated + */ + String getPatternShape(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Reshape#getPatternShape Pattern Shape}' attribute. + * + * + * @param value the new value of the 'Pattern Shape' attribute. + * @see #getPatternShape() + * @generated + */ + void setPatternShape(String value); + + /** + * Returns the value of the 'Repetiton Shape' attribute. + * + *

+ * If the meaning of the 'Repetiton Shape' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Repetiton Shape' attribute. + * @see #setRepetitonShape(String) + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.RSMPackage#getReshape_RepetitonShape() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.RS_Library.ShapeSpecification" required="true" ordered="false" + * @generated + */ + String getRepetitonShape(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Reshape#getRepetitonShape Repetiton Shape}' attribute. + * + * + * @param value the new value of the 'Repetiton Shape' attribute. + * @see #getRepetitonShape() + * @generated + */ + void setRepetitonShape(String value); + +} // Reshape diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/Shaped.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/Shaped.java new file mode 100644 index 00000000000..e4d6346f891 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/Shaped.java @@ -0,0 +1,90 @@ +/***************************************************************************** + * 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.MARTE_Annexes.RSM; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.uml2.uml.MultiplicityElement; + +/** + * + * A representation of the model object 'Shaped'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Shaped#getShape Shape}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Shaped#getBase_MultiplicityElement Base Multiplicity Element}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.RSMPackage#getShaped() + * @model + * @generated + */ +public interface Shaped extends EObject { + /** + * Returns the value of the 'Shape' attribute. + * + *

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

+ * + * @return the value of the 'Shape' attribute. + * @see #setShape(String) + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.RSMPackage#getShaped_Shape() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.RS_Library.ShapeSpecification" required="true" ordered="false" + * @generated + */ + String getShape(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Shaped#getShape Shape}' attribute. + * + * + * @param value the new value of the 'Shape' attribute. + * @see #getShape() + * @generated + */ + void setShape(String value); + + /** + * Returns the value of the 'Base Multiplicity Element' reference. + * + *

+ * If the meaning of the 'Base Multiplicity Element' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Multiplicity Element' reference. + * @see #setBase_MultiplicityElement(MultiplicityElement) + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.RSMPackage#getShaped_Base_MultiplicityElement() + * @model required="true" ordered="false" + * @generated + */ + MultiplicityElement getBase_MultiplicityElement(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Shaped#getBase_MultiplicityElement Base Multiplicity Element}' reference. + * + * + * @param value the new value of the 'Base Multiplicity Element' reference. + * @see #getBase_MultiplicityElement() + * @generated + */ + void setBase_MultiplicityElement(MultiplicityElement value); + +} // Shaped diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/Tiler.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/Tiler.java new file mode 100644 index 00000000000..641b1d068fd --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/Tiler.java @@ -0,0 +1,169 @@ +/***************************************************************************** + * 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.MARTE_Annexes.RSM; + +import org.eclipse.uml2.uml.ConnectorEnd; + +/** + * + * A representation of the model object 'Tiler'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Tiler#getOrigin Origin}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Tiler#getPaving Paving}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Tiler#getFitting Fitting}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Tiler#getTiler Tiler}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Tiler#getBase_ConnectorEnd Base Connector End}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.RSMPackage#getTiler() + * @model + * @generated + */ +public interface Tiler extends LinkTopology { + /** + * Returns the value of the 'Origin' attribute. + * + *

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

+ * + * @return the value of the 'Origin' attribute. + * @see #setOrigin(String) + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.RSMPackage#getTiler_Origin() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.IntegerVector" ordered="false" + * @generated + */ + String getOrigin(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Tiler#getOrigin Origin}' attribute. + * + * + * @param value the new value of the 'Origin' attribute. + * @see #getOrigin() + * @generated + */ + void setOrigin(String value); + + /** + * Returns the value of the 'Paving' attribute. + * + *

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

+ * + * @return the value of the 'Paving' attribute. + * @see #setPaving(String) + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.RSMPackage#getTiler_Paving() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.IntegerMatrix" ordered="false" + * @generated + */ + String getPaving(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Tiler#getPaving Paving}' attribute. + * + * + * @param value the new value of the 'Paving' attribute. + * @see #getPaving() + * @generated + */ + void setPaving(String value); + + /** + * Returns the value of the 'Fitting' attribute. + * + *

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

+ * + * @return the value of the 'Fitting' attribute. + * @see #setFitting(String) + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.RSMPackage#getTiler_Fitting() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.IntegerMatrix" ordered="false" + * @generated + */ + String getFitting(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Tiler#getFitting Fitting}' attribute. + * + * + * @param value the new value of the 'Fitting' attribute. + * @see #getFitting() + * @generated + */ + void setFitting(String value); + + /** + * Returns the value of the 'Tiler' attribute. + * + *

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

+ * + * @return the value of the 'Tiler' attribute. + * @see #setTiler(String) + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.RSMPackage#getTiler_Tiler() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.RS_Library.TilerSpecification" ordered="false" + * @generated + */ + String getTiler(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Tiler#getTiler Tiler}' attribute. + * + * + * @param value the new value of the 'Tiler' attribute. + * @see #getTiler() + * @generated + */ + void setTiler(String value); + + /** + * Returns the value of the 'Base Connector End' reference. + * + *

+ * If the meaning of the 'Base Connector End' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Connector End' reference. + * @see #setBase_ConnectorEnd(ConnectorEnd) + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.RSMPackage#getTiler_Base_ConnectorEnd() + * @model required="true" ordered="false" + * @generated + */ + ConnectorEnd getBase_ConnectorEnd(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Tiler#getBase_ConnectorEnd Base Connector End}' reference. + * + * + * @param value the new value of the 'Base Connector End' reference. + * @see #getBase_ConnectorEnd() + * @generated + */ + void setBase_ConnectorEnd(ConnectorEnd value); + +} // Tiler diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/impl/DefaultLinkImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/impl/DefaultLinkImpl.java new file mode 100644 index 00000000000..b7382cfbe9d --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/impl/DefaultLinkImpl.java @@ -0,0 +1,50 @@ +/***************************************************************************** + * 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.MARTE_Annexes.RSM.impl; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.DefaultLink; +import org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.RSMPackage; + +/** + * + * An implementation of the model object 'Default Link'. + * + *

+ *

+ * + * @generated + */ +public class DefaultLinkImpl extends LinkTopologyImpl implements DefaultLink { + /** + * + * + * @generated + */ + protected DefaultLinkImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return RSMPackage.Literals.DEFAULT_LINK; + } + +} //DefaultLinkImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/impl/DistributeImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/impl/DistributeImpl.java new file mode 100644 index 00000000000..e2a5335dac1 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/impl/DistributeImpl.java @@ -0,0 +1,337 @@ +/***************************************************************************** + * 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.MARTE_Annexes.RSM.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Distribute; +import org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.RSMPackage; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AllocateImpl; + +/** + * + * An implementation of the model object 'Distribute'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.DistributeImpl#getPatternShape Pattern Shape}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.DistributeImpl#getRepetitionSpace Repetition Space}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.DistributeImpl#getFromTiler From Tiler}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.DistributeImpl#getToTiler To Tiler}
  • + *
+ *

+ * + * @generated + */ +public class DistributeImpl extends AllocateImpl implements Distribute { + /** + * The default value of the '{@link #getPatternShape() Pattern Shape}' attribute. + * + * + * @see #getPatternShape() + * @generated + * @ordered + */ + protected static final String PATTERN_SHAPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPatternShape() Pattern Shape}' attribute. + * + * + * @see #getPatternShape() + * @generated + * @ordered + */ + protected String patternShape = PATTERN_SHAPE_EDEFAULT; + + /** + * The default value of the '{@link #getRepetitionSpace() Repetition Space}' attribute. + * + * + * @see #getRepetitionSpace() + * @generated + * @ordered + */ + protected static final String REPETITION_SPACE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getRepetitionSpace() Repetition Space}' attribute. + * + * + * @see #getRepetitionSpace() + * @generated + * @ordered + */ + protected String repetitionSpace = REPETITION_SPACE_EDEFAULT; + + /** + * The default value of the '{@link #getFromTiler() From Tiler}' attribute. + * + * + * @see #getFromTiler() + * @generated + * @ordered + */ + protected static final String FROM_TILER_EDEFAULT = null; + + /** + * The cached value of the '{@link #getFromTiler() From Tiler}' attribute. + * + * + * @see #getFromTiler() + * @generated + * @ordered + */ + protected String fromTiler = FROM_TILER_EDEFAULT; + + /** + * The default value of the '{@link #getToTiler() To Tiler}' attribute. + * + * + * @see #getToTiler() + * @generated + * @ordered + */ + protected static final String TO_TILER_EDEFAULT = null; + + /** + * The cached value of the '{@link #getToTiler() To Tiler}' attribute. + * + * + * @see #getToTiler() + * @generated + * @ordered + */ + protected String toTiler = TO_TILER_EDEFAULT; + + /** + * + * + * @generated + */ + protected DistributeImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return RSMPackage.Literals.DISTRIBUTE; + } + + /** + * + * + * @generated + */ + public String getPatternShape() { + return patternShape; + } + + /** + * + * + * @generated + */ + public void setPatternShape(String newPatternShape) { + String oldPatternShape = patternShape; + patternShape = newPatternShape; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, RSMPackage.DISTRIBUTE__PATTERN_SHAPE, oldPatternShape, patternShape)); + } + + /** + * + * + * @generated + */ + public String getRepetitionSpace() { + return repetitionSpace; + } + + /** + * + * + * @generated + */ + public void setRepetitionSpace(String newRepetitionSpace) { + String oldRepetitionSpace = repetitionSpace; + repetitionSpace = newRepetitionSpace; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, RSMPackage.DISTRIBUTE__REPETITION_SPACE, oldRepetitionSpace, repetitionSpace)); + } + + /** + * + * + * @generated + */ + public String getFromTiler() { + return fromTiler; + } + + /** + * + * + * @generated + */ + public void setFromTiler(String newFromTiler) { + String oldFromTiler = fromTiler; + fromTiler = newFromTiler; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, RSMPackage.DISTRIBUTE__FROM_TILER, oldFromTiler, fromTiler)); + } + + /** + * + * + * @generated + */ + public String getToTiler() { + return toTiler; + } + + /** + * + * + * @generated + */ + public void setToTiler(String newToTiler) { + String oldToTiler = toTiler; + toTiler = newToTiler; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, RSMPackage.DISTRIBUTE__TO_TILER, oldToTiler, toTiler)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case RSMPackage.DISTRIBUTE__PATTERN_SHAPE: + return getPatternShape(); + case RSMPackage.DISTRIBUTE__REPETITION_SPACE: + return getRepetitionSpace(); + case RSMPackage.DISTRIBUTE__FROM_TILER: + return getFromTiler(); + case RSMPackage.DISTRIBUTE__TO_TILER: + return getToTiler(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case RSMPackage.DISTRIBUTE__PATTERN_SHAPE: + setPatternShape((String)newValue); + return; + case RSMPackage.DISTRIBUTE__REPETITION_SPACE: + setRepetitionSpace((String)newValue); + return; + case RSMPackage.DISTRIBUTE__FROM_TILER: + setFromTiler((String)newValue); + return; + case RSMPackage.DISTRIBUTE__TO_TILER: + setToTiler((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case RSMPackage.DISTRIBUTE__PATTERN_SHAPE: + setPatternShape(PATTERN_SHAPE_EDEFAULT); + return; + case RSMPackage.DISTRIBUTE__REPETITION_SPACE: + setRepetitionSpace(REPETITION_SPACE_EDEFAULT); + return; + case RSMPackage.DISTRIBUTE__FROM_TILER: + setFromTiler(FROM_TILER_EDEFAULT); + return; + case RSMPackage.DISTRIBUTE__TO_TILER: + setToTiler(TO_TILER_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case RSMPackage.DISTRIBUTE__PATTERN_SHAPE: + return PATTERN_SHAPE_EDEFAULT == null ? patternShape != null : !PATTERN_SHAPE_EDEFAULT.equals(patternShape); + case RSMPackage.DISTRIBUTE__REPETITION_SPACE: + return REPETITION_SPACE_EDEFAULT == null ? repetitionSpace != null : !REPETITION_SPACE_EDEFAULT.equals(repetitionSpace); + case RSMPackage.DISTRIBUTE__FROM_TILER: + return FROM_TILER_EDEFAULT == null ? fromTiler != null : !FROM_TILER_EDEFAULT.equals(fromTiler); + case RSMPackage.DISTRIBUTE__TO_TILER: + return TO_TILER_EDEFAULT == null ? toTiler != null : !TO_TILER_EDEFAULT.equals(toTiler); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (patternShape: "); + result.append(patternShape); + result.append(", repetitionSpace: "); + result.append(repetitionSpace); + result.append(", fromTiler: "); + result.append(fromTiler); + result.append(", toTiler: "); + result.append(toTiler); + result.append(')'); + return result.toString(); + } + +} //DistributeImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/impl/InterRepetitionImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/impl/InterRepetitionImpl.java new file mode 100644 index 00000000000..2df484a7343 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/impl/InterRepetitionImpl.java @@ -0,0 +1,227 @@ +/***************************************************************************** + * 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.MARTE_Annexes.RSM.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.InterRepetition; +import org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.RSMPackage; + +/** + * + * An implementation of the model object 'Inter Repetition'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.InterRepetitionImpl#getRepetitionShapeDependence Repetition Shape Dependence}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.InterRepetitionImpl#isIsModulo Is Modulo}
  • + *
+ *

+ * + * @generated + */ +public class InterRepetitionImpl extends LinkTopologyImpl implements InterRepetition { + /** + * The default value of the '{@link #getRepetitionShapeDependence() Repetition Shape Dependence}' attribute. + * + * + * @see #getRepetitionShapeDependence() + * @generated + * @ordered + */ + protected static final String REPETITION_SHAPE_DEPENDENCE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getRepetitionShapeDependence() Repetition Shape Dependence}' attribute. + * + * + * @see #getRepetitionShapeDependence() + * @generated + * @ordered + */ + protected String repetitionShapeDependence = REPETITION_SHAPE_DEPENDENCE_EDEFAULT; + + /** + * The default value of the '{@link #isIsModulo() Is Modulo}' attribute. + * + * + * @see #isIsModulo() + * @generated + * @ordered + */ + protected static final boolean IS_MODULO_EDEFAULT = false; + + /** + * The cached value of the '{@link #isIsModulo() Is Modulo}' attribute. + * + * + * @see #isIsModulo() + * @generated + * @ordered + */ + protected boolean isModulo = IS_MODULO_EDEFAULT; + + /** + * + * + * @generated + */ + protected InterRepetitionImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return RSMPackage.Literals.INTER_REPETITION; + } + + /** + * + * + * @generated + */ + public String getRepetitionShapeDependence() { + return repetitionShapeDependence; + } + + /** + * + * + * @generated + */ + public void setRepetitionShapeDependence(String newRepetitionShapeDependence) { + String oldRepetitionShapeDependence = repetitionShapeDependence; + repetitionShapeDependence = newRepetitionShapeDependence; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, RSMPackage.INTER_REPETITION__REPETITION_SHAPE_DEPENDENCE, oldRepetitionShapeDependence, repetitionShapeDependence)); + } + + /** + * + * + * @generated + */ + public boolean isIsModulo() { + return isModulo; + } + + /** + * + * + * @generated + */ + public void setIsModulo(boolean newIsModulo) { + boolean oldIsModulo = isModulo; + isModulo = newIsModulo; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, RSMPackage.INTER_REPETITION__IS_MODULO, oldIsModulo, isModulo)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case RSMPackage.INTER_REPETITION__REPETITION_SHAPE_DEPENDENCE: + return getRepetitionShapeDependence(); + case RSMPackage.INTER_REPETITION__IS_MODULO: + return isIsModulo(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case RSMPackage.INTER_REPETITION__REPETITION_SHAPE_DEPENDENCE: + setRepetitionShapeDependence((String)newValue); + return; + case RSMPackage.INTER_REPETITION__IS_MODULO: + setIsModulo((Boolean)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case RSMPackage.INTER_REPETITION__REPETITION_SHAPE_DEPENDENCE: + setRepetitionShapeDependence(REPETITION_SHAPE_DEPENDENCE_EDEFAULT); + return; + case RSMPackage.INTER_REPETITION__IS_MODULO: + setIsModulo(IS_MODULO_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case RSMPackage.INTER_REPETITION__REPETITION_SHAPE_DEPENDENCE: + return REPETITION_SHAPE_DEPENDENCE_EDEFAULT == null ? repetitionShapeDependence != null : !REPETITION_SHAPE_DEPENDENCE_EDEFAULT.equals(repetitionShapeDependence); + case RSMPackage.INTER_REPETITION__IS_MODULO: + return isModulo != IS_MODULO_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (repetitionShapeDependence: "); + result.append(repetitionShapeDependence); + result.append(", isModulo: "); + result.append(isModulo); + result.append(')'); + return result.toString(); + } + +} //InterRepetitionImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/impl/LinkTopologyImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/impl/LinkTopologyImpl.java new file mode 100644 index 00000000000..2d0b0e66114 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/impl/LinkTopologyImpl.java @@ -0,0 +1,169 @@ +/***************************************************************************** + * 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.MARTE_Annexes.RSM.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.LinkTopology; +import org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.RSMPackage; + +import org.eclipse.uml2.uml.Connector; + +/** + * + * An implementation of the model object 'Link Topology'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.LinkTopologyImpl#getBase_Connector Base Connector}
  • + *
+ *

+ * + * @generated + */ +public abstract class LinkTopologyImpl extends EObjectImpl implements LinkTopology { + /** + * The cached value of the '{@link #getBase_Connector() Base Connector}' reference. + * + * + * @see #getBase_Connector() + * @generated + * @ordered + */ + protected Connector base_Connector; + + /** + * + * + * @generated + */ + protected LinkTopologyImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return RSMPackage.Literals.LINK_TOPOLOGY; + } + + /** + * + * + * @generated + */ + public Connector getBase_Connector() { + if (base_Connector != null && base_Connector.eIsProxy()) { + InternalEObject oldBase_Connector = (InternalEObject)base_Connector; + base_Connector = (Connector)eResolveProxy(oldBase_Connector); + if (base_Connector != oldBase_Connector) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, RSMPackage.LINK_TOPOLOGY__BASE_CONNECTOR, oldBase_Connector, base_Connector)); + } + } + return base_Connector; + } + + /** + * + * + * @generated + */ + public Connector basicGetBase_Connector() { + return base_Connector; + } + + /** + * + * + * @generated + */ + public void setBase_Connector(Connector newBase_Connector) { + Connector oldBase_Connector = base_Connector; + base_Connector = newBase_Connector; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, RSMPackage.LINK_TOPOLOGY__BASE_CONNECTOR, oldBase_Connector, base_Connector)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case RSMPackage.LINK_TOPOLOGY__BASE_CONNECTOR: + if (resolve) return getBase_Connector(); + return basicGetBase_Connector(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case RSMPackage.LINK_TOPOLOGY__BASE_CONNECTOR: + setBase_Connector((Connector)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case RSMPackage.LINK_TOPOLOGY__BASE_CONNECTOR: + setBase_Connector((Connector)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case RSMPackage.LINK_TOPOLOGY__BASE_CONNECTOR: + return base_Connector != null; + } + return super.eIsSet(featureID); + } + +} //LinkTopologyImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/impl/RSMFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/impl/RSMFactoryImpl.java new file mode 100644 index 00000000000..3e81eb568dc --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/impl/RSMFactoryImpl.java @@ -0,0 +1,161 @@ +/***************************************************************************** + * 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.MARTE_Annexes.RSM.impl; + +import org.eclipse.emf.ecore.EClass; +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.MARTE_Annexes.RSM.*; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class RSMFactoryImpl extends EFactoryImpl implements RSMFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static RSMFactory init() { + try { + RSMFactory theRSMFactory = (RSMFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/RSM/1"); + if (theRSMFactory != null) { + return theRSMFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new RSMFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public RSMFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case RSMPackage.DEFAULT_LINK: return createDefaultLink(); + case RSMPackage.INTER_REPETITION: return createInterRepetition(); + case RSMPackage.DISTRIBUTE: return createDistribute(); + case RSMPackage.RESHAPE: return createReshape(); + case RSMPackage.TILER: return createTiler(); + case RSMPackage.SHAPED: return createShaped(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public DefaultLink createDefaultLink() { + DefaultLinkImpl defaultLink = new DefaultLinkImpl(); + return defaultLink; + } + + /** + * + * + * @generated + */ + public InterRepetition createInterRepetition() { + InterRepetitionImpl interRepetition = new InterRepetitionImpl(); + return interRepetition; + } + + /** + * + * + * @generated + */ + public Distribute createDistribute() { + DistributeImpl distribute = new DistributeImpl(); + return distribute; + } + + /** + * + * + * @generated + */ + public Reshape createReshape() { + ReshapeImpl reshape = new ReshapeImpl(); + return reshape; + } + + /** + * + * + * @generated + */ + public Tiler createTiler() { + TilerImpl tiler = new TilerImpl(); + return tiler; + } + + /** + * + * + * @generated + */ + public Shaped createShaped() { + ShapedImpl shaped = new ShapedImpl(); + return shaped; + } + + /** + * + * + * @generated + */ + public RSMPackage getRSMPackage() { + return (RSMPackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static RSMPackage getPackage() { + return RSMPackage.eINSTANCE; + } + +} //RSMFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/impl/RSMPackageImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/impl/RSMPackageImpl.java new file mode 100644 index 00000000000..4f5273f1452 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/impl/RSMPackageImpl.java @@ -0,0 +1,739 @@ +/***************************************************************************** + * 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.MARTE_Annexes.RSM.impl; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +import org.eclipse.emf.ecore.impl.EPackageImpl; + +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.DefaultLink; +import org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Distribute; +import org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.InterRepetition; +import org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.LinkTopology; +import org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.RSMFactory; +import org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.RSMPackage; +import org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Reshape; +import org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Shaped; +import org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Tiler; + +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.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 RSMPackageImpl extends EPackageImpl implements RSMPackage { + /** + * + * + * @generated + */ + private EClass linkTopologyEClass = null; + + /** + * + * + * @generated + */ + private EClass defaultLinkEClass = null; + + /** + * + * + * @generated + */ + private EClass interRepetitionEClass = null; + + /** + * + * + * @generated + */ + private EClass distributeEClass = null; + + /** + * + * + * @generated + */ + private EClass reshapeEClass = null; + + /** + * + * + * @generated + */ + private EClass tilerEClass = null; + + /** + * + * + * @generated + */ + private EClass shapedEClass = 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.MARTE_Annexes.RSM.RSMPackage#eNS_URI + * @see #init() + * @generated + */ + private RSMPackageImpl() { + super(eNS_URI, RSMFactory.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 RSMPackage#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 RSMPackage init() { + if (isInited) return (RSMPackage)EPackage.Registry.INSTANCE.getEPackage(RSMPackage.eNS_URI); + + // Obtain or create and register package + RSMPackageImpl theRSMPackage = (RSMPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof RSMPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new RSMPackageImpl()); + + 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); + 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); + 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 + theRSMPackage.createPackageContents(); + theMARTEPackage.createPackageContents(); + theNFPsPackage.createPackageContents(); + theCoreElementsPackage.createPackageContents(); + theAllocPackage.createPackageContents(); + theTimePackage.createPackageContents(); + theGRMPackage.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(); + theMARTE_PrimitivesTypesPackage.createPackageContents(); + + // Initialize created meta-data + theRSMPackage.initializePackageContents(); + theMARTEPackage.initializePackageContents(); + theNFPsPackage.initializePackageContents(); + theCoreElementsPackage.initializePackageContents(); + theAllocPackage.initializePackageContents(); + theTimePackage.initializePackageContents(); + theGRMPackage.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(); + theMARTE_PrimitivesTypesPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theRSMPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(RSMPackage.eNS_URI, theRSMPackage); + return theRSMPackage; + } + + /** + * + * + * @generated + */ + public EClass getLinkTopology() { + return linkTopologyEClass; + } + + /** + * + * + * @generated + */ + public EReference getLinkTopology_Base_Connector() { + return (EReference)linkTopologyEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getDefaultLink() { + return defaultLinkEClass; + } + + /** + * + * + * @generated + */ + public EClass getInterRepetition() { + return interRepetitionEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getInterRepetition_RepetitionShapeDependence() { + return (EAttribute)interRepetitionEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getInterRepetition_IsModulo() { + return (EAttribute)interRepetitionEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getDistribute() { + return distributeEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getDistribute_PatternShape() { + return (EAttribute)distributeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getDistribute_RepetitionSpace() { + return (EAttribute)distributeEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getDistribute_FromTiler() { + return (EAttribute)distributeEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getDistribute_ToTiler() { + return (EAttribute)distributeEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EClass getReshape() { + return reshapeEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getReshape_PatternShape() { + return (EAttribute)reshapeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getReshape_RepetitonShape() { + return (EAttribute)reshapeEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getTiler() { + return tilerEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getTiler_Origin() { + return (EAttribute)tilerEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getTiler_Paving() { + return (EAttribute)tilerEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getTiler_Fitting() { + return (EAttribute)tilerEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getTiler_Tiler() { + return (EAttribute)tilerEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EReference getTiler_Base_ConnectorEnd() { + return (EReference)tilerEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EClass getShaped() { + return shapedEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getShaped_Shape() { + return (EAttribute)shapedEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getShaped_Base_MultiplicityElement() { + return (EReference)shapedEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public RSMFactory getRSMFactory() { + return (RSMFactory)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 + linkTopologyEClass = createEClass(LINK_TOPOLOGY); + createEReference(linkTopologyEClass, LINK_TOPOLOGY__BASE_CONNECTOR); + + defaultLinkEClass = createEClass(DEFAULT_LINK); + + interRepetitionEClass = createEClass(INTER_REPETITION); + createEAttribute(interRepetitionEClass, INTER_REPETITION__REPETITION_SHAPE_DEPENDENCE); + createEAttribute(interRepetitionEClass, INTER_REPETITION__IS_MODULO); + + distributeEClass = createEClass(DISTRIBUTE); + createEAttribute(distributeEClass, DISTRIBUTE__PATTERN_SHAPE); + createEAttribute(distributeEClass, DISTRIBUTE__REPETITION_SPACE); + createEAttribute(distributeEClass, DISTRIBUTE__FROM_TILER); + createEAttribute(distributeEClass, DISTRIBUTE__TO_TILER); + + reshapeEClass = createEClass(RESHAPE); + createEAttribute(reshapeEClass, RESHAPE__PATTERN_SHAPE); + createEAttribute(reshapeEClass, RESHAPE__REPETITON_SHAPE); + + tilerEClass = createEClass(TILER); + createEAttribute(tilerEClass, TILER__ORIGIN); + createEAttribute(tilerEClass, TILER__PAVING); + createEAttribute(tilerEClass, TILER__FITTING); + createEAttribute(tilerEClass, TILER__TILER); + createEReference(tilerEClass, TILER__BASE_CONNECTOR_END); + + shapedEClass = createEClass(SHAPED); + createEAttribute(shapedEClass, SHAPED__SHAPE); + createEReference(shapedEClass, SHAPED__BASE_MULTIPLICITY_ELEMENT); + } + + /** + * + * + * @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 + UMLPackage theUMLPackage = (UMLPackage)EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI); + MARTE_DataTypesPackage theMARTE_DataTypesPackage = (MARTE_DataTypesPackage)EPackage.Registry.INSTANCE.getEPackage(MARTE_DataTypesPackage.eNS_URI); + MARTE_PrimitivesTypesPackage theMARTE_PrimitivesTypesPackage = (MARTE_PrimitivesTypesPackage)EPackage.Registry.INSTANCE.getEPackage(MARTE_PrimitivesTypesPackage.eNS_URI); + AllocPackage theAllocPackage = (AllocPackage)EPackage.Registry.INSTANCE.getEPackage(AllocPackage.eNS_URI); + RS_LibraryPackage theRS_LibraryPackage = (RS_LibraryPackage)EPackage.Registry.INSTANCE.getEPackage(RS_LibraryPackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + defaultLinkEClass.getESuperTypes().add(this.getLinkTopology()); + interRepetitionEClass.getESuperTypes().add(this.getLinkTopology()); + distributeEClass.getESuperTypes().add(theAllocPackage.getAllocate()); + reshapeEClass.getESuperTypes().add(this.getLinkTopology()); + tilerEClass.getESuperTypes().add(this.getLinkTopology()); + + // Initialize classes and features; add operations and parameters + initEClass(linkTopologyEClass, LinkTopology.class, "LinkTopology", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getLinkTopology_Base_Connector(), theUMLPackage.getConnector(), null, "base_Connector", null, 1, 1, LinkTopology.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(defaultLinkEClass, DefaultLink.class, "DefaultLink", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(interRepetitionEClass, InterRepetition.class, "InterRepetition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getInterRepetition_RepetitionShapeDependence(), theMARTE_DataTypesPackage.getIntegerVector(), "repetitionShapeDependence", null, 1, 1, InterRepetition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getInterRepetition_IsModulo(), theMARTE_PrimitivesTypesPackage.getBoolean(), "isModulo", "false", 0, 1, InterRepetition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(distributeEClass, Distribute.class, "Distribute", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getDistribute_PatternShape(), theRS_LibraryPackage.getShapeSpecification(), "patternShape", null, 1, 1, Distribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getDistribute_RepetitionSpace(), theRS_LibraryPackage.getShapeSpecification(), "repetitionSpace", null, 1, 1, Distribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getDistribute_FromTiler(), theRS_LibraryPackage.getTilerSpecification(), "fromTiler", null, 1, 1, Distribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getDistribute_ToTiler(), theRS_LibraryPackage.getTilerSpecification(), "toTiler", null, 1, 1, Distribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(reshapeEClass, Reshape.class, "Reshape", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getReshape_PatternShape(), theRS_LibraryPackage.getShapeSpecification(), "patternShape", null, 1, 1, Reshape.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getReshape_RepetitonShape(), theRS_LibraryPackage.getShapeSpecification(), "repetitonShape", null, 1, 1, Reshape.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(tilerEClass, Tiler.class, "Tiler", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getTiler_Origin(), theMARTE_DataTypesPackage.getIntegerVector(), "origin", null, 0, 1, Tiler.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getTiler_Paving(), theMARTE_DataTypesPackage.getIntegerMatrix(), "paving", null, 0, 1, Tiler.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getTiler_Fitting(), theMARTE_DataTypesPackage.getIntegerMatrix(), "fitting", null, 0, 1, Tiler.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getTiler_Tiler(), theRS_LibraryPackage.getTilerSpecification(), "tiler", null, 0, 1, Tiler.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getTiler_Base_ConnectorEnd(), theUMLPackage.getConnectorEnd(), null, "base_ConnectorEnd", null, 1, 1, Tiler.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(shapedEClass, Shaped.class, "Shaped", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getShaped_Shape(), theRS_LibraryPackage.getShapeSpecification(), "shape", null, 1, 1, Shaped.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getShaped_Base_MultiplicityElement(), theUMLPackage.getMultiplicityElement(), null, "base_MultiplicityElement", null, 1, 1, Shaped.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + } + +} //RSMPackageImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/impl/ReshapeImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/impl/ReshapeImpl.java new file mode 100644 index 00000000000..0977f1eeffa --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/impl/ReshapeImpl.java @@ -0,0 +1,227 @@ +/***************************************************************************** + * 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.MARTE_Annexes.RSM.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.RSMPackage; +import org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Reshape; + +/** + * + * An implementation of the model object 'Reshape'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.ReshapeImpl#getPatternShape Pattern Shape}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.ReshapeImpl#getRepetitonShape Repetiton Shape}
  • + *
+ *

+ * + * @generated + */ +public class ReshapeImpl extends LinkTopologyImpl implements Reshape { + /** + * The default value of the '{@link #getPatternShape() Pattern Shape}' attribute. + * + * + * @see #getPatternShape() + * @generated + * @ordered + */ + protected static final String PATTERN_SHAPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPatternShape() Pattern Shape}' attribute. + * + * + * @see #getPatternShape() + * @generated + * @ordered + */ + protected String patternShape = PATTERN_SHAPE_EDEFAULT; + + /** + * The default value of the '{@link #getRepetitonShape() Repetiton Shape}' attribute. + * + * + * @see #getRepetitonShape() + * @generated + * @ordered + */ + protected static final String REPETITON_SHAPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getRepetitonShape() Repetiton Shape}' attribute. + * + * + * @see #getRepetitonShape() + * @generated + * @ordered + */ + protected String repetitonShape = REPETITON_SHAPE_EDEFAULT; + + /** + * + * + * @generated + */ + protected ReshapeImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return RSMPackage.Literals.RESHAPE; + } + + /** + * + * + * @generated + */ + public String getPatternShape() { + return patternShape; + } + + /** + * + * + * @generated + */ + public void setPatternShape(String newPatternShape) { + String oldPatternShape = patternShape; + patternShape = newPatternShape; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, RSMPackage.RESHAPE__PATTERN_SHAPE, oldPatternShape, patternShape)); + } + + /** + * + * + * @generated + */ + public String getRepetitonShape() { + return repetitonShape; + } + + /** + * + * + * @generated + */ + public void setRepetitonShape(String newRepetitonShape) { + String oldRepetitonShape = repetitonShape; + repetitonShape = newRepetitonShape; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, RSMPackage.RESHAPE__REPETITON_SHAPE, oldRepetitonShape, repetitonShape)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case RSMPackage.RESHAPE__PATTERN_SHAPE: + return getPatternShape(); + case RSMPackage.RESHAPE__REPETITON_SHAPE: + return getRepetitonShape(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case RSMPackage.RESHAPE__PATTERN_SHAPE: + setPatternShape((String)newValue); + return; + case RSMPackage.RESHAPE__REPETITON_SHAPE: + setRepetitonShape((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case RSMPackage.RESHAPE__PATTERN_SHAPE: + setPatternShape(PATTERN_SHAPE_EDEFAULT); + return; + case RSMPackage.RESHAPE__REPETITON_SHAPE: + setRepetitonShape(REPETITON_SHAPE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case RSMPackage.RESHAPE__PATTERN_SHAPE: + return PATTERN_SHAPE_EDEFAULT == null ? patternShape != null : !PATTERN_SHAPE_EDEFAULT.equals(patternShape); + case RSMPackage.RESHAPE__REPETITON_SHAPE: + return REPETITON_SHAPE_EDEFAULT == null ? repetitonShape != null : !REPETITON_SHAPE_EDEFAULT.equals(repetitonShape); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (patternShape: "); + result.append(patternShape); + result.append(", repetitonShape: "); + result.append(repetitonShape); + result.append(')'); + return result.toString(); + } + +} //ReshapeImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/impl/ShapedImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/impl/ShapedImpl.java new file mode 100644 index 00000000000..3d5d4e3d8e8 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/impl/ShapedImpl.java @@ -0,0 +1,237 @@ +/***************************************************************************** + * 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.MARTE_Annexes.RSM.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.RSMPackage; +import org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Shaped; + +import org.eclipse.uml2.uml.MultiplicityElement; + +/** + * + * An implementation of the model object 'Shaped'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.ShapedImpl#getShape Shape}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.ShapedImpl#getBase_MultiplicityElement Base Multiplicity Element}
  • + *
+ *

+ * + * @generated + */ +public class ShapedImpl extends EObjectImpl implements Shaped { + /** + * The default value of the '{@link #getShape() Shape}' attribute. + * + * + * @see #getShape() + * @generated + * @ordered + */ + protected static final String SHAPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getShape() Shape}' attribute. + * + * + * @see #getShape() + * @generated + * @ordered + */ + protected String shape = SHAPE_EDEFAULT; + + /** + * The cached value of the '{@link #getBase_MultiplicityElement() Base Multiplicity Element}' reference. + * + * + * @see #getBase_MultiplicityElement() + * @generated + * @ordered + */ + protected MultiplicityElement base_MultiplicityElement; + + /** + * + * + * @generated + */ + protected ShapedImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return RSMPackage.Literals.SHAPED; + } + + /** + * + * + * @generated + */ + public String getShape() { + return shape; + } + + /** + * + * + * @generated + */ + public void setShape(String newShape) { + String oldShape = shape; + shape = newShape; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, RSMPackage.SHAPED__SHAPE, oldShape, shape)); + } + + /** + * + * + * @generated + */ + public MultiplicityElement getBase_MultiplicityElement() { + if (base_MultiplicityElement != null && base_MultiplicityElement.eIsProxy()) { + InternalEObject oldBase_MultiplicityElement = (InternalEObject)base_MultiplicityElement; + base_MultiplicityElement = (MultiplicityElement)eResolveProxy(oldBase_MultiplicityElement); + if (base_MultiplicityElement != oldBase_MultiplicityElement) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, RSMPackage.SHAPED__BASE_MULTIPLICITY_ELEMENT, oldBase_MultiplicityElement, base_MultiplicityElement)); + } + } + return base_MultiplicityElement; + } + + /** + * + * + * @generated + */ + public MultiplicityElement basicGetBase_MultiplicityElement() { + return base_MultiplicityElement; + } + + /** + * + * + * @generated + */ + public void setBase_MultiplicityElement(MultiplicityElement newBase_MultiplicityElement) { + MultiplicityElement oldBase_MultiplicityElement = base_MultiplicityElement; + base_MultiplicityElement = newBase_MultiplicityElement; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, RSMPackage.SHAPED__BASE_MULTIPLICITY_ELEMENT, oldBase_MultiplicityElement, base_MultiplicityElement)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case RSMPackage.SHAPED__SHAPE: + return getShape(); + case RSMPackage.SHAPED__BASE_MULTIPLICITY_ELEMENT: + if (resolve) return getBase_MultiplicityElement(); + return basicGetBase_MultiplicityElement(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case RSMPackage.SHAPED__SHAPE: + setShape((String)newValue); + return; + case RSMPackage.SHAPED__BASE_MULTIPLICITY_ELEMENT: + setBase_MultiplicityElement((MultiplicityElement)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case RSMPackage.SHAPED__SHAPE: + setShape(SHAPE_EDEFAULT); + return; + case RSMPackage.SHAPED__BASE_MULTIPLICITY_ELEMENT: + setBase_MultiplicityElement((MultiplicityElement)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case RSMPackage.SHAPED__SHAPE: + return SHAPE_EDEFAULT == null ? shape != null : !SHAPE_EDEFAULT.equals(shape); + case RSMPackage.SHAPED__BASE_MULTIPLICITY_ELEMENT: + return base_MultiplicityElement != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (shape: "); + result.append(shape); + result.append(')'); + return result.toString(); + } + +} //ShapedImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/impl/TilerImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/impl/TilerImpl.java new file mode 100644 index 00000000000..9137530926c --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/impl/TilerImpl.java @@ -0,0 +1,398 @@ +/***************************************************************************** + * 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.MARTE_Annexes.RSM.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.RSMPackage; +import org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Tiler; + +import org.eclipse.uml2.uml.ConnectorEnd; + +/** + * + * An implementation of the model object 'Tiler'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.TilerImpl#getOrigin Origin}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.TilerImpl#getPaving Paving}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.TilerImpl#getFitting Fitting}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.TilerImpl#getTiler Tiler}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.impl.TilerImpl#getBase_ConnectorEnd Base Connector End}
  • + *
+ *

+ * + * @generated + */ +public class TilerImpl extends LinkTopologyImpl implements Tiler { + /** + * The default value of the '{@link #getOrigin() Origin}' attribute. + * + * + * @see #getOrigin() + * @generated + * @ordered + */ + protected static final String ORIGIN_EDEFAULT = null; + + /** + * The cached value of the '{@link #getOrigin() Origin}' attribute. + * + * + * @see #getOrigin() + * @generated + * @ordered + */ + protected String origin = ORIGIN_EDEFAULT; + + /** + * The default value of the '{@link #getPaving() Paving}' attribute. + * + * + * @see #getPaving() + * @generated + * @ordered + */ + protected static final String PAVING_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPaving() Paving}' attribute. + * + * + * @see #getPaving() + * @generated + * @ordered + */ + protected String paving = PAVING_EDEFAULT; + + /** + * The default value of the '{@link #getFitting() Fitting}' attribute. + * + * + * @see #getFitting() + * @generated + * @ordered + */ + protected static final String FITTING_EDEFAULT = null; + + /** + * The cached value of the '{@link #getFitting() Fitting}' attribute. + * + * + * @see #getFitting() + * @generated + * @ordered + */ + protected String fitting = FITTING_EDEFAULT; + + /** + * The default value of the '{@link #getTiler() Tiler}' attribute. + * + * + * @see #getTiler() + * @generated + * @ordered + */ + protected static final String TILER_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTiler() Tiler}' attribute. + * + * + * @see #getTiler() + * @generated + * @ordered + */ + protected String tiler = TILER_EDEFAULT; + + /** + * The cached value of the '{@link #getBase_ConnectorEnd() Base Connector End}' reference. + * + * + * @see #getBase_ConnectorEnd() + * @generated + * @ordered + */ + protected ConnectorEnd base_ConnectorEnd; + + /** + * + * + * @generated + */ + protected TilerImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return RSMPackage.Literals.TILER; + } + + /** + * + * + * @generated + */ + public String getOrigin() { + return origin; + } + + /** + * + * + * @generated + */ + public void setOrigin(String newOrigin) { + String oldOrigin = origin; + origin = newOrigin; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, RSMPackage.TILER__ORIGIN, oldOrigin, origin)); + } + + /** + * + * + * @generated + */ + public String getPaving() { + return paving; + } + + /** + * + * + * @generated + */ + public void setPaving(String newPaving) { + String oldPaving = paving; + paving = newPaving; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, RSMPackage.TILER__PAVING, oldPaving, paving)); + } + + /** + * + * + * @generated + */ + public String getFitting() { + return fitting; + } + + /** + * + * + * @generated + */ + public void setFitting(String newFitting) { + String oldFitting = fitting; + fitting = newFitting; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, RSMPackage.TILER__FITTING, oldFitting, fitting)); + } + + /** + * + * + * @generated + */ + public String getTiler() { + return tiler; + } + + /** + * + * + * @generated + */ + public void setTiler(String newTiler) { + String oldTiler = tiler; + tiler = newTiler; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, RSMPackage.TILER__TILER, oldTiler, tiler)); + } + + /** + * + * + * @generated + */ + public ConnectorEnd getBase_ConnectorEnd() { + if (base_ConnectorEnd != null && base_ConnectorEnd.eIsProxy()) { + InternalEObject oldBase_ConnectorEnd = (InternalEObject)base_ConnectorEnd; + base_ConnectorEnd = (ConnectorEnd)eResolveProxy(oldBase_ConnectorEnd); + if (base_ConnectorEnd != oldBase_ConnectorEnd) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, RSMPackage.TILER__BASE_CONNECTOR_END, oldBase_ConnectorEnd, base_ConnectorEnd)); + } + } + return base_ConnectorEnd; + } + + /** + * + * + * @generated + */ + public ConnectorEnd basicGetBase_ConnectorEnd() { + return base_ConnectorEnd; + } + + /** + * + * + * @generated + */ + public void setBase_ConnectorEnd(ConnectorEnd newBase_ConnectorEnd) { + ConnectorEnd oldBase_ConnectorEnd = base_ConnectorEnd; + base_ConnectorEnd = newBase_ConnectorEnd; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, RSMPackage.TILER__BASE_CONNECTOR_END, oldBase_ConnectorEnd, base_ConnectorEnd)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case RSMPackage.TILER__ORIGIN: + return getOrigin(); + case RSMPackage.TILER__PAVING: + return getPaving(); + case RSMPackage.TILER__FITTING: + return getFitting(); + case RSMPackage.TILER__TILER: + return getTiler(); + case RSMPackage.TILER__BASE_CONNECTOR_END: + if (resolve) return getBase_ConnectorEnd(); + return basicGetBase_ConnectorEnd(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case RSMPackage.TILER__ORIGIN: + setOrigin((String)newValue); + return; + case RSMPackage.TILER__PAVING: + setPaving((String)newValue); + return; + case RSMPackage.TILER__FITTING: + setFitting((String)newValue); + return; + case RSMPackage.TILER__TILER: + setTiler((String)newValue); + return; + case RSMPackage.TILER__BASE_CONNECTOR_END: + setBase_ConnectorEnd((ConnectorEnd)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case RSMPackage.TILER__ORIGIN: + setOrigin(ORIGIN_EDEFAULT); + return; + case RSMPackage.TILER__PAVING: + setPaving(PAVING_EDEFAULT); + return; + case RSMPackage.TILER__FITTING: + setFitting(FITTING_EDEFAULT); + return; + case RSMPackage.TILER__TILER: + setTiler(TILER_EDEFAULT); + return; + case RSMPackage.TILER__BASE_CONNECTOR_END: + setBase_ConnectorEnd((ConnectorEnd)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case RSMPackage.TILER__ORIGIN: + return ORIGIN_EDEFAULT == null ? origin != null : !ORIGIN_EDEFAULT.equals(origin); + case RSMPackage.TILER__PAVING: + return PAVING_EDEFAULT == null ? paving != null : !PAVING_EDEFAULT.equals(paving); + case RSMPackage.TILER__FITTING: + return FITTING_EDEFAULT == null ? fitting != null : !FITTING_EDEFAULT.equals(fitting); + case RSMPackage.TILER__TILER: + return TILER_EDEFAULT == null ? tiler != null : !TILER_EDEFAULT.equals(tiler); + case RSMPackage.TILER__BASE_CONNECTOR_END: + return base_ConnectorEnd != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (origin: "); + result.append(origin); + result.append(", paving: "); + result.append(paving); + result.append(", fitting: "); + result.append(fitting); + result.append(", tiler: "); + result.append(tiler); + result.append(')'); + return result.toString(); + } + +} //TilerImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/util/RSMAdapterFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/util/RSMAdapterFactory.java new file mode 100644 index 00000000000..445f600bcb2 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/util/RSMAdapterFactory.java @@ -0,0 +1,259 @@ +/***************************************************************************** + * 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.MARTE_Annexes.RSM.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.MARTE_Annexes.RSM.*; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Allocate; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.RSMPackage + * @generated + */ +public class RSMAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * @generated + */ + protected static RSMPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public RSMAdapterFactory() { + if (modelPackage == null) { + modelPackage = RSMPackage.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 RSMSwitch modelSwitch = + new RSMSwitch() { + @Override + public Adapter caseLinkTopology(LinkTopology object) { + return createLinkTopologyAdapter(); + } + @Override + public Adapter caseDefaultLink(DefaultLink object) { + return createDefaultLinkAdapter(); + } + @Override + public Adapter caseInterRepetition(InterRepetition object) { + return createInterRepetitionAdapter(); + } + @Override + public Adapter caseDistribute(Distribute object) { + return createDistributeAdapter(); + } + @Override + public Adapter caseReshape(Reshape object) { + return createReshapeAdapter(); + } + @Override + public Adapter caseTiler(Tiler object) { + return createTilerAdapter(); + } + @Override + public Adapter caseShaped(Shaped object) { + return createShapedAdapter(); + } + @Override + public Adapter caseAllocate(Allocate object) { + return createAllocateAdapter(); + } + @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.MARTE_Annexes.RSM.LinkTopology Link Topology}'. + * + * 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.MARTE_Annexes.RSM.LinkTopology + * @generated + */ + public Adapter createLinkTopologyAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.DefaultLink Default Link}'. + * + * 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.MARTE_Annexes.RSM.DefaultLink + * @generated + */ + public Adapter createDefaultLinkAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.InterRepetition Inter Repetition}'. + * + * 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.MARTE_Annexes.RSM.InterRepetition + * @generated + */ + public Adapter createInterRepetitionAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Distribute Distribute}'. + * + * 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.MARTE_Annexes.RSM.Distribute + * @generated + */ + public Adapter createDistributeAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Reshape Reshape}'. + * + * 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.MARTE_Annexes.RSM.Reshape + * @generated + */ + public Adapter createReshapeAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Tiler Tiler}'. + * + * 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.MARTE_Annexes.RSM.Tiler + * @generated + */ + public Adapter createTilerAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.Shaped Shaped}'. + * + * 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.MARTE_Annexes.RSM.Shaped + * @generated + */ + public Adapter createShapedAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Allocate Allocate}'. + * + * 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.MARTE_Foundations.Alloc.Allocate + * @generated + */ + public Adapter createAllocateAdapter() { + 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; + } + +} //RSMAdapterFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/util/RSMResourceFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/util/RSMResourceFactoryImpl.java new file mode 100644 index 00000000000..867b3ca59b1 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/util/RSMResourceFactoryImpl.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.MARTE_Annexes.RSM.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; + +import org.eclipse.emf.ecore.xmi.XMLResource; + +/** + * + * The Resource Factory associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.util.RSMResourceImpl + * @generated + */ +public class RSMResourceFactoryImpl extends ResourceFactoryImpl { + /** + * Creates an instance of the resource factory. + * + * + * @generated + */ + public RSMResourceFactoryImpl() { + super(); + } + + /** + * Creates an instance of the resource. + * + * + * @generated + */ + @Override + public Resource createResource(URI uri) { + XMLResource result = new RSMResourceImpl(uri); + result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + + result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); + return result; + } + +} //RSMResourceFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/util/RSMResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/util/RSMResourceImpl.java new file mode 100644 index 00000000000..f40b6c6f2d6 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/util/RSMResourceImpl.java @@ -0,0 +1,39 @@ +/***************************************************************************** + * 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.MARTE_Annexes.RSM.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; + +/** + * + * The Resource associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.util.RSMResourceFactoryImpl + * @generated + */ +public class RSMResourceImpl extends XMLResourceImpl { + /** + * Creates an instance of the resource. + * + * + * @param uri the URI of the new resource. + * @generated + */ + public RSMResourceImpl(URI uri) { + super(uri); + } + +} //RSMResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/util/RSMSwitch.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/util/RSMSwitch.java new file mode 100644 index 00000000000..68a0cbcfd9a --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/util/RSMSwitch.java @@ -0,0 +1,285 @@ +/***************************************************************************** + * 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.MARTE_Annexes.RSM.util; + +import java.util.List; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.*; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Allocate; + +/** + * + * 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.MARTE_Annexes.RSM.RSMPackage + * @generated + */ +public class RSMSwitch { + /** + * The cached model package + * + * + * @generated + */ + protected static RSMPackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public RSMSwitch() { + if (modelPackage == null) { + modelPackage = RSMPackage.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 RSMPackage.LINK_TOPOLOGY: { + LinkTopology linkTopology = (LinkTopology)theEObject; + T result = caseLinkTopology(linkTopology); + if (result == null) result = defaultCase(theEObject); + return result; + } + case RSMPackage.DEFAULT_LINK: { + DefaultLink defaultLink = (DefaultLink)theEObject; + T result = caseDefaultLink(defaultLink); + if (result == null) result = caseLinkTopology(defaultLink); + if (result == null) result = defaultCase(theEObject); + return result; + } + case RSMPackage.INTER_REPETITION: { + InterRepetition interRepetition = (InterRepetition)theEObject; + T result = caseInterRepetition(interRepetition); + if (result == null) result = caseLinkTopology(interRepetition); + if (result == null) result = defaultCase(theEObject); + return result; + } + case RSMPackage.DISTRIBUTE: { + Distribute distribute = (Distribute)theEObject; + T result = caseDistribute(distribute); + if (result == null) result = caseAllocate(distribute); + if (result == null) result = defaultCase(theEObject); + return result; + } + case RSMPackage.RESHAPE: { + Reshape reshape = (Reshape)theEObject; + T result = caseReshape(reshape); + if (result == null) result = caseLinkTopology(reshape); + if (result == null) result = defaultCase(theEObject); + return result; + } + case RSMPackage.TILER: { + Tiler tiler = (Tiler)theEObject; + T result = caseTiler(tiler); + if (result == null) result = caseLinkTopology(tiler); + if (result == null) result = defaultCase(theEObject); + return result; + } + case RSMPackage.SHAPED: { + Shaped shaped = (Shaped)theEObject; + T result = caseShaped(shaped); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Link Topology'. + * + * 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 'Link Topology'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseLinkTopology(LinkTopology object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Default Link'. + * + * 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 'Default Link'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDefaultLink(DefaultLink object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Inter Repetition'. + * + * 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 'Inter Repetition'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseInterRepetition(InterRepetition object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Distribute'. + * + * 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 'Distribute'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDistribute(Distribute object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Reshape'. + * + * 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 'Reshape'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseReshape(Reshape object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Tiler'. + * + * 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 'Tiler'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseTiler(Tiler object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Shaped'. + * + * 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 'Shaped'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseShaped(Shaped object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Allocate'. + * + * 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 'Allocate'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseAllocate(Allocate 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; + } + +} //RSMSwitch diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/util/RSMXMLProcessor.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/util/RSMXMLProcessor.java new file mode 100644 index 00000000000..83418b996ca --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/RSM/util/RSMXMLProcessor.java @@ -0,0 +1,61 @@ +/***************************************************************************** + * 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.MARTE_Annexes.RSM.util; + +import java.util.Map; + +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.xmi.util.XMLProcessor; + +import org.eclipse.papyrus.MARTE.MARTE_Annexes.RSM.RSMPackage; + +/** + * This class contains helper methods to serialize and deserialize XML documents + * + * + * @generated + */ +public class RSMXMLProcessor extends XMLProcessor { + + /** + * Public constructor to instantiate the helper. + * + * + * @generated + */ + public RSMXMLProcessor() { + super((EPackage.Registry.INSTANCE)); + RSMPackage.eINSTANCE.eClass(); + } + + /** + * Register for "*" and "xml" file extensions the RSMResourceFactoryImpl factory. + * + * + * @generated + */ + @Override + protected Map getRegistrations() { + if (registrations == null) { + super.getRegistrations(); + registrations.put(XML_EXTENSION, new RSMResourceFactoryImpl()); + registrations.put(STAR_EXTENSION, new RSMResourceFactoryImpl()); + } + return registrations; + } + +} //RSMXMLProcessor diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/BoundedSubtype.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/BoundedSubtype.java new file mode 100644 index 00000000000..53ed1b3341a --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/BoundedSubtype.java @@ -0,0 +1,199 @@ +/***************************************************************************** + * 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.MARTE_Annexes.VSL.DataTypes; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.uml2.uml.DataType; +import org.eclipse.uml2.uml.Property; + +/** + * + * A representation of the model object 'Bounded Subtype'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.BoundedSubtype#getBaseType Base Type}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.BoundedSubtype#getMinValue Min Value}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.BoundedSubtype#getMaxValue Max Value}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.BoundedSubtype#isIsMinOpen Is Min Open}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.BoundedSubtype#isIsMaxOpen Is Max Open}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.BoundedSubtype#getBase_DataType Base Data Type}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.DataTypesPackage#getBoundedSubtype() + * @model + * @generated + */ +public interface BoundedSubtype extends EObject { + /** + * Returns the value of the 'Base Type' reference. + * + *

+ * If the meaning of the 'Base Type' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Type' reference. + * @see #setBaseType(Property) + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.DataTypesPackage#getBoundedSubtype_BaseType() + * @model required="true" ordered="false" + * @generated + */ + Property getBaseType(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.BoundedSubtype#getBaseType Base Type}' reference. + * + * + * @param value the new value of the 'Base Type' reference. + * @see #getBaseType() + * @generated + */ + void setBaseType(Property value); + + /** + * Returns the value of the 'Min Value' attribute. + * + *

+ * If the meaning of the 'Min Value' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Min Value' attribute. + * @see #setMinValue(String) + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.DataTypesPackage#getBoundedSubtype_MinValue() + * @model unique="false" required="true" ordered="false" + * @generated + */ + String getMinValue(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.BoundedSubtype#getMinValue Min Value}' attribute. + * + * + * @param value the new value of the 'Min Value' attribute. + * @see #getMinValue() + * @generated + */ + void setMinValue(String value); + + /** + * Returns the value of the 'Max Value' attribute. + * + *

+ * If the meaning of the 'Max Value' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Max Value' attribute. + * @see #setMaxValue(String) + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.DataTypesPackage#getBoundedSubtype_MaxValue() + * @model unique="false" required="true" ordered="false" + * @generated + */ + String getMaxValue(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.BoundedSubtype#getMaxValue Max Value}' attribute. + * + * + * @param value the new value of the 'Max Value' attribute. + * @see #getMaxValue() + * @generated + */ + void setMaxValue(String value); + + /** + * Returns the value of the 'Is Min Open' attribute. + * + *

+ * If the meaning of the 'Is Min Open' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Is Min Open' attribute. + * @see #setIsMinOpen(boolean) + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.DataTypesPackage#getBoundedSubtype_IsMinOpen() + * @model unique="false" required="true" ordered="false" + * @generated + */ + boolean isIsMinOpen(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.BoundedSubtype#isIsMinOpen Is Min Open}' attribute. + * + * + * @param value the new value of the 'Is Min Open' attribute. + * @see #isIsMinOpen() + * @generated + */ + void setIsMinOpen(boolean value); + + /** + * Returns the value of the 'Is Max Open' attribute. + * + *

+ * If the meaning of the 'Is Max Open' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Is Max Open' attribute. + * @see #setIsMaxOpen(boolean) + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.DataTypesPackage#getBoundedSubtype_IsMaxOpen() + * @model unique="false" required="true" ordered="false" + * @generated + */ + boolean isIsMaxOpen(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.BoundedSubtype#isIsMaxOpen Is Max Open}' attribute. + * + * + * @param value the new value of the 'Is Max Open' attribute. + * @see #isIsMaxOpen() + * @generated + */ + void setIsMaxOpen(boolean value); + + /** + * Returns the value of the 'Base Data Type' reference. + * + *

+ * If the meaning of the 'Base Data Type' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Data Type' reference. + * @see #setBase_DataType(DataType) + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.DataTypesPackage#getBoundedSubtype_Base_DataType() + * @model required="true" ordered="false" + * @generated + */ + DataType getBase_DataType(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.BoundedSubtype#getBase_DataType Base Data Type}' reference. + * + * + * @param value the new value of the 'Base Data Type' reference. + * @see #getBase_DataType() + * @generated + */ + void setBase_DataType(DataType value); + +} // BoundedSubtype diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/ChoiceType.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/ChoiceType.java new file mode 100644 index 00000000000..4f8390a95ca --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/ChoiceType.java @@ -0,0 +1,110 @@ +/***************************************************************************** + * 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.MARTE_Annexes.VSL.DataTypes; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.uml2.uml.DataType; +import org.eclipse.uml2.uml.Property; + +/** + * + * A representation of the model object 'Choice Type'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.ChoiceType#getChoiceAttrib Choice Attrib}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.ChoiceType#getDefaultAttrib Default Attrib}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.ChoiceType#getBase_DataType Base Data Type}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.DataTypesPackage#getChoiceType() + * @model + * @generated + */ +public interface ChoiceType extends EObject { + /** + * Returns the value of the 'Choice Attrib' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.Property}. + * + *

+ * If the meaning of the 'Choice Attrib' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Choice Attrib' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.DataTypesPackage#getChoiceType_ChoiceAttrib() + * @model ordered="false" + * @generated + */ + EList getChoiceAttrib(); + + /** + * Returns the value of the 'Default Attrib' reference. + * + *

+ * If the meaning of the 'Default Attrib' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Default Attrib' reference. + * @see #setDefaultAttrib(Property) + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.DataTypesPackage#getChoiceType_DefaultAttrib() + * @model ordered="false" + * @generated + */ + Property getDefaultAttrib(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.ChoiceType#getDefaultAttrib Default Attrib}' reference. + * + * + * @param value the new value of the 'Default Attrib' reference. + * @see #getDefaultAttrib() + * @generated + */ + void setDefaultAttrib(Property value); + + /** + * Returns the value of the 'Base Data Type' reference. + * + *

+ * If the meaning of the 'Base Data Type' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Data Type' reference. + * @see #setBase_DataType(DataType) + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.DataTypesPackage#getChoiceType_Base_DataType() + * @model required="true" ordered="false" + * @generated + */ + DataType getBase_DataType(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.ChoiceType#getBase_DataType Base Data Type}' reference. + * + * + * @param value the new value of the 'Base Data Type' reference. + * @see #getBase_DataType() + * @generated + */ + void setBase_DataType(DataType value); + +} // ChoiceType diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/CollectionType.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/CollectionType.java new file mode 100644 index 00000000000..18d18e87fe2 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/CollectionType.java @@ -0,0 +1,91 @@ +/***************************************************************************** + * 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.MARTE_Annexes.VSL.DataTypes; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.uml2.uml.DataType; +import org.eclipse.uml2.uml.Property; + +/** + * + * A representation of the model object 'Collection Type'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.CollectionType#getCollectionAttrib Collection Attrib}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.CollectionType#getBase_DataType Base Data Type}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.DataTypesPackage#getCollectionType() + * @model + * @generated + */ +public interface CollectionType extends EObject { + /** + * Returns the value of the 'Collection Attrib' reference. + * + *

+ * If the meaning of the 'Collection Attrib' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Collection Attrib' reference. + * @see #setCollectionAttrib(Property) + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.DataTypesPackage#getCollectionType_CollectionAttrib() + * @model required="true" ordered="false" + * @generated + */ + Property getCollectionAttrib(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.CollectionType#getCollectionAttrib Collection Attrib}' reference. + * + * + * @param value the new value of the 'Collection Attrib' reference. + * @see #getCollectionAttrib() + * @generated + */ + void setCollectionAttrib(Property value); + + /** + * Returns the value of the 'Base Data Type' reference. + * + *

+ * If the meaning of the 'Base Data Type' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Data Type' reference. + * @see #setBase_DataType(DataType) + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.DataTypesPackage#getCollectionType_Base_DataType() + * @model required="true" ordered="false" + * @generated + */ + DataType getBase_DataType(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.CollectionType#getBase_DataType Base Data Type}' reference. + * + * + * @param value the new value of the 'Base Data Type' reference. + * @see #getBase_DataType() + * @generated + */ + void setBase_DataType(DataType value); + +} // CollectionType diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/DataTypesFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/DataTypesFactory.java new file mode 100644 index 00000000000..4fe2cc6f034 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/DataTypesFactory.java @@ -0,0 +1,89 @@ +/***************************************************************************** + * 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.MARTE_Annexes.VSL.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.MARTE_Annexes.VSL.DataTypes.DataTypesPackage + * @generated + */ +public interface DataTypesFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + DataTypesFactory eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.impl.DataTypesFactoryImpl.init(); + + /** + * Returns a new object of class 'Bounded Subtype'. + * + * + * @return a new object of class 'Bounded Subtype'. + * @generated + */ + BoundedSubtype createBoundedSubtype(); + + /** + * Returns a new object of class 'Interval Type'. + * + * + * @return a new object of class 'Interval Type'. + * @generated + */ + IntervalType createIntervalType(); + + /** + * Returns a new object of class 'Collection Type'. + * + * + * @return a new object of class 'Collection Type'. + * @generated + */ + CollectionType createCollectionType(); + + /** + * Returns a new object of class 'Choice Type'. + * + * + * @return a new object of class 'Choice Type'. + * @generated + */ + ChoiceType createChoiceType(); + + /** + * Returns a new object of class 'Tuple Type'. + * + * + * @return a new object of class 'Tuple Type'. + * @generated + */ + TupleType createTupleType(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + DataTypesPackage getDataTypesPackage(); + +} //DataTypesFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/DataTypesPackage.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/DataTypesPackage.java new file mode 100644 index 00000000000..f2b4e32bfc2 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/DataTypesPackage.java @@ -0,0 +1,709 @@ +/***************************************************************************** + * 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.MARTE_Annexes.VSL.DataTypes; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +/** + * + * 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.MARTE_Annexes.VSL.DataTypes.DataTypesFactory + * @model kind="package" + * @generated + */ +public interface DataTypesPackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "DataTypes"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "http://www.eclipse.org/papyrus/DataTypes/1"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "DataTypes"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + DataTypesPackage eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.impl.DataTypesPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.impl.BoundedSubtypeImpl Bounded Subtype}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.impl.BoundedSubtypeImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.impl.DataTypesPackageImpl#getBoundedSubtype() + * @generated + */ + int BOUNDED_SUBTYPE = 0; + + /** + * The feature id for the 'Base Type' reference. + * + * + * @generated + * @ordered + */ + int BOUNDED_SUBTYPE__BASE_TYPE = 0; + + /** + * The feature id for the 'Min Value' attribute. + * + * + * @generated + * @ordered + */ + int BOUNDED_SUBTYPE__MIN_VALUE = 1; + + /** + * The feature id for the 'Max Value' attribute. + * + * + * @generated + * @ordered + */ + int BOUNDED_SUBTYPE__MAX_VALUE = 2; + + /** + * The feature id for the 'Is Min Open' attribute. + * + * + * @generated + * @ordered + */ + int BOUNDED_SUBTYPE__IS_MIN_OPEN = 3; + + /** + * The feature id for the 'Is Max Open' attribute. + * + * + * @generated + * @ordered + */ + int BOUNDED_SUBTYPE__IS_MAX_OPEN = 4; + + /** + * The feature id for the 'Base Data Type' reference. + * + * + * @generated + * @ordered + */ + int BOUNDED_SUBTYPE__BASE_DATA_TYPE = 5; + + /** + * The number of structural features of the 'Bounded Subtype' class. + * + * + * @generated + * @ordered + */ + int BOUNDED_SUBTYPE_FEATURE_COUNT = 6; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.impl.IntervalTypeImpl Interval Type}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.impl.IntervalTypeImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.impl.DataTypesPackageImpl#getIntervalType() + * @generated + */ + int INTERVAL_TYPE = 1; + + /** + * The feature id for the 'Interval Attrib' reference. + * + * + * @generated + * @ordered + */ + int INTERVAL_TYPE__INTERVAL_ATTRIB = 0; + + /** + * The feature id for the 'Base Data Type' reference. + * + * + * @generated + * @ordered + */ + int INTERVAL_TYPE__BASE_DATA_TYPE = 1; + + /** + * The number of structural features of the 'Interval Type' class. + * + * + * @generated + * @ordered + */ + int INTERVAL_TYPE_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.impl.CollectionTypeImpl Collection Type}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.impl.CollectionTypeImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.impl.DataTypesPackageImpl#getCollectionType() + * @generated + */ + int COLLECTION_TYPE = 2; + + /** + * The feature id for the 'Collection Attrib' reference. + * + * + * @generated + * @ordered + */ + int COLLECTION_TYPE__COLLECTION_ATTRIB = 0; + + /** + * The feature id for the 'Base Data Type' reference. + * + * + * @generated + * @ordered + */ + int COLLECTION_TYPE__BASE_DATA_TYPE = 1; + + /** + * The number of structural features of the 'Collection Type' class. + * + * + * @generated + * @ordered + */ + int COLLECTION_TYPE_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.impl.ChoiceTypeImpl Choice Type}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.impl.ChoiceTypeImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.impl.DataTypesPackageImpl#getChoiceType() + * @generated + */ + int CHOICE_TYPE = 3; + + /** + * The feature id for the 'Choice Attrib' reference list. + * + * + * @generated + * @ordered + */ + int CHOICE_TYPE__CHOICE_ATTRIB = 0; + + /** + * The feature id for the 'Default Attrib' reference. + * + * + * @generated + * @ordered + */ + int CHOICE_TYPE__DEFAULT_ATTRIB = 1; + + /** + * The feature id for the 'Base Data Type' reference. + * + * + * @generated + * @ordered + */ + int CHOICE_TYPE__BASE_DATA_TYPE = 2; + + /** + * The number of structural features of the 'Choice Type' class. + * + * + * @generated + * @ordered + */ + int CHOICE_TYPE_FEATURE_COUNT = 3; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.impl.TupleTypeImpl Tuple Type}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.impl.TupleTypeImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.impl.DataTypesPackageImpl#getTupleType() + * @generated + */ + int TUPLE_TYPE = 4; + + /** + * The feature id for the 'Tuple Attrib' reference list. + * + * + * @generated + * @ordered + */ + int TUPLE_TYPE__TUPLE_ATTRIB = 0; + + /** + * The feature id for the 'Base Data Type' reference. + * + * + * @generated + * @ordered + */ + int TUPLE_TYPE__BASE_DATA_TYPE = 1; + + /** + * The number of structural features of the 'Tuple Type' class. + * + * + * @generated + * @ordered + */ + int TUPLE_TYPE_FEATURE_COUNT = 2; + + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.BoundedSubtype Bounded Subtype}'. + * + * + * @return the meta object for class 'Bounded Subtype'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.BoundedSubtype + * @generated + */ + EClass getBoundedSubtype(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.BoundedSubtype#getBaseType Base Type}'. + * + * + * @return the meta object for the reference 'Base Type'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.BoundedSubtype#getBaseType() + * @see #getBoundedSubtype() + * @generated + */ + EReference getBoundedSubtype_BaseType(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.BoundedSubtype#getMinValue Min Value}'. + * + * + * @return the meta object for the attribute 'Min Value'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.BoundedSubtype#getMinValue() + * @see #getBoundedSubtype() + * @generated + */ + EAttribute getBoundedSubtype_MinValue(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.BoundedSubtype#getMaxValue Max Value}'. + * + * + * @return the meta object for the attribute 'Max Value'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.BoundedSubtype#getMaxValue() + * @see #getBoundedSubtype() + * @generated + */ + EAttribute getBoundedSubtype_MaxValue(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.BoundedSubtype#isIsMinOpen Is Min Open}'. + * + * + * @return the meta object for the attribute 'Is Min Open'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.BoundedSubtype#isIsMinOpen() + * @see #getBoundedSubtype() + * @generated + */ + EAttribute getBoundedSubtype_IsMinOpen(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.BoundedSubtype#isIsMaxOpen Is Max Open}'. + * + * + * @return the meta object for the attribute 'Is Max Open'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.BoundedSubtype#isIsMaxOpen() + * @see #getBoundedSubtype() + * @generated + */ + EAttribute getBoundedSubtype_IsMaxOpen(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.BoundedSubtype#getBase_DataType Base Data Type}'. + * + * + * @return the meta object for the reference 'Base Data Type'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.BoundedSubtype#getBase_DataType() + * @see #getBoundedSubtype() + * @generated + */ + EReference getBoundedSubtype_Base_DataType(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.IntervalType Interval Type}'. + * + * + * @return the meta object for class 'Interval Type'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.IntervalType + * @generated + */ + EClass getIntervalType(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.IntervalType#getIntervalAttrib Interval Attrib}'. + * + * + * @return the meta object for the reference 'Interval Attrib'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.IntervalType#getIntervalAttrib() + * @see #getIntervalType() + * @generated + */ + EReference getIntervalType_IntervalAttrib(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.IntervalType#getBase_DataType Base Data Type}'. + * + * + * @return the meta object for the reference 'Base Data Type'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.IntervalType#getBase_DataType() + * @see #getIntervalType() + * @generated + */ + EReference getIntervalType_Base_DataType(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.CollectionType Collection Type}'. + * + * + * @return the meta object for class 'Collection Type'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.CollectionType + * @generated + */ + EClass getCollectionType(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.CollectionType#getCollectionAttrib Collection Attrib}'. + * + * + * @return the meta object for the reference 'Collection Attrib'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.CollectionType#getCollectionAttrib() + * @see #getCollectionType() + * @generated + */ + EReference getCollectionType_CollectionAttrib(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.CollectionType#getBase_DataType Base Data Type}'. + * + * + * @return the meta object for the reference 'Base Data Type'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.CollectionType#getBase_DataType() + * @see #getCollectionType() + * @generated + */ + EReference getCollectionType_Base_DataType(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.ChoiceType Choice Type}'. + * + * + * @return the meta object for class 'Choice Type'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.ChoiceType + * @generated + */ + EClass getChoiceType(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.ChoiceType#getChoiceAttrib Choice Attrib}'. + * + * + * @return the meta object for the reference list 'Choice Attrib'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.ChoiceType#getChoiceAttrib() + * @see #getChoiceType() + * @generated + */ + EReference getChoiceType_ChoiceAttrib(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.ChoiceType#getDefaultAttrib Default Attrib}'. + * + * + * @return the meta object for the reference 'Default Attrib'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.ChoiceType#getDefaultAttrib() + * @see #getChoiceType() + * @generated + */ + EReference getChoiceType_DefaultAttrib(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.ChoiceType#getBase_DataType Base Data Type}'. + * + * + * @return the meta object for the reference 'Base Data Type'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.ChoiceType#getBase_DataType() + * @see #getChoiceType() + * @generated + */ + EReference getChoiceType_Base_DataType(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.TupleType Tuple Type}'. + * + * + * @return the meta object for class 'Tuple Type'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.TupleType + * @generated + */ + EClass getTupleType(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.TupleType#getTupleAttrib Tuple Attrib}'. + * + * + * @return the meta object for the reference list 'Tuple Attrib'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.TupleType#getTupleAttrib() + * @see #getTupleType() + * @generated + */ + EReference getTupleType_TupleAttrib(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.TupleType#getBase_DataType Base Data Type}'. + * + * + * @return the meta object for the reference 'Base Data Type'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.TupleType#getBase_DataType() + * @see #getTupleType() + * @generated + */ + EReference getTupleType_Base_DataType(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + DataTypesFactory getDataTypesFactory(); + + /** + * + * 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.MARTE_Annexes.VSL.DataTypes.impl.BoundedSubtypeImpl Bounded Subtype}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.impl.BoundedSubtypeImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.impl.DataTypesPackageImpl#getBoundedSubtype() + * @generated + */ + EClass BOUNDED_SUBTYPE = eINSTANCE.getBoundedSubtype(); + + /** + * The meta object literal for the 'Base Type' reference feature. + * + * + * @generated + */ + EReference BOUNDED_SUBTYPE__BASE_TYPE = eINSTANCE.getBoundedSubtype_BaseType(); + + /** + * The meta object literal for the 'Min Value' attribute feature. + * + * + * @generated + */ + EAttribute BOUNDED_SUBTYPE__MIN_VALUE = eINSTANCE.getBoundedSubtype_MinValue(); + + /** + * The meta object literal for the 'Max Value' attribute feature. + * + * + * @generated + */ + EAttribute BOUNDED_SUBTYPE__MAX_VALUE = eINSTANCE.getBoundedSubtype_MaxValue(); + + /** + * The meta object literal for the 'Is Min Open' attribute feature. + * + * + * @generated + */ + EAttribute BOUNDED_SUBTYPE__IS_MIN_OPEN = eINSTANCE.getBoundedSubtype_IsMinOpen(); + + /** + * The meta object literal for the 'Is Max Open' attribute feature. + * + * + * @generated + */ + EAttribute BOUNDED_SUBTYPE__IS_MAX_OPEN = eINSTANCE.getBoundedSubtype_IsMaxOpen(); + + /** + * The meta object literal for the 'Base Data Type' reference feature. + * + * + * @generated + */ + EReference BOUNDED_SUBTYPE__BASE_DATA_TYPE = eINSTANCE.getBoundedSubtype_Base_DataType(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.impl.IntervalTypeImpl Interval Type}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.impl.IntervalTypeImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.impl.DataTypesPackageImpl#getIntervalType() + * @generated + */ + EClass INTERVAL_TYPE = eINSTANCE.getIntervalType(); + + /** + * The meta object literal for the 'Interval Attrib' reference feature. + * + * + * @generated + */ + EReference INTERVAL_TYPE__INTERVAL_ATTRIB = eINSTANCE.getIntervalType_IntervalAttrib(); + + /** + * The meta object literal for the 'Base Data Type' reference feature. + * + * + * @generated + */ + EReference INTERVAL_TYPE__BASE_DATA_TYPE = eINSTANCE.getIntervalType_Base_DataType(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.impl.CollectionTypeImpl Collection Type}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.impl.CollectionTypeImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.impl.DataTypesPackageImpl#getCollectionType() + * @generated + */ + EClass COLLECTION_TYPE = eINSTANCE.getCollectionType(); + + /** + * The meta object literal for the 'Collection Attrib' reference feature. + * + * + * @generated + */ + EReference COLLECTION_TYPE__COLLECTION_ATTRIB = eINSTANCE.getCollectionType_CollectionAttrib(); + + /** + * The meta object literal for the 'Base Data Type' reference feature. + * + * + * @generated + */ + EReference COLLECTION_TYPE__BASE_DATA_TYPE = eINSTANCE.getCollectionType_Base_DataType(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.impl.ChoiceTypeImpl Choice Type}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.impl.ChoiceTypeImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.impl.DataTypesPackageImpl#getChoiceType() + * @generated + */ + EClass CHOICE_TYPE = eINSTANCE.getChoiceType(); + + /** + * The meta object literal for the 'Choice Attrib' reference list feature. + * + * + * @generated + */ + EReference CHOICE_TYPE__CHOICE_ATTRIB = eINSTANCE.getChoiceType_ChoiceAttrib(); + + /** + * The meta object literal for the 'Default Attrib' reference feature. + * + * + * @generated + */ + EReference CHOICE_TYPE__DEFAULT_ATTRIB = eINSTANCE.getChoiceType_DefaultAttrib(); + + /** + * The meta object literal for the 'Base Data Type' reference feature. + * + * + * @generated + */ + EReference CHOICE_TYPE__BASE_DATA_TYPE = eINSTANCE.getChoiceType_Base_DataType(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.impl.TupleTypeImpl Tuple Type}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.impl.TupleTypeImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.impl.DataTypesPackageImpl#getTupleType() + * @generated + */ + EClass TUPLE_TYPE = eINSTANCE.getTupleType(); + + /** + * The meta object literal for the 'Tuple Attrib' reference list feature. + * + * + * @generated + */ + EReference TUPLE_TYPE__TUPLE_ATTRIB = eINSTANCE.getTupleType_TupleAttrib(); + + /** + * The meta object literal for the 'Base Data Type' reference feature. + * + * + * @generated + */ + EReference TUPLE_TYPE__BASE_DATA_TYPE = eINSTANCE.getTupleType_Base_DataType(); + + } + +} //DataTypesPackage diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/IntervalType.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/IntervalType.java new file mode 100644 index 00000000000..b830761668f --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/IntervalType.java @@ -0,0 +1,91 @@ +/***************************************************************************** + * 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.MARTE_Annexes.VSL.DataTypes; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.uml2.uml.DataType; +import org.eclipse.uml2.uml.Property; + +/** + * + * A representation of the model object 'Interval Type'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.IntervalType#getIntervalAttrib Interval Attrib}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.IntervalType#getBase_DataType Base Data Type}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.DataTypesPackage#getIntervalType() + * @model + * @generated + */ +public interface IntervalType extends EObject { + /** + * Returns the value of the 'Interval Attrib' reference. + * + *

+ * If the meaning of the 'Interval Attrib' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Interval Attrib' reference. + * @see #setIntervalAttrib(Property) + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.DataTypesPackage#getIntervalType_IntervalAttrib() + * @model required="true" ordered="false" + * @generated + */ + Property getIntervalAttrib(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.IntervalType#getIntervalAttrib Interval Attrib}' reference. + * + * + * @param value the new value of the 'Interval Attrib' reference. + * @see #getIntervalAttrib() + * @generated + */ + void setIntervalAttrib(Property value); + + /** + * Returns the value of the 'Base Data Type' reference. + * + *

+ * If the meaning of the 'Base Data Type' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Data Type' reference. + * @see #setBase_DataType(DataType) + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.DataTypesPackage#getIntervalType_Base_DataType() + * @model required="true" ordered="false" + * @generated + */ + DataType getBase_DataType(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.IntervalType#getBase_DataType Base Data Type}' reference. + * + * + * @param value the new value of the 'Base Data Type' reference. + * @see #getBase_DataType() + * @generated + */ + void setBase_DataType(DataType value); + +} // IntervalType diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/TupleType.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/TupleType.java new file mode 100644 index 00000000000..7f0fa8fef17 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/TupleType.java @@ -0,0 +1,83 @@ +/***************************************************************************** + * 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.MARTE_Annexes.VSL.DataTypes; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.uml2.uml.DataType; +import org.eclipse.uml2.uml.Property; + +/** + * + * A representation of the model object 'Tuple Type'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.TupleType#getTupleAttrib Tuple Attrib}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.TupleType#getBase_DataType Base Data Type}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.DataTypesPackage#getTupleType() + * @model + * @generated + */ +public interface TupleType extends EObject { + /** + * Returns the value of the 'Tuple Attrib' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.Property}. + * + *

+ * If the meaning of the 'Tuple Attrib' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Tuple Attrib' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.DataTypesPackage#getTupleType_TupleAttrib() + * @model ordered="false" + * @generated + */ + EList getTupleAttrib(); + + /** + * Returns the value of the 'Base Data Type' reference. + * + *

+ * If the meaning of the 'Base Data Type' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Data Type' reference. + * @see #setBase_DataType(DataType) + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.DataTypesPackage#getTupleType_Base_DataType() + * @model required="true" ordered="false" + * @generated + */ + DataType getBase_DataType(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.TupleType#getBase_DataType Base Data Type}' reference. + * + * + * @param value the new value of the 'Base Data Type' reference. + * @see #getBase_DataType() + * @generated + */ + void setBase_DataType(DataType value); + +} // TupleType diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/impl/BoundedSubtypeImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/impl/BoundedSubtypeImpl.java new file mode 100644 index 00000000000..b20b4dd5905 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/impl/BoundedSubtypeImpl.java @@ -0,0 +1,460 @@ +/***************************************************************************** + * 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.MARTE_Annexes.VSL.DataTypes.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.BoundedSubtype; +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.DataTypesPackage; + +import org.eclipse.uml2.uml.DataType; +import org.eclipse.uml2.uml.Property; + +/** + * + * An implementation of the model object 'Bounded Subtype'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.impl.BoundedSubtypeImpl#getBaseType Base Type}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.impl.BoundedSubtypeImpl#getMinValue Min Value}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.impl.BoundedSubtypeImpl#getMaxValue Max Value}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.impl.BoundedSubtypeImpl#isIsMinOpen Is Min Open}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.impl.BoundedSubtypeImpl#isIsMaxOpen Is Max Open}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.impl.BoundedSubtypeImpl#getBase_DataType Base Data Type}
  • + *
+ *

+ * + * @generated + */ +public class BoundedSubtypeImpl extends EObjectImpl implements BoundedSubtype { + /** + * The cached value of the '{@link #getBaseType() Base Type}' reference. + * + * + * @see #getBaseType() + * @generated + * @ordered + */ + protected Property baseType; + + /** + * The default value of the '{@link #getMinValue() Min Value}' attribute. + * + * + * @see #getMinValue() + * @generated + * @ordered + */ + protected static final String MIN_VALUE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMinValue() Min Value}' attribute. + * + * + * @see #getMinValue() + * @generated + * @ordered + */ + protected String minValue = MIN_VALUE_EDEFAULT; + + /** + * The default value of the '{@link #getMaxValue() Max Value}' attribute. + * + * + * @see #getMaxValue() + * @generated + * @ordered + */ + protected static final String MAX_VALUE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMaxValue() Max Value}' attribute. + * + * + * @see #getMaxValue() + * @generated + * @ordered + */ + protected String maxValue = MAX_VALUE_EDEFAULT; + + /** + * The default value of the '{@link #isIsMinOpen() Is Min Open}' attribute. + * + * + * @see #isIsMinOpen() + * @generated + * @ordered + */ + protected static final boolean IS_MIN_OPEN_EDEFAULT = false; + + /** + * The cached value of the '{@link #isIsMinOpen() Is Min Open}' attribute. + * + * + * @see #isIsMinOpen() + * @generated + * @ordered + */ + protected boolean isMinOpen = IS_MIN_OPEN_EDEFAULT; + + /** + * The default value of the '{@link #isIsMaxOpen() Is Max Open}' attribute. + * + * + * @see #isIsMaxOpen() + * @generated + * @ordered + */ + protected static final boolean IS_MAX_OPEN_EDEFAULT = false; + + /** + * The cached value of the '{@link #isIsMaxOpen() Is Max Open}' attribute. + * + * + * @see #isIsMaxOpen() + * @generated + * @ordered + */ + protected boolean isMaxOpen = IS_MAX_OPEN_EDEFAULT; + + /** + * The cached value of the '{@link #getBase_DataType() Base Data Type}' reference. + * + * + * @see #getBase_DataType() + * @generated + * @ordered + */ + protected DataType base_DataType; + + /** + * + * + * @generated + */ + protected BoundedSubtypeImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return DataTypesPackage.Literals.BOUNDED_SUBTYPE; + } + + /** + * + * + * @generated + */ + public Property getBaseType() { + if (baseType != null && baseType.eIsProxy()) { + InternalEObject oldBaseType = (InternalEObject)baseType; + baseType = (Property)eResolveProxy(oldBaseType); + if (baseType != oldBaseType) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, DataTypesPackage.BOUNDED_SUBTYPE__BASE_TYPE, oldBaseType, baseType)); + } + } + return baseType; + } + + /** + * + * + * @generated + */ + public Property basicGetBaseType() { + return baseType; + } + + /** + * + * + * @generated + */ + public void setBaseType(Property newBaseType) { + Property oldBaseType = baseType; + baseType = newBaseType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DataTypesPackage.BOUNDED_SUBTYPE__BASE_TYPE, oldBaseType, baseType)); + } + + /** + * + * + * @generated + */ + public String getMinValue() { + return minValue; + } + + /** + * + * + * @generated + */ + public void setMinValue(String newMinValue) { + String oldMinValue = minValue; + minValue = newMinValue; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DataTypesPackage.BOUNDED_SUBTYPE__MIN_VALUE, oldMinValue, minValue)); + } + + /** + * + * + * @generated + */ + public String getMaxValue() { + return maxValue; + } + + /** + * + * + * @generated + */ + public void setMaxValue(String newMaxValue) { + String oldMaxValue = maxValue; + maxValue = newMaxValue; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DataTypesPackage.BOUNDED_SUBTYPE__MAX_VALUE, oldMaxValue, maxValue)); + } + + /** + * + * + * @generated + */ + public boolean isIsMinOpen() { + return isMinOpen; + } + + /** + * + * + * @generated + */ + public void setIsMinOpen(boolean newIsMinOpen) { + boolean oldIsMinOpen = isMinOpen; + isMinOpen = newIsMinOpen; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DataTypesPackage.BOUNDED_SUBTYPE__IS_MIN_OPEN, oldIsMinOpen, isMinOpen)); + } + + /** + * + * + * @generated + */ + public boolean isIsMaxOpen() { + return isMaxOpen; + } + + /** + * + * + * @generated + */ + public void setIsMaxOpen(boolean newIsMaxOpen) { + boolean oldIsMaxOpen = isMaxOpen; + isMaxOpen = newIsMaxOpen; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DataTypesPackage.BOUNDED_SUBTYPE__IS_MAX_OPEN, oldIsMaxOpen, isMaxOpen)); + } + + /** + * + * + * @generated + */ + public DataType getBase_DataType() { + if (base_DataType != null && base_DataType.eIsProxy()) { + InternalEObject oldBase_DataType = (InternalEObject)base_DataType; + base_DataType = (DataType)eResolveProxy(oldBase_DataType); + if (base_DataType != oldBase_DataType) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, DataTypesPackage.BOUNDED_SUBTYPE__BASE_DATA_TYPE, oldBase_DataType, base_DataType)); + } + } + return base_DataType; + } + + /** + * + * + * @generated + */ + public DataType basicGetBase_DataType() { + return base_DataType; + } + + /** + * + * + * @generated + */ + public void setBase_DataType(DataType newBase_DataType) { + DataType oldBase_DataType = base_DataType; + base_DataType = newBase_DataType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DataTypesPackage.BOUNDED_SUBTYPE__BASE_DATA_TYPE, oldBase_DataType, base_DataType)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case DataTypesPackage.BOUNDED_SUBTYPE__BASE_TYPE: + if (resolve) return getBaseType(); + return basicGetBaseType(); + case DataTypesPackage.BOUNDED_SUBTYPE__MIN_VALUE: + return getMinValue(); + case DataTypesPackage.BOUNDED_SUBTYPE__MAX_VALUE: + return getMaxValue(); + case DataTypesPackage.BOUNDED_SUBTYPE__IS_MIN_OPEN: + return isIsMinOpen(); + case DataTypesPackage.BOUNDED_SUBTYPE__IS_MAX_OPEN: + return isIsMaxOpen(); + case DataTypesPackage.BOUNDED_SUBTYPE__BASE_DATA_TYPE: + if (resolve) return getBase_DataType(); + return basicGetBase_DataType(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case DataTypesPackage.BOUNDED_SUBTYPE__BASE_TYPE: + setBaseType((Property)newValue); + return; + case DataTypesPackage.BOUNDED_SUBTYPE__MIN_VALUE: + setMinValue((String)newValue); + return; + case DataTypesPackage.BOUNDED_SUBTYPE__MAX_VALUE: + setMaxValue((String)newValue); + return; + case DataTypesPackage.BOUNDED_SUBTYPE__IS_MIN_OPEN: + setIsMinOpen((Boolean)newValue); + return; + case DataTypesPackage.BOUNDED_SUBTYPE__IS_MAX_OPEN: + setIsMaxOpen((Boolean)newValue); + return; + case DataTypesPackage.BOUNDED_SUBTYPE__BASE_DATA_TYPE: + setBase_DataType((DataType)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DataTypesPackage.BOUNDED_SUBTYPE__BASE_TYPE: + setBaseType((Property)null); + return; + case DataTypesPackage.BOUNDED_SUBTYPE__MIN_VALUE: + setMinValue(MIN_VALUE_EDEFAULT); + return; + case DataTypesPackage.BOUNDED_SUBTYPE__MAX_VALUE: + setMaxValue(MAX_VALUE_EDEFAULT); + return; + case DataTypesPackage.BOUNDED_SUBTYPE__IS_MIN_OPEN: + setIsMinOpen(IS_MIN_OPEN_EDEFAULT); + return; + case DataTypesPackage.BOUNDED_SUBTYPE__IS_MAX_OPEN: + setIsMaxOpen(IS_MAX_OPEN_EDEFAULT); + return; + case DataTypesPackage.BOUNDED_SUBTYPE__BASE_DATA_TYPE: + setBase_DataType((DataType)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DataTypesPackage.BOUNDED_SUBTYPE__BASE_TYPE: + return baseType != null; + case DataTypesPackage.BOUNDED_SUBTYPE__MIN_VALUE: + return MIN_VALUE_EDEFAULT == null ? minValue != null : !MIN_VALUE_EDEFAULT.equals(minValue); + case DataTypesPackage.BOUNDED_SUBTYPE__MAX_VALUE: + return MAX_VALUE_EDEFAULT == null ? maxValue != null : !MAX_VALUE_EDEFAULT.equals(maxValue); + case DataTypesPackage.BOUNDED_SUBTYPE__IS_MIN_OPEN: + return isMinOpen != IS_MIN_OPEN_EDEFAULT; + case DataTypesPackage.BOUNDED_SUBTYPE__IS_MAX_OPEN: + return isMaxOpen != IS_MAX_OPEN_EDEFAULT; + case DataTypesPackage.BOUNDED_SUBTYPE__BASE_DATA_TYPE: + return base_DataType != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (minValue: "); + result.append(minValue); + result.append(", maxValue: "); + result.append(maxValue); + result.append(", isMinOpen: "); + result.append(isMinOpen); + result.append(", isMaxOpen: "); + result.append(isMaxOpen); + result.append(')'); + return result.toString(); + } + +} //BoundedSubtypeImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/impl/ChoiceTypeImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/impl/ChoiceTypeImpl.java new file mode 100644 index 00000000000..40ab71964a1 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/impl/ChoiceTypeImpl.java @@ -0,0 +1,271 @@ +/***************************************************************************** + * 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.MARTE_Annexes.VSL.DataTypes.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectResolvingEList; + +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.ChoiceType; +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.DataTypesPackage; + +import org.eclipse.uml2.uml.DataType; +import org.eclipse.uml2.uml.Property; + +/** + * + * An implementation of the model object 'Choice Type'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.impl.ChoiceTypeImpl#getChoiceAttrib Choice Attrib}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.impl.ChoiceTypeImpl#getDefaultAttrib Default Attrib}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.impl.ChoiceTypeImpl#getBase_DataType Base Data Type}
  • + *
+ *

+ * + * @generated + */ +public class ChoiceTypeImpl extends EObjectImpl implements ChoiceType { + /** + * The cached value of the '{@link #getChoiceAttrib() Choice Attrib}' reference list. + * + * + * @see #getChoiceAttrib() + * @generated + * @ordered + */ + protected EList choiceAttrib; + + /** + * The cached value of the '{@link #getDefaultAttrib() Default Attrib}' reference. + * + * + * @see #getDefaultAttrib() + * @generated + * @ordered + */ + protected Property defaultAttrib; + + /** + * The cached value of the '{@link #getBase_DataType() Base Data Type}' reference. + * + * + * @see #getBase_DataType() + * @generated + * @ordered + */ + protected DataType base_DataType; + + /** + * + * + * @generated + */ + protected ChoiceTypeImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return DataTypesPackage.Literals.CHOICE_TYPE; + } + + /** + * + * + * @generated + */ + public EList getChoiceAttrib() { + if (choiceAttrib == null) { + choiceAttrib = new EObjectResolvingEList(Property.class, this, DataTypesPackage.CHOICE_TYPE__CHOICE_ATTRIB); + } + return choiceAttrib; + } + + /** + * + * + * @generated + */ + public Property getDefaultAttrib() { + if (defaultAttrib != null && defaultAttrib.eIsProxy()) { + InternalEObject oldDefaultAttrib = (InternalEObject)defaultAttrib; + defaultAttrib = (Property)eResolveProxy(oldDefaultAttrib); + if (defaultAttrib != oldDefaultAttrib) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, DataTypesPackage.CHOICE_TYPE__DEFAULT_ATTRIB, oldDefaultAttrib, defaultAttrib)); + } + } + return defaultAttrib; + } + + /** + * + * + * @generated + */ + public Property basicGetDefaultAttrib() { + return defaultAttrib; + } + + /** + * + * + * @generated + */ + public void setDefaultAttrib(Property newDefaultAttrib) { + Property oldDefaultAttrib = defaultAttrib; + defaultAttrib = newDefaultAttrib; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DataTypesPackage.CHOICE_TYPE__DEFAULT_ATTRIB, oldDefaultAttrib, defaultAttrib)); + } + + /** + * + * + * @generated + */ + public DataType getBase_DataType() { + if (base_DataType != null && base_DataType.eIsProxy()) { + InternalEObject oldBase_DataType = (InternalEObject)base_DataType; + base_DataType = (DataType)eResolveProxy(oldBase_DataType); + if (base_DataType != oldBase_DataType) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, DataTypesPackage.CHOICE_TYPE__BASE_DATA_TYPE, oldBase_DataType, base_DataType)); + } + } + return base_DataType; + } + + /** + * + * + * @generated + */ + public DataType basicGetBase_DataType() { + return base_DataType; + } + + /** + * + * + * @generated + */ + public void setBase_DataType(DataType newBase_DataType) { + DataType oldBase_DataType = base_DataType; + base_DataType = newBase_DataType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DataTypesPackage.CHOICE_TYPE__BASE_DATA_TYPE, oldBase_DataType, base_DataType)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case DataTypesPackage.CHOICE_TYPE__CHOICE_ATTRIB: + return getChoiceAttrib(); + case DataTypesPackage.CHOICE_TYPE__DEFAULT_ATTRIB: + if (resolve) return getDefaultAttrib(); + return basicGetDefaultAttrib(); + case DataTypesPackage.CHOICE_TYPE__BASE_DATA_TYPE: + if (resolve) return getBase_DataType(); + return basicGetBase_DataType(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case DataTypesPackage.CHOICE_TYPE__CHOICE_ATTRIB: + getChoiceAttrib().clear(); + getChoiceAttrib().addAll((Collection)newValue); + return; + case DataTypesPackage.CHOICE_TYPE__DEFAULT_ATTRIB: + setDefaultAttrib((Property)newValue); + return; + case DataTypesPackage.CHOICE_TYPE__BASE_DATA_TYPE: + setBase_DataType((DataType)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DataTypesPackage.CHOICE_TYPE__CHOICE_ATTRIB: + getChoiceAttrib().clear(); + return; + case DataTypesPackage.CHOICE_TYPE__DEFAULT_ATTRIB: + setDefaultAttrib((Property)null); + return; + case DataTypesPackage.CHOICE_TYPE__BASE_DATA_TYPE: + setBase_DataType((DataType)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DataTypesPackage.CHOICE_TYPE__CHOICE_ATTRIB: + return choiceAttrib != null && !choiceAttrib.isEmpty(); + case DataTypesPackage.CHOICE_TYPE__DEFAULT_ATTRIB: + return defaultAttrib != null; + case DataTypesPackage.CHOICE_TYPE__BASE_DATA_TYPE: + return base_DataType != null; + } + return super.eIsSet(featureID); + } + +} //ChoiceTypeImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/impl/CollectionTypeImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/impl/CollectionTypeImpl.java new file mode 100644 index 00000000000..b8c73550542 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/impl/CollectionTypeImpl.java @@ -0,0 +1,230 @@ +/***************************************************************************** + * 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.MARTE_Annexes.VSL.DataTypes.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.CollectionType; +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.DataTypesPackage; + +import org.eclipse.uml2.uml.DataType; +import org.eclipse.uml2.uml.Property; + +/** + * + * An implementation of the model object 'Collection Type'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.impl.CollectionTypeImpl#getCollectionAttrib Collection Attrib}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.impl.CollectionTypeImpl#getBase_DataType Base Data Type}
  • + *
+ *

+ * + * @generated + */ +public class CollectionTypeImpl extends EObjectImpl implements CollectionType { + /** + * The cached value of the '{@link #getCollectionAttrib() Collection Attrib}' reference. + * + * + * @see #getCollectionAttrib() + * @generated + * @ordered + */ + protected Property collectionAttrib; + + /** + * The cached value of the '{@link #getBase_DataType() Base Data Type}' reference. + * + * + * @see #getBase_DataType() + * @generated + * @ordered + */ + protected DataType base_DataType; + + /** + * + * + * @generated + */ + protected CollectionTypeImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return DataTypesPackage.Literals.COLLECTION_TYPE; + } + + /** + * + * + * @generated + */ + public Property getCollectionAttrib() { + if (collectionAttrib != null && collectionAttrib.eIsProxy()) { + InternalEObject oldCollectionAttrib = (InternalEObject)collectionAttrib; + collectionAttrib = (Property)eResolveProxy(oldCollectionAttrib); + if (collectionAttrib != oldCollectionAttrib) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, DataTypesPackage.COLLECTION_TYPE__COLLECTION_ATTRIB, oldCollectionAttrib, collectionAttrib)); + } + } + return collectionAttrib; + } + + /** + * + * + * @generated + */ + public Property basicGetCollectionAttrib() { + return collectionAttrib; + } + + /** + * + * + * @generated + */ + public void setCollectionAttrib(Property newCollectionAttrib) { + Property oldCollectionAttrib = collectionAttrib; + collectionAttrib = newCollectionAttrib; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DataTypesPackage.COLLECTION_TYPE__COLLECTION_ATTRIB, oldCollectionAttrib, collectionAttrib)); + } + + /** + * + * + * @generated + */ + public DataType getBase_DataType() { + if (base_DataType != null && base_DataType.eIsProxy()) { + InternalEObject oldBase_DataType = (InternalEObject)base_DataType; + base_DataType = (DataType)eResolveProxy(oldBase_DataType); + if (base_DataType != oldBase_DataType) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, DataTypesPackage.COLLECTION_TYPE__BASE_DATA_TYPE, oldBase_DataType, base_DataType)); + } + } + return base_DataType; + } + + /** + * + * + * @generated + */ + public DataType basicGetBase_DataType() { + return base_DataType; + } + + /** + * + * + * @generated + */ + public void setBase_DataType(DataType newBase_DataType) { + DataType oldBase_DataType = base_DataType; + base_DataType = newBase_DataType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DataTypesPackage.COLLECTION_TYPE__BASE_DATA_TYPE, oldBase_DataType, base_DataType)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case DataTypesPackage.COLLECTION_TYPE__COLLECTION_ATTRIB: + if (resolve) return getCollectionAttrib(); + return basicGetCollectionAttrib(); + case DataTypesPackage.COLLECTION_TYPE__BASE_DATA_TYPE: + if (resolve) return getBase_DataType(); + return basicGetBase_DataType(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case DataTypesPackage.COLLECTION_TYPE__COLLECTION_ATTRIB: + setCollectionAttrib((Property)newValue); + return; + case DataTypesPackage.COLLECTION_TYPE__BASE_DATA_TYPE: + setBase_DataType((DataType)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DataTypesPackage.COLLECTION_TYPE__COLLECTION_ATTRIB: + setCollectionAttrib((Property)null); + return; + case DataTypesPackage.COLLECTION_TYPE__BASE_DATA_TYPE: + setBase_DataType((DataType)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DataTypesPackage.COLLECTION_TYPE__COLLECTION_ATTRIB: + return collectionAttrib != null; + case DataTypesPackage.COLLECTION_TYPE__BASE_DATA_TYPE: + return base_DataType != null; + } + return super.eIsSet(featureID); + } + +} //CollectionTypeImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/impl/DataTypesFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/impl/DataTypesFactoryImpl.java new file mode 100644 index 00000000000..9a970d21b74 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/impl/DataTypesFactoryImpl.java @@ -0,0 +1,150 @@ +/***************************************************************************** + * 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.MARTE_Annexes.VSL.DataTypes.impl; + +import org.eclipse.emf.ecore.EClass; +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.MARTE_Annexes.VSL.DataTypes.*; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class DataTypesFactoryImpl extends EFactoryImpl implements DataTypesFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static DataTypesFactory init() { + try { + DataTypesFactory theDataTypesFactory = (DataTypesFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/DataTypes/1"); + if (theDataTypesFactory != null) { + return theDataTypesFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new DataTypesFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public DataTypesFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case DataTypesPackage.BOUNDED_SUBTYPE: return createBoundedSubtype(); + case DataTypesPackage.INTERVAL_TYPE: return createIntervalType(); + case DataTypesPackage.COLLECTION_TYPE: return createCollectionType(); + case DataTypesPackage.CHOICE_TYPE: return createChoiceType(); + case DataTypesPackage.TUPLE_TYPE: return createTupleType(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public BoundedSubtype createBoundedSubtype() { + BoundedSubtypeImpl boundedSubtype = new BoundedSubtypeImpl(); + return boundedSubtype; + } + + /** + * + * + * @generated + */ + public IntervalType createIntervalType() { + IntervalTypeImpl intervalType = new IntervalTypeImpl(); + return intervalType; + } + + /** + * + * + * @generated + */ + public CollectionType createCollectionType() { + CollectionTypeImpl collectionType = new CollectionTypeImpl(); + return collectionType; + } + + /** + * + * + * @generated + */ + public ChoiceType createChoiceType() { + ChoiceTypeImpl choiceType = new ChoiceTypeImpl(); + return choiceType; + } + + /** + * + * + * @generated + */ + public TupleType createTupleType() { + TupleTypeImpl tupleType = new TupleTypeImpl(); + return tupleType; + } + + /** + * + * + * @generated + */ + public DataTypesPackage getDataTypesPackage() { + return (DataTypesPackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static DataTypesPackage getPackage() { + return DataTypesPackage.eINSTANCE; + } + +} //DataTypesFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/impl/DataTypesPackageImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/impl/DataTypesPackageImpl.java new file mode 100644 index 00000000000..f144fca0724 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/impl/DataTypesPackageImpl.java @@ -0,0 +1,677 @@ +/***************************************************************************** + * 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.MARTE_Annexes.VSL.DataTypes.impl; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +import org.eclipse.emf.ecore.impl.EPackageImpl; + +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.BoundedSubtype; +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.ChoiceType; +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.CollectionType; +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.DataTypesFactory; +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.DataTypesPackage; +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.IntervalType; +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.TupleType; + +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.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 DataTypesPackageImpl extends EPackageImpl implements DataTypesPackage { + /** + * + * + * @generated + */ + private EClass boundedSubtypeEClass = null; + + /** + * + * + * @generated + */ + private EClass intervalTypeEClass = null; + + /** + * + * + * @generated + */ + private EClass collectionTypeEClass = null; + + /** + * + * + * @generated + */ + private EClass choiceTypeEClass = null; + + /** + * + * + * @generated + */ + private EClass tupleTypeEClass = 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.MARTE_Annexes.VSL.DataTypes.DataTypesPackage#eNS_URI + * @see #init() + * @generated + */ + private DataTypesPackageImpl() { + super(eNS_URI, 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 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 DataTypesPackage init() { + if (isInited) return (DataTypesPackage)EPackage.Registry.INSTANCE.getEPackage(DataTypesPackage.eNS_URI); + + // Obtain or create and register package + DataTypesPackageImpl theDataTypesPackage = (DataTypesPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof DataTypesPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new 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); + 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); + 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 + theDataTypesPackage.createPackageContents(); + theMARTEPackage.createPackageContents(); + theNFPsPackage.createPackageContents(); + theCoreElementsPackage.createPackageContents(); + theAllocPackage.createPackageContents(); + theTimePackage.createPackageContents(); + theGRMPackage.createPackageContents(); + theRSMPackage.createPackageContents(); + theVariablesPackage.createPackageContents(); + theOperatorsPackage.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(); + theMARTE_PrimitivesTypesPackage.createPackageContents(); + + // Initialize created meta-data + theDataTypesPackage.initializePackageContents(); + theMARTEPackage.initializePackageContents(); + theNFPsPackage.initializePackageContents(); + theCoreElementsPackage.initializePackageContents(); + theAllocPackage.initializePackageContents(); + theTimePackage.initializePackageContents(); + theGRMPackage.initializePackageContents(); + theRSMPackage.initializePackageContents(); + theVariablesPackage.initializePackageContents(); + theOperatorsPackage.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(); + theMARTE_PrimitivesTypesPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theDataTypesPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(DataTypesPackage.eNS_URI, theDataTypesPackage); + return theDataTypesPackage; + } + + /** + * + * + * @generated + */ + public EClass getBoundedSubtype() { + return boundedSubtypeEClass; + } + + /** + * + * + * @generated + */ + public EReference getBoundedSubtype_BaseType() { + return (EReference)boundedSubtypeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getBoundedSubtype_MinValue() { + return (EAttribute)boundedSubtypeEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getBoundedSubtype_MaxValue() { + return (EAttribute)boundedSubtypeEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getBoundedSubtype_IsMinOpen() { + return (EAttribute)boundedSubtypeEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getBoundedSubtype_IsMaxOpen() { + return (EAttribute)boundedSubtypeEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EReference getBoundedSubtype_Base_DataType() { + return (EReference)boundedSubtypeEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EClass getIntervalType() { + return intervalTypeEClass; + } + + /** + * + * + * @generated + */ + public EReference getIntervalType_IntervalAttrib() { + return (EReference)intervalTypeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getIntervalType_Base_DataType() { + return (EReference)intervalTypeEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getCollectionType() { + return collectionTypeEClass; + } + + /** + * + * + * @generated + */ + public EReference getCollectionType_CollectionAttrib() { + return (EReference)collectionTypeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getCollectionType_Base_DataType() { + return (EReference)collectionTypeEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getChoiceType() { + return choiceTypeEClass; + } + + /** + * + * + * @generated + */ + public EReference getChoiceType_ChoiceAttrib() { + return (EReference)choiceTypeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getChoiceType_DefaultAttrib() { + return (EReference)choiceTypeEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getChoiceType_Base_DataType() { + return (EReference)choiceTypeEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getTupleType() { + return tupleTypeEClass; + } + + /** + * + * + * @generated + */ + public EReference getTupleType_TupleAttrib() { + return (EReference)tupleTypeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getTupleType_Base_DataType() { + return (EReference)tupleTypeEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public DataTypesFactory getDataTypesFactory() { + return (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 classes and their features + boundedSubtypeEClass = createEClass(BOUNDED_SUBTYPE); + createEReference(boundedSubtypeEClass, BOUNDED_SUBTYPE__BASE_TYPE); + createEAttribute(boundedSubtypeEClass, BOUNDED_SUBTYPE__MIN_VALUE); + createEAttribute(boundedSubtypeEClass, BOUNDED_SUBTYPE__MAX_VALUE); + createEAttribute(boundedSubtypeEClass, BOUNDED_SUBTYPE__IS_MIN_OPEN); + createEAttribute(boundedSubtypeEClass, BOUNDED_SUBTYPE__IS_MAX_OPEN); + createEReference(boundedSubtypeEClass, BOUNDED_SUBTYPE__BASE_DATA_TYPE); + + intervalTypeEClass = createEClass(INTERVAL_TYPE); + createEReference(intervalTypeEClass, INTERVAL_TYPE__INTERVAL_ATTRIB); + createEReference(intervalTypeEClass, INTERVAL_TYPE__BASE_DATA_TYPE); + + collectionTypeEClass = createEClass(COLLECTION_TYPE); + createEReference(collectionTypeEClass, COLLECTION_TYPE__COLLECTION_ATTRIB); + createEReference(collectionTypeEClass, COLLECTION_TYPE__BASE_DATA_TYPE); + + choiceTypeEClass = createEClass(CHOICE_TYPE); + createEReference(choiceTypeEClass, CHOICE_TYPE__CHOICE_ATTRIB); + createEReference(choiceTypeEClass, CHOICE_TYPE__DEFAULT_ATTRIB); + createEReference(choiceTypeEClass, CHOICE_TYPE__BASE_DATA_TYPE); + + tupleTypeEClass = createEClass(TUPLE_TYPE); + createEReference(tupleTypeEClass, TUPLE_TYPE__TUPLE_ATTRIB); + createEReference(tupleTypeEClass, TUPLE_TYPE__BASE_DATA_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); + + // Obtain other dependent packages + UMLPackage theUMLPackage = (UMLPackage)EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + + // Initialize classes and features; add operations and parameters + initEClass(boundedSubtypeEClass, BoundedSubtype.class, "BoundedSubtype", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getBoundedSubtype_BaseType(), theUMLPackage.getProperty(), null, "baseType", null, 1, 1, BoundedSubtype.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getBoundedSubtype_MinValue(), ecorePackage.getEString(), "minValue", null, 1, 1, BoundedSubtype.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getBoundedSubtype_MaxValue(), ecorePackage.getEString(), "maxValue", null, 1, 1, BoundedSubtype.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getBoundedSubtype_IsMinOpen(), ecorePackage.getEBoolean(), "isMinOpen", null, 1, 1, BoundedSubtype.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getBoundedSubtype_IsMaxOpen(), ecorePackage.getEBoolean(), "isMaxOpen", null, 1, 1, BoundedSubtype.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getBoundedSubtype_Base_DataType(), theUMLPackage.getDataType(), null, "base_DataType", null, 1, 1, BoundedSubtype.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(intervalTypeEClass, IntervalType.class, "IntervalType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getIntervalType_IntervalAttrib(), theUMLPackage.getProperty(), null, "intervalAttrib", null, 1, 1, IntervalType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getIntervalType_Base_DataType(), theUMLPackage.getDataType(), null, "base_DataType", null, 1, 1, IntervalType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(collectionTypeEClass, CollectionType.class, "CollectionType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getCollectionType_CollectionAttrib(), theUMLPackage.getProperty(), null, "collectionAttrib", null, 1, 1, CollectionType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getCollectionType_Base_DataType(), theUMLPackage.getDataType(), null, "base_DataType", null, 1, 1, CollectionType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(choiceTypeEClass, ChoiceType.class, "ChoiceType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getChoiceType_ChoiceAttrib(), theUMLPackage.getProperty(), null, "choiceAttrib", null, 0, -1, ChoiceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getChoiceType_DefaultAttrib(), theUMLPackage.getProperty(), null, "defaultAttrib", null, 0, 1, ChoiceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getChoiceType_Base_DataType(), theUMLPackage.getDataType(), null, "base_DataType", null, 1, 1, ChoiceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(tupleTypeEClass, TupleType.class, "TupleType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getTupleType_TupleAttrib(), theUMLPackage.getProperty(), null, "tupleAttrib", null, 0, -1, TupleType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getTupleType_Base_DataType(), theUMLPackage.getDataType(), null, "base_DataType", null, 1, 1, TupleType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + } + +} //DataTypesPackageImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/impl/IntervalTypeImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/impl/IntervalTypeImpl.java new file mode 100644 index 00000000000..0a2c94273f8 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/impl/IntervalTypeImpl.java @@ -0,0 +1,230 @@ +/***************************************************************************** + * 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.MARTE_Annexes.VSL.DataTypes.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.DataTypesPackage; +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.IntervalType; + +import org.eclipse.uml2.uml.DataType; +import org.eclipse.uml2.uml.Property; + +/** + * + * An implementation of the model object 'Interval Type'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.impl.IntervalTypeImpl#getIntervalAttrib Interval Attrib}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.impl.IntervalTypeImpl#getBase_DataType Base Data Type}
  • + *
+ *

+ * + * @generated + */ +public class IntervalTypeImpl extends EObjectImpl implements IntervalType { + /** + * The cached value of the '{@link #getIntervalAttrib() Interval Attrib}' reference. + * + * + * @see #getIntervalAttrib() + * @generated + * @ordered + */ + protected Property intervalAttrib; + + /** + * The cached value of the '{@link #getBase_DataType() Base Data Type}' reference. + * + * + * @see #getBase_DataType() + * @generated + * @ordered + */ + protected DataType base_DataType; + + /** + * + * + * @generated + */ + protected IntervalTypeImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return DataTypesPackage.Literals.INTERVAL_TYPE; + } + + /** + * + * + * @generated + */ + public Property getIntervalAttrib() { + if (intervalAttrib != null && intervalAttrib.eIsProxy()) { + InternalEObject oldIntervalAttrib = (InternalEObject)intervalAttrib; + intervalAttrib = (Property)eResolveProxy(oldIntervalAttrib); + if (intervalAttrib != oldIntervalAttrib) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, DataTypesPackage.INTERVAL_TYPE__INTERVAL_ATTRIB, oldIntervalAttrib, intervalAttrib)); + } + } + return intervalAttrib; + } + + /** + * + * + * @generated + */ + public Property basicGetIntervalAttrib() { + return intervalAttrib; + } + + /** + * + * + * @generated + */ + public void setIntervalAttrib(Property newIntervalAttrib) { + Property oldIntervalAttrib = intervalAttrib; + intervalAttrib = newIntervalAttrib; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DataTypesPackage.INTERVAL_TYPE__INTERVAL_ATTRIB, oldIntervalAttrib, intervalAttrib)); + } + + /** + * + * + * @generated + */ + public DataType getBase_DataType() { + if (base_DataType != null && base_DataType.eIsProxy()) { + InternalEObject oldBase_DataType = (InternalEObject)base_DataType; + base_DataType = (DataType)eResolveProxy(oldBase_DataType); + if (base_DataType != oldBase_DataType) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, DataTypesPackage.INTERVAL_TYPE__BASE_DATA_TYPE, oldBase_DataType, base_DataType)); + } + } + return base_DataType; + } + + /** + * + * + * @generated + */ + public DataType basicGetBase_DataType() { + return base_DataType; + } + + /** + * + * + * @generated + */ + public void setBase_DataType(DataType newBase_DataType) { + DataType oldBase_DataType = base_DataType; + base_DataType = newBase_DataType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DataTypesPackage.INTERVAL_TYPE__BASE_DATA_TYPE, oldBase_DataType, base_DataType)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case DataTypesPackage.INTERVAL_TYPE__INTERVAL_ATTRIB: + if (resolve) return getIntervalAttrib(); + return basicGetIntervalAttrib(); + case DataTypesPackage.INTERVAL_TYPE__BASE_DATA_TYPE: + if (resolve) return getBase_DataType(); + return basicGetBase_DataType(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case DataTypesPackage.INTERVAL_TYPE__INTERVAL_ATTRIB: + setIntervalAttrib((Property)newValue); + return; + case DataTypesPackage.INTERVAL_TYPE__BASE_DATA_TYPE: + setBase_DataType((DataType)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DataTypesPackage.INTERVAL_TYPE__INTERVAL_ATTRIB: + setIntervalAttrib((Property)null); + return; + case DataTypesPackage.INTERVAL_TYPE__BASE_DATA_TYPE: + setBase_DataType((DataType)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DataTypesPackage.INTERVAL_TYPE__INTERVAL_ATTRIB: + return intervalAttrib != null; + case DataTypesPackage.INTERVAL_TYPE__BASE_DATA_TYPE: + return base_DataType != null; + } + return super.eIsSet(featureID); + } + +} //IntervalTypeImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/impl/TupleTypeImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/impl/TupleTypeImpl.java new file mode 100644 index 00000000000..f14646151c2 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/impl/TupleTypeImpl.java @@ -0,0 +1,211 @@ +/***************************************************************************** + * 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.MARTE_Annexes.VSL.DataTypes.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectResolvingEList; + +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.DataTypesPackage; +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.TupleType; + +import org.eclipse.uml2.uml.DataType; +import org.eclipse.uml2.uml.Property; + +/** + * + * An implementation of the model object 'Tuple Type'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.impl.TupleTypeImpl#getTupleAttrib Tuple Attrib}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.impl.TupleTypeImpl#getBase_DataType Base Data Type}
  • + *
+ *

+ * + * @generated + */ +public class TupleTypeImpl extends EObjectImpl implements TupleType { + /** + * The cached value of the '{@link #getTupleAttrib() Tuple Attrib}' reference list. + * + * + * @see #getTupleAttrib() + * @generated + * @ordered + */ + protected EList tupleAttrib; + + /** + * The cached value of the '{@link #getBase_DataType() Base Data Type}' reference. + * + * + * @see #getBase_DataType() + * @generated + * @ordered + */ + protected DataType base_DataType; + + /** + * + * + * @generated + */ + protected TupleTypeImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return DataTypesPackage.Literals.TUPLE_TYPE; + } + + /** + * + * + * @generated + */ + public EList getTupleAttrib() { + if (tupleAttrib == null) { + tupleAttrib = new EObjectResolvingEList(Property.class, this, DataTypesPackage.TUPLE_TYPE__TUPLE_ATTRIB); + } + return tupleAttrib; + } + + /** + * + * + * @generated + */ + public DataType getBase_DataType() { + if (base_DataType != null && base_DataType.eIsProxy()) { + InternalEObject oldBase_DataType = (InternalEObject)base_DataType; + base_DataType = (DataType)eResolveProxy(oldBase_DataType); + if (base_DataType != oldBase_DataType) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, DataTypesPackage.TUPLE_TYPE__BASE_DATA_TYPE, oldBase_DataType, base_DataType)); + } + } + return base_DataType; + } + + /** + * + * + * @generated + */ + public DataType basicGetBase_DataType() { + return base_DataType; + } + + /** + * + * + * @generated + */ + public void setBase_DataType(DataType newBase_DataType) { + DataType oldBase_DataType = base_DataType; + base_DataType = newBase_DataType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DataTypesPackage.TUPLE_TYPE__BASE_DATA_TYPE, oldBase_DataType, base_DataType)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case DataTypesPackage.TUPLE_TYPE__TUPLE_ATTRIB: + return getTupleAttrib(); + case DataTypesPackage.TUPLE_TYPE__BASE_DATA_TYPE: + if (resolve) return getBase_DataType(); + return basicGetBase_DataType(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case DataTypesPackage.TUPLE_TYPE__TUPLE_ATTRIB: + getTupleAttrib().clear(); + getTupleAttrib().addAll((Collection)newValue); + return; + case DataTypesPackage.TUPLE_TYPE__BASE_DATA_TYPE: + setBase_DataType((DataType)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DataTypesPackage.TUPLE_TYPE__TUPLE_ATTRIB: + getTupleAttrib().clear(); + return; + case DataTypesPackage.TUPLE_TYPE__BASE_DATA_TYPE: + setBase_DataType((DataType)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DataTypesPackage.TUPLE_TYPE__TUPLE_ATTRIB: + return tupleAttrib != null && !tupleAttrib.isEmpty(); + case DataTypesPackage.TUPLE_TYPE__BASE_DATA_TYPE: + return base_DataType != null; + } + return super.eIsSet(featureID); + } + +} //TupleTypeImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/util/DataTypesAdapterFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/util/DataTypesAdapterFactory.java new file mode 100644 index 00000000000..8891f06685a --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/util/DataTypesAdapterFactory.java @@ -0,0 +1,203 @@ +/***************************************************************************** + * 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.MARTE_Annexes.VSL.DataTypes.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.MARTE_Annexes.VSL.DataTypes.*; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.DataTypesPackage + * @generated + */ +public class DataTypesAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * @generated + */ + protected static DataTypesPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public DataTypesAdapterFactory() { + if (modelPackage == null) { + modelPackage = DataTypesPackage.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 DataTypesSwitch modelSwitch = + new DataTypesSwitch() { + @Override + public Adapter caseBoundedSubtype(BoundedSubtype object) { + return createBoundedSubtypeAdapter(); + } + @Override + public Adapter caseIntervalType(IntervalType object) { + return createIntervalTypeAdapter(); + } + @Override + public Adapter caseCollectionType(CollectionType object) { + return createCollectionTypeAdapter(); + } + @Override + public Adapter caseChoiceType(ChoiceType object) { + return createChoiceTypeAdapter(); + } + @Override + public Adapter caseTupleType(TupleType object) { + return createTupleTypeAdapter(); + } + @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.MARTE_Annexes.VSL.DataTypes.BoundedSubtype Bounded Subtype}'. + * + * 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.MARTE_Annexes.VSL.DataTypes.BoundedSubtype + * @generated + */ + public Adapter createBoundedSubtypeAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.IntervalType Interval Type}'. + * + * 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.MARTE_Annexes.VSL.DataTypes.IntervalType + * @generated + */ + public Adapter createIntervalTypeAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.CollectionType Collection Type}'. + * + * 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.MARTE_Annexes.VSL.DataTypes.CollectionType + * @generated + */ + public Adapter createCollectionTypeAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.ChoiceType Choice Type}'. + * + * 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.MARTE_Annexes.VSL.DataTypes.ChoiceType + * @generated + */ + public Adapter createChoiceTypeAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.TupleType Tuple Type}'. + * + * 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.MARTE_Annexes.VSL.DataTypes.TupleType + * @generated + */ + public Adapter createTupleTypeAdapter() { + 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; + } + +} //DataTypesAdapterFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/util/DataTypesResourceFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/util/DataTypesResourceFactoryImpl.java new file mode 100644 index 00000000000..3cdaf0ff4ee --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/util/DataTypesResourceFactoryImpl.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.MARTE_Annexes.VSL.DataTypes.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; + +import org.eclipse.emf.ecore.xmi.XMLResource; + +/** + * + * The Resource Factory associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.util.DataTypesResourceImpl + * @generated + */ +public class DataTypesResourceFactoryImpl extends ResourceFactoryImpl { + /** + * Creates an instance of the resource factory. + * + * + * @generated + */ + public DataTypesResourceFactoryImpl() { + super(); + } + + /** + * Creates an instance of the resource. + * + * + * @generated + */ + @Override + public Resource createResource(URI uri) { + XMLResource result = new DataTypesResourceImpl(uri); + result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + + result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); + return result; + } + +} //DataTypesResourceFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/util/DataTypesResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/util/DataTypesResourceImpl.java new file mode 100644 index 00000000000..4dbe40c220a --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/util/DataTypesResourceImpl.java @@ -0,0 +1,39 @@ +/***************************************************************************** + * 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.MARTE_Annexes.VSL.DataTypes.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; + +/** + * + * The Resource associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.util.DataTypesResourceFactoryImpl + * @generated + */ +public class DataTypesResourceImpl extends XMLResourceImpl { + /** + * Creates an instance of the resource. + * + * + * @param uri the URI of the new resource. + * @generated + */ + public DataTypesResourceImpl(URI uri) { + super(uri); + } + +} //DataTypesResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/util/DataTypesSwitch.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/util/DataTypesSwitch.java new file mode 100644 index 00000000000..0d9eea85772 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/util/DataTypesSwitch.java @@ -0,0 +1,221 @@ +/***************************************************************************** + * 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.MARTE_Annexes.VSL.DataTypes.util; + +import java.util.List; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.*; + +/** + * + * 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.MARTE_Annexes.VSL.DataTypes.DataTypesPackage + * @generated + */ +public class DataTypesSwitch { + /** + * The cached model package + * + * + * @generated + */ + protected static DataTypesPackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public DataTypesSwitch() { + if (modelPackage == null) { + modelPackage = DataTypesPackage.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 DataTypesPackage.BOUNDED_SUBTYPE: { + BoundedSubtype boundedSubtype = (BoundedSubtype)theEObject; + T result = caseBoundedSubtype(boundedSubtype); + if (result == null) result = defaultCase(theEObject); + return result; + } + case DataTypesPackage.INTERVAL_TYPE: { + IntervalType intervalType = (IntervalType)theEObject; + T result = caseIntervalType(intervalType); + if (result == null) result = defaultCase(theEObject); + return result; + } + case DataTypesPackage.COLLECTION_TYPE: { + CollectionType collectionType = (CollectionType)theEObject; + T result = caseCollectionType(collectionType); + if (result == null) result = defaultCase(theEObject); + return result; + } + case DataTypesPackage.CHOICE_TYPE: { + ChoiceType choiceType = (ChoiceType)theEObject; + T result = caseChoiceType(choiceType); + if (result == null) result = defaultCase(theEObject); + return result; + } + case DataTypesPackage.TUPLE_TYPE: { + TupleType tupleType = (TupleType)theEObject; + T result = caseTupleType(tupleType); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Bounded Subtype'. + * + * 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 'Bounded Subtype'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseBoundedSubtype(BoundedSubtype object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Interval Type'. + * + * 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 'Interval Type'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseIntervalType(IntervalType object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Collection Type'. + * + * 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 'Collection Type'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCollectionType(CollectionType object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Choice Type'. + * + * 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 'Choice Type'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseChoiceType(ChoiceType object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Tuple Type'. + * + * 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 'Tuple Type'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseTupleType(TupleType 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; + } + +} //DataTypesSwitch diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/util/DataTypesXMLProcessor.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/util/DataTypesXMLProcessor.java new file mode 100644 index 00000000000..9f8d717254e --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/DataTypes/util/DataTypesXMLProcessor.java @@ -0,0 +1,61 @@ +/***************************************************************************** + * 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.MARTE_Annexes.VSL.DataTypes.util; + +import java.util.Map; + +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.xmi.util.XMLProcessor; + +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.DataTypesPackage; + +/** + * This class contains helper methods to serialize and deserialize XML documents + * + * + * @generated + */ +public class DataTypesXMLProcessor extends XMLProcessor { + + /** + * Public constructor to instantiate the helper. + * + * + * @generated + */ + public DataTypesXMLProcessor() { + super((EPackage.Registry.INSTANCE)); + DataTypesPackage.eINSTANCE.eClass(); + } + + /** + * Register for "*" and "xml" file extensions the DataTypesResourceFactoryImpl factory. + * + * + * @generated + */ + @Override + protected Map getRegistrations() { + if (registrations == null) { + super.getRegistrations(); + registrations.put(XML_EXTENSION, new DataTypesResourceFactoryImpl()); + registrations.put(STAR_EXTENSION, new DataTypesResourceFactoryImpl()); + } + return registrations; + } + +} //DataTypesXMLProcessor diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Operators/Operator.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Operators/Operator.java new file mode 100644 index 00000000000..81233e002a6 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Operators/Operator.java @@ -0,0 +1,110 @@ +/** + * + * + * + * $Id$ + */ +package org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.uml2.uml.Behavior; + +/** + * + * A representation of the model object 'Operator'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators.Operator#getSymbol Symbol}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators.Operator#getArity Arity}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators.Operator#getBase_Behavior Base Behavior}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators.OperatorsPackage#getOperator() + * @model + * @generated + */ +public interface Operator extends EObject { + /** + * Returns the value of the 'Symbol' attribute. + * + *

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

+ * + * @return the value of the 'Symbol' attribute. + * @see #setSymbol(String) + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators.OperatorsPackage#getOperator_Symbol() + * @model dataType="org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.String" required="true" ordered="false" + * @generated + */ + String getSymbol(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators.Operator#getSymbol Symbol}' attribute. + * + * + * @param value the new value of the 'Symbol' attribute. + * @see #getSymbol() + * @generated + */ + void setSymbol(String value); + + /** + * Returns the value of the 'Arity' attribute. + * + *

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

+ * + * @return the value of the 'Arity' attribute. + * @see #setArity(int) + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators.OperatorsPackage#getOperator_Arity() + * @model dataType="org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.Integer" required="true" volatile="true" derived="true" ordered="false" + * @generated + */ + int getArity(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators.Operator#getArity Arity}' attribute. + * + * + * @param value the new value of the 'Arity' attribute. + * @see #getArity() + * @generated + */ + void setArity(int value); + + /** + * Returns the value of the 'Base Behavior' reference. + * + *

+ * If the meaning of the 'Base Behavior' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Behavior' reference. + * @see #setBase_Behavior(Behavior) + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators.OperatorsPackage#getOperator_Base_Behavior() + * @model required="true" ordered="false" + * @generated + */ + Behavior getBase_Behavior(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators.Operator#getBase_Behavior Base Behavior}' reference. + * + * + * @param value the new value of the 'Base Behavior' reference. + * @see #getBase_Behavior() + * @generated + */ + void setBase_Behavior(Behavior value); + +} // Operator diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Operators/OperatorsFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Operators/OperatorsFactory.java new file mode 100644 index 00000000000..13784f0cd3d --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Operators/OperatorsFactory.java @@ -0,0 +1,46 @@ +/** + * + * + * + * $Id$ + */ +package org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators; + +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.MARTE_Annexes.VSL.Operators.OperatorsPackage + * @generated + */ +public interface OperatorsFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + OperatorsFactory eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators.impl.OperatorsFactoryImpl.init(); + + /** + * Returns a new object of class 'Operator'. + * + * + * @return a new object of class 'Operator'. + * @generated + */ + Operator createOperator(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + OperatorsPackage getOperatorsPackage(); + +} //OperatorsFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Operators/OperatorsPackage.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Operators/OperatorsPackage.java new file mode 100644 index 00000000000..49921befa0a --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Operators/OperatorsPackage.java @@ -0,0 +1,210 @@ +/** + * + * + * + * $Id$ + */ +package org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +/** + * + * 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.MARTE_Annexes.VSL.Operators.OperatorsFactory + * @model kind="package" + * @generated + */ +public interface OperatorsPackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "Operators"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "http://www.eclipse.org/papyrus/Operators/1"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "Operators"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + OperatorsPackage eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators.impl.OperatorsPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators.impl.OperatorImpl Operator}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators.impl.OperatorImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators.impl.OperatorsPackageImpl#getOperator() + * @generated + */ + int OPERATOR = 0; + + /** + * The feature id for the 'Symbol' attribute. + * + * + * @generated + * @ordered + */ + int OPERATOR__SYMBOL = 0; + + /** + * The feature id for the 'Arity' attribute. + * + * + * @generated + * @ordered + */ + int OPERATOR__ARITY = 1; + + /** + * The feature id for the 'Base Behavior' reference. + * + * + * @generated + * @ordered + */ + int OPERATOR__BASE_BEHAVIOR = 2; + + /** + * The number of structural features of the 'Operator' class. + * + * + * @generated + * @ordered + */ + int OPERATOR_FEATURE_COUNT = 3; + + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators.Operator Operator}'. + * + * + * @return the meta object for class 'Operator'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators.Operator + * @generated + */ + EClass getOperator(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators.Operator#getSymbol Symbol}'. + * + * + * @return the meta object for the attribute 'Symbol'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators.Operator#getSymbol() + * @see #getOperator() + * @generated + */ + EAttribute getOperator_Symbol(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators.Operator#getArity Arity}'. + * + * + * @return the meta object for the attribute 'Arity'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators.Operator#getArity() + * @see #getOperator() + * @generated + */ + EAttribute getOperator_Arity(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators.Operator#getBase_Behavior Base Behavior}'. + * + * + * @return the meta object for the reference 'Base Behavior'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators.Operator#getBase_Behavior() + * @see #getOperator() + * @generated + */ + EReference getOperator_Base_Behavior(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + OperatorsFactory getOperatorsFactory(); + + /** + * + * 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.MARTE_Annexes.VSL.Operators.impl.OperatorImpl Operator}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators.impl.OperatorImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators.impl.OperatorsPackageImpl#getOperator() + * @generated + */ + EClass OPERATOR = eINSTANCE.getOperator(); + + /** + * The meta object literal for the 'Symbol' attribute feature. + * + * + * @generated + */ + EAttribute OPERATOR__SYMBOL = eINSTANCE.getOperator_Symbol(); + + /** + * The meta object literal for the 'Arity' attribute feature. + * + * + * @generated + */ + EAttribute OPERATOR__ARITY = eINSTANCE.getOperator_Arity(); + + /** + * The meta object literal for the 'Base Behavior' reference feature. + * + * + * @generated + */ + EReference OPERATOR__BASE_BEHAVIOR = eINSTANCE.getOperator_Base_Behavior(); + + } + +} //OperatorsPackage diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Operators/impl/OperatorImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Operators/impl/OperatorImpl.java new file mode 100644 index 00000000000..0474be08506 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Operators/impl/OperatorImpl.java @@ -0,0 +1,285 @@ +/** + * + * + * + * $Id$ + */ +package org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators.Operator; +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators.OperatorsPackage; + +import org.eclipse.uml2.uml.Behavior; +import org.eclipse.uml2.uml.Parameter; +import org.eclipse.uml2.uml.ParameterDirectionKind; + +/** + * + * An implementation of the model object 'Operator'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators.impl.OperatorImpl#getSymbol Symbol}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators.impl.OperatorImpl#getArity Arity}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators.impl.OperatorImpl#getBase_Behavior Base Behavior}
  • + *
+ *

+ * + * @generated + */ +public class OperatorImpl extends EObjectImpl implements Operator { + /** + * The default value of the '{@link #getSymbol() Symbol}' attribute. + * + * + * @see #getSymbol() + * @generated + * @ordered + */ + protected static final String SYMBOL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSymbol() Symbol}' attribute. + * + * + * @see #getSymbol() + * @generated + * @ordered + */ + protected String symbol = SYMBOL_EDEFAULT; + + /** + * The default value of the '{@link #getArity() Arity}' attribute. + * + * + * @see #getArity() + * @generated + * @ordered + */ + protected static final int ARITY_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getBase_Behavior() Base Behavior}' reference. + * + * + * @see #getBase_Behavior() + * @generated + * @ordered + */ + protected Behavior base_Behavior; + + /** + * + * + * @generated + */ + protected OperatorImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return OperatorsPackage.Literals.OPERATOR; + } + + /** + * + * + * @generated + */ + public String getSymbol() { + return symbol; + } + + /** + * + * + * @generated + */ + public void setSymbol(String newSymbol) { + String oldSymbol = symbol; + symbol = newSymbol; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OperatorsPackage.OPERATOR__SYMBOL, oldSymbol, symbol)); + } + + /** + * + * + * @generated NOT + */ + public int getArity() { + // TODO: implement this method to return the 'Arity' attribute + // Ensure that you remove @generated or mark it @generated NOT + // throw new UnsupportedOperationException(); + + Behavior behavior = getBase_Behavior(); + EList parameters = behavior.getOwnedParameters(); + int arity = 0; + for (Parameter parameter : parameters) { + if(parameter.getDirection()==ParameterDirectionKind.IN_LITERAL) + arity++; + } + return arity; + } + + /** + * + * + * @generated + */ + public void setArity(int newArity) { + // TODO: implement this method to set the 'Arity' attribute + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public Behavior getBase_Behavior() { + if (base_Behavior != null && base_Behavior.eIsProxy()) { + InternalEObject oldBase_Behavior = (InternalEObject)base_Behavior; + base_Behavior = (Behavior)eResolveProxy(oldBase_Behavior); + if (base_Behavior != oldBase_Behavior) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, OperatorsPackage.OPERATOR__BASE_BEHAVIOR, oldBase_Behavior, base_Behavior)); + } + } + return base_Behavior; + } + + /** + * + * + * @generated + */ + public Behavior basicGetBase_Behavior() { + return base_Behavior; + } + + /** + * + * + * @generated + */ + public void setBase_Behavior(Behavior newBase_Behavior) { + Behavior oldBase_Behavior = base_Behavior; + base_Behavior = newBase_Behavior; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OperatorsPackage.OPERATOR__BASE_BEHAVIOR, oldBase_Behavior, base_Behavior)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OperatorsPackage.OPERATOR__SYMBOL: + return getSymbol(); + case OperatorsPackage.OPERATOR__ARITY: + return getArity(); + case OperatorsPackage.OPERATOR__BASE_BEHAVIOR: + if (resolve) return getBase_Behavior(); + return basicGetBase_Behavior(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OperatorsPackage.OPERATOR__SYMBOL: + setSymbol((String)newValue); + return; + case OperatorsPackage.OPERATOR__ARITY: + setArity((Integer)newValue); + return; + case OperatorsPackage.OPERATOR__BASE_BEHAVIOR: + setBase_Behavior((Behavior)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OperatorsPackage.OPERATOR__SYMBOL: + setSymbol(SYMBOL_EDEFAULT); + return; + case OperatorsPackage.OPERATOR__ARITY: + setArity(ARITY_EDEFAULT); + return; + case OperatorsPackage.OPERATOR__BASE_BEHAVIOR: + setBase_Behavior((Behavior)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OperatorsPackage.OPERATOR__SYMBOL: + return SYMBOL_EDEFAULT == null ? symbol != null : !SYMBOL_EDEFAULT.equals(symbol); + case OperatorsPackage.OPERATOR__ARITY: + return getArity() != ARITY_EDEFAULT; + case OperatorsPackage.OPERATOR__BASE_BEHAVIOR: + return base_Behavior != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (symbol: "); + result.append(symbol); + result.append(')'); + return result.toString(); + } + +} //OperatorImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Operators/impl/OperatorsFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Operators/impl/OperatorsFactoryImpl.java new file mode 100644 index 00000000000..c50dda2a8f3 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Operators/impl/OperatorsFactoryImpl.java @@ -0,0 +1,99 @@ +/** + * + * + * + * $Id$ + */ +package org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators.impl; + +import org.eclipse.emf.ecore.EClass; +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.MARTE_Annexes.VSL.Operators.*; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class OperatorsFactoryImpl extends EFactoryImpl implements OperatorsFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static OperatorsFactory init() { + try { + OperatorsFactory theOperatorsFactory = (OperatorsFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/Operators/1"); + if (theOperatorsFactory != null) { + return theOperatorsFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new OperatorsFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public OperatorsFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case OperatorsPackage.OPERATOR: return createOperator(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public Operator createOperator() { + OperatorImpl operator = new OperatorImpl(); + return operator; + } + + /** + * + * + * @generated + */ + public OperatorsPackage getOperatorsPackage() { + return (OperatorsPackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static OperatorsPackage getPackage() { + return OperatorsPackage.eINSTANCE; + } + +} //OperatorsFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Operators/impl/OperatorsPackageImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Operators/impl/OperatorsPackageImpl.java new file mode 100644 index 00000000000..61f23d96b6c --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Operators/impl/OperatorsPackageImpl.java @@ -0,0 +1,457 @@ +/** + * + * + * + * $Id$ + */ +package org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators.impl; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +import org.eclipse.emf.ecore.impl.EPackageImpl; + +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.Operator; +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators.OperatorsFactory; +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators.OperatorsPackage; + +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.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 OperatorsPackageImpl extends EPackageImpl implements OperatorsPackage { + /** + * + * + * @generated + */ + private EClass operatorEClass = 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.MARTE_Annexes.VSL.Operators.OperatorsPackage#eNS_URI + * @see #init() + * @generated + */ + private OperatorsPackageImpl() { + super(eNS_URI, OperatorsFactory.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 OperatorsPackage#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 OperatorsPackage init() { + if (isInited) return (OperatorsPackage)EPackage.Registry.INSTANCE.getEPackage(OperatorsPackage.eNS_URI); + + // Obtain or create and register package + OperatorsPackageImpl theOperatorsPackage = (OperatorsPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof OperatorsPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new OperatorsPackageImpl()); + + 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); + 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); + 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 + theOperatorsPackage.createPackageContents(); + theMARTEPackage.createPackageContents(); + theNFPsPackage.createPackageContents(); + theCoreElementsPackage.createPackageContents(); + theAllocPackage.createPackageContents(); + theTimePackage.createPackageContents(); + theGRMPackage.createPackageContents(); + theRSMPackage.createPackageContents(); + theVariablesPackage.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(); + theMARTE_PrimitivesTypesPackage.createPackageContents(); + + // Initialize created meta-data + theOperatorsPackage.initializePackageContents(); + theMARTEPackage.initializePackageContents(); + theNFPsPackage.initializePackageContents(); + theCoreElementsPackage.initializePackageContents(); + theAllocPackage.initializePackageContents(); + theTimePackage.initializePackageContents(); + theGRMPackage.initializePackageContents(); + theRSMPackage.initializePackageContents(); + theVariablesPackage.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(); + theMARTE_PrimitivesTypesPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theOperatorsPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(OperatorsPackage.eNS_URI, theOperatorsPackage); + return theOperatorsPackage; + } + + /** + * + * + * @generated + */ + public EClass getOperator() { + return operatorEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getOperator_Symbol() { + return (EAttribute)operatorEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getOperator_Arity() { + return (EAttribute)operatorEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getOperator_Base_Behavior() { + return (EReference)operatorEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public OperatorsFactory getOperatorsFactory() { + return (OperatorsFactory)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 + operatorEClass = createEClass(OPERATOR); + createEAttribute(operatorEClass, OPERATOR__SYMBOL); + createEAttribute(operatorEClass, OPERATOR__ARITY); + createEReference(operatorEClass, OPERATOR__BASE_BEHAVIOR); + } + + /** + * + * + * @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); + UMLPackage theUMLPackage = (UMLPackage)EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + + // Initialize classes and features; add operations and parameters + initEClass(operatorEClass, Operator.class, "Operator", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getOperator_Symbol(), theMARTE_PrimitivesTypesPackage.getString(), "symbol", null, 1, 1, Operator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getOperator_Arity(), theMARTE_PrimitivesTypesPackage.getInteger(), "arity", null, 1, 1, Operator.class, !IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, !IS_ORDERED); + initEReference(getOperator_Base_Behavior(), theUMLPackage.getBehavior(), null, "base_Behavior", null, 1, 1, Operator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + } + +} //OperatorsPackageImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Operators/util/OperatorsAdapterFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Operators/util/OperatorsAdapterFactory.java new file mode 100644 index 00000000000..c101fc5f2c3 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Operators/util/OperatorsAdapterFactory.java @@ -0,0 +1,124 @@ +/** + * + * + * + * $Id$ + */ +package org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators.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.MARTE_Annexes.VSL.Operators.*; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators.OperatorsPackage + * @generated + */ +public class OperatorsAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * @generated + */ + protected static OperatorsPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public OperatorsAdapterFactory() { + if (modelPackage == null) { + modelPackage = OperatorsPackage.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 OperatorsSwitch modelSwitch = + new OperatorsSwitch() { + @Override + public Adapter caseOperator(Operator object) { + return createOperatorAdapter(); + } + @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.MARTE_Annexes.VSL.Operators.Operator Operator}'. + * + * 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.MARTE_Annexes.VSL.Operators.Operator + * @generated + */ + public Adapter createOperatorAdapter() { + 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; + } + +} //OperatorsAdapterFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Operators/util/OperatorsResourceFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Operators/util/OperatorsResourceFactoryImpl.java new file mode 100644 index 00000000000..e7b62ec1345 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Operators/util/OperatorsResourceFactoryImpl.java @@ -0,0 +1,56 @@ +/** + * + * + * + * $Id$ + */ +package org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; + +import org.eclipse.emf.ecore.xmi.XMLResource; + +/** + * + * The Resource Factory associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators.util.OperatorsResourceImpl + * @generated + */ +public class OperatorsResourceFactoryImpl extends ResourceFactoryImpl { + /** + * Creates an instance of the resource factory. + * + * + * @generated + */ + public OperatorsResourceFactoryImpl() { + super(); + } + + /** + * Creates an instance of the resource. + * + * + * @generated + */ + @Override + public Resource createResource(URI uri) { + XMLResource result = new OperatorsResourceImpl(uri); + result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + + result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); + return result; + } + +} //OperatorsResourceFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Operators/util/OperatorsResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Operators/util/OperatorsResourceImpl.java new file mode 100644 index 00000000000..b56f4c6835e --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Operators/util/OperatorsResourceImpl.java @@ -0,0 +1,32 @@ +/** + * + * + * + * $Id$ + */ +package org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; + +/** + * + * The Resource associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators.util.OperatorsResourceFactoryImpl + * @generated + */ +public class OperatorsResourceImpl extends XMLResourceImpl { + /** + * Creates an instance of the resource. + * + * + * @param uri the URI of the new resource. + * @generated + */ + public OperatorsResourceImpl(URI uri) { + super(uri); + } + +} //OperatorsResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Operators/util/OperatorsSwitch.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Operators/util/OperatorsSwitch.java new file mode 100644 index 00000000000..f6c0278f011 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Operators/util/OperatorsSwitch.java @@ -0,0 +1,130 @@ +/** + * + * + * + * $Id$ + */ +package org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators.util; + +import java.util.List; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators.*; + +/** + * + * 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.MARTE_Annexes.VSL.Operators.OperatorsPackage + * @generated + */ +public class OperatorsSwitch { + /** + * The cached model package + * + * + * @generated + */ + protected static OperatorsPackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public OperatorsSwitch() { + if (modelPackage == null) { + modelPackage = OperatorsPackage.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 OperatorsPackage.OPERATOR: { + Operator operator = (Operator)theEObject; + T result = caseOperator(operator); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Operator'. + * + * 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 'Operator'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseOperator(Operator 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; + } + +} //OperatorsSwitch diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Operators/util/OperatorsXMLProcessor.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Operators/util/OperatorsXMLProcessor.java new file mode 100644 index 00000000000..8422fe2b771 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Operators/util/OperatorsXMLProcessor.java @@ -0,0 +1,54 @@ +/** + * + * + * + * $Id$ + */ +package org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators.util; + +import java.util.Map; + +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.xmi.util.XMLProcessor; + +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Operators.OperatorsPackage; + +/** + * This class contains helper methods to serialize and deserialize XML documents + * + * + * @generated + */ +public class OperatorsXMLProcessor extends XMLProcessor { + + /** + * Public constructor to instantiate the helper. + * + * + * @generated + */ + public OperatorsXMLProcessor() { + super((EPackage.Registry.INSTANCE)); + OperatorsPackage.eINSTANCE.eClass(); + } + + /** + * Register for "*" and "xml" file extensions the OperatorsResourceFactoryImpl factory. + * + * + * @generated + */ + @Override + protected Map getRegistrations() { + if (registrations == null) { + super.getRegistrations(); + registrations.put(XML_EXTENSION, new OperatorsResourceFactoryImpl()); + registrations.put(STAR_EXTENSION, new OperatorsResourceFactoryImpl()); + } + return registrations; + } + +} //OperatorsXMLProcessor diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/ExpressionContext.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/ExpressionContext.java new file mode 100644 index 00000000000..b09baf35258 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/ExpressionContext.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.MARTE_Annexes.VSL.Variables; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.uml2.uml.NamedElement; + +/** + * + * A representation of the model object 'Expression Context'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.ExpressionContext#getBase_NamedElement Base Named Element}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.VariablesPackage#getExpressionContext() + * @model + * @generated + */ +public interface ExpressionContext extends EObject { + /** + * Returns the value of the 'Base Named Element' reference. + * + *

+ * If the meaning of the 'Base Named Element' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Named Element' reference. + * @see #setBase_NamedElement(NamedElement) + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.VariablesPackage#getExpressionContext_Base_NamedElement() + * @model required="true" ordered="false" + * @generated + */ + NamedElement getBase_NamedElement(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.ExpressionContext#getBase_NamedElement Base Named Element}' reference. + * + * + * @param value the new value of the 'Base Named Element' reference. + * @see #getBase_NamedElement() + * @generated + */ + void setBase_NamedElement(NamedElement value); + +} // ExpressionContext diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/Var.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/Var.java new file mode 100644 index 00000000000..6c3e6a93fc2 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/Var.java @@ -0,0 +1,94 @@ +/***************************************************************************** + * 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.MARTE_Annexes.VSL.Variables; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.uml2.uml.Property; + +/** + * + * A representation of the model object 'Var'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.Var#getDir Dir}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.Var#getBase_Property Base Property}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.VariablesPackage#getVar() + * @model + * @generated + */ +public interface Var extends EObject { + /** + * Returns the value of the 'Dir' attribute. + * The default value is "inout". + * The literals are from the enumeration {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.VariableDirectionKind}. + * + *

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

+ * + * @return the value of the 'Dir' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.VariableDirectionKind + * @see #setDir(VariableDirectionKind) + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.VariablesPackage#getVar_Dir() + * @model default="inout" unique="false" ordered="false" + * @generated + */ + VariableDirectionKind getDir(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.Var#getDir Dir}' attribute. + * + * + * @param value the new value of the 'Dir' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.VariableDirectionKind + * @see #getDir() + * @generated + */ + void setDir(VariableDirectionKind value); + + /** + * Returns the value of the 'Base Property' reference. + * + *

+ * If the meaning of the 'Base Property' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Property' reference. + * @see #setBase_Property(Property) + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.VariablesPackage#getVar_Base_Property() + * @model required="true" ordered="false" + * @generated + */ + Property getBase_Property(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.Var#getBase_Property Base Property}' reference. + * + * + * @param value the new value of the 'Base Property' reference. + * @see #getBase_Property() + * @generated + */ + void setBase_Property(Property value); + +} // Var diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/VariableDirectionKind.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/VariableDirectionKind.java new file mode 100644 index 00000000000..9af3365bce9 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/VariableDirectionKind.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.MARTE_Annexes.VSL.Variables; + +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 'Variable Direction Kind', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.VariablesPackage#getVariableDirectionKind() + * @model + * @generated + */ +public enum VariableDirectionKind implements Enumerator { + /** + * The 'In' literal object. + * + * + * @see #IN_VALUE + * @generated + * @ordered + */ + IN(0, "in", "in"), + + /** + * The 'Out' literal object. + * + * + * @see #OUT_VALUE + * @generated + * @ordered + */ + OUT(1, "out", "out"), + + /** + * The 'Inout' literal object. + * + * + * @see #INOUT_VALUE + * @generated + * @ordered + */ + INOUT(2, "inout", "inout"); + + /** + * The 'In' literal value. + * + *

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

+ * + * @see #IN + * @model name="in" + * @generated + * @ordered + */ + public static final int IN_VALUE = 0; + + /** + * The 'Out' literal value. + * + *

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

+ * + * @see #OUT + * @model name="out" + * @generated + * @ordered + */ + public static final int OUT_VALUE = 1; + + /** + * The 'Inout' literal value. + * + *

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

+ * + * @see #INOUT + * @model name="inout" + * @generated + * @ordered + */ + public static final int INOUT_VALUE = 2; + + /** + * An array of all the 'Variable Direction Kind' enumerators. + * + * + * @generated + */ + private static final VariableDirectionKind[] VALUES_ARRAY = + new VariableDirectionKind[] { + IN, + OUT, + INOUT, + }; + + /** + * A public read-only list of all the 'Variable Direction Kind' enumerators. + * + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Variable Direction Kind' literal with the specified literal value. + * + * + * @generated + */ + public static VariableDirectionKind get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + VariableDirectionKind result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Variable Direction Kind' literal with the specified name. + * + * + * @generated + */ + public static VariableDirectionKind getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + VariableDirectionKind result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Variable Direction Kind' literal with the specified integer value. + * + * + * @generated + */ + public static VariableDirectionKind get(int value) { + switch (value) { + case IN_VALUE: return IN; + case OUT_VALUE: return OUT; + case INOUT_VALUE: return INOUT; + } + 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 VariableDirectionKind(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; + } + +} //VariableDirectionKind diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/VariablesFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/VariablesFactory.java new file mode 100644 index 00000000000..05a9a64aabf --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/VariablesFactory.java @@ -0,0 +1,62 @@ +/***************************************************************************** + * 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.MARTE_Annexes.VSL.Variables; + +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.MARTE_Annexes.VSL.Variables.VariablesPackage + * @generated + */ +public interface VariablesFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + VariablesFactory eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.impl.VariablesFactoryImpl.init(); + + /** + * Returns a new object of class 'Var'. + * + * + * @return a new object of class 'Var'. + * @generated + */ + Var createVar(); + + /** + * Returns a new object of class 'Expression Context'. + * + * + * @return a new object of class 'Expression Context'. + * @generated + */ + ExpressionContext createExpressionContext(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + VariablesPackage getVariablesPackage(); + +} //VariablesFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/VariablesPackage.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/VariablesPackage.java new file mode 100644 index 00000000000..8a12aef8ce7 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/VariablesPackage.java @@ -0,0 +1,287 @@ +/***************************************************************************** + * 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.MARTE_Annexes.VSL.Variables; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +/** + * + * 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.MARTE_Annexes.VSL.Variables.VariablesFactory + * @model kind="package" + * @generated + */ +public interface VariablesPackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "Variables"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "http://www.eclipse.org/papyrus/Variables/1"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "Variables"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + VariablesPackage eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.impl.VariablesPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.impl.VarImpl Var}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.impl.VarImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.impl.VariablesPackageImpl#getVar() + * @generated + */ + int VAR = 0; + + /** + * The feature id for the 'Dir' attribute. + * + * + * @generated + * @ordered + */ + int VAR__DIR = 0; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int VAR__BASE_PROPERTY = 1; + + /** + * The number of structural features of the 'Var' class. + * + * + * @generated + * @ordered + */ + int VAR_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.impl.ExpressionContextImpl Expression Context}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.impl.ExpressionContextImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.impl.VariablesPackageImpl#getExpressionContext() + * @generated + */ + int EXPRESSION_CONTEXT = 1; + + /** + * The feature id for the 'Base Named Element' reference. + * + * + * @generated + * @ordered + */ + int EXPRESSION_CONTEXT__BASE_NAMED_ELEMENT = 0; + + /** + * The number of structural features of the 'Expression Context' class. + * + * + * @generated + * @ordered + */ + int EXPRESSION_CONTEXT_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.VariableDirectionKind Variable Direction Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.VariableDirectionKind + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.impl.VariablesPackageImpl#getVariableDirectionKind() + * @generated + */ + int VARIABLE_DIRECTION_KIND = 2; + + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.Var Var}'. + * + * + * @return the meta object for class 'Var'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.Var + * @generated + */ + EClass getVar(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.Var#getDir Dir}'. + * + * + * @return the meta object for the attribute 'Dir'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.Var#getDir() + * @see #getVar() + * @generated + */ + EAttribute getVar_Dir(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.Var#getBase_Property Base Property}'. + * + * + * @return the meta object for the reference 'Base Property'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.Var#getBase_Property() + * @see #getVar() + * @generated + */ + EReference getVar_Base_Property(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.ExpressionContext Expression Context}'. + * + * + * @return the meta object for class 'Expression Context'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.ExpressionContext + * @generated + */ + EClass getExpressionContext(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.ExpressionContext#getBase_NamedElement Base Named Element}'. + * + * + * @return the meta object for the reference 'Base Named Element'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.ExpressionContext#getBase_NamedElement() + * @see #getExpressionContext() + * @generated + */ + EReference getExpressionContext_Base_NamedElement(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.VariableDirectionKind Variable Direction Kind}'. + * + * + * @return the meta object for enum 'Variable Direction Kind'. + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.VariableDirectionKind + * @generated + */ + EEnum getVariableDirectionKind(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + VariablesFactory getVariablesFactory(); + + /** + * + * 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.MARTE_Annexes.VSL.Variables.impl.VarImpl Var}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.impl.VarImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.impl.VariablesPackageImpl#getVar() + * @generated + */ + EClass VAR = eINSTANCE.getVar(); + + /** + * The meta object literal for the 'Dir' attribute feature. + * + * + * @generated + */ + EAttribute VAR__DIR = eINSTANCE.getVar_Dir(); + + /** + * The meta object literal for the 'Base Property' reference feature. + * + * + * @generated + */ + EReference VAR__BASE_PROPERTY = eINSTANCE.getVar_Base_Property(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.impl.ExpressionContextImpl Expression Context}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.impl.ExpressionContextImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.impl.VariablesPackageImpl#getExpressionContext() + * @generated + */ + EClass EXPRESSION_CONTEXT = eINSTANCE.getExpressionContext(); + + /** + * The meta object literal for the 'Base Named Element' reference feature. + * + * + * @generated + */ + EReference EXPRESSION_CONTEXT__BASE_NAMED_ELEMENT = eINSTANCE.getExpressionContext_Base_NamedElement(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.VariableDirectionKind Variable Direction Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.VariableDirectionKind + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.impl.VariablesPackageImpl#getVariableDirectionKind() + * @generated + */ + EEnum VARIABLE_DIRECTION_KIND = eINSTANCE.getVariableDirectionKind(); + + } + +} //VariablesPackage diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/impl/ExpressionContextImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/impl/ExpressionContextImpl.java new file mode 100644 index 00000000000..069d0657e74 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/impl/ExpressionContextImpl.java @@ -0,0 +1,169 @@ +/***************************************************************************** + * 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.MARTE_Annexes.VSL.Variables.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.ExpressionContext; +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.VariablesPackage; + +import org.eclipse.uml2.uml.NamedElement; + +/** + * + * An implementation of the model object 'Expression Context'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.impl.ExpressionContextImpl#getBase_NamedElement Base Named Element}
  • + *
+ *

+ * + * @generated + */ +public class ExpressionContextImpl extends EObjectImpl implements ExpressionContext { + /** + * The cached value of the '{@link #getBase_NamedElement() Base Named Element}' reference. + * + * + * @see #getBase_NamedElement() + * @generated + * @ordered + */ + protected NamedElement base_NamedElement; + + /** + * + * + * @generated + */ + protected ExpressionContextImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return VariablesPackage.Literals.EXPRESSION_CONTEXT; + } + + /** + * + * + * @generated + */ + public NamedElement getBase_NamedElement() { + if (base_NamedElement != null && base_NamedElement.eIsProxy()) { + InternalEObject oldBase_NamedElement = (InternalEObject)base_NamedElement; + base_NamedElement = (NamedElement)eResolveProxy(oldBase_NamedElement); + if (base_NamedElement != oldBase_NamedElement) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, VariablesPackage.EXPRESSION_CONTEXT__BASE_NAMED_ELEMENT, oldBase_NamedElement, base_NamedElement)); + } + } + return base_NamedElement; + } + + /** + * + * + * @generated + */ + public NamedElement basicGetBase_NamedElement() { + return base_NamedElement; + } + + /** + * + * + * @generated + */ + public void setBase_NamedElement(NamedElement newBase_NamedElement) { + NamedElement oldBase_NamedElement = base_NamedElement; + base_NamedElement = newBase_NamedElement; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, VariablesPackage.EXPRESSION_CONTEXT__BASE_NAMED_ELEMENT, oldBase_NamedElement, base_NamedElement)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case VariablesPackage.EXPRESSION_CONTEXT__BASE_NAMED_ELEMENT: + if (resolve) return getBase_NamedElement(); + return basicGetBase_NamedElement(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case VariablesPackage.EXPRESSION_CONTEXT__BASE_NAMED_ELEMENT: + setBase_NamedElement((NamedElement)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case VariablesPackage.EXPRESSION_CONTEXT__BASE_NAMED_ELEMENT: + setBase_NamedElement((NamedElement)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case VariablesPackage.EXPRESSION_CONTEXT__BASE_NAMED_ELEMENT: + return base_NamedElement != null; + } + return super.eIsSet(featureID); + } + +} //ExpressionContextImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/impl/VarImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/impl/VarImpl.java new file mode 100644 index 00000000000..d6b3650bb2c --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/impl/VarImpl.java @@ -0,0 +1,238 @@ +/***************************************************************************** + * 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.MARTE_Annexes.VSL.Variables.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.Var; +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.VariableDirectionKind; +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.VariablesPackage; + +import org.eclipse.uml2.uml.Property; + +/** + * + * An implementation of the model object 'Var'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.impl.VarImpl#getDir Dir}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.impl.VarImpl#getBase_Property Base Property}
  • + *
+ *

+ * + * @generated + */ +public class VarImpl extends EObjectImpl implements Var { + /** + * The default value of the '{@link #getDir() Dir}' attribute. + * + * + * @see #getDir() + * @generated + * @ordered + */ + protected static final VariableDirectionKind DIR_EDEFAULT = VariableDirectionKind.INOUT; + + /** + * The cached value of the '{@link #getDir() Dir}' attribute. + * + * + * @see #getDir() + * @generated + * @ordered + */ + protected VariableDirectionKind dir = DIR_EDEFAULT; + + /** + * The cached value of the '{@link #getBase_Property() Base Property}' reference. + * + * + * @see #getBase_Property() + * @generated + * @ordered + */ + protected Property base_Property; + + /** + * + * + * @generated + */ + protected VarImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return VariablesPackage.Literals.VAR; + } + + /** + * + * + * @generated + */ + public VariableDirectionKind getDir() { + return dir; + } + + /** + * + * + * @generated + */ + public void setDir(VariableDirectionKind newDir) { + VariableDirectionKind oldDir = dir; + dir = newDir == null ? DIR_EDEFAULT : newDir; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, VariablesPackage.VAR__DIR, oldDir, dir)); + } + + /** + * + * + * @generated + */ + public Property getBase_Property() { + if (base_Property != null && base_Property.eIsProxy()) { + InternalEObject oldBase_Property = (InternalEObject)base_Property; + base_Property = (Property)eResolveProxy(oldBase_Property); + if (base_Property != oldBase_Property) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, VariablesPackage.VAR__BASE_PROPERTY, oldBase_Property, base_Property)); + } + } + return base_Property; + } + + /** + * + * + * @generated + */ + public Property basicGetBase_Property() { + return base_Property; + } + + /** + * + * + * @generated + */ + public void setBase_Property(Property newBase_Property) { + Property oldBase_Property = base_Property; + base_Property = newBase_Property; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, VariablesPackage.VAR__BASE_PROPERTY, oldBase_Property, base_Property)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case VariablesPackage.VAR__DIR: + return getDir(); + case VariablesPackage.VAR__BASE_PROPERTY: + if (resolve) return getBase_Property(); + return basicGetBase_Property(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case VariablesPackage.VAR__DIR: + setDir((VariableDirectionKind)newValue); + return; + case VariablesPackage.VAR__BASE_PROPERTY: + setBase_Property((Property)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case VariablesPackage.VAR__DIR: + setDir(DIR_EDEFAULT); + return; + case VariablesPackage.VAR__BASE_PROPERTY: + setBase_Property((Property)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case VariablesPackage.VAR__DIR: + return dir != DIR_EDEFAULT; + case VariablesPackage.VAR__BASE_PROPERTY: + return base_Property != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (dir: "); + result.append(dir); + result.append(')'); + return result.toString(); + } + +} //VarImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/impl/VariablesFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/impl/VariablesFactoryImpl.java new file mode 100644 index 00000000000..87a819c3565 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/impl/VariablesFactoryImpl.java @@ -0,0 +1,168 @@ +/***************************************************************************** + * 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.MARTE_Annexes.VSL.Variables.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.MARTE_Annexes.VSL.Variables.*; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class VariablesFactoryImpl extends EFactoryImpl implements VariablesFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static VariablesFactory init() { + try { + VariablesFactory theVariablesFactory = (VariablesFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/Variables/1"); + if (theVariablesFactory != null) { + return theVariablesFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new VariablesFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public VariablesFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case VariablesPackage.VAR: return createVar(); + case VariablesPackage.EXPRESSION_CONTEXT: return createExpressionContext(); + 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 VariablesPackage.VARIABLE_DIRECTION_KIND: + return createVariableDirectionKindFromString(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 VariablesPackage.VARIABLE_DIRECTION_KIND: + return convertVariableDirectionKindToString(eDataType, instanceValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public Var createVar() { + VarImpl var = new VarImpl(); + return var; + } + + /** + * + * + * @generated + */ + public ExpressionContext createExpressionContext() { + ExpressionContextImpl expressionContext = new ExpressionContextImpl(); + return expressionContext; + } + + /** + * + * + * @generated + */ + public VariableDirectionKind createVariableDirectionKindFromString(EDataType eDataType, String initialValue) { + VariableDirectionKind result = VariableDirectionKind.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertVariableDirectionKindToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public VariablesPackage getVariablesPackage() { + return (VariablesPackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static VariablesPackage getPackage() { + return VariablesPackage.eINSTANCE; + } + +} //VariablesFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/impl/VariablesPackageImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/impl/VariablesPackageImpl.java new file mode 100644 index 00000000000..a6095031671 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/impl/VariablesPackageImpl.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.MARTE_Annexes.VSL.Variables.impl; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +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.ExpressionContext; +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.Var; +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.VariableDirectionKind; +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.VariablesFactory; +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.VariablesPackage; + +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.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 VariablesPackageImpl extends EPackageImpl implements VariablesPackage { + /** + * + * + * @generated + */ + private EClass varEClass = null; + + /** + * + * + * @generated + */ + private EClass expressionContextEClass = null; + + /** + * + * + * @generated + */ + private EEnum variableDirectionKindEEnum = 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.MARTE_Annexes.VSL.Variables.VariablesPackage#eNS_URI + * @see #init() + * @generated + */ + private VariablesPackageImpl() { + super(eNS_URI, VariablesFactory.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 VariablesPackage#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 VariablesPackage init() { + if (isInited) return (VariablesPackage)EPackage.Registry.INSTANCE.getEPackage(VariablesPackage.eNS_URI); + + // Obtain or create and register package + VariablesPackageImpl theVariablesPackage = (VariablesPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof VariablesPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new VariablesPackageImpl()); + + 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); + 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); + 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 + theVariablesPackage.createPackageContents(); + theMARTEPackage.createPackageContents(); + theNFPsPackage.createPackageContents(); + theCoreElementsPackage.createPackageContents(); + theAllocPackage.createPackageContents(); + theTimePackage.createPackageContents(); + theGRMPackage.createPackageContents(); + theRSMPackage.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(); + theMARTE_PrimitivesTypesPackage.createPackageContents(); + + // Initialize created meta-data + theVariablesPackage.initializePackageContents(); + theMARTEPackage.initializePackageContents(); + theNFPsPackage.initializePackageContents(); + theCoreElementsPackage.initializePackageContents(); + theAllocPackage.initializePackageContents(); + theTimePackage.initializePackageContents(); + theGRMPackage.initializePackageContents(); + theRSMPackage.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(); + theMARTE_PrimitivesTypesPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theVariablesPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(VariablesPackage.eNS_URI, theVariablesPackage); + return theVariablesPackage; + } + + /** + * + * + * @generated + */ + public EClass getVar() { + return varEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getVar_Dir() { + return (EAttribute)varEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getVar_Base_Property() { + return (EReference)varEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getExpressionContext() { + return expressionContextEClass; + } + + /** + * + * + * @generated + */ + public EReference getExpressionContext_Base_NamedElement() { + return (EReference)expressionContextEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EEnum getVariableDirectionKind() { + return variableDirectionKindEEnum; + } + + /** + * + * + * @generated + */ + public VariablesFactory getVariablesFactory() { + return (VariablesFactory)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 + varEClass = createEClass(VAR); + createEAttribute(varEClass, VAR__DIR); + createEReference(varEClass, VAR__BASE_PROPERTY); + + expressionContextEClass = createEClass(EXPRESSION_CONTEXT); + createEReference(expressionContextEClass, EXPRESSION_CONTEXT__BASE_NAMED_ELEMENT); + + // Create enums + variableDirectionKindEEnum = createEEnum(VARIABLE_DIRECTION_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); + + // Obtain other dependent packages + UMLPackage theUMLPackage = (UMLPackage)EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + + // Initialize classes and features; add operations and parameters + initEClass(varEClass, Var.class, "Var", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getVar_Dir(), this.getVariableDirectionKind(), "dir", "inout", 0, 1, Var.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getVar_Base_Property(), theUMLPackage.getProperty(), null, "base_Property", null, 1, 1, Var.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(expressionContextEClass, ExpressionContext.class, "ExpressionContext", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getExpressionContext_Base_NamedElement(), theUMLPackage.getNamedElement(), null, "base_NamedElement", null, 1, 1, ExpressionContext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + // Initialize enums and add enum literals + initEEnum(variableDirectionKindEEnum, VariableDirectionKind.class, "VariableDirectionKind"); + addEEnumLiteral(variableDirectionKindEEnum, VariableDirectionKind.IN); + addEEnumLiteral(variableDirectionKindEEnum, VariableDirectionKind.OUT); + addEEnumLiteral(variableDirectionKindEEnum, VariableDirectionKind.INOUT); + } + +} //VariablesPackageImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/util/VariablesAdapterFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/util/VariablesAdapterFactory.java new file mode 100644 index 00000000000..e33609ad634 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/util/VariablesAdapterFactory.java @@ -0,0 +1,149 @@ +/***************************************************************************** + * 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.MARTE_Annexes.VSL.Variables.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.MARTE_Annexes.VSL.Variables.*; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.VariablesPackage + * @generated + */ +public class VariablesAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * @generated + */ + protected static VariablesPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public VariablesAdapterFactory() { + if (modelPackage == null) { + modelPackage = VariablesPackage.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 VariablesSwitch modelSwitch = + new VariablesSwitch() { + @Override + public Adapter caseVar(Var object) { + return createVarAdapter(); + } + @Override + public Adapter caseExpressionContext(ExpressionContext object) { + return createExpressionContextAdapter(); + } + @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.MARTE_Annexes.VSL.Variables.Var Var}'. + * + * 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.MARTE_Annexes.VSL.Variables.Var + * @generated + */ + public Adapter createVarAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.ExpressionContext Expression Context}'. + * + * 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.MARTE_Annexes.VSL.Variables.ExpressionContext + * @generated + */ + public Adapter createExpressionContextAdapter() { + 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; + } + +} //VariablesAdapterFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/util/VariablesResourceFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/util/VariablesResourceFactoryImpl.java new file mode 100644 index 00000000000..9da29d5b76c --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/util/VariablesResourceFactoryImpl.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.MARTE_Annexes.VSL.Variables.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; + +import org.eclipse.emf.ecore.xmi.XMLResource; + +/** + * + * The Resource Factory associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.util.VariablesResourceImpl + * @generated + */ +public class VariablesResourceFactoryImpl extends ResourceFactoryImpl { + /** + * Creates an instance of the resource factory. + * + * + * @generated + */ + public VariablesResourceFactoryImpl() { + super(); + } + + /** + * Creates an instance of the resource. + * + * + * @generated + */ + @Override + public Resource createResource(URI uri) { + XMLResource result = new VariablesResourceImpl(uri); + result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + + result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); + return result; + } + +} //VariablesResourceFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/util/VariablesResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/util/VariablesResourceImpl.java new file mode 100644 index 00000000000..b906d42cf34 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/util/VariablesResourceImpl.java @@ -0,0 +1,39 @@ +/***************************************************************************** + * 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.MARTE_Annexes.VSL.Variables.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; + +/** + * + * The Resource associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.util.VariablesResourceFactoryImpl + * @generated + */ +public class VariablesResourceImpl extends XMLResourceImpl { + /** + * Creates an instance of the resource. + * + * + * @param uri the URI of the new resource. + * @generated + */ + public VariablesResourceImpl(URI uri) { + super(uri); + } + +} //VariablesResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/util/VariablesSwitch.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/util/VariablesSwitch.java new file mode 100644 index 00000000000..071fbb41fde --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/util/VariablesSwitch.java @@ -0,0 +1,158 @@ +/***************************************************************************** + * 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.MARTE_Annexes.VSL.Variables.util; + +import java.util.List; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.*; + +/** + * + * 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.MARTE_Annexes.VSL.Variables.VariablesPackage + * @generated + */ +public class VariablesSwitch { + /** + * The cached model package + * + * + * @generated + */ + protected static VariablesPackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public VariablesSwitch() { + if (modelPackage == null) { + modelPackage = VariablesPackage.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 VariablesPackage.VAR: { + Var var = (Var)theEObject; + T result = caseVar(var); + if (result == null) result = defaultCase(theEObject); + return result; + } + case VariablesPackage.EXPRESSION_CONTEXT: { + ExpressionContext expressionContext = (ExpressionContext)theEObject; + T result = caseExpressionContext(expressionContext); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Var'. + * + * 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 'Var'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseVar(Var object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Expression Context'. + * + * 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 'Expression Context'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseExpressionContext(ExpressionContext 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; + } + +} //VariablesSwitch diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/util/VariablesXMLProcessor.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/util/VariablesXMLProcessor.java new file mode 100644 index 00000000000..f419243edc1 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Annexes/VSL/Variables/util/VariablesXMLProcessor.java @@ -0,0 +1,61 @@ +/***************************************************************************** + * 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.MARTE_Annexes.VSL.Variables.util; + +import java.util.Map; + +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.xmi.util.XMLProcessor; + +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.Variables.VariablesPackage; + +/** + * This class contains helper methods to serialize and deserialize XML documents + * + * + * @generated + */ +public class VariablesXMLProcessor extends XMLProcessor { + + /** + * Public constructor to instantiate the helper. + * + * + * @generated + */ + public VariablesXMLProcessor() { + super((EPackage.Registry.INSTANCE)); + VariablesPackage.eINSTANCE.eClass(); + } + + /** + * Register for "*" and "xml" file extensions the VariablesResourceFactoryImpl factory. + * + * + * @generated + */ + @Override + protected Map getRegistrations() { + if (registrations == null) { + super.getRegistrations(); + registrations.put(XML_EXTENSION, new VariablesResourceFactoryImpl()); + registrations.put(STAR_EXTENSION, new VariablesResourceFactoryImpl()); + } + return registrations; + } + +} //VariablesXMLProcessor diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/ClientServerFeature.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/ClientServerFeature.java new file mode 100644 index 00000000000..235b74043ac --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/ClientServerFeature.java @@ -0,0 +1,94 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.GCM; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.uml2.uml.BehavioralFeature; + +/** + * + * A representation of the model object 'Client Server Feature'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerFeature#getKind Kind}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerFeature#getBase_BehavioralFeature Base Behavioral Feature}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage#getClientServerFeature() + * @model + * @generated + */ +public interface ClientServerFeature extends EObject { + /** + * Returns the value of the 'Kind' attribute. + * The default value is "proreq". + * The literals are from the enumeration {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerKind}. + * + *

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

+ * + * @return the value of the 'Kind' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerKind + * @see #setKind(ClientServerKind) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage#getClientServerFeature_Kind() + * @model default="proreq" unique="false" required="true" ordered="false" + * @generated + */ + ClientServerKind getKind(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerFeature#getKind Kind}' attribute. + * + * + * @param value the new value of the 'Kind' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerKind + * @see #getKind() + * @generated + */ + void setKind(ClientServerKind value); + + /** + * Returns the value of the 'Base Behavioral Feature' reference. + * + *

+ * If the meaning of the 'Base Behavioral Feature' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Behavioral Feature' reference. + * @see #setBase_BehavioralFeature(BehavioralFeature) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage#getClientServerFeature_Base_BehavioralFeature() + * @model required="true" ordered="false" + * @generated + */ + BehavioralFeature getBase_BehavioralFeature(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerFeature#getBase_BehavioralFeature Base Behavioral Feature}' reference. + * + * + * @param value the new value of the 'Base Behavioral Feature' reference. + * @see #getBase_BehavioralFeature() + * @generated + */ + void setBase_BehavioralFeature(BehavioralFeature value); + +} // ClientServerFeature diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/ClientServerKind.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/ClientServerKind.java new file mode 100644 index 00000000000..b6f797ce2ea --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/ClientServerKind.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.MARTE_DesignModel.GCM; + +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 'Client Server Kind', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage#getClientServerKind() + * @model + * @generated + */ +public enum ClientServerKind implements Enumerator { + /** + * The 'Required' literal object. + * + * + * @see #REQUIRED_VALUE + * @generated + * @ordered + */ + REQUIRED(0, "required", "required"), + + /** + * The 'Provided' literal object. + * + * + * @see #PROVIDED_VALUE + * @generated + * @ordered + */ + PROVIDED(1, "provided", "provided"), + + /** + * The 'Proreq' literal object. + * + * + * @see #PROREQ_VALUE + * @generated + * @ordered + */ + PROREQ(2, "proreq", "proreq"); + + /** + * The 'Required' literal value. + * + *

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

+ * + * @see #REQUIRED + * @model name="required" + * @generated + * @ordered + */ + public static final int REQUIRED_VALUE = 0; + + /** + * The 'Provided' literal value. + * + *

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

+ * + * @see #PROVIDED + * @model name="provided" + * @generated + * @ordered + */ + public static final int PROVIDED_VALUE = 1; + + /** + * The 'Proreq' literal value. + * + *

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

+ * + * @see #PROREQ + * @model name="proreq" + * @generated + * @ordered + */ + public static final int PROREQ_VALUE = 2; + + /** + * An array of all the 'Client Server Kind' enumerators. + * + * + * @generated + */ + private static final ClientServerKind[] VALUES_ARRAY = + new ClientServerKind[] { + REQUIRED, + PROVIDED, + PROREQ, + }; + + /** + * A public read-only list of all the 'Client Server Kind' enumerators. + * + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Client Server Kind' literal with the specified literal value. + * + * + * @generated + */ + public static ClientServerKind get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + ClientServerKind result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Client Server Kind' literal with the specified name. + * + * + * @generated + */ + public static ClientServerKind getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + ClientServerKind result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Client Server Kind' literal with the specified integer value. + * + * + * @generated + */ + public static ClientServerKind get(int value) { + switch (value) { + case REQUIRED_VALUE: return REQUIRED; + case PROVIDED_VALUE: return PROVIDED; + case PROREQ_VALUE: return PROREQ; + } + 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 ClientServerKind(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; + } + +} //ClientServerKind diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/ClientServerPort.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/ClientServerPort.java new file mode 100644 index 00000000000..96f941de7e9 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/ClientServerPort.java @@ -0,0 +1,189 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.GCM; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.uml2.uml.Interface; +import org.eclipse.uml2.uml.Port; + +/** + * + * A representation of the model object 'Client Server Port'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerPort#getBase_Port Base Port}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerPort#getSpecificationKind Specification Kind}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerPort#getKind Kind}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerPort#getProvInterface Prov Interface}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerPort#getReqInterface Req Interface}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerPort#getFeaturesSpec Features Spec}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage#getClientServerPort() + * @model + * @generated + */ +public interface ClientServerPort extends EObject { + /** + * Returns the value of the 'Base Port' reference. + * + *

+ * If the meaning of the 'Base Port' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Port' reference. + * @see #setBase_Port(Port) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage#getClientServerPort_Base_Port() + * @model required="true" ordered="false" + * @generated + */ + Port getBase_Port(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerPort#getBase_Port Base Port}' reference. + * + * + * @param value the new value of the 'Base Port' reference. + * @see #getBase_Port() + * @generated + */ + void setBase_Port(Port value); + + /** + * Returns the value of the 'Specification Kind' attribute. + * The default value is "interfaceBased". + * The literals are from the enumeration {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.PortSpecificationKind}. + * + *

+ * If the meaning of the 'Specification Kind' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Specification Kind' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.PortSpecificationKind + * @see #setSpecificationKind(PortSpecificationKind) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage#getClientServerPort_SpecificationKind() + * @model default="interfaceBased" unique="false" required="true" transient="true" volatile="true" derived="true" ordered="false" + * @generated + */ + PortSpecificationKind getSpecificationKind(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerPort#getSpecificationKind Specification Kind}' attribute. + * + * + * @param value the new value of the 'Specification Kind' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.PortSpecificationKind + * @see #getSpecificationKind() + * @generated + */ + void setSpecificationKind(PortSpecificationKind value); + + /** + * Returns the value of the 'Kind' attribute. + * The default value is "proreq". + * The literals are from the enumeration {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerKind}. + * + *

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

+ * + * @return the value of the 'Kind' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerKind + * @see #setKind(ClientServerKind) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage#getClientServerPort_Kind() + * @model default="proreq" unique="false" required="true" ordered="false" + * @generated + */ + ClientServerKind getKind(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerPort#getKind Kind}' attribute. + * + * + * @param value the new value of the 'Kind' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerKind + * @see #getKind() + * @generated + */ + void setKind(ClientServerKind value); + + /** + * Returns the value of the 'Prov Interface' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.Interface}. + * + *

+ * If the meaning of the 'Prov Interface' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Prov Interface' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage#getClientServerPort_ProvInterface() + * @model ordered="false" + * @generated + */ + EList getProvInterface(); + + /** + * Returns the value of the 'Req Interface' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.Interface}. + * + *

+ * If the meaning of the 'Req Interface' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Req Interface' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage#getClientServerPort_ReqInterface() + * @model ordered="false" + * @generated + */ + EList getReqInterface(); + + /** + * Returns the value of the 'Features Spec' reference. + * + *

+ * If the meaning of the 'Features Spec' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Features Spec' reference. + * @see #setFeaturesSpec(ClientServerSpecification) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage#getClientServerPort_FeaturesSpec() + * @model ordered="false" + * @generated + */ + ClientServerSpecification getFeaturesSpec(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerPort#getFeaturesSpec Features Spec}' reference. + * + * + * @param value the new value of the 'Features Spec' reference. + * @see #getFeaturesSpec() + * @generated + */ + void setFeaturesSpec(ClientServerSpecification value); + +} // ClientServerPort diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/ClientServerSpecification.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/ClientServerSpecification.java new file mode 100644 index 00000000000..a57befda459 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/ClientServerSpecification.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.MARTE_DesignModel.GCM; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.uml2.uml.Interface; + +/** + * + * A representation of the model object 'Client Server Specification'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerSpecification#getBase_Interface Base Interface}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage#getClientServerSpecification() + * @model + * @generated + */ +public interface ClientServerSpecification extends EObject { + /** + * Returns the value of the 'Base Interface' reference. + * + *

+ * If the meaning of the 'Base Interface' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Interface' reference. + * @see #setBase_Interface(Interface) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage#getClientServerSpecification_Base_Interface() + * @model required="true" ordered="false" + * @generated + */ + Interface getBase_Interface(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerSpecification#getBase_Interface Base Interface}' reference. + * + * + * @param value the new value of the 'Base Interface' reference. + * @see #getBase_Interface() + * @generated + */ + void setBase_Interface(Interface value); + +} // ClientServerSpecification diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/DataEvent.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/DataEvent.java new file mode 100644 index 00000000000..9298b9ee99f --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/DataEvent.java @@ -0,0 +1,91 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.GCM; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.uml2.uml.AnyReceiveEvent; +import org.eclipse.uml2.uml.Classifier; + +/** + * + * A representation of the model object 'Data Event'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.DataEvent#getBase_AnyReceiveEvent Base Any Receive Event}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.DataEvent#getClassifier Classifier}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage#getDataEvent() + * @model + * @generated + */ +public interface DataEvent extends EObject { + /** + * Returns the value of the 'Base Any Receive Event' reference. + * + *

+ * If the meaning of the 'Base Any Receive Event' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Any Receive Event' reference. + * @see #setBase_AnyReceiveEvent(AnyReceiveEvent) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage#getDataEvent_Base_AnyReceiveEvent() + * @model required="true" ordered="false" + * @generated + */ + AnyReceiveEvent getBase_AnyReceiveEvent(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.DataEvent#getBase_AnyReceiveEvent Base Any Receive Event}' reference. + * + * + * @param value the new value of the 'Base Any Receive Event' reference. + * @see #getBase_AnyReceiveEvent() + * @generated + */ + void setBase_AnyReceiveEvent(AnyReceiveEvent value); + + /** + * Returns the value of the 'Classifier' reference. + * + *

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

+ * + * @return the value of the 'Classifier' reference. + * @see #setClassifier(Classifier) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage#getDataEvent_Classifier() + * @model required="true" ordered="false" + * @generated + */ + Classifier getClassifier(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.DataEvent#getClassifier Classifier}' reference. + * + * + * @param value the new value of the 'Classifier' reference. + * @see #getClassifier() + * @generated + */ + void setClassifier(Classifier value); + +} // DataEvent diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/DataPool.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/DataPool.java new file mode 100644 index 00000000000..51e7b9b3c7a --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/DataPool.java @@ -0,0 +1,149 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.GCM; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.uml2.uml.Behavior; +import org.eclipse.uml2.uml.Property; + +/** + * + * A representation of the model object 'Data Pool'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.DataPool#getOrdering Ordering}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.DataPool#getBase_Property Base Property}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.DataPool#getInsertion Insertion}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.DataPool#getSelection Selection}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage#getDataPool() + * @model + * @generated + */ +public interface DataPool extends EObject { + /** + * Returns the value of the 'Ordering' attribute. + * The default value is "FIFO". + * The literals are from the enumeration {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.DataPoolOrderingKind}. + * + *

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

+ * + * @return the value of the 'Ordering' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.DataPoolOrderingKind + * @see #setOrdering(DataPoolOrderingKind) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage#getDataPool_Ordering() + * @model default="FIFO" unique="false" required="true" ordered="false" + * @generated + */ + DataPoolOrderingKind getOrdering(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.DataPool#getOrdering Ordering}' attribute. + * + * + * @param value the new value of the 'Ordering' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.DataPoolOrderingKind + * @see #getOrdering() + * @generated + */ + void setOrdering(DataPoolOrderingKind value); + + /** + * Returns the value of the 'Base Property' reference. + * + *

+ * If the meaning of the 'Base Property' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Property' reference. + * @see #setBase_Property(Property) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage#getDataPool_Base_Property() + * @model required="true" ordered="false" + * @generated + */ + Property getBase_Property(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.DataPool#getBase_Property Base Property}' reference. + * + * + * @param value the new value of the 'Base Property' reference. + * @see #getBase_Property() + * @generated + */ + void setBase_Property(Property value); + + /** + * Returns the value of the 'Insertion' reference. + * + *

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

+ * + * @return the value of the 'Insertion' reference. + * @see #setInsertion(Behavior) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage#getDataPool_Insertion() + * @model ordered="false" + * @generated + */ + Behavior getInsertion(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.DataPool#getInsertion Insertion}' reference. + * + * + * @param value the new value of the 'Insertion' reference. + * @see #getInsertion() + * @generated + */ + void setInsertion(Behavior value); + + /** + * Returns the value of the 'Selection' reference. + * + *

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

+ * + * @return the value of the 'Selection' reference. + * @see #setSelection(Behavior) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage#getDataPool_Selection() + * @model ordered="false" + * @generated + */ + Behavior getSelection(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.DataPool#getSelection Selection}' reference. + * + * + * @param value the new value of the 'Selection' reference. + * @see #getSelection() + * @generated + */ + void setSelection(Behavior value); + +} // DataPool diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/DataPoolOrderingKind.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/DataPoolOrderingKind.java new file mode 100644 index 00000000000..23319ce19c5 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/DataPoolOrderingKind.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.MARTE_DesignModel.GCM; + +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 Pool Ordering Kind', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage#getDataPoolOrderingKind() + * @model + * @generated + */ +public enum DataPoolOrderingKind implements Enumerator { + /** + * The 'FIFO' literal object. + * + * + * @see #FIFO_VALUE + * @generated + * @ordered + */ + FIFO(0, "FIFO", "FIFO"), + + /** + * The 'LIFO' literal object. + * + * + * @see #LIFO_VALUE + * @generated + * @ordered + */ + LIFO(1, "LIFO", "LIFO"), + + /** + * The 'User Defined' literal object. + * + * + * @see #USER_DEFINED_VALUE + * @generated + * @ordered + */ + USER_DEFINED(2, "UserDefined", "UserDefined"); + + /** + * 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 'LIFO' literal value. + * + *

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

+ * + * @see #LIFO + * @model + * @generated + * @ordered + */ + public static final int LIFO_VALUE = 1; + + /** + * The 'User Defined' literal value. + * + *

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

+ * + * @see #USER_DEFINED + * @model name="UserDefined" + * @generated + * @ordered + */ + public static final int USER_DEFINED_VALUE = 2; + + /** + * An array of all the 'Data Pool Ordering Kind' enumerators. + * + * + * @generated + */ + private static final DataPoolOrderingKind[] VALUES_ARRAY = + new DataPoolOrderingKind[] { + FIFO, + LIFO, + USER_DEFINED, + }; + + /** + * A public read-only list of all the 'Data Pool Ordering Kind' enumerators. + * + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Data Pool Ordering Kind' literal with the specified literal value. + * + * + * @generated + */ + public static DataPoolOrderingKind get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + DataPoolOrderingKind result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Data Pool Ordering Kind' literal with the specified name. + * + * + * @generated + */ + public static DataPoolOrderingKind getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + DataPoolOrderingKind result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Data Pool Ordering Kind' literal with the specified integer value. + * + * + * @generated + */ + public static DataPoolOrderingKind get(int value) { + switch (value) { + case FIFO_VALUE: return FIFO; + case LIFO_VALUE: return LIFO; + case USER_DEFINED_VALUE: return USER_DEFINED; + } + 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 DataPoolOrderingKind(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; + } + +} //DataPoolOrderingKind diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/FlowDirectionKind.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/FlowDirectionKind.java new file mode 100644 index 00000000000..b54b3e314bd --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/FlowDirectionKind.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.MARTE_DesignModel.GCM; + +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 'Flow Direction Kind', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage#getFlowDirectionKind() + * @model + * @generated + */ +public enum FlowDirectionKind implements Enumerator { + /** + * The 'In' literal object. + * + * + * @see #IN_VALUE + * @generated + * @ordered + */ + IN(0, "in", "in"), + + /** + * The 'Out' literal object. + * + * + * @see #OUT_VALUE + * @generated + * @ordered + */ + OUT(1, "out", "out"), + + /** + * The 'Inout' literal object. + * + * + * @see #INOUT_VALUE + * @generated + * @ordered + */ + INOUT(2, "inout", "inout"); + + /** + * The 'In' literal value. + * + *

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

+ * + * @see #IN + * @model name="in" + * @generated + * @ordered + */ + public static final int IN_VALUE = 0; + + /** + * The 'Out' literal value. + * + *

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

+ * + * @see #OUT + * @model name="out" + * @generated + * @ordered + */ + public static final int OUT_VALUE = 1; + + /** + * The 'Inout' literal value. + * + *

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

+ * + * @see #INOUT + * @model name="inout" + * @generated + * @ordered + */ + public static final int INOUT_VALUE = 2; + + /** + * An array of all the 'Flow Direction Kind' enumerators. + * + * + * @generated + */ + private static final FlowDirectionKind[] VALUES_ARRAY = + new FlowDirectionKind[] { + IN, + OUT, + INOUT, + }; + + /** + * A public read-only list of all the 'Flow Direction Kind' enumerators. + * + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Flow Direction Kind' literal with the specified literal value. + * + * + * @generated + */ + public static FlowDirectionKind get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + FlowDirectionKind result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Flow Direction Kind' literal with the specified name. + * + * + * @generated + */ + public static FlowDirectionKind getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + FlowDirectionKind result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Flow Direction Kind' literal with the specified integer value. + * + * + * @generated + */ + public static FlowDirectionKind get(int value) { + switch (value) { + case IN_VALUE: return IN; + case OUT_VALUE: return OUT; + case INOUT_VALUE: return INOUT; + } + 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 FlowDirectionKind(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; + } + +} //FlowDirectionKind diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/FlowPort.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/FlowPort.java new file mode 100644 index 00000000000..99c07ed06b7 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/FlowPort.java @@ -0,0 +1,121 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.GCM; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.uml2.uml.Port; + +/** + * + * A representation of the model object 'Flow Port'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowPort#isIsAtomic Is Atomic}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowPort#getDirection Direction}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowPort#getBase_Port Base Port}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage#getFlowPort() + * @model + * @generated + */ +public interface FlowPort extends EObject { + /** + * Returns the value of the 'Is Atomic' attribute. + * + *

+ * If the meaning of the 'Is Atomic' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Is Atomic' attribute. + * @see #setIsAtomic(boolean) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage#getFlowPort_IsAtomic() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.Boolean" required="true" transient="true" volatile="true" derived="true" ordered="false" + * @generated + */ + boolean isIsAtomic(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowPort#isIsAtomic Is Atomic}' attribute. + * + * + * @param value the new value of the 'Is Atomic' attribute. + * @see #isIsAtomic() + * @generated + */ + void setIsAtomic(boolean value); + + /** + * Returns the value of the 'Direction' attribute. + * The default value is "inout". + * The literals are from the enumeration {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowDirectionKind}. + * + *

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

+ * + * @return the value of the 'Direction' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowDirectionKind + * @see #setDirection(FlowDirectionKind) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage#getFlowPort_Direction() + * @model default="inout" unique="false" required="true" ordered="false" + * @generated + */ + FlowDirectionKind getDirection(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowPort#getDirection Direction}' attribute. + * + * + * @param value the new value of the 'Direction' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowDirectionKind + * @see #getDirection() + * @generated + */ + void setDirection(FlowDirectionKind value); + + /** + * Returns the value of the 'Base Port' reference. + * + *

+ * If the meaning of the 'Base Port' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Port' reference. + * @see #setBase_Port(Port) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage#getFlowPort_Base_Port() + * @model required="true" ordered="false" + * @generated + */ + Port getBase_Port(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowPort#getBase_Port Base Port}' reference. + * + * + * @param value the new value of the 'Base Port' reference. + * @see #getBase_Port() + * @generated + */ + void setBase_Port(Port value); + +} // FlowPort diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/FlowProperty.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/FlowProperty.java new file mode 100644 index 00000000000..7dad4993de4 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/FlowProperty.java @@ -0,0 +1,94 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.GCM; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.uml2.uml.Property; + +/** + * + * A representation of the model object 'Flow Property'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowProperty#getDirection Direction}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowProperty#getBase_Property Base Property}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage#getFlowProperty() + * @model + * @generated + */ +public interface FlowProperty extends EObject { + /** + * Returns the value of the 'Direction' attribute. + * The default value is "inout". + * The literals are from the enumeration {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowDirectionKind}. + * + *

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

+ * + * @return the value of the 'Direction' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowDirectionKind + * @see #setDirection(FlowDirectionKind) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage#getFlowProperty_Direction() + * @model default="inout" unique="false" required="true" ordered="false" + * @generated + */ + FlowDirectionKind getDirection(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowProperty#getDirection Direction}' attribute. + * + * + * @param value the new value of the 'Direction' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowDirectionKind + * @see #getDirection() + * @generated + */ + void setDirection(FlowDirectionKind value); + + /** + * Returns the value of the 'Base Property' reference. + * + *

+ * If the meaning of the 'Base Property' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Property' reference. + * @see #setBase_Property(Property) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage#getFlowProperty_Base_Property() + * @model required="true" ordered="false" + * @generated + */ + Property getBase_Property(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowProperty#getBase_Property Base Property}' reference. + * + * + * @param value the new value of the 'Base Property' reference. + * @see #getBase_Property() + * @generated + */ + void setBase_Property(Property value); + +} // FlowProperty diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/FlowSpecification.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/FlowSpecification.java new file mode 100644 index 00000000000..df186355d87 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/FlowSpecification.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.MARTE_DesignModel.GCM; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.uml2.uml.Interface; + +/** + * + * A representation of the model object 'Flow Specification'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowSpecification#getBase_Interface Base Interface}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage#getFlowSpecification() + * @model + * @generated + */ +public interface FlowSpecification extends EObject { + /** + * Returns the value of the 'Base Interface' reference. + * + *

+ * If the meaning of the 'Base Interface' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Interface' reference. + * @see #setBase_Interface(Interface) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage#getFlowSpecification_Base_Interface() + * @model required="true" ordered="false" + * @generated + */ + Interface getBase_Interface(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowSpecification#getBase_Interface Base Interface}' reference. + * + * + * @param value the new value of the 'Base Interface' reference. + * @see #getBase_Interface() + * @generated + */ + void setBase_Interface(Interface value); + +} // FlowSpecification diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/GCMFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/GCMFactory.java new file mode 100644 index 00000000000..afdfcbf0533 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/GCMFactory.java @@ -0,0 +1,143 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.GCM; + +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.MARTE_DesignModel.GCM.GCMPackage + * @generated + */ +public interface GCMFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + GCMFactory eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMFactoryImpl.init(); + + /** + * Returns a new object of class 'Flow Property'. + * + * + * @return a new object of class 'Flow Property'. + * @generated + */ + FlowProperty createFlowProperty(); + + /** + * Returns a new object of class 'Flow Port'. + * + * + * @return a new object of class 'Flow Port'. + * @generated + */ + FlowPort createFlowPort(); + + /** + * Returns a new object of class 'Client Server Port'. + * + * + * @return a new object of class 'Client Server Port'. + * @generated + */ + ClientServerPort createClientServerPort(); + + /** + * Returns a new object of class 'Client Server Specification'. + * + * + * @return a new object of class 'Client Server Specification'. + * @generated + */ + ClientServerSpecification createClientServerSpecification(); + + /** + * Returns a new object of class 'Flow Specification'. + * + * + * @return a new object of class 'Flow Specification'. + * @generated + */ + FlowSpecification createFlowSpecification(); + + /** + * Returns a new object of class 'Client Server Feature'. + * + * + * @return a new object of class 'Client Server Feature'. + * @generated + */ + ClientServerFeature createClientServerFeature(); + + /** + * Returns a new object of class 'Trigger'. + * + * + * @return a new object of class 'Trigger'. + * @generated + */ + GCMTrigger createGCMTrigger(); + + /** + * Returns a new object of class 'Invocation Action'. + * + * + * @return a new object of class 'Invocation Action'. + * @generated + */ + GCMInvocationAction createGCMInvocationAction(); + + /** + * Returns a new object of class 'Data Event'. + * + * + * @return a new object of class 'Data Event'. + * @generated + */ + DataEvent createDataEvent(); + + /** + * Returns a new object of class 'Data Pool'. + * + * + * @return a new object of class 'Data Pool'. + * @generated + */ + DataPool createDataPool(); + + /** + * Returns a new object of class 'Invocating Behavior'. + * + * + * @return a new object of class 'Invocating Behavior'. + * @generated + */ + GCMInvocatingBehavior createGCMInvocatingBehavior(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + GCMPackage getGCMPackage(); + +} //GCMFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/GCMInvocatingBehavior.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/GCMInvocatingBehavior.java new file mode 100644 index 00000000000..d2be2aaefb5 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/GCMInvocatingBehavior.java @@ -0,0 +1,119 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.GCM; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.uml2.uml.Behavior; +import org.eclipse.uml2.uml.Feature; +import org.eclipse.uml2.uml.InvocationAction; +import org.eclipse.uml2.uml.Port; + +/** + * + * A representation of the model object 'Invocating Behavior'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMInvocatingBehavior#getBase_Behavior Base Behavior}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMInvocatingBehavior#getOnPorts On Ports}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMInvocatingBehavior#getOnFeatures On Features}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMInvocatingBehavior#getInvocations Invocations}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage#getGCMInvocatingBehavior() + * @model + * @generated + */ +public interface GCMInvocatingBehavior extends EObject { + /** + * Returns the value of the 'Base Behavior' reference. + * + *

+ * If the meaning of the 'Base Behavior' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Behavior' reference. + * @see #setBase_Behavior(Behavior) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage#getGCMInvocatingBehavior_Base_Behavior() + * @model required="true" ordered="false" + * @generated + */ + Behavior getBase_Behavior(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMInvocatingBehavior#getBase_Behavior Base Behavior}' reference. + * + * + * @param value the new value of the 'Base Behavior' reference. + * @see #getBase_Behavior() + * @generated + */ + void setBase_Behavior(Behavior value); + + /** + * Returns the value of the 'On Ports' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.Port}. + * + *

+ * If the meaning of the 'On Ports' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'On Ports' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage#getGCMInvocatingBehavior_OnPorts() + * @model ordered="false" + * @generated + */ + EList getOnPorts(); + + /** + * Returns the value of the 'On Features' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.Feature}. + * + *

+ * If the meaning of the 'On Features' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'On Features' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage#getGCMInvocatingBehavior_OnFeatures() + * @model ordered="false" + * @generated + */ + EList getOnFeatures(); + + /** + * Returns the value of the 'Invocations' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.InvocationAction}. + * + *

+ * If the meaning of the 'Invocations' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Invocations' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage#getGCMInvocatingBehavior_Invocations() + * @model ordered="false" + * @generated + */ + EList getInvocations(); + +} // GCMInvocatingBehavior diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/GCMInvocationAction.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/GCMInvocationAction.java new file mode 100644 index 00000000000..97db5985e67 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/GCMInvocationAction.java @@ -0,0 +1,91 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.GCM; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.uml2.uml.Feature; +import org.eclipse.uml2.uml.InvocationAction; + +/** + * + * A representation of the model object 'Invocation Action'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMInvocationAction#getBase_InvocationAction Base Invocation Action}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMInvocationAction#getOnFeature On Feature}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage#getGCMInvocationAction() + * @model + * @generated + */ +public interface GCMInvocationAction extends EObject { + /** + * Returns the value of the 'Base Invocation Action' reference. + * + *

+ * If the meaning of the 'Base Invocation Action' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Invocation Action' reference. + * @see #setBase_InvocationAction(InvocationAction) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage#getGCMInvocationAction_Base_InvocationAction() + * @model required="true" ordered="false" + * @generated + */ + InvocationAction getBase_InvocationAction(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMInvocationAction#getBase_InvocationAction Base Invocation Action}' reference. + * + * + * @param value the new value of the 'Base Invocation Action' reference. + * @see #getBase_InvocationAction() + * @generated + */ + void setBase_InvocationAction(InvocationAction value); + + /** + * Returns the value of the 'On Feature' reference. + * + *

+ * If the meaning of the 'On Feature' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'On Feature' reference. + * @see #setOnFeature(Feature) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage#getGCMInvocationAction_OnFeature() + * @model required="true" ordered="false" + * @generated + */ + Feature getOnFeature(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMInvocationAction#getOnFeature On Feature}' reference. + * + * + * @param value the new value of the 'On Feature' reference. + * @see #getOnFeature() + * @generated + */ + void setOnFeature(Feature value); + +} // GCMInvocationAction diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/GCMPackage.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/GCMPackage.java new file mode 100644 index 00000000000..90cc89c4ac9 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/GCMPackage.java @@ -0,0 +1,1456 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.GCM; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +/** + * + * 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.MARTE_DesignModel.GCM.GCMFactory + * @model kind="package" + * @generated + */ +public interface GCMPackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "GCM"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "http://www.eclipse.org/papyrus/GCM/1"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "GCM"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + GCMPackage eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.FlowPropertyImpl Flow Property}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.FlowPropertyImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMPackageImpl#getFlowProperty() + * @generated + */ + int FLOW_PROPERTY = 0; + + /** + * The feature id for the 'Direction' attribute. + * + * + * @generated + * @ordered + */ + int FLOW_PROPERTY__DIRECTION = 0; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int FLOW_PROPERTY__BASE_PROPERTY = 1; + + /** + * The number of structural features of the 'Flow Property' class. + * + * + * @generated + * @ordered + */ + int FLOW_PROPERTY_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.FlowPortImpl Flow Port}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.FlowPortImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMPackageImpl#getFlowPort() + * @generated + */ + int FLOW_PORT = 1; + + /** + * The feature id for the 'Is Atomic' attribute. + * + * + * @generated + * @ordered + */ + int FLOW_PORT__IS_ATOMIC = 0; + + /** + * The feature id for the 'Direction' attribute. + * + * + * @generated + * @ordered + */ + int FLOW_PORT__DIRECTION = 1; + + /** + * The feature id for the 'Base Port' reference. + * + * + * @generated + * @ordered + */ + int FLOW_PORT__BASE_PORT = 2; + + /** + * The number of structural features of the 'Flow Port' class. + * + * + * @generated + * @ordered + */ + int FLOW_PORT_FEATURE_COUNT = 3; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.ClientServerPortImpl Client Server Port}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.ClientServerPortImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMPackageImpl#getClientServerPort() + * @generated + */ + int CLIENT_SERVER_PORT = 2; + + /** + * The feature id for the 'Base Port' reference. + * + * + * @generated + * @ordered + */ + int CLIENT_SERVER_PORT__BASE_PORT = 0; + + /** + * The feature id for the 'Specification Kind' attribute. + * + * + * @generated + * @ordered + */ + int CLIENT_SERVER_PORT__SPECIFICATION_KIND = 1; + + /** + * The feature id for the 'Kind' attribute. + * + * + * @generated + * @ordered + */ + int CLIENT_SERVER_PORT__KIND = 2; + + /** + * The feature id for the 'Prov Interface' reference list. + * + * + * @generated + * @ordered + */ + int CLIENT_SERVER_PORT__PROV_INTERFACE = 3; + + /** + * The feature id for the 'Req Interface' reference list. + * + * + * @generated + * @ordered + */ + int CLIENT_SERVER_PORT__REQ_INTERFACE = 4; + + /** + * The feature id for the 'Features Spec' reference. + * + * + * @generated + * @ordered + */ + int CLIENT_SERVER_PORT__FEATURES_SPEC = 5; + + /** + * The number of structural features of the 'Client Server Port' class. + * + * + * @generated + * @ordered + */ + int CLIENT_SERVER_PORT_FEATURE_COUNT = 6; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.ClientServerSpecificationImpl Client Server Specification}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.ClientServerSpecificationImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMPackageImpl#getClientServerSpecification() + * @generated + */ + int CLIENT_SERVER_SPECIFICATION = 3; + + /** + * The feature id for the 'Base Interface' reference. + * + * + * @generated + * @ordered + */ + int CLIENT_SERVER_SPECIFICATION__BASE_INTERFACE = 0; + + /** + * The number of structural features of the 'Client Server Specification' class. + * + * + * @generated + * @ordered + */ + int CLIENT_SERVER_SPECIFICATION_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.FlowSpecificationImpl Flow Specification}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.FlowSpecificationImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMPackageImpl#getFlowSpecification() + * @generated + */ + int FLOW_SPECIFICATION = 4; + + /** + * The feature id for the 'Base Interface' reference. + * + * + * @generated + * @ordered + */ + int FLOW_SPECIFICATION__BASE_INTERFACE = 0; + + /** + * The number of structural features of the 'Flow Specification' class. + * + * + * @generated + * @ordered + */ + int FLOW_SPECIFICATION_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.ClientServerFeatureImpl Client Server Feature}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.ClientServerFeatureImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMPackageImpl#getClientServerFeature() + * @generated + */ + int CLIENT_SERVER_FEATURE = 5; + + /** + * The feature id for the 'Kind' attribute. + * + * + * @generated + * @ordered + */ + int CLIENT_SERVER_FEATURE__KIND = 0; + + /** + * The feature id for the 'Base Behavioral Feature' reference. + * + * + * @generated + * @ordered + */ + int CLIENT_SERVER_FEATURE__BASE_BEHAVIORAL_FEATURE = 1; + + /** + * The number of structural features of the 'Client Server Feature' class. + * + * + * @generated + * @ordered + */ + int CLIENT_SERVER_FEATURE_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMTriggerImpl Trigger}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMTriggerImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMPackageImpl#getGCMTrigger() + * @generated + */ + int GCM_TRIGGER = 6; + + /** + * The feature id for the 'Base Trigger' reference. + * + * + * @generated + * @ordered + */ + int GCM_TRIGGER__BASE_TRIGGER = 0; + + /** + * The feature id for the 'Feature' reference. + * + * + * @generated + * @ordered + */ + int GCM_TRIGGER__FEATURE = 1; + + /** + * The number of structural features of the 'Trigger' class. + * + * + * @generated + * @ordered + */ + int GCM_TRIGGER_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMInvocationActionImpl Invocation Action}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMInvocationActionImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMPackageImpl#getGCMInvocationAction() + * @generated + */ + int GCM_INVOCATION_ACTION = 7; + + /** + * The feature id for the 'Base Invocation Action' reference. + * + * + * @generated + * @ordered + */ + int GCM_INVOCATION_ACTION__BASE_INVOCATION_ACTION = 0; + + /** + * The feature id for the 'On Feature' reference. + * + * + * @generated + * @ordered + */ + int GCM_INVOCATION_ACTION__ON_FEATURE = 1; + + /** + * The number of structural features of the 'Invocation Action' class. + * + * + * @generated + * @ordered + */ + int GCM_INVOCATION_ACTION_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.DataEventImpl Data Event}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.DataEventImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMPackageImpl#getDataEvent() + * @generated + */ + int DATA_EVENT = 8; + + /** + * The feature id for the 'Base Any Receive Event' reference. + * + * + * @generated + * @ordered + */ + int DATA_EVENT__BASE_ANY_RECEIVE_EVENT = 0; + + /** + * The feature id for the 'Classifier' reference. + * + * + * @generated + * @ordered + */ + int DATA_EVENT__CLASSIFIER = 1; + + /** + * The number of structural features of the 'Data Event' class. + * + * + * @generated + * @ordered + */ + int DATA_EVENT_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.DataPoolImpl Data Pool}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.DataPoolImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMPackageImpl#getDataPool() + * @generated + */ + int DATA_POOL = 9; + + /** + * The feature id for the 'Ordering' attribute. + * + * + * @generated + * @ordered + */ + int DATA_POOL__ORDERING = 0; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int DATA_POOL__BASE_PROPERTY = 1; + + /** + * The feature id for the 'Insertion' reference. + * + * + * @generated + * @ordered + */ + int DATA_POOL__INSERTION = 2; + + /** + * The feature id for the 'Selection' reference. + * + * + * @generated + * @ordered + */ + int DATA_POOL__SELECTION = 3; + + /** + * The number of structural features of the 'Data Pool' class. + * + * + * @generated + * @ordered + */ + int DATA_POOL_FEATURE_COUNT = 4; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMInvocatingBehaviorImpl Invocating Behavior}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMInvocatingBehaviorImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMPackageImpl#getGCMInvocatingBehavior() + * @generated + */ + int GCM_INVOCATING_BEHAVIOR = 10; + + /** + * The feature id for the 'Base Behavior' reference. + * + * + * @generated + * @ordered + */ + int GCM_INVOCATING_BEHAVIOR__BASE_BEHAVIOR = 0; + + /** + * The feature id for the 'On Ports' reference list. + * + * + * @generated + * @ordered + */ + int GCM_INVOCATING_BEHAVIOR__ON_PORTS = 1; + + /** + * The feature id for the 'On Features' reference list. + * + * + * @generated + * @ordered + */ + int GCM_INVOCATING_BEHAVIOR__ON_FEATURES = 2; + + /** + * The feature id for the 'Invocations' reference list. + * + * + * @generated + * @ordered + */ + int GCM_INVOCATING_BEHAVIOR__INVOCATIONS = 3; + + /** + * The number of structural features of the 'Invocating Behavior' class. + * + * + * @generated + * @ordered + */ + int GCM_INVOCATING_BEHAVIOR_FEATURE_COUNT = 4; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowDirectionKind Flow Direction Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowDirectionKind + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMPackageImpl#getFlowDirectionKind() + * @generated + */ + int FLOW_DIRECTION_KIND = 11; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.PortSpecificationKind Port Specification Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.PortSpecificationKind + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMPackageImpl#getPortSpecificationKind() + * @generated + */ + int PORT_SPECIFICATION_KIND = 12; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerKind Client Server Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerKind + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMPackageImpl#getClientServerKind() + * @generated + */ + int CLIENT_SERVER_KIND = 13; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.DataPoolOrderingKind Data Pool Ordering Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.DataPoolOrderingKind + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMPackageImpl#getDataPoolOrderingKind() + * @generated + */ + int DATA_POOL_ORDERING_KIND = 14; + + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowProperty Flow Property}'. + * + * + * @return the meta object for class 'Flow Property'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowProperty + * @generated + */ + EClass getFlowProperty(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowProperty#getDirection Direction}'. + * + * + * @return the meta object for the attribute 'Direction'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowProperty#getDirection() + * @see #getFlowProperty() + * @generated + */ + EAttribute getFlowProperty_Direction(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowProperty#getBase_Property Base Property}'. + * + * + * @return the meta object for the reference 'Base Property'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowProperty#getBase_Property() + * @see #getFlowProperty() + * @generated + */ + EReference getFlowProperty_Base_Property(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowPort Flow Port}'. + * + * + * @return the meta object for class 'Flow Port'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowPort + * @generated + */ + EClass getFlowPort(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowPort#isIsAtomic Is Atomic}'. + * + * + * @return the meta object for the attribute 'Is Atomic'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowPort#isIsAtomic() + * @see #getFlowPort() + * @generated + */ + EAttribute getFlowPort_IsAtomic(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowPort#getDirection Direction}'. + * + * + * @return the meta object for the attribute 'Direction'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowPort#getDirection() + * @see #getFlowPort() + * @generated + */ + EAttribute getFlowPort_Direction(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowPort#getBase_Port Base Port}'. + * + * + * @return the meta object for the reference 'Base Port'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowPort#getBase_Port() + * @see #getFlowPort() + * @generated + */ + EReference getFlowPort_Base_Port(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerPort Client Server Port}'. + * + * + * @return the meta object for class 'Client Server Port'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerPort + * @generated + */ + EClass getClientServerPort(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerPort#getBase_Port Base Port}'. + * + * + * @return the meta object for the reference 'Base Port'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerPort#getBase_Port() + * @see #getClientServerPort() + * @generated + */ + EReference getClientServerPort_Base_Port(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerPort#getSpecificationKind Specification Kind}'. + * + * + * @return the meta object for the attribute 'Specification Kind'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerPort#getSpecificationKind() + * @see #getClientServerPort() + * @generated + */ + EAttribute getClientServerPort_SpecificationKind(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerPort#getKind Kind}'. + * + * + * @return the meta object for the attribute 'Kind'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerPort#getKind() + * @see #getClientServerPort() + * @generated + */ + EAttribute getClientServerPort_Kind(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerPort#getProvInterface Prov Interface}'. + * + * + * @return the meta object for the reference list 'Prov Interface'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerPort#getProvInterface() + * @see #getClientServerPort() + * @generated + */ + EReference getClientServerPort_ProvInterface(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerPort#getReqInterface Req Interface}'. + * + * + * @return the meta object for the reference list 'Req Interface'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerPort#getReqInterface() + * @see #getClientServerPort() + * @generated + */ + EReference getClientServerPort_ReqInterface(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerPort#getFeaturesSpec Features Spec}'. + * + * + * @return the meta object for the reference 'Features Spec'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerPort#getFeaturesSpec() + * @see #getClientServerPort() + * @generated + */ + EReference getClientServerPort_FeaturesSpec(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerSpecification Client Server Specification}'. + * + * + * @return the meta object for class 'Client Server Specification'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerSpecification + * @generated + */ + EClass getClientServerSpecification(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerSpecification#getBase_Interface Base Interface}'. + * + * + * @return the meta object for the reference 'Base Interface'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerSpecification#getBase_Interface() + * @see #getClientServerSpecification() + * @generated + */ + EReference getClientServerSpecification_Base_Interface(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowSpecification Flow Specification}'. + * + * + * @return the meta object for class 'Flow Specification'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowSpecification + * @generated + */ + EClass getFlowSpecification(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowSpecification#getBase_Interface Base Interface}'. + * + * + * @return the meta object for the reference 'Base Interface'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowSpecification#getBase_Interface() + * @see #getFlowSpecification() + * @generated + */ + EReference getFlowSpecification_Base_Interface(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerFeature Client Server Feature}'. + * + * + * @return the meta object for class 'Client Server Feature'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerFeature + * @generated + */ + EClass getClientServerFeature(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerFeature#getKind Kind}'. + * + * + * @return the meta object for the attribute 'Kind'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerFeature#getKind() + * @see #getClientServerFeature() + * @generated + */ + EAttribute getClientServerFeature_Kind(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerFeature#getBase_BehavioralFeature Base Behavioral Feature}'. + * + * + * @return the meta object for the reference 'Base Behavioral Feature'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerFeature#getBase_BehavioralFeature() + * @see #getClientServerFeature() + * @generated + */ + EReference getClientServerFeature_Base_BehavioralFeature(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMTrigger Trigger}'. + * + * + * @return the meta object for class 'Trigger'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMTrigger + * @generated + */ + EClass getGCMTrigger(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMTrigger#getBase_Trigger Base Trigger}'. + * + * + * @return the meta object for the reference 'Base Trigger'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMTrigger#getBase_Trigger() + * @see #getGCMTrigger() + * @generated + */ + EReference getGCMTrigger_Base_Trigger(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMTrigger#getFeature Feature}'. + * + * + * @return the meta object for the reference 'Feature'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMTrigger#getFeature() + * @see #getGCMTrigger() + * @generated + */ + EReference getGCMTrigger_Feature(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMInvocationAction Invocation Action}'. + * + * + * @return the meta object for class 'Invocation Action'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMInvocationAction + * @generated + */ + EClass getGCMInvocationAction(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMInvocationAction#getBase_InvocationAction Base Invocation Action}'. + * + * + * @return the meta object for the reference 'Base Invocation Action'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMInvocationAction#getBase_InvocationAction() + * @see #getGCMInvocationAction() + * @generated + */ + EReference getGCMInvocationAction_Base_InvocationAction(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMInvocationAction#getOnFeature On Feature}'. + * + * + * @return the meta object for the reference 'On Feature'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMInvocationAction#getOnFeature() + * @see #getGCMInvocationAction() + * @generated + */ + EReference getGCMInvocationAction_OnFeature(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.DataEvent Data Event}'. + * + * + * @return the meta object for class 'Data Event'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.DataEvent + * @generated + */ + EClass getDataEvent(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.DataEvent#getBase_AnyReceiveEvent Base Any Receive Event}'. + * + * + * @return the meta object for the reference 'Base Any Receive Event'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.DataEvent#getBase_AnyReceiveEvent() + * @see #getDataEvent() + * @generated + */ + EReference getDataEvent_Base_AnyReceiveEvent(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.DataEvent#getClassifier Classifier}'. + * + * + * @return the meta object for the reference 'Classifier'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.DataEvent#getClassifier() + * @see #getDataEvent() + * @generated + */ + EReference getDataEvent_Classifier(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.DataPool Data Pool}'. + * + * + * @return the meta object for class 'Data Pool'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.DataPool + * @generated + */ + EClass getDataPool(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.DataPool#getOrdering Ordering}'. + * + * + * @return the meta object for the attribute 'Ordering'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.DataPool#getOrdering() + * @see #getDataPool() + * @generated + */ + EAttribute getDataPool_Ordering(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.DataPool#getBase_Property Base Property}'. + * + * + * @return the meta object for the reference 'Base Property'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.DataPool#getBase_Property() + * @see #getDataPool() + * @generated + */ + EReference getDataPool_Base_Property(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.DataPool#getInsertion Insertion}'. + * + * + * @return the meta object for the reference 'Insertion'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.DataPool#getInsertion() + * @see #getDataPool() + * @generated + */ + EReference getDataPool_Insertion(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.DataPool#getSelection Selection}'. + * + * + * @return the meta object for the reference 'Selection'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.DataPool#getSelection() + * @see #getDataPool() + * @generated + */ + EReference getDataPool_Selection(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMInvocatingBehavior Invocating Behavior}'. + * + * + * @return the meta object for class 'Invocating Behavior'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMInvocatingBehavior + * @generated + */ + EClass getGCMInvocatingBehavior(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMInvocatingBehavior#getBase_Behavior Base Behavior}'. + * + * + * @return the meta object for the reference 'Base Behavior'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMInvocatingBehavior#getBase_Behavior() + * @see #getGCMInvocatingBehavior() + * @generated + */ + EReference getGCMInvocatingBehavior_Base_Behavior(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMInvocatingBehavior#getOnPorts On Ports}'. + * + * + * @return the meta object for the reference list 'On Ports'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMInvocatingBehavior#getOnPorts() + * @see #getGCMInvocatingBehavior() + * @generated + */ + EReference getGCMInvocatingBehavior_OnPorts(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMInvocatingBehavior#getOnFeatures On Features}'. + * + * + * @return the meta object for the reference list 'On Features'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMInvocatingBehavior#getOnFeatures() + * @see #getGCMInvocatingBehavior() + * @generated + */ + EReference getGCMInvocatingBehavior_OnFeatures(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMInvocatingBehavior#getInvocations Invocations}'. + * + * + * @return the meta object for the reference list 'Invocations'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMInvocatingBehavior#getInvocations() + * @see #getGCMInvocatingBehavior() + * @generated + */ + EReference getGCMInvocatingBehavior_Invocations(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowDirectionKind Flow Direction Kind}'. + * + * + * @return the meta object for enum 'Flow Direction Kind'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowDirectionKind + * @generated + */ + EEnum getFlowDirectionKind(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.PortSpecificationKind Port Specification Kind}'. + * + * + * @return the meta object for enum 'Port Specification Kind'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.PortSpecificationKind + * @generated + */ + EEnum getPortSpecificationKind(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerKind Client Server Kind}'. + * + * + * @return the meta object for enum 'Client Server Kind'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerKind + * @generated + */ + EEnum getClientServerKind(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.DataPoolOrderingKind Data Pool Ordering Kind}'. + * + * + * @return the meta object for enum 'Data Pool Ordering Kind'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.DataPoolOrderingKind + * @generated + */ + EEnum getDataPoolOrderingKind(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + GCMFactory getGCMFactory(); + + /** + * + * 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.MARTE_DesignModel.GCM.impl.FlowPropertyImpl Flow Property}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.FlowPropertyImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMPackageImpl#getFlowProperty() + * @generated + */ + EClass FLOW_PROPERTY = eINSTANCE.getFlowProperty(); + + /** + * The meta object literal for the 'Direction' attribute feature. + * + * + * @generated + */ + EAttribute FLOW_PROPERTY__DIRECTION = eINSTANCE.getFlowProperty_Direction(); + + /** + * The meta object literal for the 'Base Property' reference feature. + * + * + * @generated + */ + EReference FLOW_PROPERTY__BASE_PROPERTY = eINSTANCE.getFlowProperty_Base_Property(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.FlowPortImpl Flow Port}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.FlowPortImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMPackageImpl#getFlowPort() + * @generated + */ + EClass FLOW_PORT = eINSTANCE.getFlowPort(); + + /** + * The meta object literal for the 'Is Atomic' attribute feature. + * + * + * @generated + */ + EAttribute FLOW_PORT__IS_ATOMIC = eINSTANCE.getFlowPort_IsAtomic(); + + /** + * The meta object literal for the 'Direction' attribute feature. + * + * + * @generated + */ + EAttribute FLOW_PORT__DIRECTION = eINSTANCE.getFlowPort_Direction(); + + /** + * The meta object literal for the 'Base Port' reference feature. + * + * + * @generated + */ + EReference FLOW_PORT__BASE_PORT = eINSTANCE.getFlowPort_Base_Port(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.ClientServerPortImpl Client Server Port}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.ClientServerPortImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMPackageImpl#getClientServerPort() + * @generated + */ + EClass CLIENT_SERVER_PORT = eINSTANCE.getClientServerPort(); + + /** + * The meta object literal for the 'Base Port' reference feature. + * + * + * @generated + */ + EReference CLIENT_SERVER_PORT__BASE_PORT = eINSTANCE.getClientServerPort_Base_Port(); + + /** + * The meta object literal for the 'Specification Kind' attribute feature. + * + * + * @generated + */ + EAttribute CLIENT_SERVER_PORT__SPECIFICATION_KIND = eINSTANCE.getClientServerPort_SpecificationKind(); + + /** + * The meta object literal for the 'Kind' attribute feature. + * + * + * @generated + */ + EAttribute CLIENT_SERVER_PORT__KIND = eINSTANCE.getClientServerPort_Kind(); + + /** + * The meta object literal for the 'Prov Interface' reference list feature. + * + * + * @generated + */ + EReference CLIENT_SERVER_PORT__PROV_INTERFACE = eINSTANCE.getClientServerPort_ProvInterface(); + + /** + * The meta object literal for the 'Req Interface' reference list feature. + * + * + * @generated + */ + EReference CLIENT_SERVER_PORT__REQ_INTERFACE = eINSTANCE.getClientServerPort_ReqInterface(); + + /** + * The meta object literal for the 'Features Spec' reference feature. + * + * + * @generated + */ + EReference CLIENT_SERVER_PORT__FEATURES_SPEC = eINSTANCE.getClientServerPort_FeaturesSpec(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.ClientServerSpecificationImpl Client Server Specification}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.ClientServerSpecificationImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMPackageImpl#getClientServerSpecification() + * @generated + */ + EClass CLIENT_SERVER_SPECIFICATION = eINSTANCE.getClientServerSpecification(); + + /** + * The meta object literal for the 'Base Interface' reference feature. + * + * + * @generated + */ + EReference CLIENT_SERVER_SPECIFICATION__BASE_INTERFACE = eINSTANCE.getClientServerSpecification_Base_Interface(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.FlowSpecificationImpl Flow Specification}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.FlowSpecificationImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMPackageImpl#getFlowSpecification() + * @generated + */ + EClass FLOW_SPECIFICATION = eINSTANCE.getFlowSpecification(); + + /** + * The meta object literal for the 'Base Interface' reference feature. + * + * + * @generated + */ + EReference FLOW_SPECIFICATION__BASE_INTERFACE = eINSTANCE.getFlowSpecification_Base_Interface(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.ClientServerFeatureImpl Client Server Feature}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.ClientServerFeatureImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMPackageImpl#getClientServerFeature() + * @generated + */ + EClass CLIENT_SERVER_FEATURE = eINSTANCE.getClientServerFeature(); + + /** + * The meta object literal for the 'Kind' attribute feature. + * + * + * @generated + */ + EAttribute CLIENT_SERVER_FEATURE__KIND = eINSTANCE.getClientServerFeature_Kind(); + + /** + * The meta object literal for the 'Base Behavioral Feature' reference feature. + * + * + * @generated + */ + EReference CLIENT_SERVER_FEATURE__BASE_BEHAVIORAL_FEATURE = eINSTANCE.getClientServerFeature_Base_BehavioralFeature(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMTriggerImpl Trigger}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMTriggerImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMPackageImpl#getGCMTrigger() + * @generated + */ + EClass GCM_TRIGGER = eINSTANCE.getGCMTrigger(); + + /** + * The meta object literal for the 'Base Trigger' reference feature. + * + * + * @generated + */ + EReference GCM_TRIGGER__BASE_TRIGGER = eINSTANCE.getGCMTrigger_Base_Trigger(); + + /** + * The meta object literal for the 'Feature' reference feature. + * + * + * @generated + */ + EReference GCM_TRIGGER__FEATURE = eINSTANCE.getGCMTrigger_Feature(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMInvocationActionImpl Invocation Action}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMInvocationActionImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMPackageImpl#getGCMInvocationAction() + * @generated + */ + EClass GCM_INVOCATION_ACTION = eINSTANCE.getGCMInvocationAction(); + + /** + * The meta object literal for the 'Base Invocation Action' reference feature. + * + * + * @generated + */ + EReference GCM_INVOCATION_ACTION__BASE_INVOCATION_ACTION = eINSTANCE.getGCMInvocationAction_Base_InvocationAction(); + + /** + * The meta object literal for the 'On Feature' reference feature. + * + * + * @generated + */ + EReference GCM_INVOCATION_ACTION__ON_FEATURE = eINSTANCE.getGCMInvocationAction_OnFeature(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.DataEventImpl Data Event}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.DataEventImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMPackageImpl#getDataEvent() + * @generated + */ + EClass DATA_EVENT = eINSTANCE.getDataEvent(); + + /** + * The meta object literal for the 'Base Any Receive Event' reference feature. + * + * + * @generated + */ + EReference DATA_EVENT__BASE_ANY_RECEIVE_EVENT = eINSTANCE.getDataEvent_Base_AnyReceiveEvent(); + + /** + * The meta object literal for the 'Classifier' reference feature. + * + * + * @generated + */ + EReference DATA_EVENT__CLASSIFIER = eINSTANCE.getDataEvent_Classifier(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.DataPoolImpl Data Pool}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.DataPoolImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMPackageImpl#getDataPool() + * @generated + */ + EClass DATA_POOL = eINSTANCE.getDataPool(); + + /** + * The meta object literal for the 'Ordering' attribute feature. + * + * + * @generated + */ + EAttribute DATA_POOL__ORDERING = eINSTANCE.getDataPool_Ordering(); + + /** + * The meta object literal for the 'Base Property' reference feature. + * + * + * @generated + */ + EReference DATA_POOL__BASE_PROPERTY = eINSTANCE.getDataPool_Base_Property(); + + /** + * The meta object literal for the 'Insertion' reference feature. + * + * + * @generated + */ + EReference DATA_POOL__INSERTION = eINSTANCE.getDataPool_Insertion(); + + /** + * The meta object literal for the 'Selection' reference feature. + * + * + * @generated + */ + EReference DATA_POOL__SELECTION = eINSTANCE.getDataPool_Selection(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMInvocatingBehaviorImpl Invocating Behavior}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMInvocatingBehaviorImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMPackageImpl#getGCMInvocatingBehavior() + * @generated + */ + EClass GCM_INVOCATING_BEHAVIOR = eINSTANCE.getGCMInvocatingBehavior(); + + /** + * The meta object literal for the 'Base Behavior' reference feature. + * + * + * @generated + */ + EReference GCM_INVOCATING_BEHAVIOR__BASE_BEHAVIOR = eINSTANCE.getGCMInvocatingBehavior_Base_Behavior(); + + /** + * The meta object literal for the 'On Ports' reference list feature. + * + * + * @generated + */ + EReference GCM_INVOCATING_BEHAVIOR__ON_PORTS = eINSTANCE.getGCMInvocatingBehavior_OnPorts(); + + /** + * The meta object literal for the 'On Features' reference list feature. + * + * + * @generated + */ + EReference GCM_INVOCATING_BEHAVIOR__ON_FEATURES = eINSTANCE.getGCMInvocatingBehavior_OnFeatures(); + + /** + * The meta object literal for the 'Invocations' reference list feature. + * + * + * @generated + */ + EReference GCM_INVOCATING_BEHAVIOR__INVOCATIONS = eINSTANCE.getGCMInvocatingBehavior_Invocations(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowDirectionKind Flow Direction Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowDirectionKind + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMPackageImpl#getFlowDirectionKind() + * @generated + */ + EEnum FLOW_DIRECTION_KIND = eINSTANCE.getFlowDirectionKind(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.PortSpecificationKind Port Specification Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.PortSpecificationKind + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMPackageImpl#getPortSpecificationKind() + * @generated + */ + EEnum PORT_SPECIFICATION_KIND = eINSTANCE.getPortSpecificationKind(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerKind Client Server Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerKind + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMPackageImpl#getClientServerKind() + * @generated + */ + EEnum CLIENT_SERVER_KIND = eINSTANCE.getClientServerKind(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.DataPoolOrderingKind Data Pool Ordering Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.DataPoolOrderingKind + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMPackageImpl#getDataPoolOrderingKind() + * @generated + */ + EEnum DATA_POOL_ORDERING_KIND = eINSTANCE.getDataPoolOrderingKind(); + + } + +} //GCMPackage diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/GCMTrigger.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/GCMTrigger.java new file mode 100644 index 00000000000..880a65b3acb --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/GCMTrigger.java @@ -0,0 +1,91 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.GCM; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.uml2.uml.Feature; +import org.eclipse.uml2.uml.Trigger; + +/** + * + * A representation of the model object 'Trigger'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMTrigger#getBase_Trigger Base Trigger}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMTrigger#getFeature Feature}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage#getGCMTrigger() + * @model + * @generated + */ +public interface GCMTrigger extends EObject { + /** + * Returns the value of the 'Base Trigger' reference. + * + *

+ * If the meaning of the 'Base Trigger' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Trigger' reference. + * @see #setBase_Trigger(Trigger) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage#getGCMTrigger_Base_Trigger() + * @model required="true" ordered="false" + * @generated + */ + Trigger getBase_Trigger(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMTrigger#getBase_Trigger Base Trigger}' reference. + * + * + * @param value the new value of the 'Base Trigger' reference. + * @see #getBase_Trigger() + * @generated + */ + void setBase_Trigger(Trigger value); + + /** + * Returns the value of the 'Feature' reference. + * + *

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

+ * + * @return the value of the 'Feature' reference. + * @see #setFeature(Feature) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage#getGCMTrigger_Feature() + * @model required="true" ordered="false" + * @generated + */ + Feature getFeature(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMTrigger#getFeature Feature}' reference. + * + * + * @param value the new value of the 'Feature' reference. + * @see #getFeature() + * @generated + */ + void setFeature(Feature value); + +} // GCMTrigger diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/PortSpecificationKind.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/PortSpecificationKind.java new file mode 100644 index 00000000000..fd8d2326f91 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/PortSpecificationKind.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.MARTE_DesignModel.GCM; + +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 'Port Specification Kind', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage#getPortSpecificationKind() + * @model + * @generated + */ +public enum PortSpecificationKind implements Enumerator { + /** + * The 'Atomic' literal object. + * + * + * @see #ATOMIC_VALUE + * @generated + * @ordered + */ + ATOMIC(0, "atomic", "atomic"), + + /** + * The 'Interface Based' literal object. + * + * + * @see #INTERFACE_BASED_VALUE + * @generated + * @ordered + */ + INTERFACE_BASED(1, "interfaceBased", "interfaceBased"), + + /** + * The 'Feature Based' literal object. + * + * + * @see #FEATURE_BASED_VALUE + * @generated + * @ordered + */ + FEATURE_BASED(2, "featureBased", "featureBased"); + + /** + * The 'Atomic' literal value. + * + *

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

+ * + * @see #ATOMIC + * @model name="atomic" + * @generated + * @ordered + */ + public static final int ATOMIC_VALUE = 0; + + /** + * The 'Interface Based' literal value. + * + *

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

+ * + * @see #INTERFACE_BASED + * @model name="interfaceBased" + * @generated + * @ordered + */ + public static final int INTERFACE_BASED_VALUE = 1; + + /** + * The 'Feature Based' literal value. + * + *

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

+ * + * @see #FEATURE_BASED + * @model name="featureBased" + * @generated + * @ordered + */ + public static final int FEATURE_BASED_VALUE = 2; + + /** + * An array of all the 'Port Specification Kind' enumerators. + * + * + * @generated + */ + private static final PortSpecificationKind[] VALUES_ARRAY = + new PortSpecificationKind[] { + ATOMIC, + INTERFACE_BASED, + FEATURE_BASED, + }; + + /** + * A public read-only list of all the 'Port Specification Kind' enumerators. + * + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Port Specification Kind' literal with the specified literal value. + * + * + * @generated + */ + public static PortSpecificationKind get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + PortSpecificationKind result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Port Specification Kind' literal with the specified name. + * + * + * @generated + */ + public static PortSpecificationKind getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + PortSpecificationKind result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Port Specification Kind' literal with the specified integer value. + * + * + * @generated + */ + public static PortSpecificationKind get(int value) { + switch (value) { + case ATOMIC_VALUE: return ATOMIC; + case INTERFACE_BASED_VALUE: return INTERFACE_BASED; + case FEATURE_BASED_VALUE: return FEATURE_BASED; + } + 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 PortSpecificationKind(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; + } + +} //PortSpecificationKind diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/ClientServerFeatureImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/ClientServerFeatureImpl.java new file mode 100644 index 00000000000..17065fedc60 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/ClientServerFeatureImpl.java @@ -0,0 +1,238 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.GCM.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerFeature; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerKind; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage; + +import org.eclipse.uml2.uml.BehavioralFeature; + +/** + * + * An implementation of the model object 'Client Server Feature'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.ClientServerFeatureImpl#getKind Kind}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.ClientServerFeatureImpl#getBase_BehavioralFeature Base Behavioral Feature}
  • + *
+ *

+ * + * @generated + */ +public class ClientServerFeatureImpl extends EObjectImpl implements ClientServerFeature { + /** + * The default value of the '{@link #getKind() Kind}' attribute. + * + * + * @see #getKind() + * @generated + * @ordered + */ + protected static final ClientServerKind KIND_EDEFAULT = ClientServerKind.PROREQ; + + /** + * The cached value of the '{@link #getKind() Kind}' attribute. + * + * + * @see #getKind() + * @generated + * @ordered + */ + protected ClientServerKind kind = KIND_EDEFAULT; + + /** + * The cached value of the '{@link #getBase_BehavioralFeature() Base Behavioral Feature}' reference. + * + * + * @see #getBase_BehavioralFeature() + * @generated + * @ordered + */ + protected BehavioralFeature base_BehavioralFeature; + + /** + * + * + * @generated + */ + protected ClientServerFeatureImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return GCMPackage.Literals.CLIENT_SERVER_FEATURE; + } + + /** + * + * + * @generated + */ + public ClientServerKind getKind() { + return kind; + } + + /** + * + * + * @generated + */ + public void setKind(ClientServerKind newKind) { + ClientServerKind oldKind = kind; + kind = newKind == null ? KIND_EDEFAULT : newKind; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GCMPackage.CLIENT_SERVER_FEATURE__KIND, oldKind, kind)); + } + + /** + * + * + * @generated + */ + public BehavioralFeature getBase_BehavioralFeature() { + if (base_BehavioralFeature != null && base_BehavioralFeature.eIsProxy()) { + InternalEObject oldBase_BehavioralFeature = (InternalEObject)base_BehavioralFeature; + base_BehavioralFeature = (BehavioralFeature)eResolveProxy(oldBase_BehavioralFeature); + if (base_BehavioralFeature != oldBase_BehavioralFeature) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GCMPackage.CLIENT_SERVER_FEATURE__BASE_BEHAVIORAL_FEATURE, oldBase_BehavioralFeature, base_BehavioralFeature)); + } + } + return base_BehavioralFeature; + } + + /** + * + * + * @generated + */ + public BehavioralFeature basicGetBase_BehavioralFeature() { + return base_BehavioralFeature; + } + + /** + * + * + * @generated + */ + public void setBase_BehavioralFeature(BehavioralFeature newBase_BehavioralFeature) { + BehavioralFeature oldBase_BehavioralFeature = base_BehavioralFeature; + base_BehavioralFeature = newBase_BehavioralFeature; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GCMPackage.CLIENT_SERVER_FEATURE__BASE_BEHAVIORAL_FEATURE, oldBase_BehavioralFeature, base_BehavioralFeature)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case GCMPackage.CLIENT_SERVER_FEATURE__KIND: + return getKind(); + case GCMPackage.CLIENT_SERVER_FEATURE__BASE_BEHAVIORAL_FEATURE: + if (resolve) return getBase_BehavioralFeature(); + return basicGetBase_BehavioralFeature(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case GCMPackage.CLIENT_SERVER_FEATURE__KIND: + setKind((ClientServerKind)newValue); + return; + case GCMPackage.CLIENT_SERVER_FEATURE__BASE_BEHAVIORAL_FEATURE: + setBase_BehavioralFeature((BehavioralFeature)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case GCMPackage.CLIENT_SERVER_FEATURE__KIND: + setKind(KIND_EDEFAULT); + return; + case GCMPackage.CLIENT_SERVER_FEATURE__BASE_BEHAVIORAL_FEATURE: + setBase_BehavioralFeature((BehavioralFeature)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case GCMPackage.CLIENT_SERVER_FEATURE__KIND: + return kind != KIND_EDEFAULT; + case GCMPackage.CLIENT_SERVER_FEATURE__BASE_BEHAVIORAL_FEATURE: + return base_BehavioralFeature != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (kind: "); + result.append(kind); + result.append(')'); + return result.toString(); + } + +} //ClientServerFeatureImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/ClientServerPortImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/ClientServerPortImpl.java new file mode 100644 index 00000000000..8eaa24a6d48 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/ClientServerPortImpl.java @@ -0,0 +1,512 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.GCM.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectResolvingEList; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerKind; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerPort; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerSpecification; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowDirectionKind; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.PortSpecificationKind; +import org.eclipse.papyrus.MARTE.utils.MarteResource; + +import org.eclipse.uml2.uml.Image; +import org.eclipse.uml2.uml.Interface; +import org.eclipse.uml2.uml.Port; +import org.eclipse.uml2.uml.Signal; +import org.eclipse.uml2.uml.Stereotype; + +/** + * + * An implementation of the model object 'Client Server Port'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.ClientServerPortImpl#getBase_Port Base Port}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.ClientServerPortImpl#getSpecificationKind Specification Kind}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.ClientServerPortImpl#getKind Kind}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.ClientServerPortImpl#getProvInterface Prov Interface}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.ClientServerPortImpl#getReqInterface Req Interface}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.ClientServerPortImpl#getFeaturesSpec Features Spec}
  • + *
+ *

+ * + * @generated + */ +public class ClientServerPortImpl extends EObjectImpl implements ClientServerPort { + /** + * The cached value of the '{@link #getBase_Port() Base Port}' reference. + * + * + * @see #getBase_Port() + * @generated + * @ordered + */ + protected Port base_Port; + + /** + * The default value of the '{@link #getSpecificationKind() Specification Kind}' attribute. + * + * + * @see #getSpecificationKind() + * @generated + * @ordered + */ + protected static final PortSpecificationKind SPECIFICATION_KIND_EDEFAULT = PortSpecificationKind.INTERFACE_BASED; + + /** + * The default value of the '{@link #getKind() Kind}' attribute. + * + * + * @see #getKind() + * @generated + * @ordered + */ + protected static final ClientServerKind KIND_EDEFAULT = ClientServerKind.PROREQ; + + /** + * The cached value of the '{@link #getKind() Kind}' attribute. + * + * + * @see #getKind() + * @generated + * @ordered + */ + protected ClientServerKind kind = KIND_EDEFAULT; + + /** + * The cached value of the '{@link #getProvInterface() Prov Interface}' reference list. + * + * + * @see #getProvInterface() + * @generated + * @ordered + */ + protected EList provInterface; + + /** + * The cached value of the '{@link #getReqInterface() Req Interface}' reference list. + * + * + * @see #getReqInterface() + * @generated + * @ordered + */ + protected EList reqInterface; + + /** + * The cached value of the '{@link #getFeaturesSpec() Features Spec}' reference. + * + * + * @see #getFeaturesSpec() + * @generated + * @ordered + */ + protected ClientServerSpecification featuresSpec; + + /** + * + * + * @generated + */ + protected ClientServerPortImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return GCMPackage.Literals.CLIENT_SERVER_PORT; + } + + /** + * + * + * @generated + */ + public Port getBase_Port() { + if (base_Port != null && base_Port.eIsProxy()) { + InternalEObject oldBase_Port = (InternalEObject)base_Port; + base_Port = (Port)eResolveProxy(oldBase_Port); + if (base_Port != oldBase_Port) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GCMPackage.CLIENT_SERVER_PORT__BASE_PORT, oldBase_Port, base_Port)); + } + } + return base_Port; + } + + /** + * + * + * @generated + */ + public Port basicGetBase_Port() { + return base_Port; + } + + /** + * + * + * @generated + */ + public void setBase_Port(Port newBase_Port) { + Port oldBase_Port = base_Port; + base_Port = newBase_Port; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GCMPackage.CLIENT_SERVER_PORT__BASE_PORT, oldBase_Port, base_Port)); + } + + /** + * + * + * @generated NOT + */ + public PortSpecificationKind getSpecificationKind() { + // TODO: implement this method to return the 'Specification Kind' attribute + // Ensure that you remove @generated or mark it @generated NOT + // throw new UnsupportedOperationException(); + + PortSpecificationKind portSpecKind = SPECIFICATION_KIND_EDEFAULT; + if(getBase_Port() != null) { + if(getBase_Port().getType() != null && getBase_Port().getType() instanceof Signal) { + if(getProvInterface() != null) + getProvInterface().clear(); + if(getReqInterface() != null) + getReqInterface().clear(); + if(getFeaturesSpec() != null) + setFeaturesSpec(null); + portSpecKind = PortSpecificationKind.ATOMIC; + } + else if(getBase_Port().getType() == null) { + if (getFeaturesSpec() != null) { + /* + if(getProvInterface() != null) + + getProvInterface().clear(); + if(getReqInterface() != null) + getReqInterface().clear(); + */ + portSpecKind = PortSpecificationKind.FEATURE_BASED; + } + else if(getProvInterface() != null || getReqInterface() != null ) { + if(getFeaturesSpec() != null) + setFeaturesSpec(null); + portSpecKind = PortSpecificationKind.INTERFACE_BASED; + } + } + else + System.err.println("Error: An Atomic ClientServerPort must be typed with a Signal!"); + } + + return portSpecKind; + + } + + /** + * + * + * @generated + */ + public void setSpecificationKind(PortSpecificationKind newSpecificationKind) { + // TODO: implement this method to set the 'Specification Kind' attribute + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public ClientServerKind getKind() { + return kind; + } + + /** + * + * + * @generated + */ + public void setKind(ClientServerKind newKind) { + ClientServerKind oldKind = kind; + kind = newKind == null ? KIND_EDEFAULT : newKind; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GCMPackage.CLIENT_SERVER_PORT__KIND, oldKind, kind)); + } + + /** + * + * + * @generated + */ + public EList getProvInterface() { + if (provInterface == null) { + provInterface = new EObjectResolvingEList(Interface.class, this, GCMPackage.CLIENT_SERVER_PORT__PROV_INTERFACE); + } + return provInterface; + } + + /** + * + * + * @generated + */ + public EList getReqInterface() { + if (reqInterface == null) { + reqInterface = new EObjectResolvingEList(Interface.class, this, GCMPackage.CLIENT_SERVER_PORT__REQ_INTERFACE); + } + return reqInterface; + } + + /** + * + * + * @generated + */ + public ClientServerSpecification getFeaturesSpec() { + if (featuresSpec != null && featuresSpec.eIsProxy()) { + InternalEObject oldFeaturesSpec = (InternalEObject)featuresSpec; + featuresSpec = (ClientServerSpecification)eResolveProxy(oldFeaturesSpec); + if (featuresSpec != oldFeaturesSpec) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GCMPackage.CLIENT_SERVER_PORT__FEATURES_SPEC, oldFeaturesSpec, featuresSpec)); + } + } + return featuresSpec; + } + + /** + * + * + * @generated + */ + public ClientServerSpecification basicGetFeaturesSpec() { + return featuresSpec; + } + + /** + * + * + * @generated + */ + public void setFeaturesSpec(ClientServerSpecification newFeaturesSpec) { + ClientServerSpecification oldFeaturesSpec = featuresSpec; + featuresSpec = newFeaturesSpec; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GCMPackage.CLIENT_SERVER_PORT__FEATURES_SPEC, oldFeaturesSpec, featuresSpec)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case GCMPackage.CLIENT_SERVER_PORT__BASE_PORT: + if (resolve) return getBase_Port(); + return basicGetBase_Port(); + case GCMPackage.CLIENT_SERVER_PORT__SPECIFICATION_KIND: + return getSpecificationKind(); + case GCMPackage.CLIENT_SERVER_PORT__KIND: + return getKind(); + case GCMPackage.CLIENT_SERVER_PORT__PROV_INTERFACE: + return getProvInterface(); + case GCMPackage.CLIENT_SERVER_PORT__REQ_INTERFACE: + return getReqInterface(); + case GCMPackage.CLIENT_SERVER_PORT__FEATURES_SPEC: + if (resolve) return getFeaturesSpec(); + return basicGetFeaturesSpec(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case GCMPackage.CLIENT_SERVER_PORT__BASE_PORT: + setBase_Port((Port)newValue); + return; + case GCMPackage.CLIENT_SERVER_PORT__SPECIFICATION_KIND: + setSpecificationKind((PortSpecificationKind)newValue); + return; + case GCMPackage.CLIENT_SERVER_PORT__KIND: + setKind((ClientServerKind)newValue); + return; + case GCMPackage.CLIENT_SERVER_PORT__PROV_INTERFACE: + getProvInterface().clear(); + getProvInterface().addAll((Collection)newValue); + return; + case GCMPackage.CLIENT_SERVER_PORT__REQ_INTERFACE: + getReqInterface().clear(); + getReqInterface().addAll((Collection)newValue); + return; + case GCMPackage.CLIENT_SERVER_PORT__FEATURES_SPEC: + setFeaturesSpec((ClientServerSpecification)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case GCMPackage.CLIENT_SERVER_PORT__BASE_PORT: + setBase_Port((Port)null); + return; + case GCMPackage.CLIENT_SERVER_PORT__SPECIFICATION_KIND: + setSpecificationKind(SPECIFICATION_KIND_EDEFAULT); + return; + case GCMPackage.CLIENT_SERVER_PORT__KIND: + setKind(KIND_EDEFAULT); + return; + case GCMPackage.CLIENT_SERVER_PORT__PROV_INTERFACE: + getProvInterface().clear(); + return; + case GCMPackage.CLIENT_SERVER_PORT__REQ_INTERFACE: + getReqInterface().clear(); + return; + case GCMPackage.CLIENT_SERVER_PORT__FEATURES_SPEC: + setFeaturesSpec((ClientServerSpecification)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case GCMPackage.CLIENT_SERVER_PORT__BASE_PORT: + return base_Port != null; + case GCMPackage.CLIENT_SERVER_PORT__SPECIFICATION_KIND: + return getSpecificationKind() != SPECIFICATION_KIND_EDEFAULT; + case GCMPackage.CLIENT_SERVER_PORT__KIND: + return kind != KIND_EDEFAULT; + case GCMPackage.CLIENT_SERVER_PORT__PROV_INTERFACE: + return provInterface != null && !provInterface.isEmpty(); + case GCMPackage.CLIENT_SERVER_PORT__REQ_INTERFACE: + return reqInterface != null && !reqInterface.isEmpty(); + case GCMPackage.CLIENT_SERVER_PORT__FEATURES_SPEC: + return featuresSpec != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (kind: "); + result.append(kind); + result.append(')'); + return result.toString(); + } + + /** + * + * @return + * @generated NOT + */ + public Image getIcon() { + + Image ImageNotFound = null; + + if(getBase_Port() != null) { + Stereotype st = getBase_Port().getAppliedStereotype(MarteResource.CLIENT_SERVER_PORT_ID); + + Image defaultImage = st.getIcons().get(2); + Image image = null; + + if(getSpecificationKind() == PortSpecificationKind.INTERFACE_BASED) { + if(!getReqInterface().isEmpty() && getProvInterface().isEmpty()) { + image = st.getIcons().get(0); + } else if(!getProvInterface().isEmpty() && getReqInterface().isEmpty() ) { + image = st.getIcons().get(1); + } else { + // Default proreq + image = defaultImage; + } + } + + else if (getSpecificationKind() == PortSpecificationKind.FEATURE_BASED){ + image = defaultImage; + } + + else if(getSpecificationKind() == PortSpecificationKind.ATOMIC) { + if(getKind() == ClientServerKind.PROVIDED) { + image = st.getIcons().get(1); + } + + else if(getKind() == ClientServerKind.REQUIRED) { + image = st.getIcons().get(0); + } + + else { + // Default proreq + image = defaultImage; + } + } + + return image; + + } else { + return ImageNotFound; + } + } + + +} //ClientServerPortImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/ClientServerSpecificationImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/ClientServerSpecificationImpl.java new file mode 100644 index 00000000000..3393a250245 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/ClientServerSpecificationImpl.java @@ -0,0 +1,169 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.GCM.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerSpecification; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage; + +import org.eclipse.uml2.uml.Interface; + +/** + * + * An implementation of the model object 'Client Server Specification'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.ClientServerSpecificationImpl#getBase_Interface Base Interface}
  • + *
+ *

+ * + * @generated + */ +public class ClientServerSpecificationImpl extends EObjectImpl implements ClientServerSpecification { + /** + * The cached value of the '{@link #getBase_Interface() Base Interface}' reference. + * + * + * @see #getBase_Interface() + * @generated + * @ordered + */ + protected Interface base_Interface; + + /** + * + * + * @generated + */ + protected ClientServerSpecificationImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return GCMPackage.Literals.CLIENT_SERVER_SPECIFICATION; + } + + /** + * + * + * @generated + */ + public Interface getBase_Interface() { + if (base_Interface != null && base_Interface.eIsProxy()) { + InternalEObject oldBase_Interface = (InternalEObject)base_Interface; + base_Interface = (Interface)eResolveProxy(oldBase_Interface); + if (base_Interface != oldBase_Interface) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GCMPackage.CLIENT_SERVER_SPECIFICATION__BASE_INTERFACE, oldBase_Interface, base_Interface)); + } + } + return base_Interface; + } + + /** + * + * + * @generated + */ + public Interface basicGetBase_Interface() { + return base_Interface; + } + + /** + * + * + * @generated + */ + public void setBase_Interface(Interface newBase_Interface) { + Interface oldBase_Interface = base_Interface; + base_Interface = newBase_Interface; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GCMPackage.CLIENT_SERVER_SPECIFICATION__BASE_INTERFACE, oldBase_Interface, base_Interface)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case GCMPackage.CLIENT_SERVER_SPECIFICATION__BASE_INTERFACE: + if (resolve) return getBase_Interface(); + return basicGetBase_Interface(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case GCMPackage.CLIENT_SERVER_SPECIFICATION__BASE_INTERFACE: + setBase_Interface((Interface)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case GCMPackage.CLIENT_SERVER_SPECIFICATION__BASE_INTERFACE: + setBase_Interface((Interface)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case GCMPackage.CLIENT_SERVER_SPECIFICATION__BASE_INTERFACE: + return base_Interface != null; + } + return super.eIsSet(featureID); + } + +} //ClientServerSpecificationImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/DataEventImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/DataEventImpl.java new file mode 100644 index 00000000000..54a937b6dbb --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/DataEventImpl.java @@ -0,0 +1,230 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.GCM.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.DataEvent; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage; + +import org.eclipse.uml2.uml.AnyReceiveEvent; +import org.eclipse.uml2.uml.Classifier; + +/** + * + * An implementation of the model object 'Data Event'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.DataEventImpl#getBase_AnyReceiveEvent Base Any Receive Event}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.DataEventImpl#getClassifier Classifier}
  • + *
+ *

+ * + * @generated + */ +public class DataEventImpl extends EObjectImpl implements DataEvent { + /** + * The cached value of the '{@link #getBase_AnyReceiveEvent() Base Any Receive Event}' reference. + * + * + * @see #getBase_AnyReceiveEvent() + * @generated + * @ordered + */ + protected AnyReceiveEvent base_AnyReceiveEvent; + + /** + * The cached value of the '{@link #getClassifier() Classifier}' reference. + * + * + * @see #getClassifier() + * @generated + * @ordered + */ + protected Classifier classifier; + + /** + * + * + * @generated + */ + protected DataEventImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return GCMPackage.Literals.DATA_EVENT; + } + + /** + * + * + * @generated + */ + public AnyReceiveEvent getBase_AnyReceiveEvent() { + if (base_AnyReceiveEvent != null && base_AnyReceiveEvent.eIsProxy()) { + InternalEObject oldBase_AnyReceiveEvent = (InternalEObject)base_AnyReceiveEvent; + base_AnyReceiveEvent = (AnyReceiveEvent)eResolveProxy(oldBase_AnyReceiveEvent); + if (base_AnyReceiveEvent != oldBase_AnyReceiveEvent) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GCMPackage.DATA_EVENT__BASE_ANY_RECEIVE_EVENT, oldBase_AnyReceiveEvent, base_AnyReceiveEvent)); + } + } + return base_AnyReceiveEvent; + } + + /** + * + * + * @generated + */ + public AnyReceiveEvent basicGetBase_AnyReceiveEvent() { + return base_AnyReceiveEvent; + } + + /** + * + * + * @generated + */ + public void setBase_AnyReceiveEvent(AnyReceiveEvent newBase_AnyReceiveEvent) { + AnyReceiveEvent oldBase_AnyReceiveEvent = base_AnyReceiveEvent; + base_AnyReceiveEvent = newBase_AnyReceiveEvent; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GCMPackage.DATA_EVENT__BASE_ANY_RECEIVE_EVENT, oldBase_AnyReceiveEvent, base_AnyReceiveEvent)); + } + + /** + * + * + * @generated + */ + public Classifier getClassifier() { + if (classifier != null && classifier.eIsProxy()) { + InternalEObject oldClassifier = (InternalEObject)classifier; + classifier = (Classifier)eResolveProxy(oldClassifier); + if (classifier != oldClassifier) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GCMPackage.DATA_EVENT__CLASSIFIER, oldClassifier, classifier)); + } + } + return classifier; + } + + /** + * + * + * @generated + */ + public Classifier basicGetClassifier() { + return classifier; + } + + /** + * + * + * @generated + */ + public void setClassifier(Classifier newClassifier) { + Classifier oldClassifier = classifier; + classifier = newClassifier; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GCMPackage.DATA_EVENT__CLASSIFIER, oldClassifier, classifier)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case GCMPackage.DATA_EVENT__BASE_ANY_RECEIVE_EVENT: + if (resolve) return getBase_AnyReceiveEvent(); + return basicGetBase_AnyReceiveEvent(); + case GCMPackage.DATA_EVENT__CLASSIFIER: + if (resolve) return getClassifier(); + return basicGetClassifier(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case GCMPackage.DATA_EVENT__BASE_ANY_RECEIVE_EVENT: + setBase_AnyReceiveEvent((AnyReceiveEvent)newValue); + return; + case GCMPackage.DATA_EVENT__CLASSIFIER: + setClassifier((Classifier)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case GCMPackage.DATA_EVENT__BASE_ANY_RECEIVE_EVENT: + setBase_AnyReceiveEvent((AnyReceiveEvent)null); + return; + case GCMPackage.DATA_EVENT__CLASSIFIER: + setClassifier((Classifier)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case GCMPackage.DATA_EVENT__BASE_ANY_RECEIVE_EVENT: + return base_AnyReceiveEvent != null; + case GCMPackage.DATA_EVENT__CLASSIFIER: + return classifier != null; + } + return super.eIsSet(featureID); + } + +} //DataEventImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/DataPoolImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/DataPoolImpl.java new file mode 100644 index 00000000000..c7a1ce7607e --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/DataPoolImpl.java @@ -0,0 +1,359 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.GCM.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.DataPool; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.DataPoolOrderingKind; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage; + +import org.eclipse.uml2.uml.Behavior; +import org.eclipse.uml2.uml.Property; + +/** + * + * An implementation of the model object 'Data Pool'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.DataPoolImpl#getOrdering Ordering}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.DataPoolImpl#getBase_Property Base Property}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.DataPoolImpl#getInsertion Insertion}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.DataPoolImpl#getSelection Selection}
  • + *
+ *

+ * + * @generated + */ +public class DataPoolImpl extends EObjectImpl implements DataPool { + /** + * The default value of the '{@link #getOrdering() Ordering}' attribute. + * + * + * @see #getOrdering() + * @generated + * @ordered + */ + protected static final DataPoolOrderingKind ORDERING_EDEFAULT = DataPoolOrderingKind.FIFO; + + /** + * The cached value of the '{@link #getOrdering() Ordering}' attribute. + * + * + * @see #getOrdering() + * @generated + * @ordered + */ + protected DataPoolOrderingKind ordering = ORDERING_EDEFAULT; + + /** + * The cached value of the '{@link #getBase_Property() Base Property}' reference. + * + * + * @see #getBase_Property() + * @generated + * @ordered + */ + protected Property base_Property; + + /** + * The cached value of the '{@link #getInsertion() Insertion}' reference. + * + * + * @see #getInsertion() + * @generated + * @ordered + */ + protected Behavior insertion; + + /** + * The cached value of the '{@link #getSelection() Selection}' reference. + * + * + * @see #getSelection() + * @generated + * @ordered + */ + protected Behavior selection; + + /** + * + * + * @generated + */ + protected DataPoolImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return GCMPackage.Literals.DATA_POOL; + } + + /** + * + * + * @generated + */ + public DataPoolOrderingKind getOrdering() { + return ordering; + } + + /** + * + * + * @generated + */ + public void setOrdering(DataPoolOrderingKind newOrdering) { + DataPoolOrderingKind oldOrdering = ordering; + ordering = newOrdering == null ? ORDERING_EDEFAULT : newOrdering; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GCMPackage.DATA_POOL__ORDERING, oldOrdering, ordering)); + } + + /** + * + * + * @generated + */ + public Property getBase_Property() { + if (base_Property != null && base_Property.eIsProxy()) { + InternalEObject oldBase_Property = (InternalEObject)base_Property; + base_Property = (Property)eResolveProxy(oldBase_Property); + if (base_Property != oldBase_Property) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GCMPackage.DATA_POOL__BASE_PROPERTY, oldBase_Property, base_Property)); + } + } + return base_Property; + } + + /** + * + * + * @generated + */ + public Property basicGetBase_Property() { + return base_Property; + } + + /** + * + * + * @generated + */ + public void setBase_Property(Property newBase_Property) { + Property oldBase_Property = base_Property; + base_Property = newBase_Property; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GCMPackage.DATA_POOL__BASE_PROPERTY, oldBase_Property, base_Property)); + } + + /** + * + * + * @generated + */ + public Behavior getInsertion() { + if (insertion != null && insertion.eIsProxy()) { + InternalEObject oldInsertion = (InternalEObject)insertion; + insertion = (Behavior)eResolveProxy(oldInsertion); + if (insertion != oldInsertion) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GCMPackage.DATA_POOL__INSERTION, oldInsertion, insertion)); + } + } + return insertion; + } + + /** + * + * + * @generated + */ + public Behavior basicGetInsertion() { + return insertion; + } + + /** + * + * + * @generated + */ + public void setInsertion(Behavior newInsertion) { + Behavior oldInsertion = insertion; + insertion = newInsertion; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GCMPackage.DATA_POOL__INSERTION, oldInsertion, insertion)); + } + + /** + * + * + * @generated + */ + public Behavior getSelection() { + if (selection != null && selection.eIsProxy()) { + InternalEObject oldSelection = (InternalEObject)selection; + selection = (Behavior)eResolveProxy(oldSelection); + if (selection != oldSelection) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GCMPackage.DATA_POOL__SELECTION, oldSelection, selection)); + } + } + return selection; + } + + /** + * + * + * @generated + */ + public Behavior basicGetSelection() { + return selection; + } + + /** + * + * + * @generated + */ + public void setSelection(Behavior newSelection) { + Behavior oldSelection = selection; + selection = newSelection; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GCMPackage.DATA_POOL__SELECTION, oldSelection, selection)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case GCMPackage.DATA_POOL__ORDERING: + return getOrdering(); + case GCMPackage.DATA_POOL__BASE_PROPERTY: + if (resolve) return getBase_Property(); + return basicGetBase_Property(); + case GCMPackage.DATA_POOL__INSERTION: + if (resolve) return getInsertion(); + return basicGetInsertion(); + case GCMPackage.DATA_POOL__SELECTION: + if (resolve) return getSelection(); + return basicGetSelection(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case GCMPackage.DATA_POOL__ORDERING: + setOrdering((DataPoolOrderingKind)newValue); + return; + case GCMPackage.DATA_POOL__BASE_PROPERTY: + setBase_Property((Property)newValue); + return; + case GCMPackage.DATA_POOL__INSERTION: + setInsertion((Behavior)newValue); + return; + case GCMPackage.DATA_POOL__SELECTION: + setSelection((Behavior)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case GCMPackage.DATA_POOL__ORDERING: + setOrdering(ORDERING_EDEFAULT); + return; + case GCMPackage.DATA_POOL__BASE_PROPERTY: + setBase_Property((Property)null); + return; + case GCMPackage.DATA_POOL__INSERTION: + setInsertion((Behavior)null); + return; + case GCMPackage.DATA_POOL__SELECTION: + setSelection((Behavior)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case GCMPackage.DATA_POOL__ORDERING: + return ordering != ORDERING_EDEFAULT; + case GCMPackage.DATA_POOL__BASE_PROPERTY: + return base_Property != null; + case GCMPackage.DATA_POOL__INSERTION: + return insertion != null; + case GCMPackage.DATA_POOL__SELECTION: + return selection != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (ordering: "); + result.append(ordering); + result.append(')'); + return result.toString(); + } + +} //DataPoolImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/FlowPortImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/FlowPortImpl.java new file mode 100644 index 00000000000..807515616b0 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/FlowPortImpl.java @@ -0,0 +1,343 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.GCM.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowDirectionKind; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowPort; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowSpecification; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage; +import org.eclipse.papyrus.MARTE.utils.MarteResource; +import org.eclipse.papyrus.umlutils.ElementUtil; + +import org.eclipse.uml2.uml.Image; +import org.eclipse.uml2.uml.Port; +import org.eclipse.uml2.uml.Stereotype; +import org.eclipse.uml2.uml.Type; + +/** + * + * An implementation of the model object 'Flow Port'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.FlowPortImpl#isIsAtomic Is Atomic}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.FlowPortImpl#getDirection Direction}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.FlowPortImpl#getBase_Port Base Port}
  • + *
+ *

+ * + * @generated + */ +public class FlowPortImpl extends EObjectImpl implements FlowPort { + /** + * The default value of the '{@link #isIsAtomic() Is Atomic}' attribute. + * + * + * @see #isIsAtomic() + * @generated + * @ordered + */ + protected static final boolean IS_ATOMIC_EDEFAULT = false; + + /** + * The default value of the '{@link #getDirection() Direction}' attribute. + * + * + * @see #getDirection() + * @generated + * @ordered + */ + protected static final FlowDirectionKind DIRECTION_EDEFAULT = FlowDirectionKind.INOUT; + + /** + * The cached value of the '{@link #getDirection() Direction}' attribute. + * + * + * @see #getDirection() + * @generated + * @ordered + */ + protected FlowDirectionKind direction = DIRECTION_EDEFAULT; + + /** + * The cached value of the '{@link #getBase_Port() Base Port}' reference. + * + * + * @see #getBase_Port() + * @generated + * @ordered + */ + protected Port base_Port; + + /** + * + * + * @generated + */ + protected FlowPortImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return GCMPackage.Literals.FLOW_PORT; + } + + /** + * + * + * @generated NOT + */ + public boolean isIsAtomic() { + // TODO: implement this method to return the 'Is Atomic' attribute + // Ensure that you remove @generated or mark it @generated NOT + // throw new UnsupportedOperationException(); + + Port port = getBase_Port(); + Type portType = port.getType(); + if(portType != null) { + // get flowSpecification stereotype + FlowSpecification flowSpec = + (FlowSpecification) ElementUtil.hasStereotype(portType, GCMPackage.eINSTANCE.getFlowSpecification()); + + // flowSpecification stereotype is applied + if(flowSpec != null) { + return false; + } + } + + // untyped port or port not typed with a flowSpecification. + return true; + + } + + /** + * + * + * @generated + */ + public void setIsAtomic(boolean newIsAtomic) { + // TODO: implement this method to set the 'Is Atomic' attribute + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public FlowDirectionKind getDirection() { + return direction; + } + + /** + * + * + * @generated + */ + public void setDirection(FlowDirectionKind newDirection) { + FlowDirectionKind oldDirection = direction; + direction = newDirection == null ? DIRECTION_EDEFAULT : newDirection; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GCMPackage.FLOW_PORT__DIRECTION, oldDirection, direction)); + } + + /** + * + * + * @generated + */ + public Port getBase_Port() { + if (base_Port != null && base_Port.eIsProxy()) { + InternalEObject oldBase_Port = (InternalEObject)base_Port; + base_Port = (Port)eResolveProxy(oldBase_Port); + if (base_Port != oldBase_Port) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GCMPackage.FLOW_PORT__BASE_PORT, oldBase_Port, base_Port)); + } + } + return base_Port; + } + + /** + * + * + * @generated + */ + public Port basicGetBase_Port() { + return base_Port; + } + + /** + * + * + * @generated + */ + public void setBase_Port(Port newBase_Port) { + Port oldBase_Port = base_Port; + base_Port = newBase_Port; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GCMPackage.FLOW_PORT__BASE_PORT, oldBase_Port, base_Port)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case GCMPackage.FLOW_PORT__IS_ATOMIC: + return isIsAtomic(); + case GCMPackage.FLOW_PORT__DIRECTION: + return getDirection(); + case GCMPackage.FLOW_PORT__BASE_PORT: + if (resolve) return getBase_Port(); + return basicGetBase_Port(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case GCMPackage.FLOW_PORT__IS_ATOMIC: + setIsAtomic((Boolean)newValue); + return; + case GCMPackage.FLOW_PORT__DIRECTION: + setDirection((FlowDirectionKind)newValue); + return; + case GCMPackage.FLOW_PORT__BASE_PORT: + setBase_Port((Port)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case GCMPackage.FLOW_PORT__IS_ATOMIC: + setIsAtomic(IS_ATOMIC_EDEFAULT); + return; + case GCMPackage.FLOW_PORT__DIRECTION: + setDirection(DIRECTION_EDEFAULT); + return; + case GCMPackage.FLOW_PORT__BASE_PORT: + setBase_Port((Port)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case GCMPackage.FLOW_PORT__IS_ATOMIC: + return isIsAtomic() != IS_ATOMIC_EDEFAULT; + case GCMPackage.FLOW_PORT__DIRECTION: + return direction != DIRECTION_EDEFAULT; + case GCMPackage.FLOW_PORT__BASE_PORT: + return base_Port != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (direction: "); + result.append(direction); + result.append(')'); + return result.toString(); + } + + /** + * + * @return + * @generated NOT + */ + public Image getIcon() { + + Image ImageNotFound = null; + + if(getBase_Port() != null) { + Stereotype st = getBase_Port().getAppliedStereotype(MarteResource.FLOW_PORT_ID); + + Image defaultImage = st.getIcons().get(0); + Image image = null; + + if(isIsAtomic()) { + if(getDirection() == FlowDirectionKind.OUT) { + image = st.getIcons().get(1); + } else if(getDirection() == FlowDirectionKind.INOUT) { + image = st.getIcons().get(2); + } else { + // Default : IN + image = defaultImage; + } + + } + + else { + image = st.getIcons().get(2); + } + + return image; + + } else { + return ImageNotFound; + } + } + + +} //FlowPortImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/FlowPropertyImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/FlowPropertyImpl.java new file mode 100644 index 00000000000..03689fb102c --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/FlowPropertyImpl.java @@ -0,0 +1,238 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.GCM.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowDirectionKind; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowProperty; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage; + +import org.eclipse.uml2.uml.Property; + +/** + * + * An implementation of the model object 'Flow Property'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.FlowPropertyImpl#getDirection Direction}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.FlowPropertyImpl#getBase_Property Base Property}
  • + *
+ *

+ * + * @generated + */ +public class FlowPropertyImpl extends EObjectImpl implements FlowProperty { + /** + * The default value of the '{@link #getDirection() Direction}' attribute. + * + * + * @see #getDirection() + * @generated + * @ordered + */ + protected static final FlowDirectionKind DIRECTION_EDEFAULT = FlowDirectionKind.INOUT; + + /** + * The cached value of the '{@link #getDirection() Direction}' attribute. + * + * + * @see #getDirection() + * @generated + * @ordered + */ + protected FlowDirectionKind direction = DIRECTION_EDEFAULT; + + /** + * The cached value of the '{@link #getBase_Property() Base Property}' reference. + * + * + * @see #getBase_Property() + * @generated + * @ordered + */ + protected Property base_Property; + + /** + * + * + * @generated + */ + protected FlowPropertyImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return GCMPackage.Literals.FLOW_PROPERTY; + } + + /** + * + * + * @generated + */ + public FlowDirectionKind getDirection() { + return direction; + } + + /** + * + * + * @generated + */ + public void setDirection(FlowDirectionKind newDirection) { + FlowDirectionKind oldDirection = direction; + direction = newDirection == null ? DIRECTION_EDEFAULT : newDirection; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GCMPackage.FLOW_PROPERTY__DIRECTION, oldDirection, direction)); + } + + /** + * + * + * @generated + */ + public Property getBase_Property() { + if (base_Property != null && base_Property.eIsProxy()) { + InternalEObject oldBase_Property = (InternalEObject)base_Property; + base_Property = (Property)eResolveProxy(oldBase_Property); + if (base_Property != oldBase_Property) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GCMPackage.FLOW_PROPERTY__BASE_PROPERTY, oldBase_Property, base_Property)); + } + } + return base_Property; + } + + /** + * + * + * @generated + */ + public Property basicGetBase_Property() { + return base_Property; + } + + /** + * + * + * @generated + */ + public void setBase_Property(Property newBase_Property) { + Property oldBase_Property = base_Property; + base_Property = newBase_Property; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GCMPackage.FLOW_PROPERTY__BASE_PROPERTY, oldBase_Property, base_Property)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case GCMPackage.FLOW_PROPERTY__DIRECTION: + return getDirection(); + case GCMPackage.FLOW_PROPERTY__BASE_PROPERTY: + if (resolve) return getBase_Property(); + return basicGetBase_Property(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case GCMPackage.FLOW_PROPERTY__DIRECTION: + setDirection((FlowDirectionKind)newValue); + return; + case GCMPackage.FLOW_PROPERTY__BASE_PROPERTY: + setBase_Property((Property)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case GCMPackage.FLOW_PROPERTY__DIRECTION: + setDirection(DIRECTION_EDEFAULT); + return; + case GCMPackage.FLOW_PROPERTY__BASE_PROPERTY: + setBase_Property((Property)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case GCMPackage.FLOW_PROPERTY__DIRECTION: + return direction != DIRECTION_EDEFAULT; + case GCMPackage.FLOW_PROPERTY__BASE_PROPERTY: + return base_Property != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (direction: "); + result.append(direction); + result.append(')'); + return result.toString(); + } + +} //FlowPropertyImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/FlowSpecificationImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/FlowSpecificationImpl.java new file mode 100644 index 00000000000..f4770daf3ce --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/FlowSpecificationImpl.java @@ -0,0 +1,169 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.GCM.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowSpecification; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage; + +import org.eclipse.uml2.uml.Interface; + +/** + * + * An implementation of the model object 'Flow Specification'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.FlowSpecificationImpl#getBase_Interface Base Interface}
  • + *
+ *

+ * + * @generated + */ +public class FlowSpecificationImpl extends EObjectImpl implements FlowSpecification { + /** + * The cached value of the '{@link #getBase_Interface() Base Interface}' reference. + * + * + * @see #getBase_Interface() + * @generated + * @ordered + */ + protected Interface base_Interface; + + /** + * + * + * @generated + */ + protected FlowSpecificationImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return GCMPackage.Literals.FLOW_SPECIFICATION; + } + + /** + * + * + * @generated + */ + public Interface getBase_Interface() { + if (base_Interface != null && base_Interface.eIsProxy()) { + InternalEObject oldBase_Interface = (InternalEObject)base_Interface; + base_Interface = (Interface)eResolveProxy(oldBase_Interface); + if (base_Interface != oldBase_Interface) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GCMPackage.FLOW_SPECIFICATION__BASE_INTERFACE, oldBase_Interface, base_Interface)); + } + } + return base_Interface; + } + + /** + * + * + * @generated + */ + public Interface basicGetBase_Interface() { + return base_Interface; + } + + /** + * + * + * @generated + */ + public void setBase_Interface(Interface newBase_Interface) { + Interface oldBase_Interface = base_Interface; + base_Interface = newBase_Interface; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GCMPackage.FLOW_SPECIFICATION__BASE_INTERFACE, oldBase_Interface, base_Interface)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case GCMPackage.FLOW_SPECIFICATION__BASE_INTERFACE: + if (resolve) return getBase_Interface(); + return basicGetBase_Interface(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case GCMPackage.FLOW_SPECIFICATION__BASE_INTERFACE: + setBase_Interface((Interface)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case GCMPackage.FLOW_SPECIFICATION__BASE_INTERFACE: + setBase_Interface((Interface)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case GCMPackage.FLOW_SPECIFICATION__BASE_INTERFACE: + return base_Interface != null; + } + return super.eIsSet(featureID); + } + +} //FlowSpecificationImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/GCMFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/GCMFactoryImpl.java new file mode 100644 index 00000000000..0fe8b9137bd --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/GCMFactoryImpl.java @@ -0,0 +1,339 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.GCM.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.MARTE_DesignModel.GCM.*; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class GCMFactoryImpl extends EFactoryImpl implements GCMFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static GCMFactory init() { + try { + GCMFactory theGCMFactory = (GCMFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/GCM/1"); + if (theGCMFactory != null) { + return theGCMFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new GCMFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public GCMFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case GCMPackage.FLOW_PROPERTY: return createFlowProperty(); + case GCMPackage.FLOW_PORT: return createFlowPort(); + case GCMPackage.CLIENT_SERVER_PORT: return createClientServerPort(); + case GCMPackage.CLIENT_SERVER_SPECIFICATION: return createClientServerSpecification(); + case GCMPackage.FLOW_SPECIFICATION: return createFlowSpecification(); + case GCMPackage.CLIENT_SERVER_FEATURE: return createClientServerFeature(); + case GCMPackage.GCM_TRIGGER: return createGCMTrigger(); + case GCMPackage.GCM_INVOCATION_ACTION: return createGCMInvocationAction(); + case GCMPackage.DATA_EVENT: return createDataEvent(); + case GCMPackage.DATA_POOL: return createDataPool(); + case GCMPackage.GCM_INVOCATING_BEHAVIOR: return createGCMInvocatingBehavior(); + 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 GCMPackage.FLOW_DIRECTION_KIND: + return createFlowDirectionKindFromString(eDataType, initialValue); + case GCMPackage.PORT_SPECIFICATION_KIND: + return createPortSpecificationKindFromString(eDataType, initialValue); + case GCMPackage.CLIENT_SERVER_KIND: + return createClientServerKindFromString(eDataType, initialValue); + case GCMPackage.DATA_POOL_ORDERING_KIND: + return createDataPoolOrderingKindFromString(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 GCMPackage.FLOW_DIRECTION_KIND: + return convertFlowDirectionKindToString(eDataType, instanceValue); + case GCMPackage.PORT_SPECIFICATION_KIND: + return convertPortSpecificationKindToString(eDataType, instanceValue); + case GCMPackage.CLIENT_SERVER_KIND: + return convertClientServerKindToString(eDataType, instanceValue); + case GCMPackage.DATA_POOL_ORDERING_KIND: + return convertDataPoolOrderingKindToString(eDataType, instanceValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public FlowProperty createFlowProperty() { + FlowPropertyImpl flowProperty = new FlowPropertyImpl(); + return flowProperty; + } + + /** + * + * + * @generated + */ + public FlowPort createFlowPort() { + FlowPortImpl flowPort = new FlowPortImpl(); + return flowPort; + } + + /** + * + * + * @generated + */ + public ClientServerPort createClientServerPort() { + ClientServerPortImpl clientServerPort = new ClientServerPortImpl(); + return clientServerPort; + } + + /** + * + * + * @generated + */ + public ClientServerSpecification createClientServerSpecification() { + ClientServerSpecificationImpl clientServerSpecification = new ClientServerSpecificationImpl(); + return clientServerSpecification; + } + + /** + * + * + * @generated + */ + public FlowSpecification createFlowSpecification() { + FlowSpecificationImpl flowSpecification = new FlowSpecificationImpl(); + return flowSpecification; + } + + /** + * + * + * @generated + */ + public ClientServerFeature createClientServerFeature() { + ClientServerFeatureImpl clientServerFeature = new ClientServerFeatureImpl(); + return clientServerFeature; + } + + /** + * + * + * @generated + */ + public GCMTrigger createGCMTrigger() { + GCMTriggerImpl gcmTrigger = new GCMTriggerImpl(); + return gcmTrigger; + } + + /** + * + * + * @generated + */ + public GCMInvocationAction createGCMInvocationAction() { + GCMInvocationActionImpl gcmInvocationAction = new GCMInvocationActionImpl(); + return gcmInvocationAction; + } + + /** + * + * + * @generated + */ + public DataEvent createDataEvent() { + DataEventImpl dataEvent = new DataEventImpl(); + return dataEvent; + } + + /** + * + * + * @generated + */ + public DataPool createDataPool() { + DataPoolImpl dataPool = new DataPoolImpl(); + return dataPool; + } + + /** + * + * + * @generated + */ + public GCMInvocatingBehavior createGCMInvocatingBehavior() { + GCMInvocatingBehaviorImpl gcmInvocatingBehavior = new GCMInvocatingBehaviorImpl(); + return gcmInvocatingBehavior; + } + + /** + * + * + * @generated + */ + public FlowDirectionKind createFlowDirectionKindFromString(EDataType eDataType, String initialValue) { + FlowDirectionKind result = FlowDirectionKind.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertFlowDirectionKindToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public PortSpecificationKind createPortSpecificationKindFromString(EDataType eDataType, String initialValue) { + PortSpecificationKind result = PortSpecificationKind.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertPortSpecificationKindToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public ClientServerKind createClientServerKindFromString(EDataType eDataType, String initialValue) { + ClientServerKind result = ClientServerKind.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertClientServerKindToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public DataPoolOrderingKind createDataPoolOrderingKindFromString(EDataType eDataType, String initialValue) { + DataPoolOrderingKind result = DataPoolOrderingKind.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertDataPoolOrderingKindToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public GCMPackage getGCMPackage() { + return (GCMPackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static GCMPackage getPackage() { + return GCMPackage.eINSTANCE; + } + +} //GCMFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/GCMInvocatingBehaviorImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/GCMInvocatingBehaviorImpl.java new file mode 100644 index 00000000000..7dc521ad47e --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/GCMInvocatingBehaviorImpl.java @@ -0,0 +1,281 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.GCM.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectResolvingEList; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMInvocatingBehavior; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage; + +import org.eclipse.uml2.uml.Behavior; +import org.eclipse.uml2.uml.Feature; +import org.eclipse.uml2.uml.InvocationAction; +import org.eclipse.uml2.uml.Port; + +/** + * + * An implementation of the model object 'Invocating Behavior'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMInvocatingBehaviorImpl#getBase_Behavior Base Behavior}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMInvocatingBehaviorImpl#getOnPorts On Ports}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMInvocatingBehaviorImpl#getOnFeatures On Features}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMInvocatingBehaviorImpl#getInvocations Invocations}
  • + *
+ *

+ * + * @generated + */ +public class GCMInvocatingBehaviorImpl extends EObjectImpl implements GCMInvocatingBehavior { + /** + * The cached value of the '{@link #getBase_Behavior() Base Behavior}' reference. + * + * + * @see #getBase_Behavior() + * @generated + * @ordered + */ + protected Behavior base_Behavior; + + /** + * The cached value of the '{@link #getOnPorts() On Ports}' reference list. + * + * + * @see #getOnPorts() + * @generated + * @ordered + */ + protected EList onPorts; + + /** + * The cached value of the '{@link #getOnFeatures() On Features}' reference list. + * + * + * @see #getOnFeatures() + * @generated + * @ordered + */ + protected EList onFeatures; + + /** + * The cached value of the '{@link #getInvocations() Invocations}' reference list. + * + * + * @see #getInvocations() + * @generated + * @ordered + */ + protected EList invocations; + + /** + * + * + * @generated + */ + protected GCMInvocatingBehaviorImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return GCMPackage.Literals.GCM_INVOCATING_BEHAVIOR; + } + + /** + * + * + * @generated + */ + public Behavior getBase_Behavior() { + if (base_Behavior != null && base_Behavior.eIsProxy()) { + InternalEObject oldBase_Behavior = (InternalEObject)base_Behavior; + base_Behavior = (Behavior)eResolveProxy(oldBase_Behavior); + if (base_Behavior != oldBase_Behavior) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GCMPackage.GCM_INVOCATING_BEHAVIOR__BASE_BEHAVIOR, oldBase_Behavior, base_Behavior)); + } + } + return base_Behavior; + } + + /** + * + * + * @generated + */ + public Behavior basicGetBase_Behavior() { + return base_Behavior; + } + + /** + * + * + * @generated + */ + public void setBase_Behavior(Behavior newBase_Behavior) { + Behavior oldBase_Behavior = base_Behavior; + base_Behavior = newBase_Behavior; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GCMPackage.GCM_INVOCATING_BEHAVIOR__BASE_BEHAVIOR, oldBase_Behavior, base_Behavior)); + } + + /** + * + * + * @generated + */ + public EList getOnPorts() { + if (onPorts == null) { + onPorts = new EObjectResolvingEList(Port.class, this, GCMPackage.GCM_INVOCATING_BEHAVIOR__ON_PORTS); + } + return onPorts; + } + + /** + * + * + * @generated + */ + public EList getOnFeatures() { + if (onFeatures == null) { + onFeatures = new EObjectResolvingEList(Feature.class, this, GCMPackage.GCM_INVOCATING_BEHAVIOR__ON_FEATURES); + } + return onFeatures; + } + + /** + * + * + * @generated + */ + public EList getInvocations() { + if (invocations == null) { + invocations = new EObjectResolvingEList(InvocationAction.class, this, GCMPackage.GCM_INVOCATING_BEHAVIOR__INVOCATIONS); + } + return invocations; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case GCMPackage.GCM_INVOCATING_BEHAVIOR__BASE_BEHAVIOR: + if (resolve) return getBase_Behavior(); + return basicGetBase_Behavior(); + case GCMPackage.GCM_INVOCATING_BEHAVIOR__ON_PORTS: + return getOnPorts(); + case GCMPackage.GCM_INVOCATING_BEHAVIOR__ON_FEATURES: + return getOnFeatures(); + case GCMPackage.GCM_INVOCATING_BEHAVIOR__INVOCATIONS: + return getInvocations(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case GCMPackage.GCM_INVOCATING_BEHAVIOR__BASE_BEHAVIOR: + setBase_Behavior((Behavior)newValue); + return; + case GCMPackage.GCM_INVOCATING_BEHAVIOR__ON_PORTS: + getOnPorts().clear(); + getOnPorts().addAll((Collection)newValue); + return; + case GCMPackage.GCM_INVOCATING_BEHAVIOR__ON_FEATURES: + getOnFeatures().clear(); + getOnFeatures().addAll((Collection)newValue); + return; + case GCMPackage.GCM_INVOCATING_BEHAVIOR__INVOCATIONS: + getInvocations().clear(); + getInvocations().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case GCMPackage.GCM_INVOCATING_BEHAVIOR__BASE_BEHAVIOR: + setBase_Behavior((Behavior)null); + return; + case GCMPackage.GCM_INVOCATING_BEHAVIOR__ON_PORTS: + getOnPorts().clear(); + return; + case GCMPackage.GCM_INVOCATING_BEHAVIOR__ON_FEATURES: + getOnFeatures().clear(); + return; + case GCMPackage.GCM_INVOCATING_BEHAVIOR__INVOCATIONS: + getInvocations().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case GCMPackage.GCM_INVOCATING_BEHAVIOR__BASE_BEHAVIOR: + return base_Behavior != null; + case GCMPackage.GCM_INVOCATING_BEHAVIOR__ON_PORTS: + return onPorts != null && !onPorts.isEmpty(); + case GCMPackage.GCM_INVOCATING_BEHAVIOR__ON_FEATURES: + return onFeatures != null && !onFeatures.isEmpty(); + case GCMPackage.GCM_INVOCATING_BEHAVIOR__INVOCATIONS: + return invocations != null && !invocations.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //GCMInvocatingBehaviorImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/GCMInvocationActionImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/GCMInvocationActionImpl.java new file mode 100644 index 00000000000..2363bf2be8f --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/GCMInvocationActionImpl.java @@ -0,0 +1,230 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.GCM.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMInvocationAction; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage; + +import org.eclipse.uml2.uml.Feature; +import org.eclipse.uml2.uml.InvocationAction; + +/** + * + * An implementation of the model object 'Invocation Action'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMInvocationActionImpl#getBase_InvocationAction Base Invocation Action}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMInvocationActionImpl#getOnFeature On Feature}
  • + *
+ *

+ * + * @generated + */ +public class GCMInvocationActionImpl extends EObjectImpl implements GCMInvocationAction { + /** + * The cached value of the '{@link #getBase_InvocationAction() Base Invocation Action}' reference. + * + * + * @see #getBase_InvocationAction() + * @generated + * @ordered + */ + protected InvocationAction base_InvocationAction; + + /** + * The cached value of the '{@link #getOnFeature() On Feature}' reference. + * + * + * @see #getOnFeature() + * @generated + * @ordered + */ + protected Feature onFeature; + + /** + * + * + * @generated + */ + protected GCMInvocationActionImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return GCMPackage.Literals.GCM_INVOCATION_ACTION; + } + + /** + * + * + * @generated + */ + public InvocationAction getBase_InvocationAction() { + if (base_InvocationAction != null && base_InvocationAction.eIsProxy()) { + InternalEObject oldBase_InvocationAction = (InternalEObject)base_InvocationAction; + base_InvocationAction = (InvocationAction)eResolveProxy(oldBase_InvocationAction); + if (base_InvocationAction != oldBase_InvocationAction) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GCMPackage.GCM_INVOCATION_ACTION__BASE_INVOCATION_ACTION, oldBase_InvocationAction, base_InvocationAction)); + } + } + return base_InvocationAction; + } + + /** + * + * + * @generated + */ + public InvocationAction basicGetBase_InvocationAction() { + return base_InvocationAction; + } + + /** + * + * + * @generated + */ + public void setBase_InvocationAction(InvocationAction newBase_InvocationAction) { + InvocationAction oldBase_InvocationAction = base_InvocationAction; + base_InvocationAction = newBase_InvocationAction; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GCMPackage.GCM_INVOCATION_ACTION__BASE_INVOCATION_ACTION, oldBase_InvocationAction, base_InvocationAction)); + } + + /** + * + * + * @generated + */ + public Feature getOnFeature() { + if (onFeature != null && onFeature.eIsProxy()) { + InternalEObject oldOnFeature = (InternalEObject)onFeature; + onFeature = (Feature)eResolveProxy(oldOnFeature); + if (onFeature != oldOnFeature) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GCMPackage.GCM_INVOCATION_ACTION__ON_FEATURE, oldOnFeature, onFeature)); + } + } + return onFeature; + } + + /** + * + * + * @generated + */ + public Feature basicGetOnFeature() { + return onFeature; + } + + /** + * + * + * @generated + */ + public void setOnFeature(Feature newOnFeature) { + Feature oldOnFeature = onFeature; + onFeature = newOnFeature; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GCMPackage.GCM_INVOCATION_ACTION__ON_FEATURE, oldOnFeature, onFeature)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case GCMPackage.GCM_INVOCATION_ACTION__BASE_INVOCATION_ACTION: + if (resolve) return getBase_InvocationAction(); + return basicGetBase_InvocationAction(); + case GCMPackage.GCM_INVOCATION_ACTION__ON_FEATURE: + if (resolve) return getOnFeature(); + return basicGetOnFeature(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case GCMPackage.GCM_INVOCATION_ACTION__BASE_INVOCATION_ACTION: + setBase_InvocationAction((InvocationAction)newValue); + return; + case GCMPackage.GCM_INVOCATION_ACTION__ON_FEATURE: + setOnFeature((Feature)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case GCMPackage.GCM_INVOCATION_ACTION__BASE_INVOCATION_ACTION: + setBase_InvocationAction((InvocationAction)null); + return; + case GCMPackage.GCM_INVOCATION_ACTION__ON_FEATURE: + setOnFeature((Feature)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case GCMPackage.GCM_INVOCATION_ACTION__BASE_INVOCATION_ACTION: + return base_InvocationAction != null; + case GCMPackage.GCM_INVOCATION_ACTION__ON_FEATURE: + return onFeature != null; + } + return super.eIsSet(featureID); + } + +} //GCMInvocationActionImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/GCMPackageImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/GCMPackageImpl.java new file mode 100644 index 00000000000..7be8bf8a218 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/GCMPackageImpl.java @@ -0,0 +1,1054 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.GCM.impl; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +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.ClientServerFeature; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerKind; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerPort; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerSpecification; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.DataEvent; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.DataPool; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.DataPoolOrderingKind; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowDirectionKind; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowPort; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowProperty; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowSpecification; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMFactory; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMInvocatingBehavior; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMInvocationAction; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMTrigger; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.PortSpecificationKind; + +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.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 GCMPackageImpl extends EPackageImpl implements GCMPackage { + /** + * + * + * @generated + */ + private EClass flowPropertyEClass = null; + + /** + * + * + * @generated + */ + private EClass flowPortEClass = null; + + /** + * + * + * @generated + */ + private EClass clientServerPortEClass = null; + + /** + * + * + * @generated + */ + private EClass clientServerSpecificationEClass = null; + + /** + * + * + * @generated + */ + private EClass flowSpecificationEClass = null; + + /** + * + * + * @generated + */ + private EClass clientServerFeatureEClass = null; + + /** + * + * + * @generated + */ + private EClass gcmTriggerEClass = null; + + /** + * + * + * @generated + */ + private EClass gcmInvocationActionEClass = null; + + /** + * + * + * @generated + */ + private EClass dataEventEClass = null; + + /** + * + * + * @generated + */ + private EClass dataPoolEClass = null; + + /** + * + * + * @generated + */ + private EClass gcmInvocatingBehaviorEClass = null; + + /** + * + * + * @generated + */ + private EEnum flowDirectionKindEEnum = null; + + /** + * + * + * @generated + */ + private EEnum portSpecificationKindEEnum = null; + + /** + * + * + * @generated + */ + private EEnum clientServerKindEEnum = null; + + /** + * + * + * @generated + */ + private EEnum dataPoolOrderingKindEEnum = 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.MARTE_DesignModel.GCM.GCMPackage#eNS_URI + * @see #init() + * @generated + */ + private GCMPackageImpl() { + super(eNS_URI, GCMFactory.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 GCMPackage#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 GCMPackage init() { + if (isInited) return (GCMPackage)EPackage.Registry.INSTANCE.getEPackage(GCMPackage.eNS_URI); + + // Obtain or create and register package + GCMPackageImpl theGCMPackage = (GCMPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof GCMPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new GCMPackageImpl()); + + 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); + 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); + 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 + theGCMPackage.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(); + theGQAMPackage.createPackageContents(); + theSAMPackage.createPackageContents(); + thePAMPackage.createPackageContents(); + theMeasurementUnitsPackage.createPackageContents(); + theGRM_BasicTypesPackage.createPackageContents(); + theMARTE_DataTypesPackage.createPackageContents(); + theBasicNFP_TypesPackage.createPackageContents(); + theTimeTypesLibraryPackage.createPackageContents(); + theTimeLibraryPackage.createPackageContents(); + theRS_LibraryPackage.createPackageContents(); + theMARTE_PrimitivesTypesPackage.createPackageContents(); + + // Initialize created meta-data + theGCMPackage.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(); + theGQAMPackage.initializePackageContents(); + theSAMPackage.initializePackageContents(); + thePAMPackage.initializePackageContents(); + theMeasurementUnitsPackage.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 + theGCMPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(GCMPackage.eNS_URI, theGCMPackage); + return theGCMPackage; + } + + /** + * + * + * @generated + */ + public EClass getFlowProperty() { + return flowPropertyEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getFlowProperty_Direction() { + return (EAttribute)flowPropertyEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getFlowProperty_Base_Property() { + return (EReference)flowPropertyEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getFlowPort() { + return flowPortEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getFlowPort_IsAtomic() { + return (EAttribute)flowPortEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getFlowPort_Direction() { + return (EAttribute)flowPortEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getFlowPort_Base_Port() { + return (EReference)flowPortEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getClientServerPort() { + return clientServerPortEClass; + } + + /** + * + * + * @generated + */ + public EReference getClientServerPort_Base_Port() { + return (EReference)clientServerPortEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getClientServerPort_SpecificationKind() { + return (EAttribute)clientServerPortEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getClientServerPort_Kind() { + return (EAttribute)clientServerPortEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getClientServerPort_ProvInterface() { + return (EReference)clientServerPortEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EReference getClientServerPort_ReqInterface() { + return (EReference)clientServerPortEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EReference getClientServerPort_FeaturesSpec() { + return (EReference)clientServerPortEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EClass getClientServerSpecification() { + return clientServerSpecificationEClass; + } + + /** + * + * + * @generated + */ + public EReference getClientServerSpecification_Base_Interface() { + return (EReference)clientServerSpecificationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getFlowSpecification() { + return flowSpecificationEClass; + } + + /** + * + * + * @generated + */ + public EReference getFlowSpecification_Base_Interface() { + return (EReference)flowSpecificationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getClientServerFeature() { + return clientServerFeatureEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getClientServerFeature_Kind() { + return (EAttribute)clientServerFeatureEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getClientServerFeature_Base_BehavioralFeature() { + return (EReference)clientServerFeatureEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getGCMTrigger() { + return gcmTriggerEClass; + } + + /** + * + * + * @generated + */ + public EReference getGCMTrigger_Base_Trigger() { + return (EReference)gcmTriggerEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getGCMTrigger_Feature() { + return (EReference)gcmTriggerEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getGCMInvocationAction() { + return gcmInvocationActionEClass; + } + + /** + * + * + * @generated + */ + public EReference getGCMInvocationAction_Base_InvocationAction() { + return (EReference)gcmInvocationActionEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getGCMInvocationAction_OnFeature() { + return (EReference)gcmInvocationActionEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getDataEvent() { + return dataEventEClass; + } + + /** + * + * + * @generated + */ + public EReference getDataEvent_Base_AnyReceiveEvent() { + return (EReference)dataEventEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getDataEvent_Classifier() { + return (EReference)dataEventEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getDataPool() { + return dataPoolEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getDataPool_Ordering() { + return (EAttribute)dataPoolEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getDataPool_Base_Property() { + return (EReference)dataPoolEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getDataPool_Insertion() { + return (EReference)dataPoolEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getDataPool_Selection() { + return (EReference)dataPoolEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EClass getGCMInvocatingBehavior() { + return gcmInvocatingBehaviorEClass; + } + + /** + * + * + * @generated + */ + public EReference getGCMInvocatingBehavior_Base_Behavior() { + return (EReference)gcmInvocatingBehaviorEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getGCMInvocatingBehavior_OnPorts() { + return (EReference)gcmInvocatingBehaviorEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getGCMInvocatingBehavior_OnFeatures() { + return (EReference)gcmInvocatingBehaviorEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getGCMInvocatingBehavior_Invocations() { + return (EReference)gcmInvocatingBehaviorEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EEnum getFlowDirectionKind() { + return flowDirectionKindEEnum; + } + + /** + * + * + * @generated + */ + public EEnum getPortSpecificationKind() { + return portSpecificationKindEEnum; + } + + /** + * + * + * @generated + */ + public EEnum getClientServerKind() { + return clientServerKindEEnum; + } + + /** + * + * + * @generated + */ + public EEnum getDataPoolOrderingKind() { + return dataPoolOrderingKindEEnum; + } + + /** + * + * + * @generated + */ + public GCMFactory getGCMFactory() { + return (GCMFactory)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 + flowPropertyEClass = createEClass(FLOW_PROPERTY); + createEAttribute(flowPropertyEClass, FLOW_PROPERTY__DIRECTION); + createEReference(flowPropertyEClass, FLOW_PROPERTY__BASE_PROPERTY); + + flowPortEClass = createEClass(FLOW_PORT); + createEAttribute(flowPortEClass, FLOW_PORT__IS_ATOMIC); + createEAttribute(flowPortEClass, FLOW_PORT__DIRECTION); + createEReference(flowPortEClass, FLOW_PORT__BASE_PORT); + + clientServerPortEClass = createEClass(CLIENT_SERVER_PORT); + createEReference(clientServerPortEClass, CLIENT_SERVER_PORT__BASE_PORT); + createEAttribute(clientServerPortEClass, CLIENT_SERVER_PORT__SPECIFICATION_KIND); + createEAttribute(clientServerPortEClass, CLIENT_SERVER_PORT__KIND); + createEReference(clientServerPortEClass, CLIENT_SERVER_PORT__PROV_INTERFACE); + createEReference(clientServerPortEClass, CLIENT_SERVER_PORT__REQ_INTERFACE); + createEReference(clientServerPortEClass, CLIENT_SERVER_PORT__FEATURES_SPEC); + + clientServerSpecificationEClass = createEClass(CLIENT_SERVER_SPECIFICATION); + createEReference(clientServerSpecificationEClass, CLIENT_SERVER_SPECIFICATION__BASE_INTERFACE); + + flowSpecificationEClass = createEClass(FLOW_SPECIFICATION); + createEReference(flowSpecificationEClass, FLOW_SPECIFICATION__BASE_INTERFACE); + + clientServerFeatureEClass = createEClass(CLIENT_SERVER_FEATURE); + createEAttribute(clientServerFeatureEClass, CLIENT_SERVER_FEATURE__KIND); + createEReference(clientServerFeatureEClass, CLIENT_SERVER_FEATURE__BASE_BEHAVIORAL_FEATURE); + + gcmTriggerEClass = createEClass(GCM_TRIGGER); + createEReference(gcmTriggerEClass, GCM_TRIGGER__BASE_TRIGGER); + createEReference(gcmTriggerEClass, GCM_TRIGGER__FEATURE); + + gcmInvocationActionEClass = createEClass(GCM_INVOCATION_ACTION); + createEReference(gcmInvocationActionEClass, GCM_INVOCATION_ACTION__BASE_INVOCATION_ACTION); + createEReference(gcmInvocationActionEClass, GCM_INVOCATION_ACTION__ON_FEATURE); + + dataEventEClass = createEClass(DATA_EVENT); + createEReference(dataEventEClass, DATA_EVENT__BASE_ANY_RECEIVE_EVENT); + createEReference(dataEventEClass, DATA_EVENT__CLASSIFIER); + + dataPoolEClass = createEClass(DATA_POOL); + createEAttribute(dataPoolEClass, DATA_POOL__ORDERING); + createEReference(dataPoolEClass, DATA_POOL__BASE_PROPERTY); + createEReference(dataPoolEClass, DATA_POOL__INSERTION); + createEReference(dataPoolEClass, DATA_POOL__SELECTION); + + gcmInvocatingBehaviorEClass = createEClass(GCM_INVOCATING_BEHAVIOR); + createEReference(gcmInvocatingBehaviorEClass, GCM_INVOCATING_BEHAVIOR__BASE_BEHAVIOR); + createEReference(gcmInvocatingBehaviorEClass, GCM_INVOCATING_BEHAVIOR__ON_PORTS); + createEReference(gcmInvocatingBehaviorEClass, GCM_INVOCATING_BEHAVIOR__ON_FEATURES); + createEReference(gcmInvocatingBehaviorEClass, GCM_INVOCATING_BEHAVIOR__INVOCATIONS); + + // Create enums + flowDirectionKindEEnum = createEEnum(FLOW_DIRECTION_KIND); + portSpecificationKindEEnum = createEEnum(PORT_SPECIFICATION_KIND); + clientServerKindEEnum = createEEnum(CLIENT_SERVER_KIND); + dataPoolOrderingKindEEnum = createEEnum(DATA_POOL_ORDERING_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); + + // Obtain other dependent packages + UMLPackage theUMLPackage = (UMLPackage)EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI); + 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(flowPropertyEClass, FlowProperty.class, "FlowProperty", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getFlowProperty_Direction(), this.getFlowDirectionKind(), "direction", "inout", 1, 1, FlowProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getFlowProperty_Base_Property(), theUMLPackage.getProperty(), null, "base_Property", null, 1, 1, FlowProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(flowPortEClass, FlowPort.class, "FlowPort", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getFlowPort_IsAtomic(), theMARTE_PrimitivesTypesPackage.getBoolean(), "isAtomic", null, 1, 1, FlowPort.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, IS_DERIVED, !IS_ORDERED); + initEAttribute(getFlowPort_Direction(), this.getFlowDirectionKind(), "direction", "inout", 1, 1, FlowPort.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getFlowPort_Base_Port(), theUMLPackage.getPort(), null, "base_Port", null, 1, 1, FlowPort.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(clientServerPortEClass, ClientServerPort.class, "ClientServerPort", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getClientServerPort_Base_Port(), theUMLPackage.getPort(), null, "base_Port", null, 1, 1, ClientServerPort.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getClientServerPort_SpecificationKind(), this.getPortSpecificationKind(), "specificationKind", "interfaceBased", 1, 1, ClientServerPort.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, IS_DERIVED, !IS_ORDERED); + initEAttribute(getClientServerPort_Kind(), this.getClientServerKind(), "kind", "proreq", 1, 1, ClientServerPort.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getClientServerPort_ProvInterface(), theUMLPackage.getInterface(), null, "provInterface", null, 0, -1, ClientServerPort.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getClientServerPort_ReqInterface(), theUMLPackage.getInterface(), null, "reqInterface", null, 0, -1, ClientServerPort.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getClientServerPort_FeaturesSpec(), this.getClientServerSpecification(), null, "featuresSpec", null, 0, 1, ClientServerPort.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(clientServerSpecificationEClass, ClientServerSpecification.class, "ClientServerSpecification", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getClientServerSpecification_Base_Interface(), theUMLPackage.getInterface(), null, "base_Interface", null, 1, 1, ClientServerSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(flowSpecificationEClass, FlowSpecification.class, "FlowSpecification", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getFlowSpecification_Base_Interface(), theUMLPackage.getInterface(), null, "base_Interface", null, 1, 1, FlowSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(clientServerFeatureEClass, ClientServerFeature.class, "ClientServerFeature", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getClientServerFeature_Kind(), this.getClientServerKind(), "kind", "proreq", 1, 1, ClientServerFeature.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getClientServerFeature_Base_BehavioralFeature(), theUMLPackage.getBehavioralFeature(), null, "base_BehavioralFeature", null, 1, 1, ClientServerFeature.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(gcmTriggerEClass, GCMTrigger.class, "GCMTrigger", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getGCMTrigger_Base_Trigger(), theUMLPackage.getTrigger(), null, "base_Trigger", null, 1, 1, GCMTrigger.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getGCMTrigger_Feature(), theUMLPackage.getFeature(), null, "feature", null, 1, 1, GCMTrigger.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(gcmInvocationActionEClass, GCMInvocationAction.class, "GCMInvocationAction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getGCMInvocationAction_Base_InvocationAction(), theUMLPackage.getInvocationAction(), null, "base_InvocationAction", null, 1, 1, GCMInvocationAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getGCMInvocationAction_OnFeature(), theUMLPackage.getFeature(), null, "onFeature", null, 1, 1, GCMInvocationAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(dataEventEClass, DataEvent.class, "DataEvent", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getDataEvent_Base_AnyReceiveEvent(), theUMLPackage.getAnyReceiveEvent(), null, "base_AnyReceiveEvent", null, 1, 1, DataEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getDataEvent_Classifier(), theUMLPackage.getClassifier(), null, "classifier", null, 1, 1, DataEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(dataPoolEClass, DataPool.class, "DataPool", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getDataPool_Ordering(), this.getDataPoolOrderingKind(), "ordering", "FIFO", 1, 1, DataPool.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getDataPool_Base_Property(), theUMLPackage.getProperty(), null, "base_Property", null, 1, 1, DataPool.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getDataPool_Insertion(), theUMLPackage.getBehavior(), null, "insertion", null, 0, 1, DataPool.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getDataPool_Selection(), theUMLPackage.getBehavior(), null, "selection", null, 0, 1, DataPool.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(gcmInvocatingBehaviorEClass, GCMInvocatingBehavior.class, "GCMInvocatingBehavior", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getGCMInvocatingBehavior_Base_Behavior(), theUMLPackage.getBehavior(), null, "base_Behavior", null, 1, 1, GCMInvocatingBehavior.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getGCMInvocatingBehavior_OnPorts(), theUMLPackage.getPort(), null, "onPorts", null, 0, -1, GCMInvocatingBehavior.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getGCMInvocatingBehavior_OnFeatures(), theUMLPackage.getFeature(), null, "onFeatures", null, 0, -1, GCMInvocatingBehavior.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getGCMInvocatingBehavior_Invocations(), theUMLPackage.getInvocationAction(), null, "invocations", null, 0, -1, GCMInvocatingBehavior.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + // Initialize enums and add enum literals + initEEnum(flowDirectionKindEEnum, FlowDirectionKind.class, "FlowDirectionKind"); + addEEnumLiteral(flowDirectionKindEEnum, FlowDirectionKind.IN); + addEEnumLiteral(flowDirectionKindEEnum, FlowDirectionKind.OUT); + addEEnumLiteral(flowDirectionKindEEnum, FlowDirectionKind.INOUT); + + initEEnum(portSpecificationKindEEnum, PortSpecificationKind.class, "PortSpecificationKind"); + addEEnumLiteral(portSpecificationKindEEnum, PortSpecificationKind.ATOMIC); + addEEnumLiteral(portSpecificationKindEEnum, PortSpecificationKind.INTERFACE_BASED); + addEEnumLiteral(portSpecificationKindEEnum, PortSpecificationKind.FEATURE_BASED); + + initEEnum(clientServerKindEEnum, ClientServerKind.class, "ClientServerKind"); + addEEnumLiteral(clientServerKindEEnum, ClientServerKind.REQUIRED); + addEEnumLiteral(clientServerKindEEnum, ClientServerKind.PROVIDED); + addEEnumLiteral(clientServerKindEEnum, ClientServerKind.PROREQ); + + initEEnum(dataPoolOrderingKindEEnum, DataPoolOrderingKind.class, "DataPoolOrderingKind"); + addEEnumLiteral(dataPoolOrderingKindEEnum, DataPoolOrderingKind.FIFO); + addEEnumLiteral(dataPoolOrderingKindEEnum, DataPoolOrderingKind.LIFO); + addEEnumLiteral(dataPoolOrderingKindEEnum, DataPoolOrderingKind.USER_DEFINED); + } + +} //GCMPackageImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/GCMTriggerImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/GCMTriggerImpl.java new file mode 100644 index 00000000000..ad63c228075 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/impl/GCMTriggerImpl.java @@ -0,0 +1,230 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.GCM.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMTrigger; + +import org.eclipse.uml2.uml.Feature; +import org.eclipse.uml2.uml.Trigger; + +/** + * + * An implementation of the model object 'Trigger'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMTriggerImpl#getBase_Trigger Base Trigger}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.impl.GCMTriggerImpl#getFeature Feature}
  • + *
+ *

+ * + * @generated + */ +public class GCMTriggerImpl extends EObjectImpl implements GCMTrigger { + /** + * The cached value of the '{@link #getBase_Trigger() Base Trigger}' reference. + * + * + * @see #getBase_Trigger() + * @generated + * @ordered + */ + protected Trigger base_Trigger; + + /** + * The cached value of the '{@link #getFeature() Feature}' reference. + * + * + * @see #getFeature() + * @generated + * @ordered + */ + protected Feature feature; + + /** + * + * + * @generated + */ + protected GCMTriggerImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return GCMPackage.Literals.GCM_TRIGGER; + } + + /** + * + * + * @generated + */ + public Trigger getBase_Trigger() { + if (base_Trigger != null && base_Trigger.eIsProxy()) { + InternalEObject oldBase_Trigger = (InternalEObject)base_Trigger; + base_Trigger = (Trigger)eResolveProxy(oldBase_Trigger); + if (base_Trigger != oldBase_Trigger) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GCMPackage.GCM_TRIGGER__BASE_TRIGGER, oldBase_Trigger, base_Trigger)); + } + } + return base_Trigger; + } + + /** + * + * + * @generated + */ + public Trigger basicGetBase_Trigger() { + return base_Trigger; + } + + /** + * + * + * @generated + */ + public void setBase_Trigger(Trigger newBase_Trigger) { + Trigger oldBase_Trigger = base_Trigger; + base_Trigger = newBase_Trigger; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GCMPackage.GCM_TRIGGER__BASE_TRIGGER, oldBase_Trigger, base_Trigger)); + } + + /** + * + * + * @generated + */ + public Feature getFeature() { + if (feature != null && feature.eIsProxy()) { + InternalEObject oldFeature = (InternalEObject)feature; + feature = (Feature)eResolveProxy(oldFeature); + if (feature != oldFeature) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GCMPackage.GCM_TRIGGER__FEATURE, oldFeature, feature)); + } + } + return feature; + } + + /** + * + * + * @generated + */ + public Feature basicGetFeature() { + return feature; + } + + /** + * + * + * @generated + */ + public void setFeature(Feature newFeature) { + Feature oldFeature = feature; + feature = newFeature; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GCMPackage.GCM_TRIGGER__FEATURE, oldFeature, feature)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case GCMPackage.GCM_TRIGGER__BASE_TRIGGER: + if (resolve) return getBase_Trigger(); + return basicGetBase_Trigger(); + case GCMPackage.GCM_TRIGGER__FEATURE: + if (resolve) return getFeature(); + return basicGetFeature(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case GCMPackage.GCM_TRIGGER__BASE_TRIGGER: + setBase_Trigger((Trigger)newValue); + return; + case GCMPackage.GCM_TRIGGER__FEATURE: + setFeature((Feature)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case GCMPackage.GCM_TRIGGER__BASE_TRIGGER: + setBase_Trigger((Trigger)null); + return; + case GCMPackage.GCM_TRIGGER__FEATURE: + setFeature((Feature)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case GCMPackage.GCM_TRIGGER__BASE_TRIGGER: + return base_Trigger != null; + case GCMPackage.GCM_TRIGGER__FEATURE: + return feature != null; + } + return super.eIsSet(featureID); + } + +} //GCMTriggerImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/util/GCMAdapterFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/util/GCMAdapterFactory.java new file mode 100644 index 00000000000..66bebd8ee98 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/util/GCMAdapterFactory.java @@ -0,0 +1,311 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.GCM.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.MARTE_DesignModel.GCM.*; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage + * @generated + */ +public class GCMAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * @generated + */ + protected static GCMPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public GCMAdapterFactory() { + if (modelPackage == null) { + modelPackage = GCMPackage.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 GCMSwitch modelSwitch = + new GCMSwitch() { + @Override + public Adapter caseFlowProperty(FlowProperty object) { + return createFlowPropertyAdapter(); + } + @Override + public Adapter caseFlowPort(FlowPort object) { + return createFlowPortAdapter(); + } + @Override + public Adapter caseClientServerPort(ClientServerPort object) { + return createClientServerPortAdapter(); + } + @Override + public Adapter caseClientServerSpecification(ClientServerSpecification object) { + return createClientServerSpecificationAdapter(); + } + @Override + public Adapter caseFlowSpecification(FlowSpecification object) { + return createFlowSpecificationAdapter(); + } + @Override + public Adapter caseClientServerFeature(ClientServerFeature object) { + return createClientServerFeatureAdapter(); + } + @Override + public Adapter caseGCMTrigger(GCMTrigger object) { + return createGCMTriggerAdapter(); + } + @Override + public Adapter caseGCMInvocationAction(GCMInvocationAction object) { + return createGCMInvocationActionAdapter(); + } + @Override + public Adapter caseDataEvent(DataEvent object) { + return createDataEventAdapter(); + } + @Override + public Adapter caseDataPool(DataPool object) { + return createDataPoolAdapter(); + } + @Override + public Adapter caseGCMInvocatingBehavior(GCMInvocatingBehavior object) { + return createGCMInvocatingBehaviorAdapter(); + } + @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.MARTE_DesignModel.GCM.FlowProperty Flow Property}'. + * + * 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.MARTE_DesignModel.GCM.FlowProperty + * @generated + */ + public Adapter createFlowPropertyAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowPort Flow Port}'. + * + * 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.MARTE_DesignModel.GCM.FlowPort + * @generated + */ + public Adapter createFlowPortAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerPort Client Server Port}'. + * + * 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.MARTE_DesignModel.GCM.ClientServerPort + * @generated + */ + public Adapter createClientServerPortAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerSpecification Client Server Specification}'. + * + * 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.MARTE_DesignModel.GCM.ClientServerSpecification + * @generated + */ + public Adapter createClientServerSpecificationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowSpecification Flow Specification}'. + * + * 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.MARTE_DesignModel.GCM.FlowSpecification + * @generated + */ + public Adapter createFlowSpecificationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerFeature Client Server Feature}'. + * + * 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.MARTE_DesignModel.GCM.ClientServerFeature + * @generated + */ + public Adapter createClientServerFeatureAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMTrigger Trigger}'. + * + * 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.MARTE_DesignModel.GCM.GCMTrigger + * @generated + */ + public Adapter createGCMTriggerAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMInvocationAction Invocation Action}'. + * + * 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.MARTE_DesignModel.GCM.GCMInvocationAction + * @generated + */ + public Adapter createGCMInvocationActionAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.DataEvent Data Event}'. + * + * 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.MARTE_DesignModel.GCM.DataEvent + * @generated + */ + public Adapter createDataEventAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.DataPool Data Pool}'. + * + * 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.MARTE_DesignModel.GCM.DataPool + * @generated + */ + public Adapter createDataPoolAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMInvocatingBehavior Invocating Behavior}'. + * + * 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.MARTE_DesignModel.GCM.GCMInvocatingBehavior + * @generated + */ + public Adapter createGCMInvocatingBehaviorAdapter() { + 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; + } + +} //GCMAdapterFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/util/GCMResourceFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/util/GCMResourceFactoryImpl.java new file mode 100644 index 00000000000..5cf45997399 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/util/GCMResourceFactoryImpl.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.MARTE_DesignModel.GCM.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; + +import org.eclipse.emf.ecore.xmi.XMLResource; + +/** + * + * The Resource Factory associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.util.GCMResourceImpl + * @generated + */ +public class GCMResourceFactoryImpl extends ResourceFactoryImpl { + /** + * Creates an instance of the resource factory. + * + * + * @generated + */ + public GCMResourceFactoryImpl() { + super(); + } + + /** + * Creates an instance of the resource. + * + * + * @generated + */ + @Override + public Resource createResource(URI uri) { + XMLResource result = new GCMResourceImpl(uri); + result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + + result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); + return result; + } + +} //GCMResourceFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/util/GCMResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/util/GCMResourceImpl.java new file mode 100644 index 00000000000..4f345b31d9d --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/util/GCMResourceImpl.java @@ -0,0 +1,39 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.GCM.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; + +/** + * + * The Resource associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.util.GCMResourceFactoryImpl + * @generated + */ +public class GCMResourceImpl extends XMLResourceImpl { + /** + * Creates an instance of the resource. + * + * + * @param uri the URI of the new resource. + * @generated + */ + public GCMResourceImpl(URI uri) { + super(uri); + } + +} //GCMResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/util/GCMSwitch.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/util/GCMSwitch.java new file mode 100644 index 00000000000..a3d4038cc8d --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/util/GCMSwitch.java @@ -0,0 +1,347 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.GCM.util; + +import java.util.List; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.*; + +/** + * + * 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.MARTE_DesignModel.GCM.GCMPackage + * @generated + */ +public class GCMSwitch { + /** + * The cached model package + * + * + * @generated + */ + protected static GCMPackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public GCMSwitch() { + if (modelPackage == null) { + modelPackage = GCMPackage.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 GCMPackage.FLOW_PROPERTY: { + FlowProperty flowProperty = (FlowProperty)theEObject; + T result = caseFlowProperty(flowProperty); + if (result == null) result = defaultCase(theEObject); + return result; + } + case GCMPackage.FLOW_PORT: { + FlowPort flowPort = (FlowPort)theEObject; + T result = caseFlowPort(flowPort); + if (result == null) result = defaultCase(theEObject); + return result; + } + case GCMPackage.CLIENT_SERVER_PORT: { + ClientServerPort clientServerPort = (ClientServerPort)theEObject; + T result = caseClientServerPort(clientServerPort); + if (result == null) result = defaultCase(theEObject); + return result; + } + case GCMPackage.CLIENT_SERVER_SPECIFICATION: { + ClientServerSpecification clientServerSpecification = (ClientServerSpecification)theEObject; + T result = caseClientServerSpecification(clientServerSpecification); + if (result == null) result = defaultCase(theEObject); + return result; + } + case GCMPackage.FLOW_SPECIFICATION: { + FlowSpecification flowSpecification = (FlowSpecification)theEObject; + T result = caseFlowSpecification(flowSpecification); + if (result == null) result = defaultCase(theEObject); + return result; + } + case GCMPackage.CLIENT_SERVER_FEATURE: { + ClientServerFeature clientServerFeature = (ClientServerFeature)theEObject; + T result = caseClientServerFeature(clientServerFeature); + if (result == null) result = defaultCase(theEObject); + return result; + } + case GCMPackage.GCM_TRIGGER: { + GCMTrigger gcmTrigger = (GCMTrigger)theEObject; + T result = caseGCMTrigger(gcmTrigger); + if (result == null) result = defaultCase(theEObject); + return result; + } + case GCMPackage.GCM_INVOCATION_ACTION: { + GCMInvocationAction gcmInvocationAction = (GCMInvocationAction)theEObject; + T result = caseGCMInvocationAction(gcmInvocationAction); + if (result == null) result = defaultCase(theEObject); + return result; + } + case GCMPackage.DATA_EVENT: { + DataEvent dataEvent = (DataEvent)theEObject; + T result = caseDataEvent(dataEvent); + if (result == null) result = defaultCase(theEObject); + return result; + } + case GCMPackage.DATA_POOL: { + DataPool dataPool = (DataPool)theEObject; + T result = caseDataPool(dataPool); + if (result == null) result = defaultCase(theEObject); + return result; + } + case GCMPackage.GCM_INVOCATING_BEHAVIOR: { + GCMInvocatingBehavior gcmInvocatingBehavior = (GCMInvocatingBehavior)theEObject; + T result = caseGCMInvocatingBehavior(gcmInvocatingBehavior); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Flow Property'. + * + * 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 'Flow Property'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseFlowProperty(FlowProperty object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Flow Port'. + * + * 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 'Flow Port'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseFlowPort(FlowPort object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Client Server Port'. + * + * 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 'Client Server Port'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseClientServerPort(ClientServerPort object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Client Server Specification'. + * + * 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 'Client Server Specification'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseClientServerSpecification(ClientServerSpecification object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Flow Specification'. + * + * 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 'Flow Specification'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseFlowSpecification(FlowSpecification object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Client Server Feature'. + * + * 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 'Client Server Feature'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseClientServerFeature(ClientServerFeature object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Trigger'. + * + * 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 'Trigger'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseGCMTrigger(GCMTrigger object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Invocation Action'. + * + * 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 'Invocation Action'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseGCMInvocationAction(GCMInvocationAction object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Data Event'. + * + * 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 'Data Event'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDataEvent(DataEvent object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Data Pool'. + * + * 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 'Data Pool'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDataPool(DataPool object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Invocating Behavior'. + * + * 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 'Invocating Behavior'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseGCMInvocatingBehavior(GCMInvocatingBehavior 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; + } + +} //GCMSwitch diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/util/GCMXMLProcessor.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/util/GCMXMLProcessor.java new file mode 100644 index 00000000000..0d564740032 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/util/GCMXMLProcessor.java @@ -0,0 +1,61 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.GCM.util; + +import java.util.Map; + +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.xmi.util.XMLProcessor; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.GCMPackage; + +/** + * This class contains helper methods to serialize and deserialize XML documents + * + * + * @generated + */ +public class GCMXMLProcessor extends XMLProcessor { + + /** + * Public constructor to instantiate the helper. + * + * + * @generated + */ + public GCMXMLProcessor() { + super((EPackage.Registry.INSTANCE)); + GCMPackage.eINSTANCE.eClass(); + } + + /** + * Register for "*" and "xml" file extensions the GCMResourceFactoryImpl factory. + * + * + * @generated + */ + @Override + protected Map getRegistrations() { + if (registrations == null) { + super.getRegistrations(); + registrations.put(XML_EXTENSION, new GCMResourceFactoryImpl()); + registrations.put(STAR_EXTENSION, new GCMResourceFactoryImpl()); + } + return registrations; + } + +} //GCMXMLProcessor diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/CallConcurrencyKind.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/CallConcurrencyKind.java new file mode 100644 index 00000000000..ec0996d7e06 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/CallConcurrencyKind.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.MARTE_DesignModel.HLAM; + +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 'Call Concurrency Kind', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getCallConcurrencyKind() + * @model + * @generated + */ +public enum CallConcurrencyKind implements Enumerator { + /** + * The 'Sequential' literal object. + * + * + * @see #SEQUENTIAL_VALUE + * @generated + * @ordered + */ + SEQUENTIAL(0, "sequential", "sequential"), + + /** + * The 'Guarded' literal object. + * + * + * @see #GUARDED_VALUE + * @generated + * @ordered + */ + GUARDED(1, "guarded", "guarded"), + + /** + * The 'Concurrent' literal object. + * + * + * @see #CONCURRENT_VALUE + * @generated + * @ordered + */ + CONCURRENT(2, "concurrent", "concurrent"); + + /** + * The 'Sequential' literal value. + * + *

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

+ * + * @see #SEQUENTIAL + * @model name="sequential" + * @generated + * @ordered + */ + public static final int SEQUENTIAL_VALUE = 0; + + /** + * The 'Guarded' literal value. + * + *

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

+ * + * @see #GUARDED + * @model name="guarded" + * @generated + * @ordered + */ + public static final int GUARDED_VALUE = 1; + + /** + * The 'Concurrent' literal value. + * + *

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

+ * + * @see #CONCURRENT + * @model name="concurrent" + * @generated + * @ordered + */ + public static final int CONCURRENT_VALUE = 2; + + /** + * An array of all the 'Call Concurrency Kind' enumerators. + * + * + * @generated + */ + private static final CallConcurrencyKind[] VALUES_ARRAY = + new CallConcurrencyKind[] { + SEQUENTIAL, + GUARDED, + CONCURRENT, + }; + + /** + * A public read-only list of all the 'Call Concurrency Kind' enumerators. + * + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Call Concurrency Kind' literal with the specified literal value. + * + * + * @generated + */ + public static CallConcurrencyKind get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + CallConcurrencyKind result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Call Concurrency Kind' literal with the specified name. + * + * + * @generated + */ + public static CallConcurrencyKind getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + CallConcurrencyKind result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Call Concurrency Kind' literal with the specified integer value. + * + * + * @generated + */ + public static CallConcurrencyKind get(int value) { + switch (value) { + case SEQUENTIAL_VALUE: return SEQUENTIAL; + case GUARDED_VALUE: return GUARDED; + case CONCURRENT_VALUE: return CONCURRENT; + } + 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 CallConcurrencyKind(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; + } + +} //CallConcurrencyKind diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/ConcurrencyKind.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/ConcurrencyKind.java new file mode 100644 index 00000000000..1b49c10cc28 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/ConcurrencyKind.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.MARTE_DesignModel.HLAM; + +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 'Concurrency Kind', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getConcurrencyKind() + * @model + * @generated + */ +public enum ConcurrencyKind implements Enumerator { + /** + * The 'Reader' literal object. + * + * + * @see #READER_VALUE + * @generated + * @ordered + */ + READER(0, "reader", "reader"), + + /** + * The 'Writer' literal object. + * + * + * @see #WRITER_VALUE + * @generated + * @ordered + */ + WRITER(1, "writer", "writer"), + + /** + * The 'Parallel' literal object. + * + * + * @see #PARALLEL_VALUE + * @generated + * @ordered + */ + PARALLEL(2, "parallel", "parallel"); + + /** + * The 'Reader' literal value. + * + *

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

+ * + * @see #READER + * @model name="reader" + * @generated + * @ordered + */ + public static final int READER_VALUE = 0; + + /** + * The 'Writer' literal value. + * + *

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

+ * + * @see #WRITER + * @model name="writer" + * @generated + * @ordered + */ + public static final int WRITER_VALUE = 1; + + /** + * The 'Parallel' literal value. + * + *

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

+ * + * @see #PARALLEL + * @model name="parallel" + * @generated + * @ordered + */ + public static final int PARALLEL_VALUE = 2; + + /** + * An array of all the 'Concurrency Kind' enumerators. + * + * + * @generated + */ + private static final ConcurrencyKind[] VALUES_ARRAY = + new ConcurrencyKind[] { + READER, + WRITER, + PARALLEL, + }; + + /** + * A public read-only list of all the 'Concurrency Kind' enumerators. + * + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Concurrency Kind' literal with the specified literal value. + * + * + * @generated + */ + public static ConcurrencyKind get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + ConcurrencyKind result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Concurrency Kind' literal with the specified name. + * + * + * @generated + */ + public static ConcurrencyKind getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + ConcurrencyKind result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Concurrency Kind' literal with the specified integer value. + * + * + * @generated + */ + public static ConcurrencyKind get(int value) { + switch (value) { + case READER_VALUE: return READER; + case WRITER_VALUE: return WRITER; + case PARALLEL_VALUE: return PARALLEL; + } + 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 ConcurrencyKind(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; + } + +} //ConcurrencyKind diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/ExecutionKind.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/ExecutionKind.java new file mode 100644 index 00000000000..e1680b67d43 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/ExecutionKind.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.MARTE_DesignModel.HLAM; + +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 'Execution Kind', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getExecutionKind() + * @model + * @generated + */ +public enum ExecutionKind implements Enumerator { + /** + * The 'Deferred' literal object. + * + * + * @see #DEFERRED_VALUE + * @generated + * @ordered + */ + DEFERRED(0, "deferred", "deferred"), + + /** + * The 'Remote Immediate' literal object. + * + * + * @see #REMOTE_IMMEDIATE_VALUE + * @generated + * @ordered + */ + REMOTE_IMMEDIATE(1, "remoteImmediate", "remoteImmediate"), + + /** + * The 'Local Immediate' literal object. + * + * + * @see #LOCAL_IMMEDIATE_VALUE + * @generated + * @ordered + */ + LOCAL_IMMEDIATE(2, "localImmediate", "localImmediate"); + + /** + * The 'Deferred' literal value. + * + *

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

+ * + * @see #DEFERRED + * @model name="deferred" + * @generated + * @ordered + */ + public static final int DEFERRED_VALUE = 0; + + /** + * The 'Remote Immediate' literal value. + * + *

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

+ * + * @see #REMOTE_IMMEDIATE + * @model name="remoteImmediate" + * @generated + * @ordered + */ + public static final int REMOTE_IMMEDIATE_VALUE = 1; + + /** + * The 'Local Immediate' literal value. + * + *

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

+ * + * @see #LOCAL_IMMEDIATE + * @model name="localImmediate" + * @generated + * @ordered + */ + public static final int LOCAL_IMMEDIATE_VALUE = 2; + + /** + * An array of all the 'Execution Kind' enumerators. + * + * + * @generated + */ + private static final ExecutionKind[] VALUES_ARRAY = + new ExecutionKind[] { + DEFERRED, + REMOTE_IMMEDIATE, + LOCAL_IMMEDIATE, + }; + + /** + * A public read-only list of all the 'Execution Kind' enumerators. + * + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Execution Kind' literal with the specified literal value. + * + * + * @generated + */ + public static ExecutionKind get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + ExecutionKind result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Execution Kind' literal with the specified name. + * + * + * @generated + */ + public static ExecutionKind getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + ExecutionKind result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Execution Kind' literal with the specified integer value. + * + * + * @generated + */ + public static ExecutionKind get(int value) { + switch (value) { + case DEFERRED_VALUE: return DEFERRED; + case REMOTE_IMMEDIATE_VALUE: return REMOTE_IMMEDIATE; + case LOCAL_IMMEDIATE_VALUE: return LOCAL_IMMEDIATE; + } + 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 ExecutionKind(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; + } + +} //ExecutionKind diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/HLAMFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/HLAMFactory.java new file mode 100644 index 00000000000..5e935d3b88f --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/HLAMFactory.java @@ -0,0 +1,98 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HLAM; + +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.MARTE_DesignModel.HLAM.HLAMPackage + * @generated + */ +public interface HLAMFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + HLAMFactory eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.HLAMFactoryImpl.init(); + + /** + * Returns a new object of class 'Rt Unit'. + * + * + * @return a new object of class 'Rt Unit'. + * @generated + */ + RtUnit createRtUnit(); + + /** + * Returns a new object of class 'Pp Unit'. + * + * + * @return a new object of class 'Pp Unit'. + * @generated + */ + PpUnit createPpUnit(); + + /** + * Returns a new object of class 'Rt Feature'. + * + * + * @return a new object of class 'Rt Feature'. + * @generated + */ + RtFeature createRtFeature(); + + /** + * Returns a new object of class 'Rt Specification'. + * + * + * @return a new object of class 'Rt Specification'. + * @generated + */ + RtSpecification createRtSpecification(); + + /** + * Returns a new object of class 'Rt Action'. + * + * + * @return a new object of class 'Rt Action'. + * @generated + */ + RtAction createRtAction(); + + /** + * Returns a new object of class 'Rt Service'. + * + * + * @return a new object of class 'Rt Service'. + * @generated + */ + RtService createRtService(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + HLAMPackage getHLAMPackage(); + +} //HLAMFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/HLAMPackage.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/HLAMPackage.java new file mode 100644 index 00000000000..7bc4dd97732 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/HLAMPackage.java @@ -0,0 +1,1655 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HLAM; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +/** + * + * 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.MARTE_DesignModel.HLAM.HLAMFactory + * @model kind="package" + * @generated + */ +public interface HLAMPackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "HLAM"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "http://www.eclipse.org/papyrus/HLAM/1"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "HLAM"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + HLAMPackage eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.HLAMPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtUnitImpl Rt Unit}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtUnitImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.HLAMPackageImpl#getRtUnit() + * @generated + */ + int RT_UNIT = 0; + + /** + * The feature id for the 'Is Dynamic' attribute. + * + * + * @generated + * @ordered + */ + int RT_UNIT__IS_DYNAMIC = 0; + + /** + * The feature id for the 'Is Main' attribute. + * + * + * @generated + * @ordered + */ + int RT_UNIT__IS_MAIN = 1; + + /** + * The feature id for the 'Sr Pool Size' attribute. + * + * + * @generated + * @ordered + */ + int RT_UNIT__SR_POOL_SIZE = 2; + + /** + * The feature id for the 'Sr Pool Policy' attribute. + * + * + * @generated + * @ordered + */ + int RT_UNIT__SR_POOL_POLICY = 3; + + /** + * The feature id for the 'Sr Pool Waiting Time' attribute. + * + * + * @generated + * @ordered + */ + int RT_UNIT__SR_POOL_WAITING_TIME = 4; + + /** + * The feature id for the 'Operational Mode' reference. + * + * + * @generated + * @ordered + */ + int RT_UNIT__OPERATIONAL_MODE = 5; + + /** + * The feature id for the 'Main' reference. + * + * + * @generated + * @ordered + */ + int RT_UNIT__MAIN = 6; + + /** + * The feature id for the 'Memory Size' attribute. + * + * + * @generated + * @ordered + */ + int RT_UNIT__MEMORY_SIZE = 7; + + /** + * The feature id for the 'Base Behaviored Classifier' reference. + * + * + * @generated + * @ordered + */ + int RT_UNIT__BASE_BEHAVIORED_CLASSIFIER = 8; + + /** + * The feature id for the 'Queue Sched Policy' attribute. + * + * + * @generated + * @ordered + */ + int RT_UNIT__QUEUE_SCHED_POLICY = 9; + + /** + * The feature id for the 'Queue Size' attribute. + * + * + * @generated + * @ordered + */ + int RT_UNIT__QUEUE_SIZE = 10; + + /** + * The feature id for the 'Msg Max Size' attribute. + * + * + * @generated + * @ordered + */ + int RT_UNIT__MSG_MAX_SIZE = 11; + + /** + * The number of structural features of the 'Rt Unit' class. + * + * + * @generated + * @ordered + */ + int RT_UNIT_FEATURE_COUNT = 12; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.PpUnitImpl Pp Unit}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.PpUnitImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.HLAMPackageImpl#getPpUnit() + * @generated + */ + int PP_UNIT = 1; + + /** + * The feature id for the 'Conc Policy' attribute. + * + * + * @generated + * @ordered + */ + int PP_UNIT__CONC_POLICY = 0; + + /** + * The feature id for the 'Memory Size' attribute. + * + * + * @generated + * @ordered + */ + int PP_UNIT__MEMORY_SIZE = 1; + + /** + * The feature id for the 'Base Behaviored Classifier' reference. + * + * + * @generated + * @ordered + */ + int PP_UNIT__BASE_BEHAVIORED_CLASSIFIER = 2; + + /** + * The number of structural features of the 'Pp Unit' class. + * + * + * @generated + * @ordered + */ + int PP_UNIT_FEATURE_COUNT = 3; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtFeatureImpl Rt Feature}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtFeatureImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.HLAMPackageImpl#getRtFeature() + * @generated + */ + int RT_FEATURE = 2; + + /** + * The feature id for the 'Base Behavioral Feature' reference. + * + * + * @generated + * @ordered + */ + int RT_FEATURE__BASE_BEHAVIORAL_FEATURE = 0; + + /** + * The feature id for the 'Base Message' reference. + * + * + * @generated + * @ordered + */ + int RT_FEATURE__BASE_MESSAGE = 1; + + /** + * The feature id for the 'Base Signal' reference. + * + * + * @generated + * @ordered + */ + int RT_FEATURE__BASE_SIGNAL = 2; + + /** + * The feature id for the 'Base Port' reference. + * + * + * @generated + * @ordered + */ + int RT_FEATURE__BASE_PORT = 3; + + /** + * The feature id for the 'Base Invocation Action' reference. + * + * + * @generated + * @ordered + */ + int RT_FEATURE__BASE_INVOCATION_ACTION = 4; + + /** + * The feature id for the 'Specification' reference list. + * + * + * @generated + * @ordered + */ + int RT_FEATURE__SPECIFICATION = 5; + + /** + * The number of structural features of the 'Rt Feature' class. + * + * + * @generated + * @ordered + */ + int RT_FEATURE_FEATURE_COUNT = 6; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtSpecificationImpl Rt Specification}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtSpecificationImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.HLAMPackageImpl#getRtSpecification() + * @generated + */ + int RT_SPECIFICATION = 3; + + /** + * The feature id for the 'Utility' attribute. + * + * + * @generated + * @ordered + */ + int RT_SPECIFICATION__UTILITY = 0; + + /** + * The feature id for the 'Occ Kind' attribute. + * + * + * @generated + * @ordered + */ + int RT_SPECIFICATION__OCC_KIND = 1; + + /** + * The feature id for the 'TRef' reference. + * + * + * @generated + * @ordered + */ + int RT_SPECIFICATION__TREF = 2; + + /** + * The feature id for the 'Rel Dl' attribute. + * + * + * @generated + * @ordered + */ + int RT_SPECIFICATION__REL_DL = 3; + + /** + * The feature id for the 'Abs Dl' attribute. + * + * + * @generated + * @ordered + */ + int RT_SPECIFICATION__ABS_DL = 4; + + /** + * The feature id for the 'Bound Dl' attribute. + * + * + * @generated + * @ordered + */ + int RT_SPECIFICATION__BOUND_DL = 5; + + /** + * The feature id for the 'Rd Time' attribute. + * + * + * @generated + * @ordered + */ + int RT_SPECIFICATION__RD_TIME = 6; + + /** + * The feature id for the 'Miss' attribute. + * + * + * @generated + * @ordered + */ + int RT_SPECIFICATION__MISS = 7; + + /** + * The feature id for the 'Priority' attribute. + * + * + * @generated + * @ordered + */ + int RT_SPECIFICATION__PRIORITY = 8; + + /** + * The feature id for the 'Base Comment' reference. + * + * + * @generated + * @ordered + */ + int RT_SPECIFICATION__BASE_COMMENT = 9; + + /** + * The feature id for the 'Context' reference. + * + * + * @generated + * @ordered + */ + int RT_SPECIFICATION__CONTEXT = 10; + + /** + * The number of structural features of the 'Rt Specification' class. + * + * + * @generated + * @ordered + */ + int RT_SPECIFICATION_FEATURE_COUNT = 11; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtActionImpl Rt Action}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtActionImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.HLAMPackageImpl#getRtAction() + * @generated + */ + int RT_ACTION = 4; + + /** + * The feature id for the 'Is Atomic' attribute. + * + * + * @generated + * @ordered + */ + int RT_ACTION__IS_ATOMIC = 0; + + /** + * The feature id for the 'Synch Kind' attribute. + * + * + * @generated + * @ordered + */ + int RT_ACTION__SYNCH_KIND = 1; + + /** + * The feature id for the 'Msg Size' attribute. + * + * + * @generated + * @ordered + */ + int RT_ACTION__MSG_SIZE = 2; + + /** + * The feature id for the 'Base Behavioral Feature' reference. + * + * + * @generated + * @ordered + */ + int RT_ACTION__BASE_BEHAVIORAL_FEATURE = 3; + + /** + * The feature id for the 'Base Invocation Action' reference. + * + * + * @generated + * @ordered + */ + int RT_ACTION__BASE_INVOCATION_ACTION = 4; + + /** + * The number of structural features of the 'Rt Action' class. + * + * + * @generated + * @ordered + */ + int RT_ACTION_FEATURE_COUNT = 5; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtServiceImpl Rt Service}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtServiceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.HLAMPackageImpl#getRtService() + * @generated + */ + int RT_SERVICE = 5; + + /** + * The feature id for the 'Conc Policy' attribute. + * + * + * @generated + * @ordered + */ + int RT_SERVICE__CONC_POLICY = 0; + + /** + * The feature id for the 'Exe Kind' attribute. + * + * + * @generated + * @ordered + */ + int RT_SERVICE__EXE_KIND = 1; + + /** + * The feature id for the 'Is Atomic' attribute. + * + * + * @generated + * @ordered + */ + int RT_SERVICE__IS_ATOMIC = 2; + + /** + * The feature id for the 'Synch Kind' attribute. + * + * + * @generated + * @ordered + */ + int RT_SERVICE__SYNCH_KIND = 3; + + /** + * The feature id for the 'Base Behavioral Feature' reference. + * + * + * @generated + * @ordered + */ + int RT_SERVICE__BASE_BEHAVIORAL_FEATURE = 4; + + /** + * The number of structural features of the 'Rt Service' class. + * + * + * @generated + * @ordered + */ + int RT_SERVICE_FEATURE_COUNT = 5; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.PoolMgtPolicyKind Pool Mgt Policy Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.PoolMgtPolicyKind + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.HLAMPackageImpl#getPoolMgtPolicyKind() + * @generated + */ + int POOL_MGT_POLICY_KIND = 6; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.CallConcurrencyKind Call Concurrency Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.CallConcurrencyKind + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.HLAMPackageImpl#getCallConcurrencyKind() + * @generated + */ + int CALL_CONCURRENCY_KIND = 7; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.SynchronizationKind Synchronization Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.SynchronizationKind + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.HLAMPackageImpl#getSynchronizationKind() + * @generated + */ + int SYNCHRONIZATION_KIND = 8; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.ExecutionKind Execution Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.ExecutionKind + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.HLAMPackageImpl#getExecutionKind() + * @generated + */ + int EXECUTION_KIND = 9; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.ConcurrencyKind Concurrency Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.ConcurrencyKind + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.HLAMPackageImpl#getConcurrencyKind() + * @generated + */ + int CONCURRENCY_KIND = 10; + + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit Rt Unit}'. + * + * + * @return the meta object for class 'Rt Unit'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit + * @generated + */ + EClass getRtUnit(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit#isIsDynamic Is Dynamic}'. + * + * + * @return the meta object for the attribute 'Is Dynamic'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit#isIsDynamic() + * @see #getRtUnit() + * @generated + */ + EAttribute getRtUnit_IsDynamic(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit#isIsMain Is Main}'. + * + * + * @return the meta object for the attribute 'Is Main'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit#isIsMain() + * @see #getRtUnit() + * @generated + */ + EAttribute getRtUnit_IsMain(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit#getSrPoolSize Sr Pool Size}'. + * + * + * @return the meta object for the attribute 'Sr Pool Size'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit#getSrPoolSize() + * @see #getRtUnit() + * @generated + */ + EAttribute getRtUnit_SrPoolSize(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit#getSrPoolPolicy Sr Pool Policy}'. + * + * + * @return the meta object for the attribute 'Sr Pool Policy'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit#getSrPoolPolicy() + * @see #getRtUnit() + * @generated + */ + EAttribute getRtUnit_SrPoolPolicy(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit#getSrPoolWaitingTime Sr Pool Waiting Time}'. + * + * + * @return the meta object for the attribute 'Sr Pool Waiting Time'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit#getSrPoolWaitingTime() + * @see #getRtUnit() + * @generated + */ + EAttribute getRtUnit_SrPoolWaitingTime(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit#getOperationalMode Operational Mode}'. + * + * + * @return the meta object for the reference 'Operational Mode'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit#getOperationalMode() + * @see #getRtUnit() + * @generated + */ + EReference getRtUnit_OperationalMode(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit#getMain Main}'. + * + * + * @return the meta object for the reference 'Main'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit#getMain() + * @see #getRtUnit() + * @generated + */ + EReference getRtUnit_Main(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit#getMemorySize Memory Size}'. + * + * + * @return the meta object for the attribute 'Memory Size'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit#getMemorySize() + * @see #getRtUnit() + * @generated + */ + EAttribute getRtUnit_MemorySize(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit#getBase_BehavioredClassifier Base Behaviored Classifier}'. + * + * + * @return the meta object for the reference 'Base Behaviored Classifier'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit#getBase_BehavioredClassifier() + * @see #getRtUnit() + * @generated + */ + EReference getRtUnit_Base_BehavioredClassifier(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit#getQueueSchedPolicy Queue Sched Policy}'. + * + * + * @return the meta object for the attribute 'Queue Sched Policy'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit#getQueueSchedPolicy() + * @see #getRtUnit() + * @generated + */ + EAttribute getRtUnit_QueueSchedPolicy(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit#getQueueSize Queue Size}'. + * + * + * @return the meta object for the attribute 'Queue Size'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit#getQueueSize() + * @see #getRtUnit() + * @generated + */ + EAttribute getRtUnit_QueueSize(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit#getMsgMaxSize Msg Max Size}'. + * + * + * @return the meta object for the attribute 'Msg Max Size'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit#getMsgMaxSize() + * @see #getRtUnit() + * @generated + */ + EAttribute getRtUnit_MsgMaxSize(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.PpUnit Pp Unit}'. + * + * + * @return the meta object for class 'Pp Unit'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.PpUnit + * @generated + */ + EClass getPpUnit(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.PpUnit#getConcPolicy Conc Policy}'. + * + * + * @return the meta object for the attribute 'Conc Policy'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.PpUnit#getConcPolicy() + * @see #getPpUnit() + * @generated + */ + EAttribute getPpUnit_ConcPolicy(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.PpUnit#getMemorySize Memory Size}'. + * + * + * @return the meta object for the attribute 'Memory Size'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.PpUnit#getMemorySize() + * @see #getPpUnit() + * @generated + */ + EAttribute getPpUnit_MemorySize(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.PpUnit#getBase_BehavioredClassifier Base Behaviored Classifier}'. + * + * + * @return the meta object for the reference 'Base Behaviored Classifier'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.PpUnit#getBase_BehavioredClassifier() + * @see #getPpUnit() + * @generated + */ + EReference getPpUnit_Base_BehavioredClassifier(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtFeature Rt Feature}'. + * + * + * @return the meta object for class 'Rt Feature'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtFeature + * @generated + */ + EClass getRtFeature(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtFeature#getBase_BehavioralFeature Base Behavioral Feature}'. + * + * + * @return the meta object for the reference 'Base Behavioral Feature'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtFeature#getBase_BehavioralFeature() + * @see #getRtFeature() + * @generated + */ + EReference getRtFeature_Base_BehavioralFeature(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtFeature#getBase_Message Base Message}'. + * + * + * @return the meta object for the reference 'Base Message'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtFeature#getBase_Message() + * @see #getRtFeature() + * @generated + */ + EReference getRtFeature_Base_Message(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtFeature#getBase_Signal Base Signal}'. + * + * + * @return the meta object for the reference 'Base Signal'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtFeature#getBase_Signal() + * @see #getRtFeature() + * @generated + */ + EReference getRtFeature_Base_Signal(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtFeature#getBase_Port Base Port}'. + * + * + * @return the meta object for the reference 'Base Port'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtFeature#getBase_Port() + * @see #getRtFeature() + * @generated + */ + EReference getRtFeature_Base_Port(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtFeature#getBase_InvocationAction Base Invocation Action}'. + * + * + * @return the meta object for the reference 'Base Invocation Action'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtFeature#getBase_InvocationAction() + * @see #getRtFeature() + * @generated + */ + EReference getRtFeature_Base_InvocationAction(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtFeature#getSpecification Specification}'. + * + * + * @return the meta object for the reference list 'Specification'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtFeature#getSpecification() + * @see #getRtFeature() + * @generated + */ + EReference getRtFeature_Specification(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtSpecification Rt Specification}'. + * + * + * @return the meta object for class 'Rt Specification'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtSpecification + * @generated + */ + EClass getRtSpecification(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtSpecification#getUtility Utility}'. + * + * + * @return the meta object for the attribute 'Utility'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtSpecification#getUtility() + * @see #getRtSpecification() + * @generated + */ + EAttribute getRtSpecification_Utility(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtSpecification#getOccKind Occ Kind}'. + * + * + * @return the meta object for the attribute 'Occ Kind'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtSpecification#getOccKind() + * @see #getRtSpecification() + * @generated + */ + EAttribute getRtSpecification_OccKind(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtSpecification#getTRef TRef}'. + * + * + * @return the meta object for the reference 'TRef'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtSpecification#getTRef() + * @see #getRtSpecification() + * @generated + */ + EReference getRtSpecification_TRef(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtSpecification#getRelDl Rel Dl}'. + * + * + * @return the meta object for the attribute 'Rel Dl'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtSpecification#getRelDl() + * @see #getRtSpecification() + * @generated + */ + EAttribute getRtSpecification_RelDl(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtSpecification#getAbsDl Abs Dl}'. + * + * + * @return the meta object for the attribute 'Abs Dl'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtSpecification#getAbsDl() + * @see #getRtSpecification() + * @generated + */ + EAttribute getRtSpecification_AbsDl(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtSpecification#getBoundDl Bound Dl}'. + * + * + * @return the meta object for the attribute 'Bound Dl'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtSpecification#getBoundDl() + * @see #getRtSpecification() + * @generated + */ + EAttribute getRtSpecification_BoundDl(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtSpecification#getRdTime Rd Time}'. + * + * + * @return the meta object for the attribute 'Rd Time'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtSpecification#getRdTime() + * @see #getRtSpecification() + * @generated + */ + EAttribute getRtSpecification_RdTime(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtSpecification#getMiss Miss}'. + * + * + * @return the meta object for the attribute 'Miss'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtSpecification#getMiss() + * @see #getRtSpecification() + * @generated + */ + EAttribute getRtSpecification_Miss(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtSpecification#getPriority Priority}'. + * + * + * @return the meta object for the attribute 'Priority'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtSpecification#getPriority() + * @see #getRtSpecification() + * @generated + */ + EAttribute getRtSpecification_Priority(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtSpecification#getBase_Comment Base Comment}'. + * + * + * @return the meta object for the reference 'Base Comment'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtSpecification#getBase_Comment() + * @see #getRtSpecification() + * @generated + */ + EReference getRtSpecification_Base_Comment(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtSpecification#getContext Context}'. + * + * + * @return the meta object for the reference 'Context'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtSpecification#getContext() + * @see #getRtSpecification() + * @generated + */ + EReference getRtSpecification_Context(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtAction Rt Action}'. + * + * + * @return the meta object for class 'Rt Action'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtAction + * @generated + */ + EClass getRtAction(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtAction#isIsAtomic Is Atomic}'. + * + * + * @return the meta object for the attribute 'Is Atomic'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtAction#isIsAtomic() + * @see #getRtAction() + * @generated + */ + EAttribute getRtAction_IsAtomic(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtAction#getSynchKind Synch Kind}'. + * + * + * @return the meta object for the attribute 'Synch Kind'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtAction#getSynchKind() + * @see #getRtAction() + * @generated + */ + EAttribute getRtAction_SynchKind(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtAction#getMsgSize Msg Size}'. + * + * + * @return the meta object for the attribute 'Msg Size'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtAction#getMsgSize() + * @see #getRtAction() + * @generated + */ + EAttribute getRtAction_MsgSize(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtAction#getBase_BehavioralFeature Base Behavioral Feature}'. + * + * + * @return the meta object for the reference 'Base Behavioral Feature'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtAction#getBase_BehavioralFeature() + * @see #getRtAction() + * @generated + */ + EReference getRtAction_Base_BehavioralFeature(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtAction#getBase_InvocationAction Base Invocation Action}'. + * + * + * @return the meta object for the reference 'Base Invocation Action'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtAction#getBase_InvocationAction() + * @see #getRtAction() + * @generated + */ + EReference getRtAction_Base_InvocationAction(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtService Rt Service}'. + * + * + * @return the meta object for class 'Rt Service'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtService + * @generated + */ + EClass getRtService(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtService#getConcPolicy Conc Policy}'. + * + * + * @return the meta object for the attribute 'Conc Policy'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtService#getConcPolicy() + * @see #getRtService() + * @generated + */ + EAttribute getRtService_ConcPolicy(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtService#getExeKind Exe Kind}'. + * + * + * @return the meta object for the attribute 'Exe Kind'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtService#getExeKind() + * @see #getRtService() + * @generated + */ + EAttribute getRtService_ExeKind(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtService#isIsAtomic Is Atomic}'. + * + * + * @return the meta object for the attribute 'Is Atomic'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtService#isIsAtomic() + * @see #getRtService() + * @generated + */ + EAttribute getRtService_IsAtomic(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtService#getSynchKind Synch Kind}'. + * + * + * @return the meta object for the attribute 'Synch Kind'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtService#getSynchKind() + * @see #getRtService() + * @generated + */ + EAttribute getRtService_SynchKind(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtService#getBase_BehavioralFeature Base Behavioral Feature}'. + * + * + * @return the meta object for the reference 'Base Behavioral Feature'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtService#getBase_BehavioralFeature() + * @see #getRtService() + * @generated + */ + EReference getRtService_Base_BehavioralFeature(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.PoolMgtPolicyKind Pool Mgt Policy Kind}'. + * + * + * @return the meta object for enum 'Pool Mgt Policy Kind'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.PoolMgtPolicyKind + * @generated + */ + EEnum getPoolMgtPolicyKind(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.CallConcurrencyKind Call Concurrency Kind}'. + * + * + * @return the meta object for enum 'Call Concurrency Kind'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.CallConcurrencyKind + * @generated + */ + EEnum getCallConcurrencyKind(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.SynchronizationKind Synchronization Kind}'. + * + * + * @return the meta object for enum 'Synchronization Kind'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.SynchronizationKind + * @generated + */ + EEnum getSynchronizationKind(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.ExecutionKind Execution Kind}'. + * + * + * @return the meta object for enum 'Execution Kind'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.ExecutionKind + * @generated + */ + EEnum getExecutionKind(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.ConcurrencyKind Concurrency Kind}'. + * + * + * @return the meta object for enum 'Concurrency Kind'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.ConcurrencyKind + * @generated + */ + EEnum getConcurrencyKind(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + HLAMFactory getHLAMFactory(); + + /** + * + * 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.MARTE_DesignModel.HLAM.impl.RtUnitImpl Rt Unit}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtUnitImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.HLAMPackageImpl#getRtUnit() + * @generated + */ + EClass RT_UNIT = eINSTANCE.getRtUnit(); + + /** + * The meta object literal for the 'Is Dynamic' attribute feature. + * + * + * @generated + */ + EAttribute RT_UNIT__IS_DYNAMIC = eINSTANCE.getRtUnit_IsDynamic(); + + /** + * The meta object literal for the 'Is Main' attribute feature. + * + * + * @generated + */ + EAttribute RT_UNIT__IS_MAIN = eINSTANCE.getRtUnit_IsMain(); + + /** + * The meta object literal for the 'Sr Pool Size' attribute feature. + * + * + * @generated + */ + EAttribute RT_UNIT__SR_POOL_SIZE = eINSTANCE.getRtUnit_SrPoolSize(); + + /** + * The meta object literal for the 'Sr Pool Policy' attribute feature. + * + * + * @generated + */ + EAttribute RT_UNIT__SR_POOL_POLICY = eINSTANCE.getRtUnit_SrPoolPolicy(); + + /** + * The meta object literal for the 'Sr Pool Waiting Time' attribute feature. + * + * + * @generated + */ + EAttribute RT_UNIT__SR_POOL_WAITING_TIME = eINSTANCE.getRtUnit_SrPoolWaitingTime(); + + /** + * The meta object literal for the 'Operational Mode' reference feature. + * + * + * @generated + */ + EReference RT_UNIT__OPERATIONAL_MODE = eINSTANCE.getRtUnit_OperationalMode(); + + /** + * The meta object literal for the 'Main' reference feature. + * + * + * @generated + */ + EReference RT_UNIT__MAIN = eINSTANCE.getRtUnit_Main(); + + /** + * The meta object literal for the 'Memory Size' attribute feature. + * + * + * @generated + */ + EAttribute RT_UNIT__MEMORY_SIZE = eINSTANCE.getRtUnit_MemorySize(); + + /** + * The meta object literal for the 'Base Behaviored Classifier' reference feature. + * + * + * @generated + */ + EReference RT_UNIT__BASE_BEHAVIORED_CLASSIFIER = eINSTANCE.getRtUnit_Base_BehavioredClassifier(); + + /** + * The meta object literal for the 'Queue Sched Policy' attribute feature. + * + * + * @generated + */ + EAttribute RT_UNIT__QUEUE_SCHED_POLICY = eINSTANCE.getRtUnit_QueueSchedPolicy(); + + /** + * The meta object literal for the 'Queue Size' attribute feature. + * + * + * @generated + */ + EAttribute RT_UNIT__QUEUE_SIZE = eINSTANCE.getRtUnit_QueueSize(); + + /** + * The meta object literal for the 'Msg Max Size' attribute feature. + * + * + * @generated + */ + EAttribute RT_UNIT__MSG_MAX_SIZE = eINSTANCE.getRtUnit_MsgMaxSize(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.PpUnitImpl Pp Unit}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.PpUnitImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.HLAMPackageImpl#getPpUnit() + * @generated + */ + EClass PP_UNIT = eINSTANCE.getPpUnit(); + + /** + * The meta object literal for the 'Conc Policy' attribute feature. + * + * + * @generated + */ + EAttribute PP_UNIT__CONC_POLICY = eINSTANCE.getPpUnit_ConcPolicy(); + + /** + * The meta object literal for the 'Memory Size' attribute feature. + * + * + * @generated + */ + EAttribute PP_UNIT__MEMORY_SIZE = eINSTANCE.getPpUnit_MemorySize(); + + /** + * The meta object literal for the 'Base Behaviored Classifier' reference feature. + * + * + * @generated + */ + EReference PP_UNIT__BASE_BEHAVIORED_CLASSIFIER = eINSTANCE.getPpUnit_Base_BehavioredClassifier(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtFeatureImpl Rt Feature}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtFeatureImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.HLAMPackageImpl#getRtFeature() + * @generated + */ + EClass RT_FEATURE = eINSTANCE.getRtFeature(); + + /** + * The meta object literal for the 'Base Behavioral Feature' reference feature. + * + * + * @generated + */ + EReference RT_FEATURE__BASE_BEHAVIORAL_FEATURE = eINSTANCE.getRtFeature_Base_BehavioralFeature(); + + /** + * The meta object literal for the 'Base Message' reference feature. + * + * + * @generated + */ + EReference RT_FEATURE__BASE_MESSAGE = eINSTANCE.getRtFeature_Base_Message(); + + /** + * The meta object literal for the 'Base Signal' reference feature. + * + * + * @generated + */ + EReference RT_FEATURE__BASE_SIGNAL = eINSTANCE.getRtFeature_Base_Signal(); + + /** + * The meta object literal for the 'Base Port' reference feature. + * + * + * @generated + */ + EReference RT_FEATURE__BASE_PORT = eINSTANCE.getRtFeature_Base_Port(); + + /** + * The meta object literal for the 'Base Invocation Action' reference feature. + * + * + * @generated + */ + EReference RT_FEATURE__BASE_INVOCATION_ACTION = eINSTANCE.getRtFeature_Base_InvocationAction(); + + /** + * The meta object literal for the 'Specification' reference list feature. + * + * + * @generated + */ + EReference RT_FEATURE__SPECIFICATION = eINSTANCE.getRtFeature_Specification(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtSpecificationImpl Rt Specification}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtSpecificationImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.HLAMPackageImpl#getRtSpecification() + * @generated + */ + EClass RT_SPECIFICATION = eINSTANCE.getRtSpecification(); + + /** + * The meta object literal for the 'Utility' attribute feature. + * + * + * @generated + */ + EAttribute RT_SPECIFICATION__UTILITY = eINSTANCE.getRtSpecification_Utility(); + + /** + * The meta object literal for the 'Occ Kind' attribute feature. + * + * + * @generated + */ + EAttribute RT_SPECIFICATION__OCC_KIND = eINSTANCE.getRtSpecification_OccKind(); + + /** + * The meta object literal for the 'TRef' reference feature. + * + * + * @generated + */ + EReference RT_SPECIFICATION__TREF = eINSTANCE.getRtSpecification_TRef(); + + /** + * The meta object literal for the 'Rel Dl' attribute feature. + * + * + * @generated + */ + EAttribute RT_SPECIFICATION__REL_DL = eINSTANCE.getRtSpecification_RelDl(); + + /** + * The meta object literal for the 'Abs Dl' attribute feature. + * + * + * @generated + */ + EAttribute RT_SPECIFICATION__ABS_DL = eINSTANCE.getRtSpecification_AbsDl(); + + /** + * The meta object literal for the 'Bound Dl' attribute feature. + * + * + * @generated + */ + EAttribute RT_SPECIFICATION__BOUND_DL = eINSTANCE.getRtSpecification_BoundDl(); + + /** + * The meta object literal for the 'Rd Time' attribute feature. + * + * + * @generated + */ + EAttribute RT_SPECIFICATION__RD_TIME = eINSTANCE.getRtSpecification_RdTime(); + + /** + * The meta object literal for the 'Miss' attribute feature. + * + * + * @generated + */ + EAttribute RT_SPECIFICATION__MISS = eINSTANCE.getRtSpecification_Miss(); + + /** + * The meta object literal for the 'Priority' attribute feature. + * + * + * @generated + */ + EAttribute RT_SPECIFICATION__PRIORITY = eINSTANCE.getRtSpecification_Priority(); + + /** + * The meta object literal for the 'Base Comment' reference feature. + * + * + * @generated + */ + EReference RT_SPECIFICATION__BASE_COMMENT = eINSTANCE.getRtSpecification_Base_Comment(); + + /** + * The meta object literal for the 'Context' reference feature. + * + * + * @generated + */ + EReference RT_SPECIFICATION__CONTEXT = eINSTANCE.getRtSpecification_Context(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtActionImpl Rt Action}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtActionImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.HLAMPackageImpl#getRtAction() + * @generated + */ + EClass RT_ACTION = eINSTANCE.getRtAction(); + + /** + * The meta object literal for the 'Is Atomic' attribute feature. + * + * + * @generated + */ + EAttribute RT_ACTION__IS_ATOMIC = eINSTANCE.getRtAction_IsAtomic(); + + /** + * The meta object literal for the 'Synch Kind' attribute feature. + * + * + * @generated + */ + EAttribute RT_ACTION__SYNCH_KIND = eINSTANCE.getRtAction_SynchKind(); + + /** + * The meta object literal for the 'Msg Size' attribute feature. + * + * + * @generated + */ + EAttribute RT_ACTION__MSG_SIZE = eINSTANCE.getRtAction_MsgSize(); + + /** + * The meta object literal for the 'Base Behavioral Feature' reference feature. + * + * + * @generated + */ + EReference RT_ACTION__BASE_BEHAVIORAL_FEATURE = eINSTANCE.getRtAction_Base_BehavioralFeature(); + + /** + * The meta object literal for the 'Base Invocation Action' reference feature. + * + * + * @generated + */ + EReference RT_ACTION__BASE_INVOCATION_ACTION = eINSTANCE.getRtAction_Base_InvocationAction(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtServiceImpl Rt Service}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtServiceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.HLAMPackageImpl#getRtService() + * @generated + */ + EClass RT_SERVICE = eINSTANCE.getRtService(); + + /** + * The meta object literal for the 'Conc Policy' attribute feature. + * + * + * @generated + */ + EAttribute RT_SERVICE__CONC_POLICY = eINSTANCE.getRtService_ConcPolicy(); + + /** + * The meta object literal for the 'Exe Kind' attribute feature. + * + * + * @generated + */ + EAttribute RT_SERVICE__EXE_KIND = eINSTANCE.getRtService_ExeKind(); + + /** + * The meta object literal for the 'Is Atomic' attribute feature. + * + * + * @generated + */ + EAttribute RT_SERVICE__IS_ATOMIC = eINSTANCE.getRtService_IsAtomic(); + + /** + * The meta object literal for the 'Synch Kind' attribute feature. + * + * + * @generated + */ + EAttribute RT_SERVICE__SYNCH_KIND = eINSTANCE.getRtService_SynchKind(); + + /** + * The meta object literal for the 'Base Behavioral Feature' reference feature. + * + * + * @generated + */ + EReference RT_SERVICE__BASE_BEHAVIORAL_FEATURE = eINSTANCE.getRtService_Base_BehavioralFeature(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.PoolMgtPolicyKind Pool Mgt Policy Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.PoolMgtPolicyKind + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.HLAMPackageImpl#getPoolMgtPolicyKind() + * @generated + */ + EEnum POOL_MGT_POLICY_KIND = eINSTANCE.getPoolMgtPolicyKind(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.CallConcurrencyKind Call Concurrency Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.CallConcurrencyKind + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.HLAMPackageImpl#getCallConcurrencyKind() + * @generated + */ + EEnum CALL_CONCURRENCY_KIND = eINSTANCE.getCallConcurrencyKind(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.SynchronizationKind Synchronization Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.SynchronizationKind + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.HLAMPackageImpl#getSynchronizationKind() + * @generated + */ + EEnum SYNCHRONIZATION_KIND = eINSTANCE.getSynchronizationKind(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.ExecutionKind Execution Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.ExecutionKind + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.HLAMPackageImpl#getExecutionKind() + * @generated + */ + EEnum EXECUTION_KIND = eINSTANCE.getExecutionKind(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.ConcurrencyKind Concurrency Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.ConcurrencyKind + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.HLAMPackageImpl#getConcurrencyKind() + * @generated + */ + EEnum CONCURRENCY_KIND = eINSTANCE.getConcurrencyKind(); + + } + +} //HLAMPackage diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/PoolMgtPolicyKind.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/PoolMgtPolicyKind.java new file mode 100644 index 00000000000..7a79e7cc44d --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/PoolMgtPolicyKind.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.MARTE_DesignModel.HLAM; + +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 'Pool Mgt Policy Kind', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getPoolMgtPolicyKind() + * @model + * @generated + */ +public enum PoolMgtPolicyKind implements Enumerator { + /** + * The 'Infinite Wait' literal object. + * + * + * @see #INFINITE_WAIT_VALUE + * @generated + * @ordered + */ + INFINITE_WAIT(0, "infiniteWait", "infiniteWait"), + + /** + * The 'Timed Wait' literal object. + * + * + * @see #TIMED_WAIT_VALUE + * @generated + * @ordered + */ + TIMED_WAIT(1, "timedWait", "timedWait"), + + /** + * The 'Dynamic' literal object. + * + * + * @see #DYNAMIC_VALUE + * @generated + * @ordered + */ + DYNAMIC(2, "dynamic", "dynamic"), + + /** + * The 'Exception' literal object. + * + * + * @see #EXCEPTION_VALUE + * @generated + * @ordered + */ + EXCEPTION(3, "exception", "exception"), + + /** + * The 'Other' literal object. + * + * + * @see #OTHER_VALUE + * @generated + * @ordered + */ + OTHER(4, "other", "other"); + + /** + * The 'Infinite Wait' literal value. + * + *

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

+ * + * @see #INFINITE_WAIT + * @model name="infiniteWait" + * @generated + * @ordered + */ + public static final int INFINITE_WAIT_VALUE = 0; + + /** + * The 'Timed Wait' literal value. + * + *

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

+ * + * @see #TIMED_WAIT + * @model name="timedWait" + * @generated + * @ordered + */ + public static final int TIMED_WAIT_VALUE = 1; + + /** + * The 'Dynamic' literal value. + * + *

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

+ * + * @see #DYNAMIC + * @model name="dynamic" + * @generated + * @ordered + */ + public static final int DYNAMIC_VALUE = 2; + + /** + * The 'Exception' literal value. + * + *

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

+ * + * @see #EXCEPTION + * @model name="exception" + * @generated + * @ordered + */ + public static final int EXCEPTION_VALUE = 3; + + /** + * 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 = 4; + + /** + * An array of all the 'Pool Mgt Policy Kind' enumerators. + * + * + * @generated + */ + private static final PoolMgtPolicyKind[] VALUES_ARRAY = + new PoolMgtPolicyKind[] { + INFINITE_WAIT, + TIMED_WAIT, + DYNAMIC, + EXCEPTION, + OTHER, + }; + + /** + * A public read-only list of all the 'Pool Mgt Policy Kind' enumerators. + * + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Pool Mgt Policy Kind' literal with the specified literal value. + * + * + * @generated + */ + public static PoolMgtPolicyKind get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + PoolMgtPolicyKind result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Pool Mgt Policy Kind' literal with the specified name. + * + * + * @generated + */ + public static PoolMgtPolicyKind getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + PoolMgtPolicyKind result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Pool Mgt Policy Kind' literal with the specified integer value. + * + * + * @generated + */ + public static PoolMgtPolicyKind get(int value) { + switch (value) { + case INFINITE_WAIT_VALUE: return INFINITE_WAIT; + case TIMED_WAIT_VALUE: return TIMED_WAIT; + case DYNAMIC_VALUE: return DYNAMIC; + case EXCEPTION_VALUE: return EXCEPTION; + 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 PoolMgtPolicyKind(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; + } + +} //PoolMgtPolicyKind diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/PpUnit.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/PpUnit.java new file mode 100644 index 00000000000..b9400217c49 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/PpUnit.java @@ -0,0 +1,120 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HLAM; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.uml2.uml.BehavioredClassifier; + +/** + * + * A representation of the model object 'Pp Unit'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.PpUnit#getConcPolicy Conc Policy}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.PpUnit#getMemorySize Memory Size}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.PpUnit#getBase_BehavioredClassifier Base Behaviored Classifier}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getPpUnit() + * @model + * @generated + */ +public interface PpUnit extends EObject { + /** + * Returns the value of the 'Conc Policy' attribute. + * The literals are from the enumeration {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.CallConcurrencyKind}. + * + *

+ * If the meaning of the 'Conc Policy' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Conc Policy' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.CallConcurrencyKind + * @see #setConcPolicy(CallConcurrencyKind) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getPpUnit_ConcPolicy() + * @model unique="false" ordered="false" + * @generated + */ + CallConcurrencyKind getConcPolicy(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.PpUnit#getConcPolicy Conc Policy}' attribute. + * + * + * @param value the new value of the 'Conc Policy' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.CallConcurrencyKind + * @see #getConcPolicy() + * @generated + */ + void setConcPolicy(CallConcurrencyKind value); + + /** + * Returns the value of the 'Memory Size' attribute. + * + *

+ * If the meaning of the 'Memory Size' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Memory Size' attribute. + * @see #setMemorySize(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getPpUnit_MemorySize() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_DataSize" ordered="false" + * @generated + */ + String getMemorySize(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.PpUnit#getMemorySize Memory Size}' attribute. + * + * + * @param value the new value of the 'Memory Size' attribute. + * @see #getMemorySize() + * @generated + */ + void setMemorySize(String value); + + /** + * Returns the value of the 'Base Behaviored Classifier' reference. + * + *

+ * If the meaning of the 'Base Behaviored Classifier' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Behaviored Classifier' reference. + * @see #setBase_BehavioredClassifier(BehavioredClassifier) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getPpUnit_Base_BehavioredClassifier() + * @model required="true" ordered="false" + * @generated + */ + BehavioredClassifier getBase_BehavioredClassifier(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.PpUnit#getBase_BehavioredClassifier Base Behaviored Classifier}' reference. + * + * + * @param value the new value of the 'Base Behaviored Classifier' reference. + * @see #getBase_BehavioredClassifier() + * @generated + */ + void setBase_BehavioredClassifier(BehavioredClassifier value); + +} // PpUnit diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/RtAction.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/RtAction.java new file mode 100644 index 00000000000..579f255305d --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/RtAction.java @@ -0,0 +1,176 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HLAM; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.uml2.uml.BehavioralFeature; +import org.eclipse.uml2.uml.InvocationAction; + +/** + * + * A representation of the model object 'Rt Action'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtAction#isIsAtomic Is Atomic}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtAction#getSynchKind Synch Kind}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtAction#getMsgSize Msg Size}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtAction#getBase_BehavioralFeature Base Behavioral Feature}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtAction#getBase_InvocationAction Base Invocation Action}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getRtAction() + * @model + * @generated + */ +public interface RtAction extends EObject { + /** + * Returns the value of the 'Is Atomic' attribute. + * The default value is "false". + * + *

+ * If the meaning of the 'Is Atomic' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Is Atomic' attribute. + * @see #setIsAtomic(boolean) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getRtAction_IsAtomic() + * @model default="false" unique="false" dataType="org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.Boolean" required="true" ordered="false" + * @generated + */ + boolean isIsAtomic(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtAction#isIsAtomic Is Atomic}' attribute. + * + * + * @param value the new value of the 'Is Atomic' attribute. + * @see #isIsAtomic() + * @generated + */ + void setIsAtomic(boolean value); + + /** + * Returns the value of the 'Synch Kind' attribute. + * The literals are from the enumeration {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.SynchronizationKind}. + * + *

+ * If the meaning of the 'Synch Kind' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Synch Kind' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.SynchronizationKind + * @see #setSynchKind(SynchronizationKind) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getRtAction_SynchKind() + * @model unique="false" ordered="false" + * @generated + */ + SynchronizationKind getSynchKind(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtAction#getSynchKind Synch Kind}' attribute. + * + * + * @param value the new value of the 'Synch Kind' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.SynchronizationKind + * @see #getSynchKind() + * @generated + */ + void setSynchKind(SynchronizationKind value); + + /** + * Returns the value of the 'Msg Size' attribute. + * + *

+ * If the meaning of the 'Msg Size' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Msg Size' attribute. + * @see #setMsgSize(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getRtAction_MsgSize() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_DataSize" ordered="false" + * @generated + */ + String getMsgSize(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtAction#getMsgSize Msg Size}' attribute. + * + * + * @param value the new value of the 'Msg Size' attribute. + * @see #getMsgSize() + * @generated + */ + void setMsgSize(String value); + + /** + * Returns the value of the 'Base Behavioral Feature' reference. + * + *

+ * If the meaning of the 'Base Behavioral Feature' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Behavioral Feature' reference. + * @see #setBase_BehavioralFeature(BehavioralFeature) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getRtAction_Base_BehavioralFeature() + * @model required="true" ordered="false" + * @generated + */ + BehavioralFeature getBase_BehavioralFeature(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtAction#getBase_BehavioralFeature Base Behavioral Feature}' reference. + * + * + * @param value the new value of the 'Base Behavioral Feature' reference. + * @see #getBase_BehavioralFeature() + * @generated + */ + void setBase_BehavioralFeature(BehavioralFeature value); + + /** + * Returns the value of the 'Base Invocation Action' reference. + * + *

+ * If the meaning of the 'Base Invocation Action' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Invocation Action' reference. + * @see #setBase_InvocationAction(InvocationAction) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getRtAction_Base_InvocationAction() + * @model required="true" ordered="false" + * @generated + */ + InvocationAction getBase_InvocationAction(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtAction#getBase_InvocationAction Base Invocation Action}' reference. + * + * + * @param value the new value of the 'Base Invocation Action' reference. + * @see #getBase_InvocationAction() + * @generated + */ + void setBase_InvocationAction(InvocationAction value); + +} // RtAction diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/RtFeature.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/RtFeature.java new file mode 100644 index 00000000000..93de5b7b3ad --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/RtFeature.java @@ -0,0 +1,194 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HLAM; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.uml2.uml.BehavioralFeature; +import org.eclipse.uml2.uml.InvocationAction; +import org.eclipse.uml2.uml.Message; +import org.eclipse.uml2.uml.Port; +import org.eclipse.uml2.uml.Signal; + +/** + * + * A representation of the model object 'Rt Feature'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtFeature#getBase_BehavioralFeature Base Behavioral Feature}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtFeature#getBase_Message Base Message}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtFeature#getBase_Signal Base Signal}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtFeature#getBase_Port Base Port}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtFeature#getBase_InvocationAction Base Invocation Action}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtFeature#getSpecification Specification}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getRtFeature() + * @model + * @generated + */ +public interface RtFeature extends EObject { + /** + * Returns the value of the 'Base Behavioral Feature' reference. + * + *

+ * If the meaning of the 'Base Behavioral Feature' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Behavioral Feature' reference. + * @see #setBase_BehavioralFeature(BehavioralFeature) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getRtFeature_Base_BehavioralFeature() + * @model required="true" ordered="false" + * @generated + */ + BehavioralFeature getBase_BehavioralFeature(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtFeature#getBase_BehavioralFeature Base Behavioral Feature}' reference. + * + * + * @param value the new value of the 'Base Behavioral Feature' reference. + * @see #getBase_BehavioralFeature() + * @generated + */ + void setBase_BehavioralFeature(BehavioralFeature value); + + /** + * Returns the value of the 'Base Message' reference. + * + *

+ * If the meaning of the 'Base Message' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Message' reference. + * @see #setBase_Message(Message) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getRtFeature_Base_Message() + * @model required="true" ordered="false" + * @generated + */ + Message getBase_Message(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtFeature#getBase_Message Base Message}' reference. + * + * + * @param value the new value of the 'Base Message' reference. + * @see #getBase_Message() + * @generated + */ + void setBase_Message(Message value); + + /** + * Returns the value of the 'Base Signal' reference. + * + *

+ * If the meaning of the 'Base Signal' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Signal' reference. + * @see #setBase_Signal(Signal) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getRtFeature_Base_Signal() + * @model required="true" ordered="false" + * @generated + */ + Signal getBase_Signal(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtFeature#getBase_Signal Base Signal}' reference. + * + * + * @param value the new value of the 'Base Signal' reference. + * @see #getBase_Signal() + * @generated + */ + void setBase_Signal(Signal value); + + /** + * Returns the value of the 'Base Port' reference. + * + *

+ * If the meaning of the 'Base Port' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Port' reference. + * @see #setBase_Port(Port) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getRtFeature_Base_Port() + * @model required="true" ordered="false" + * @generated + */ + Port getBase_Port(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtFeature#getBase_Port Base Port}' reference. + * + * + * @param value the new value of the 'Base Port' reference. + * @see #getBase_Port() + * @generated + */ + void setBase_Port(Port value); + + /** + * Returns the value of the 'Base Invocation Action' reference. + * + *

+ * If the meaning of the 'Base Invocation Action' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Invocation Action' reference. + * @see #setBase_InvocationAction(InvocationAction) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getRtFeature_Base_InvocationAction() + * @model required="true" ordered="false" + * @generated + */ + InvocationAction getBase_InvocationAction(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtFeature#getBase_InvocationAction Base Invocation Action}' reference. + * + * + * @param value the new value of the 'Base Invocation Action' reference. + * @see #getBase_InvocationAction() + * @generated + */ + void setBase_InvocationAction(InvocationAction value); + + /** + * Returns the value of the 'Specification' reference list. + * The list contents are of type {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtSpecification}. + * + *

+ * If the meaning of the 'Specification' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Specification' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getRtFeature_Specification() + * @model required="true" transient="true" volatile="true" derived="true" ordered="false" + * @generated + */ + EList getSpecification(); + +} // RtFeature diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/RtService.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/RtService.java new file mode 100644 index 00000000000..5e7b91a4ee7 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/RtService.java @@ -0,0 +1,181 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HLAM; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.uml2.uml.BehavioralFeature; + +/** + * + * A representation of the model object 'Rt Service'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtService#getConcPolicy Conc Policy}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtService#getExeKind Exe Kind}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtService#isIsAtomic Is Atomic}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtService#getSynchKind Synch Kind}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtService#getBase_BehavioralFeature Base Behavioral Feature}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getRtService() + * @model + * @generated + */ +public interface RtService extends EObject { + /** + * Returns the value of the 'Conc Policy' attribute. + * The literals are from the enumeration {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.ConcurrencyKind}. + * + *

+ * If the meaning of the 'Conc Policy' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Conc Policy' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.ConcurrencyKind + * @see #setConcPolicy(ConcurrencyKind) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getRtService_ConcPolicy() + * @model unique="false" ordered="false" + * @generated + */ + ConcurrencyKind getConcPolicy(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtService#getConcPolicy Conc Policy}' attribute. + * + * + * @param value the new value of the 'Conc Policy' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.ConcurrencyKind + * @see #getConcPolicy() + * @generated + */ + void setConcPolicy(ConcurrencyKind value); + + /** + * Returns the value of the 'Exe Kind' attribute. + * The literals are from the enumeration {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.ExecutionKind}. + * + *

+ * If the meaning of the 'Exe Kind' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Exe Kind' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.ExecutionKind + * @see #setExeKind(ExecutionKind) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getRtService_ExeKind() + * @model unique="false" ordered="false" + * @generated + */ + ExecutionKind getExeKind(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtService#getExeKind Exe Kind}' attribute. + * + * + * @param value the new value of the 'Exe Kind' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.ExecutionKind + * @see #getExeKind() + * @generated + */ + void setExeKind(ExecutionKind value); + + /** + * Returns the value of the 'Is Atomic' attribute. + * The default value is "false". + * + *

+ * If the meaning of the 'Is Atomic' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Is Atomic' attribute. + * @see #setIsAtomic(boolean) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getRtService_IsAtomic() + * @model default="false" unique="false" dataType="org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.Boolean" required="true" ordered="false" + * @generated + */ + boolean isIsAtomic(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtService#isIsAtomic Is Atomic}' attribute. + * + * + * @param value the new value of the 'Is Atomic' attribute. + * @see #isIsAtomic() + * @generated + */ + void setIsAtomic(boolean value); + + /** + * Returns the value of the 'Synch Kind' attribute. + * The literals are from the enumeration {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.SynchronizationKind}. + * + *

+ * If the meaning of the 'Synch Kind' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Synch Kind' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.SynchronizationKind + * @see #setSynchKind(SynchronizationKind) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getRtService_SynchKind() + * @model unique="false" ordered="false" + * @generated + */ + SynchronizationKind getSynchKind(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtService#getSynchKind Synch Kind}' attribute. + * + * + * @param value the new value of the 'Synch Kind' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.SynchronizationKind + * @see #getSynchKind() + * @generated + */ + void setSynchKind(SynchronizationKind value); + + /** + * Returns the value of the 'Base Behavioral Feature' reference. + * + *

+ * If the meaning of the 'Base Behavioral Feature' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Behavioral Feature' reference. + * @see #setBase_BehavioralFeature(BehavioralFeature) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getRtService_Base_BehavioralFeature() + * @model required="true" ordered="false" + * @generated + */ + BehavioralFeature getBase_BehavioralFeature(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtService#getBase_BehavioralFeature Base Behavioral Feature}' reference. + * + * + * @param value the new value of the 'Base Behavioral Feature' reference. + * @see #getBase_BehavioralFeature() + * @generated + */ + void setBase_BehavioralFeature(BehavioralFeature value); + +} // RtService diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/RtSpecification.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/RtSpecification.java new file mode 100644 index 00000000000..88b21f03311 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/RtSpecification.java @@ -0,0 +1,336 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HLAM; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedInstantObservation; + +import org.eclipse.uml2.uml.BehavioralFeature; +import org.eclipse.uml2.uml.Comment; + +/** + * + * A representation of the model object 'Rt Specification'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtSpecification#getUtility Utility}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtSpecification#getOccKind Occ Kind}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtSpecification#getTRef TRef}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtSpecification#getRelDl Rel Dl}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtSpecification#getAbsDl Abs Dl}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtSpecification#getBoundDl Bound Dl}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtSpecification#getRdTime Rd Time}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtSpecification#getMiss Miss}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtSpecification#getPriority Priority}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtSpecification#getBase_Comment Base Comment}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtSpecification#getContext Context}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getRtSpecification() + * @model + * @generated + */ +public interface RtSpecification extends EObject { + /** + * Returns the value of the 'Utility' attribute. + * + *

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

+ * + * @return the value of the 'Utility' attribute. + * @see #setUtility(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getRtSpecification_Utility() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.UtilityType" ordered="false" + * @generated + */ + String getUtility(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtSpecification#getUtility Utility}' attribute. + * + * + * @param value the new value of the 'Utility' attribute. + * @see #getUtility() + * @generated + */ + void setUtility(String value); + + /** + * Returns the value of the 'Occ Kind' attribute. + * + *

+ * If the meaning of the 'Occ Kind' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Occ Kind' attribute. + * @see #setOccKind(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getRtSpecification_OccKind() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.ArrivalPattern" ordered="false" + * @generated + */ + String getOccKind(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtSpecification#getOccKind Occ Kind}' attribute. + * + * + * @param value the new value of the 'Occ Kind' attribute. + * @see #getOccKind() + * @generated + */ + void setOccKind(String value); + + /** + * Returns the value of the 'TRef' reference. + * + *

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

+ * + * @return the value of the 'TRef' reference. + * @see #setTRef(TimedInstantObservation) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getRtSpecification_TRef() + * @model ordered="false" + * @generated + */ + TimedInstantObservation getTRef(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtSpecification#getTRef TRef}' reference. + * + * + * @param value the new value of the 'TRef' reference. + * @see #getTRef() + * @generated + */ + void setTRef(TimedInstantObservation value); + + /** + * Returns the value of the 'Rel Dl' attribute. + * + *

+ * If the meaning of the 'Rel Dl' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Rel Dl' attribute. + * @see #setRelDl(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getRtSpecification_RelDl() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Duration" ordered="false" + * @generated + */ + String getRelDl(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtSpecification#getRelDl Rel Dl}' attribute. + * + * + * @param value the new value of the 'Rel Dl' attribute. + * @see #getRelDl() + * @generated + */ + void setRelDl(String value); + + /** + * Returns the value of the 'Abs Dl' attribute. + * + *

+ * If the meaning of the 'Abs Dl' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Abs Dl' attribute. + * @see #setAbsDl(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getRtSpecification_AbsDl() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_DateTime" ordered="false" + * @generated + */ + String getAbsDl(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtSpecification#getAbsDl Abs Dl}' attribute. + * + * + * @param value the new value of the 'Abs Dl' attribute. + * @see #getAbsDl() + * @generated + */ + void setAbsDl(String value); + + /** + * Returns the value of the 'Bound Dl' attribute. + * + *

+ * If the meaning of the 'Bound Dl' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Bound Dl' attribute. + * @see #setBoundDl(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getRtSpecification_BoundDl() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Duration" ordered="false" + * @generated + */ + String getBoundDl(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtSpecification#getBoundDl Bound Dl}' attribute. + * + * + * @param value the new value of the 'Bound Dl' attribute. + * @see #getBoundDl() + * @generated + */ + void setBoundDl(String value); + + /** + * Returns the value of the 'Rd Time' attribute. + * + *

+ * If the meaning of the 'Rd Time' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Rd Time' attribute. + * @see #setRdTime(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getRtSpecification_RdTime() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Duration" ordered="false" + * @generated + */ + String getRdTime(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtSpecification#getRdTime Rd Time}' attribute. + * + * + * @param value the new value of the 'Rd Time' attribute. + * @see #getRdTime() + * @generated + */ + void setRdTime(String value); + + /** + * Returns the value of the 'Miss' attribute. + * + *

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

+ * + * @return the value of the 'Miss' attribute. + * @see #setMiss(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getRtSpecification_Miss() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Percentage" ordered="false" + * @generated + */ + String getMiss(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtSpecification#getMiss Miss}' attribute. + * + * + * @param value the new value of the 'Miss' attribute. + * @see #getMiss() + * @generated + */ + void setMiss(String value); + + /** + * Returns the value of the 'Priority' attribute. + * + *

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

+ * + * @return the value of the 'Priority' attribute. + * @see #setPriority(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getRtSpecification_Priority() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Integer" ordered="false" + * @generated + */ + String getPriority(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtSpecification#getPriority Priority}' attribute. + * + * + * @param value the new value of the 'Priority' attribute. + * @see #getPriority() + * @generated + */ + void setPriority(String value); + + /** + * Returns the value of the 'Base Comment' reference. + * + *

+ * If the meaning of the 'Base Comment' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Comment' reference. + * @see #setBase_Comment(Comment) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getRtSpecification_Base_Comment() + * @model required="true" ordered="false" + * @generated + */ + Comment getBase_Comment(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtSpecification#getBase_Comment Base Comment}' reference. + * + * + * @param value the new value of the 'Base Comment' reference. + * @see #getBase_Comment() + * @generated + */ + void setBase_Comment(Comment value); + + /** + * Returns the value of the 'Context' reference. + * + *

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

+ * + * @return the value of the 'Context' reference. + * @see #setContext(BehavioralFeature) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getRtSpecification_Context() + * @model transient="true" volatile="true" derived="true" ordered="false" + * @generated + */ + BehavioralFeature getContext(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtSpecification#getContext Context}' reference. + * + * + * @param value the new value of the 'Context' reference. + * @see #getContext() + * @generated + */ + void setContext(BehavioralFeature value); + +} // RtSpecification diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/RtUnit.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/RtUnit.java new file mode 100644 index 00000000000..f8bbf341e1f --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/RtUnit.java @@ -0,0 +1,371 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HLAM; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.SchedPolicyKind; + +import org.eclipse.uml2.uml.Behavior; +import org.eclipse.uml2.uml.BehavioredClassifier; +import org.eclipse.uml2.uml.Operation; + +/** + * + * A representation of the model object 'Rt Unit'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit#isIsDynamic Is Dynamic}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit#isIsMain Is Main}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit#getSrPoolSize Sr Pool Size}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit#getSrPoolPolicy Sr Pool Policy}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit#getSrPoolWaitingTime Sr Pool Waiting Time}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit#getOperationalMode Operational Mode}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit#getMain Main}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit#getMemorySize Memory Size}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit#getBase_BehavioredClassifier Base Behaviored Classifier}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit#getQueueSchedPolicy Queue Sched Policy}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit#getQueueSize Queue Size}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit#getMsgMaxSize Msg Max Size}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getRtUnit() + * @model + * @generated + */ +public interface RtUnit extends EObject { + /** + * Returns the value of the 'Is Dynamic' attribute. + * The default value is "true". + * + *

+ * If the meaning of the 'Is Dynamic' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Is Dynamic' attribute. + * @see #setIsDynamic(boolean) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getRtUnit_IsDynamic() + * @model default="true" unique="false" dataType="org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.Boolean" required="true" ordered="false" + * @generated + */ + boolean isIsDynamic(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit#isIsDynamic Is Dynamic}' attribute. + * + * + * @param value the new value of the 'Is Dynamic' attribute. + * @see #isIsDynamic() + * @generated + */ + void setIsDynamic(boolean value); + + /** + * Returns the value of the 'Is Main' attribute. + * + *

+ * If the meaning of the 'Is Main' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Is Main' attribute. + * @see #setIsMain(boolean) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getRtUnit_IsMain() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.Boolean" ordered="false" + * @generated + */ + boolean isIsMain(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit#isIsMain Is Main}' attribute. + * + * + * @param value the new value of the 'Is Main' attribute. + * @see #isIsMain() + * @generated + */ + void setIsMain(boolean value); + + /** + * Returns the value of the 'Sr Pool Size' attribute. + * + *

+ * If the meaning of the 'Sr Pool Size' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Sr Pool Size' attribute. + * @see #setSrPoolSize(int) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getRtUnit_SrPoolSize() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.Integer" ordered="false" + * @generated + */ + int getSrPoolSize(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit#getSrPoolSize Sr Pool Size}' attribute. + * + * + * @param value the new value of the 'Sr Pool Size' attribute. + * @see #getSrPoolSize() + * @generated + */ + void setSrPoolSize(int value); + + /** + * Returns the value of the 'Sr Pool Policy' attribute. + * The literals are from the enumeration {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.PoolMgtPolicyKind}. + * + *

+ * If the meaning of the 'Sr Pool Policy' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Sr Pool Policy' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.PoolMgtPolicyKind + * @see #setSrPoolPolicy(PoolMgtPolicyKind) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getRtUnit_SrPoolPolicy() + * @model unique="false" ordered="false" + * @generated + */ + PoolMgtPolicyKind getSrPoolPolicy(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit#getSrPoolPolicy Sr Pool Policy}' attribute. + * + * + * @param value the new value of the 'Sr Pool Policy' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.PoolMgtPolicyKind + * @see #getSrPoolPolicy() + * @generated + */ + void setSrPoolPolicy(PoolMgtPolicyKind value); + + /** + * Returns the value of the 'Sr Pool Waiting Time' attribute. + * + *

+ * If the meaning of the 'Sr Pool Waiting Time' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Sr Pool Waiting Time' attribute. + * @see #setSrPoolWaitingTime(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getRtUnit_SrPoolWaitingTime() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Duration" ordered="false" + * @generated + */ + String getSrPoolWaitingTime(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit#getSrPoolWaitingTime Sr Pool Waiting Time}' attribute. + * + * + * @param value the new value of the 'Sr Pool Waiting Time' attribute. + * @see #getSrPoolWaitingTime() + * @generated + */ + void setSrPoolWaitingTime(String value); + + /** + * Returns the value of the 'Operational Mode' reference. + * + *

+ * If the meaning of the 'Operational Mode' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Operational Mode' reference. + * @see #setOperationalMode(Behavior) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getRtUnit_OperationalMode() + * @model ordered="false" + * @generated + */ + Behavior getOperationalMode(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit#getOperationalMode Operational Mode}' reference. + * + * + * @param value the new value of the 'Operational Mode' reference. + * @see #getOperationalMode() + * @generated + */ + void setOperationalMode(Behavior value); + + /** + * Returns the value of the 'Main' reference. + * + *

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

+ * + * @return the value of the 'Main' reference. + * @see #setMain(Operation) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getRtUnit_Main() + * @model ordered="false" + * @generated + */ + Operation getMain(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit#getMain Main}' reference. + * + * + * @param value the new value of the 'Main' reference. + * @see #getMain() + * @generated + */ + void setMain(Operation value); + + /** + * Returns the value of the 'Memory Size' attribute. + * + *

+ * If the meaning of the 'Memory Size' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Memory Size' attribute. + * @see #setMemorySize(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getRtUnit_MemorySize() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_DataSize" ordered="false" + * @generated + */ + String getMemorySize(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit#getMemorySize Memory Size}' attribute. + * + * + * @param value the new value of the 'Memory Size' attribute. + * @see #getMemorySize() + * @generated + */ + void setMemorySize(String value); + + /** + * Returns the value of the 'Base Behaviored Classifier' reference. + * + *

+ * If the meaning of the 'Base Behaviored Classifier' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Behaviored Classifier' reference. + * @see #setBase_BehavioredClassifier(BehavioredClassifier) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getRtUnit_Base_BehavioredClassifier() + * @model required="true" ordered="false" + * @generated + */ + BehavioredClassifier getBase_BehavioredClassifier(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit#getBase_BehavioredClassifier Base Behaviored Classifier}' reference. + * + * + * @param value the new value of the 'Base Behaviored Classifier' reference. + * @see #getBase_BehavioredClassifier() + * @generated + */ + void setBase_BehavioredClassifier(BehavioredClassifier value); + + /** + * Returns the value of the 'Queue Sched Policy' attribute. + * The literals are from the enumeration {@link org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.SchedPolicyKind}. + * + *

+ * If the meaning of the 'Queue Sched Policy' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Queue Sched Policy' attribute. + * @see org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.SchedPolicyKind + * @see #setQueueSchedPolicy(SchedPolicyKind) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getRtUnit_QueueSchedPolicy() + * @model unique="false" ordered="false" + * @generated + */ + SchedPolicyKind getQueueSchedPolicy(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit#getQueueSchedPolicy Queue Sched Policy}' attribute. + * + * + * @param value the new value of the 'Queue Sched Policy' attribute. + * @see org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.SchedPolicyKind + * @see #getQueueSchedPolicy() + * @generated + */ + void setQueueSchedPolicy(SchedPolicyKind value); + + /** + * Returns the value of the 'Queue Size' attribute. + * + *

+ * If the meaning of the 'Queue Size' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Queue Size' attribute. + * @see #setQueueSize(int) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getRtUnit_QueueSize() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.Integer" ordered="false" + * @generated + */ + int getQueueSize(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit#getQueueSize Queue Size}' attribute. + * + * + * @param value the new value of the 'Queue Size' attribute. + * @see #getQueueSize() + * @generated + */ + void setQueueSize(int value); + + /** + * Returns the value of the 'Msg Max Size' attribute. + * + *

+ * If the meaning of the 'Msg Max Size' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Msg Max Size' attribute. + * @see #setMsgMaxSize(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getRtUnit_MsgMaxSize() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_DataSize" ordered="false" + * @generated + */ + String getMsgMaxSize(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit#getMsgMaxSize Msg Max Size}' attribute. + * + * + * @param value the new value of the 'Msg Max Size' attribute. + * @see #getMsgMaxSize() + * @generated + */ + void setMsgMaxSize(String value); + +} // RtUnit diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/SynchronizationKind.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/SynchronizationKind.java new file mode 100644 index 00000000000..760d2e2e1e9 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/SynchronizationKind.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.MARTE_DesignModel.HLAM; + +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 'Synchronization Kind', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage#getSynchronizationKind() + * @model + * @generated + */ +public enum SynchronizationKind implements Enumerator { + /** + * The 'Synchronous' literal object. + * + * + * @see #SYNCHRONOUS_VALUE + * @generated + * @ordered + */ + SYNCHRONOUS(0, "synchronous", "synchronous"), + + /** + * The 'Asynchronous' literal object. + * + * + * @see #ASYNCHRONOUS_VALUE + * @generated + * @ordered + */ + ASYNCHRONOUS(1, "asynchronous", "asynchronous"), + + /** + * The 'Delayed Synchronous' literal object. + * + * + * @see #DELAYED_SYNCHRONOUS_VALUE + * @generated + * @ordered + */ + DELAYED_SYNCHRONOUS(2, "delayedSynchronous", "delayedSynchronous"), + + /** + * The 'Rendez Vous' literal object. + * + * + * @see #RENDEZ_VOUS_VALUE + * @generated + * @ordered + */ + RENDEZ_VOUS(3, "rendezVous", "rendezVous"), + + /** + * The 'Other' literal object. + * + * + * @see #OTHER_VALUE + * @generated + * @ordered + */ + OTHER(4, "other", "other"); + + /** + * The 'Synchronous' literal value. + * + *

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

+ * + * @see #SYNCHRONOUS + * @model name="synchronous" + * @generated + * @ordered + */ + public static final int SYNCHRONOUS_VALUE = 0; + + /** + * The 'Asynchronous' literal value. + * + *

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

+ * + * @see #ASYNCHRONOUS + * @model name="asynchronous" + * @generated + * @ordered + */ + public static final int ASYNCHRONOUS_VALUE = 1; + + /** + * The 'Delayed Synchronous' literal value. + * + *

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

+ * + * @see #DELAYED_SYNCHRONOUS + * @model name="delayedSynchronous" + * @generated + * @ordered + */ + public static final int DELAYED_SYNCHRONOUS_VALUE = 2; + + /** + * The 'Rendez Vous' literal value. + * + *

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

+ * + * @see #RENDEZ_VOUS + * @model name="rendezVous" + * @generated + * @ordered + */ + public static final int RENDEZ_VOUS_VALUE = 3; + + /** + * 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 = 4; + + /** + * An array of all the 'Synchronization Kind' enumerators. + * + * + * @generated + */ + private static final SynchronizationKind[] VALUES_ARRAY = + new SynchronizationKind[] { + SYNCHRONOUS, + ASYNCHRONOUS, + DELAYED_SYNCHRONOUS, + RENDEZ_VOUS, + OTHER, + }; + + /** + * A public read-only list of all the 'Synchronization Kind' enumerators. + * + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Synchronization Kind' literal with the specified literal value. + * + * + * @generated + */ + public static SynchronizationKind get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + SynchronizationKind result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Synchronization Kind' literal with the specified name. + * + * + * @generated + */ + public static SynchronizationKind getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + SynchronizationKind result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Synchronization Kind' literal with the specified integer value. + * + * + * @generated + */ + public static SynchronizationKind get(int value) { + switch (value) { + case SYNCHRONOUS_VALUE: return SYNCHRONOUS; + case ASYNCHRONOUS_VALUE: return ASYNCHRONOUS; + case DELAYED_SYNCHRONOUS_VALUE: return DELAYED_SYNCHRONOUS; + case RENDEZ_VOUS_VALUE: return RENDEZ_VOUS; + 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 SynchronizationKind(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; + } + +} //SynchronizationKind diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/impl/HLAMFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/impl/HLAMFactoryImpl.java new file mode 100644 index 00000000000..f12d1ba3153 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/impl/HLAMFactoryImpl.java @@ -0,0 +1,308 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HLAM.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.MARTE_DesignModel.HLAM.*; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class HLAMFactoryImpl extends EFactoryImpl implements HLAMFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static HLAMFactory init() { + try { + HLAMFactory theHLAMFactory = (HLAMFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/HLAM/1"); + if (theHLAMFactory != null) { + return theHLAMFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new HLAMFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public HLAMFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case HLAMPackage.RT_UNIT: return createRtUnit(); + case HLAMPackage.PP_UNIT: return createPpUnit(); + case HLAMPackage.RT_FEATURE: return createRtFeature(); + case HLAMPackage.RT_SPECIFICATION: return createRtSpecification(); + case HLAMPackage.RT_ACTION: return createRtAction(); + case HLAMPackage.RT_SERVICE: return createRtService(); + 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 HLAMPackage.POOL_MGT_POLICY_KIND: + return createPoolMgtPolicyKindFromString(eDataType, initialValue); + case HLAMPackage.CALL_CONCURRENCY_KIND: + return createCallConcurrencyKindFromString(eDataType, initialValue); + case HLAMPackage.SYNCHRONIZATION_KIND: + return createSynchronizationKindFromString(eDataType, initialValue); + case HLAMPackage.EXECUTION_KIND: + return createExecutionKindFromString(eDataType, initialValue); + case HLAMPackage.CONCURRENCY_KIND: + return createConcurrencyKindFromString(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 HLAMPackage.POOL_MGT_POLICY_KIND: + return convertPoolMgtPolicyKindToString(eDataType, instanceValue); + case HLAMPackage.CALL_CONCURRENCY_KIND: + return convertCallConcurrencyKindToString(eDataType, instanceValue); + case HLAMPackage.SYNCHRONIZATION_KIND: + return convertSynchronizationKindToString(eDataType, instanceValue); + case HLAMPackage.EXECUTION_KIND: + return convertExecutionKindToString(eDataType, instanceValue); + case HLAMPackage.CONCURRENCY_KIND: + return convertConcurrencyKindToString(eDataType, instanceValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public RtUnit createRtUnit() { + RtUnitImpl rtUnit = new RtUnitImpl(); + return rtUnit; + } + + /** + * + * + * @generated + */ + public PpUnit createPpUnit() { + PpUnitImpl ppUnit = new PpUnitImpl(); + return ppUnit; + } + + /** + * + * + * @generated + */ + public RtFeature createRtFeature() { + RtFeatureImpl rtFeature = new RtFeatureImpl(); + return rtFeature; + } + + /** + * + * + * @generated + */ + public RtSpecification createRtSpecification() { + RtSpecificationImpl rtSpecification = new RtSpecificationImpl(); + return rtSpecification; + } + + /** + * + * + * @generated + */ + public RtAction createRtAction() { + RtActionImpl rtAction = new RtActionImpl(); + return rtAction; + } + + /** + * + * + * @generated + */ + public RtService createRtService() { + RtServiceImpl rtService = new RtServiceImpl(); + return rtService; + } + + /** + * + * + * @generated + */ + public PoolMgtPolicyKind createPoolMgtPolicyKindFromString(EDataType eDataType, String initialValue) { + PoolMgtPolicyKind result = PoolMgtPolicyKind.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertPoolMgtPolicyKindToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public CallConcurrencyKind createCallConcurrencyKindFromString(EDataType eDataType, String initialValue) { + CallConcurrencyKind result = CallConcurrencyKind.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertCallConcurrencyKindToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public SynchronizationKind createSynchronizationKindFromString(EDataType eDataType, String initialValue) { + SynchronizationKind result = SynchronizationKind.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertSynchronizationKindToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public ExecutionKind createExecutionKindFromString(EDataType eDataType, String initialValue) { + ExecutionKind result = ExecutionKind.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertExecutionKindToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public ConcurrencyKind createConcurrencyKindFromString(EDataType eDataType, String initialValue) { + ConcurrencyKind result = ConcurrencyKind.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertConcurrencyKindToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public HLAMPackage getHLAMPackage() { + return (HLAMPackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static HLAMPackage getPackage() { + return HLAMPackage.eINSTANCE; + } + +} //HLAMFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/impl/HLAMPackageImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/impl/HLAMPackageImpl.java new file mode 100644 index 00000000000..b32ee9dce46 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/impl/HLAMPackageImpl.java @@ -0,0 +1,1147 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HLAM.impl; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +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.CallConcurrencyKind; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.ConcurrencyKind; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.ExecutionKind; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMFactory; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.PoolMgtPolicyKind; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.PpUnit; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtAction; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtFeature; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtService; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtSpecification; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.SynchronizationKind; + +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.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 HLAMPackageImpl extends EPackageImpl implements HLAMPackage { + /** + * + * + * @generated + */ + private EClass rtUnitEClass = null; + + /** + * + * + * @generated + */ + private EClass ppUnitEClass = null; + + /** + * + * + * @generated + */ + private EClass rtFeatureEClass = null; + + /** + * + * + * @generated + */ + private EClass rtSpecificationEClass = null; + + /** + * + * + * @generated + */ + private EClass rtActionEClass = null; + + /** + * + * + * @generated + */ + private EClass rtServiceEClass = null; + + /** + * + * + * @generated + */ + private EEnum poolMgtPolicyKindEEnum = null; + + /** + * + * + * @generated + */ + private EEnum callConcurrencyKindEEnum = null; + + /** + * + * + * @generated + */ + private EEnum synchronizationKindEEnum = null; + + /** + * + * + * @generated + */ + private EEnum executionKindEEnum = null; + + /** + * + * + * @generated + */ + private EEnum concurrencyKindEEnum = 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.MARTE_DesignModel.HLAM.HLAMPackage#eNS_URI + * @see #init() + * @generated + */ + private HLAMPackageImpl() { + super(eNS_URI, HLAMFactory.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 HLAMPackage#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 HLAMPackage init() { + if (isInited) return (HLAMPackage)EPackage.Registry.INSTANCE.getEPackage(HLAMPackage.eNS_URI); + + // Obtain or create and register package + HLAMPackageImpl theHLAMPackage = (HLAMPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof HLAMPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new HLAMPackageImpl()); + + 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); + 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); + 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 + theHLAMPackage.createPackageContents(); + theMARTEPackage.createPackageContents(); + theNFPsPackage.createPackageContents(); + theCoreElementsPackage.createPackageContents(); + theAllocPackage.createPackageContents(); + theTimePackage.createPackageContents(); + theGRMPackage.createPackageContents(); + theRSMPackage.createPackageContents(); + theVariablesPackage.createPackageContents(); + theOperatorsPackage.createPackageContents(); + theDataTypesPackage.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(); + theMARTE_PrimitivesTypesPackage.createPackageContents(); + + // Initialize created meta-data + theHLAMPackage.initializePackageContents(); + theMARTEPackage.initializePackageContents(); + theNFPsPackage.initializePackageContents(); + theCoreElementsPackage.initializePackageContents(); + theAllocPackage.initializePackageContents(); + theTimePackage.initializePackageContents(); + theGRMPackage.initializePackageContents(); + theRSMPackage.initializePackageContents(); + theVariablesPackage.initializePackageContents(); + theOperatorsPackage.initializePackageContents(); + theDataTypesPackage.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(); + theMARTE_PrimitivesTypesPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theHLAMPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(HLAMPackage.eNS_URI, theHLAMPackage); + return theHLAMPackage; + } + + /** + * + * + * @generated + */ + public EClass getRtUnit() { + return rtUnitEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getRtUnit_IsDynamic() { + return (EAttribute)rtUnitEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getRtUnit_IsMain() { + return (EAttribute)rtUnitEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getRtUnit_SrPoolSize() { + return (EAttribute)rtUnitEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getRtUnit_SrPoolPolicy() { + return (EAttribute)rtUnitEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getRtUnit_SrPoolWaitingTime() { + return (EAttribute)rtUnitEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EReference getRtUnit_OperationalMode() { + return (EReference)rtUnitEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EReference getRtUnit_Main() { + return (EReference)rtUnitEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EAttribute getRtUnit_MemorySize() { + return (EAttribute)rtUnitEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EReference getRtUnit_Base_BehavioredClassifier() { + return (EReference)rtUnitEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + public EAttribute getRtUnit_QueueSchedPolicy() { + return (EAttribute)rtUnitEClass.getEStructuralFeatures().get(9); + } + + /** + * + * + * @generated + */ + public EAttribute getRtUnit_QueueSize() { + return (EAttribute)rtUnitEClass.getEStructuralFeatures().get(10); + } + + /** + * + * + * @generated + */ + public EAttribute getRtUnit_MsgMaxSize() { + return (EAttribute)rtUnitEClass.getEStructuralFeatures().get(11); + } + + /** + * + * + * @generated + */ + public EClass getPpUnit() { + return ppUnitEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getPpUnit_ConcPolicy() { + return (EAttribute)ppUnitEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getPpUnit_MemorySize() { + return (EAttribute)ppUnitEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getPpUnit_Base_BehavioredClassifier() { + return (EReference)ppUnitEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getRtFeature() { + return rtFeatureEClass; + } + + /** + * + * + * @generated + */ + public EReference getRtFeature_Base_BehavioralFeature() { + return (EReference)rtFeatureEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getRtFeature_Base_Message() { + return (EReference)rtFeatureEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getRtFeature_Base_Signal() { + return (EReference)rtFeatureEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getRtFeature_Base_Port() { + return (EReference)rtFeatureEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EReference getRtFeature_Base_InvocationAction() { + return (EReference)rtFeatureEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EReference getRtFeature_Specification() { + return (EReference)rtFeatureEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EClass getRtSpecification() { + return rtSpecificationEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getRtSpecification_Utility() { + return (EAttribute)rtSpecificationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getRtSpecification_OccKind() { + return (EAttribute)rtSpecificationEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getRtSpecification_TRef() { + return (EReference)rtSpecificationEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getRtSpecification_RelDl() { + return (EAttribute)rtSpecificationEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getRtSpecification_AbsDl() { + return (EAttribute)rtSpecificationEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getRtSpecification_BoundDl() { + return (EAttribute)rtSpecificationEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getRtSpecification_RdTime() { + return (EAttribute)rtSpecificationEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EAttribute getRtSpecification_Miss() { + return (EAttribute)rtSpecificationEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EAttribute getRtSpecification_Priority() { + return (EAttribute)rtSpecificationEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + public EReference getRtSpecification_Base_Comment() { + return (EReference)rtSpecificationEClass.getEStructuralFeatures().get(9); + } + + /** + * + * + * @generated + */ + public EReference getRtSpecification_Context() { + return (EReference)rtSpecificationEClass.getEStructuralFeatures().get(10); + } + + /** + * + * + * @generated + */ + public EClass getRtAction() { + return rtActionEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getRtAction_IsAtomic() { + return (EAttribute)rtActionEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getRtAction_SynchKind() { + return (EAttribute)rtActionEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getRtAction_MsgSize() { + return (EAttribute)rtActionEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getRtAction_Base_BehavioralFeature() { + return (EReference)rtActionEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EReference getRtAction_Base_InvocationAction() { + return (EReference)rtActionEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EClass getRtService() { + return rtServiceEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getRtService_ConcPolicy() { + return (EAttribute)rtServiceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getRtService_ExeKind() { + return (EAttribute)rtServiceEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getRtService_IsAtomic() { + return (EAttribute)rtServiceEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getRtService_SynchKind() { + return (EAttribute)rtServiceEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EReference getRtService_Base_BehavioralFeature() { + return (EReference)rtServiceEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EEnum getPoolMgtPolicyKind() { + return poolMgtPolicyKindEEnum; + } + + /** + * + * + * @generated + */ + public EEnum getCallConcurrencyKind() { + return callConcurrencyKindEEnum; + } + + /** + * + * + * @generated + */ + public EEnum getSynchronizationKind() { + return synchronizationKindEEnum; + } + + /** + * + * + * @generated + */ + public EEnum getExecutionKind() { + return executionKindEEnum; + } + + /** + * + * + * @generated + */ + public EEnum getConcurrencyKind() { + return concurrencyKindEEnum; + } + + /** + * + * + * @generated + */ + public HLAMFactory getHLAMFactory() { + return (HLAMFactory)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 + rtUnitEClass = createEClass(RT_UNIT); + createEAttribute(rtUnitEClass, RT_UNIT__IS_DYNAMIC); + createEAttribute(rtUnitEClass, RT_UNIT__IS_MAIN); + createEAttribute(rtUnitEClass, RT_UNIT__SR_POOL_SIZE); + createEAttribute(rtUnitEClass, RT_UNIT__SR_POOL_POLICY); + createEAttribute(rtUnitEClass, RT_UNIT__SR_POOL_WAITING_TIME); + createEReference(rtUnitEClass, RT_UNIT__OPERATIONAL_MODE); + createEReference(rtUnitEClass, RT_UNIT__MAIN); + createEAttribute(rtUnitEClass, RT_UNIT__MEMORY_SIZE); + createEReference(rtUnitEClass, RT_UNIT__BASE_BEHAVIORED_CLASSIFIER); + createEAttribute(rtUnitEClass, RT_UNIT__QUEUE_SCHED_POLICY); + createEAttribute(rtUnitEClass, RT_UNIT__QUEUE_SIZE); + createEAttribute(rtUnitEClass, RT_UNIT__MSG_MAX_SIZE); + + ppUnitEClass = createEClass(PP_UNIT); + createEAttribute(ppUnitEClass, PP_UNIT__CONC_POLICY); + createEAttribute(ppUnitEClass, PP_UNIT__MEMORY_SIZE); + createEReference(ppUnitEClass, PP_UNIT__BASE_BEHAVIORED_CLASSIFIER); + + rtFeatureEClass = createEClass(RT_FEATURE); + createEReference(rtFeatureEClass, RT_FEATURE__BASE_BEHAVIORAL_FEATURE); + createEReference(rtFeatureEClass, RT_FEATURE__BASE_MESSAGE); + createEReference(rtFeatureEClass, RT_FEATURE__BASE_SIGNAL); + createEReference(rtFeatureEClass, RT_FEATURE__BASE_PORT); + createEReference(rtFeatureEClass, RT_FEATURE__BASE_INVOCATION_ACTION); + createEReference(rtFeatureEClass, RT_FEATURE__SPECIFICATION); + + rtSpecificationEClass = createEClass(RT_SPECIFICATION); + createEAttribute(rtSpecificationEClass, RT_SPECIFICATION__UTILITY); + createEAttribute(rtSpecificationEClass, RT_SPECIFICATION__OCC_KIND); + createEReference(rtSpecificationEClass, RT_SPECIFICATION__TREF); + createEAttribute(rtSpecificationEClass, RT_SPECIFICATION__REL_DL); + createEAttribute(rtSpecificationEClass, RT_SPECIFICATION__ABS_DL); + createEAttribute(rtSpecificationEClass, RT_SPECIFICATION__BOUND_DL); + createEAttribute(rtSpecificationEClass, RT_SPECIFICATION__RD_TIME); + createEAttribute(rtSpecificationEClass, RT_SPECIFICATION__MISS); + createEAttribute(rtSpecificationEClass, RT_SPECIFICATION__PRIORITY); + createEReference(rtSpecificationEClass, RT_SPECIFICATION__BASE_COMMENT); + createEReference(rtSpecificationEClass, RT_SPECIFICATION__CONTEXT); + + rtActionEClass = createEClass(RT_ACTION); + createEAttribute(rtActionEClass, RT_ACTION__IS_ATOMIC); + createEAttribute(rtActionEClass, RT_ACTION__SYNCH_KIND); + createEAttribute(rtActionEClass, RT_ACTION__MSG_SIZE); + createEReference(rtActionEClass, RT_ACTION__BASE_BEHAVIORAL_FEATURE); + createEReference(rtActionEClass, RT_ACTION__BASE_INVOCATION_ACTION); + + rtServiceEClass = createEClass(RT_SERVICE); + createEAttribute(rtServiceEClass, RT_SERVICE__CONC_POLICY); + createEAttribute(rtServiceEClass, RT_SERVICE__EXE_KIND); + createEAttribute(rtServiceEClass, RT_SERVICE__IS_ATOMIC); + createEAttribute(rtServiceEClass, RT_SERVICE__SYNCH_KIND); + createEReference(rtServiceEClass, RT_SERVICE__BASE_BEHAVIORAL_FEATURE); + + // Create enums + poolMgtPolicyKindEEnum = createEEnum(POOL_MGT_POLICY_KIND); + callConcurrencyKindEEnum = createEEnum(CALL_CONCURRENCY_KIND); + synchronizationKindEEnum = createEEnum(SYNCHRONIZATION_KIND); + executionKindEEnum = createEEnum(EXECUTION_KIND); + concurrencyKindEEnum = createEEnum(CONCURRENCY_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); + + // Obtain other dependent packages + MARTE_PrimitivesTypesPackage theMARTE_PrimitivesTypesPackage = (MARTE_PrimitivesTypesPackage)EPackage.Registry.INSTANCE.getEPackage(MARTE_PrimitivesTypesPackage.eNS_URI); + BasicNFP_TypesPackage theBasicNFP_TypesPackage = (BasicNFP_TypesPackage)EPackage.Registry.INSTANCE.getEPackage(BasicNFP_TypesPackage.eNS_URI); + UMLPackage theUMLPackage = (UMLPackage)EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI); + GRM_BasicTypesPackage theGRM_BasicTypesPackage = (GRM_BasicTypesPackage)EPackage.Registry.INSTANCE.getEPackage(GRM_BasicTypesPackage.eNS_URI); + MARTE_DataTypesPackage theMARTE_DataTypesPackage = (MARTE_DataTypesPackage)EPackage.Registry.INSTANCE.getEPackage(MARTE_DataTypesPackage.eNS_URI); + TimePackage theTimePackage = (TimePackage)EPackage.Registry.INSTANCE.getEPackage(TimePackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + + // Initialize classes and features; add operations and parameters + initEClass(rtUnitEClass, RtUnit.class, "RtUnit", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getRtUnit_IsDynamic(), theMARTE_PrimitivesTypesPackage.getBoolean(), "isDynamic", "true", 1, 1, RtUnit.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getRtUnit_IsMain(), theMARTE_PrimitivesTypesPackage.getBoolean(), "isMain", null, 0, 1, RtUnit.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getRtUnit_SrPoolSize(), theMARTE_PrimitivesTypesPackage.getInteger(), "srPoolSize", null, 0, 1, RtUnit.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getRtUnit_SrPoolPolicy(), this.getPoolMgtPolicyKind(), "srPoolPolicy", null, 0, 1, RtUnit.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getRtUnit_SrPoolWaitingTime(), theBasicNFP_TypesPackage.getNFP_Duration(), "srPoolWaitingTime", null, 0, 1, RtUnit.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getRtUnit_OperationalMode(), theUMLPackage.getBehavior(), null, "operationalMode", null, 0, 1, RtUnit.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getRtUnit_Main(), theUMLPackage.getOperation(), null, "main", null, 0, 1, RtUnit.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getRtUnit_MemorySize(), theBasicNFP_TypesPackage.getNFP_DataSize(), "memorySize", null, 0, 1, RtUnit.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getRtUnit_Base_BehavioredClassifier(), theUMLPackage.getBehavioredClassifier(), null, "base_BehavioredClassifier", null, 1, 1, RtUnit.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getRtUnit_QueueSchedPolicy(), theGRM_BasicTypesPackage.getSchedPolicyKind(), "queueSchedPolicy", null, 0, 1, RtUnit.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getRtUnit_QueueSize(), theMARTE_PrimitivesTypesPackage.getInteger(), "queueSize", null, 0, 1, RtUnit.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getRtUnit_MsgMaxSize(), theBasicNFP_TypesPackage.getNFP_DataSize(), "msgMaxSize", null, 0, 1, RtUnit.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(ppUnitEClass, PpUnit.class, "PpUnit", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getPpUnit_ConcPolicy(), this.getCallConcurrencyKind(), "concPolicy", null, 0, 1, PpUnit.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getPpUnit_MemorySize(), theBasicNFP_TypesPackage.getNFP_DataSize(), "memorySize", null, 0, 1, PpUnit.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getPpUnit_Base_BehavioredClassifier(), theUMLPackage.getBehavioredClassifier(), null, "base_BehavioredClassifier", null, 1, 1, PpUnit.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(rtFeatureEClass, RtFeature.class, "RtFeature", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getRtFeature_Base_BehavioralFeature(), theUMLPackage.getBehavioralFeature(), null, "base_BehavioralFeature", null, 1, 1, RtFeature.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getRtFeature_Base_Message(), theUMLPackage.getMessage(), null, "base_Message", null, 1, 1, RtFeature.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getRtFeature_Base_Signal(), theUMLPackage.getSignal(), null, "base_Signal", null, 1, 1, RtFeature.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getRtFeature_Base_Port(), theUMLPackage.getPort(), null, "base_Port", null, 1, 1, RtFeature.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getRtFeature_Base_InvocationAction(), theUMLPackage.getInvocationAction(), null, "base_InvocationAction", null, 1, 1, RtFeature.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getRtFeature_Specification(), this.getRtSpecification(), null, "specification", null, 1, -1, RtFeature.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, IS_DERIVED, !IS_ORDERED); + + initEClass(rtSpecificationEClass, RtSpecification.class, "RtSpecification", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getRtSpecification_Utility(), theMARTE_DataTypesPackage.getUtilityType(), "utility", null, 0, 1, RtSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getRtSpecification_OccKind(), theBasicNFP_TypesPackage.getArrivalPattern(), "occKind", null, 0, 1, RtSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getRtSpecification_TRef(), theTimePackage.getTimedInstantObservation(), null, "tRef", null, 0, 1, RtSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getRtSpecification_RelDl(), theBasicNFP_TypesPackage.getNFP_Duration(), "relDl", null, 0, 1, RtSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getRtSpecification_AbsDl(), theBasicNFP_TypesPackage.getNFP_DateTime(), "absDl", null, 0, 1, RtSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getRtSpecification_BoundDl(), theBasicNFP_TypesPackage.getNFP_Duration(), "boundDl", null, 0, 1, RtSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getRtSpecification_RdTime(), theBasicNFP_TypesPackage.getNFP_Duration(), "rdTime", null, 0, 1, RtSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getRtSpecification_Miss(), theBasicNFP_TypesPackage.getNFP_Percentage(), "miss", null, 0, 1, RtSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getRtSpecification_Priority(), theBasicNFP_TypesPackage.getNFP_Integer(), "priority", null, 0, 1, RtSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getRtSpecification_Base_Comment(), theUMLPackage.getComment(), null, "base_Comment", null, 1, 1, RtSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getRtSpecification_Context(), theUMLPackage.getBehavioralFeature(), null, "context", null, 0, 1, RtSpecification.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, !IS_ORDERED); + + initEClass(rtActionEClass, RtAction.class, "RtAction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getRtAction_IsAtomic(), theMARTE_PrimitivesTypesPackage.getBoolean(), "isAtomic", "false", 1, 1, RtAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getRtAction_SynchKind(), this.getSynchronizationKind(), "synchKind", null, 0, 1, RtAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getRtAction_MsgSize(), theBasicNFP_TypesPackage.getNFP_DataSize(), "msgSize", null, 0, 1, RtAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getRtAction_Base_BehavioralFeature(), theUMLPackage.getBehavioralFeature(), null, "base_BehavioralFeature", null, 1, 1, RtAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getRtAction_Base_InvocationAction(), theUMLPackage.getInvocationAction(), null, "base_InvocationAction", null, 1, 1, RtAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(rtServiceEClass, RtService.class, "RtService", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getRtService_ConcPolicy(), this.getConcurrencyKind(), "concPolicy", null, 0, 1, RtService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getRtService_ExeKind(), this.getExecutionKind(), "exeKind", null, 0, 1, RtService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getRtService_IsAtomic(), theMARTE_PrimitivesTypesPackage.getBoolean(), "isAtomic", "false", 1, 1, RtService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getRtService_SynchKind(), this.getSynchronizationKind(), "synchKind", null, 0, 1, RtService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getRtService_Base_BehavioralFeature(), theUMLPackage.getBehavioralFeature(), null, "base_BehavioralFeature", null, 1, 1, RtService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + // Initialize enums and add enum literals + initEEnum(poolMgtPolicyKindEEnum, PoolMgtPolicyKind.class, "PoolMgtPolicyKind"); + addEEnumLiteral(poolMgtPolicyKindEEnum, PoolMgtPolicyKind.INFINITE_WAIT); + addEEnumLiteral(poolMgtPolicyKindEEnum, PoolMgtPolicyKind.TIMED_WAIT); + addEEnumLiteral(poolMgtPolicyKindEEnum, PoolMgtPolicyKind.DYNAMIC); + addEEnumLiteral(poolMgtPolicyKindEEnum, PoolMgtPolicyKind.EXCEPTION); + addEEnumLiteral(poolMgtPolicyKindEEnum, PoolMgtPolicyKind.OTHER); + + initEEnum(callConcurrencyKindEEnum, CallConcurrencyKind.class, "CallConcurrencyKind"); + addEEnumLiteral(callConcurrencyKindEEnum, CallConcurrencyKind.SEQUENTIAL); + addEEnumLiteral(callConcurrencyKindEEnum, CallConcurrencyKind.GUARDED); + addEEnumLiteral(callConcurrencyKindEEnum, CallConcurrencyKind.CONCURRENT); + + initEEnum(synchronizationKindEEnum, SynchronizationKind.class, "SynchronizationKind"); + addEEnumLiteral(synchronizationKindEEnum, SynchronizationKind.SYNCHRONOUS); + addEEnumLiteral(synchronizationKindEEnum, SynchronizationKind.ASYNCHRONOUS); + addEEnumLiteral(synchronizationKindEEnum, SynchronizationKind.DELAYED_SYNCHRONOUS); + addEEnumLiteral(synchronizationKindEEnum, SynchronizationKind.RENDEZ_VOUS); + addEEnumLiteral(synchronizationKindEEnum, SynchronizationKind.OTHER); + + initEEnum(executionKindEEnum, ExecutionKind.class, "ExecutionKind"); + addEEnumLiteral(executionKindEEnum, ExecutionKind.DEFERRED); + addEEnumLiteral(executionKindEEnum, ExecutionKind.REMOTE_IMMEDIATE); + addEEnumLiteral(executionKindEEnum, ExecutionKind.LOCAL_IMMEDIATE); + + initEEnum(concurrencyKindEEnum, ConcurrencyKind.class, "ConcurrencyKind"); + addEEnumLiteral(concurrencyKindEEnum, ConcurrencyKind.READER); + addEEnumLiteral(concurrencyKindEEnum, ConcurrencyKind.WRITER); + addEEnumLiteral(concurrencyKindEEnum, ConcurrencyKind.PARALLEL); + + // Create annotations + // subsets + createSubsetsAnnotations(); + } + + /** + * Initializes the annotations for subsets. + * + * + * @generated + */ + protected void createSubsetsAnnotations() { + String source = "subsets"; + addAnnotation + (getRtFeature_Specification(), + source, + new String[] { + }, + new URI[] { + URI.createURI(UMLPackage.eNS_URI).appendFragment("//Element/ownedComment") + }); + } + +} //HLAMPackageImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/impl/PpUnitImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/impl/PpUnitImpl.java new file mode 100644 index 00000000000..8b3ff3e7b14 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/impl/PpUnitImpl.java @@ -0,0 +1,292 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HLAM.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.CallConcurrencyKind; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.PpUnit; + +import org.eclipse.uml2.uml.BehavioredClassifier; + +/** + * + * An implementation of the model object 'Pp Unit'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.PpUnitImpl#getConcPolicy Conc Policy}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.PpUnitImpl#getMemorySize Memory Size}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.PpUnitImpl#getBase_BehavioredClassifier Base Behaviored Classifier}
  • + *
+ *

+ * + * @generated + */ +public class PpUnitImpl extends EObjectImpl implements PpUnit { + /** + * The default value of the '{@link #getConcPolicy() Conc Policy}' attribute. + * + * + * @see #getConcPolicy() + * @generated + * @ordered + */ + protected static final CallConcurrencyKind CONC_POLICY_EDEFAULT = CallConcurrencyKind.SEQUENTIAL; + + /** + * The cached value of the '{@link #getConcPolicy() Conc Policy}' attribute. + * + * + * @see #getConcPolicy() + * @generated + * @ordered + */ + protected CallConcurrencyKind concPolicy = CONC_POLICY_EDEFAULT; + + /** + * The default value of the '{@link #getMemorySize() Memory Size}' attribute. + * + * + * @see #getMemorySize() + * @generated + * @ordered + */ + protected static final String MEMORY_SIZE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMemorySize() Memory Size}' attribute. + * + * + * @see #getMemorySize() + * @generated + * @ordered + */ + protected String memorySize = MEMORY_SIZE_EDEFAULT; + + /** + * The cached value of the '{@link #getBase_BehavioredClassifier() Base Behaviored Classifier}' reference. + * + * + * @see #getBase_BehavioredClassifier() + * @generated + * @ordered + */ + protected BehavioredClassifier base_BehavioredClassifier; + + /** + * + * + * @generated + */ + protected PpUnitImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return HLAMPackage.Literals.PP_UNIT; + } + + /** + * + * + * @generated + */ + public CallConcurrencyKind getConcPolicy() { + return concPolicy; + } + + /** + * + * + * @generated + */ + public void setConcPolicy(CallConcurrencyKind newConcPolicy) { + CallConcurrencyKind oldConcPolicy = concPolicy; + concPolicy = newConcPolicy == null ? CONC_POLICY_EDEFAULT : newConcPolicy; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HLAMPackage.PP_UNIT__CONC_POLICY, oldConcPolicy, concPolicy)); + } + + /** + * + * + * @generated + */ + public String getMemorySize() { + return memorySize; + } + + /** + * + * + * @generated + */ + public void setMemorySize(String newMemorySize) { + String oldMemorySize = memorySize; + memorySize = newMemorySize; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HLAMPackage.PP_UNIT__MEMORY_SIZE, oldMemorySize, memorySize)); + } + + /** + * + * + * @generated + */ + public BehavioredClassifier getBase_BehavioredClassifier() { + if (base_BehavioredClassifier != null && base_BehavioredClassifier.eIsProxy()) { + InternalEObject oldBase_BehavioredClassifier = (InternalEObject)base_BehavioredClassifier; + base_BehavioredClassifier = (BehavioredClassifier)eResolveProxy(oldBase_BehavioredClassifier); + if (base_BehavioredClassifier != oldBase_BehavioredClassifier) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, HLAMPackage.PP_UNIT__BASE_BEHAVIORED_CLASSIFIER, oldBase_BehavioredClassifier, base_BehavioredClassifier)); + } + } + return base_BehavioredClassifier; + } + + /** + * + * + * @generated + */ + public BehavioredClassifier basicGetBase_BehavioredClassifier() { + return base_BehavioredClassifier; + } + + /** + * + * + * @generated + */ + public void setBase_BehavioredClassifier(BehavioredClassifier newBase_BehavioredClassifier) { + BehavioredClassifier oldBase_BehavioredClassifier = base_BehavioredClassifier; + base_BehavioredClassifier = newBase_BehavioredClassifier; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HLAMPackage.PP_UNIT__BASE_BEHAVIORED_CLASSIFIER, oldBase_BehavioredClassifier, base_BehavioredClassifier)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case HLAMPackage.PP_UNIT__CONC_POLICY: + return getConcPolicy(); + case HLAMPackage.PP_UNIT__MEMORY_SIZE: + return getMemorySize(); + case HLAMPackage.PP_UNIT__BASE_BEHAVIORED_CLASSIFIER: + if (resolve) return getBase_BehavioredClassifier(); + return basicGetBase_BehavioredClassifier(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case HLAMPackage.PP_UNIT__CONC_POLICY: + setConcPolicy((CallConcurrencyKind)newValue); + return; + case HLAMPackage.PP_UNIT__MEMORY_SIZE: + setMemorySize((String)newValue); + return; + case HLAMPackage.PP_UNIT__BASE_BEHAVIORED_CLASSIFIER: + setBase_BehavioredClassifier((BehavioredClassifier)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case HLAMPackage.PP_UNIT__CONC_POLICY: + setConcPolicy(CONC_POLICY_EDEFAULT); + return; + case HLAMPackage.PP_UNIT__MEMORY_SIZE: + setMemorySize(MEMORY_SIZE_EDEFAULT); + return; + case HLAMPackage.PP_UNIT__BASE_BEHAVIORED_CLASSIFIER: + setBase_BehavioredClassifier((BehavioredClassifier)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case HLAMPackage.PP_UNIT__CONC_POLICY: + return concPolicy != CONC_POLICY_EDEFAULT; + case HLAMPackage.PP_UNIT__MEMORY_SIZE: + return MEMORY_SIZE_EDEFAULT == null ? memorySize != null : !MEMORY_SIZE_EDEFAULT.equals(memorySize); + case HLAMPackage.PP_UNIT__BASE_BEHAVIORED_CLASSIFIER: + return base_BehavioredClassifier != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (concPolicy: "); + result.append(concPolicy); + result.append(", memorySize: "); + result.append(memorySize); + result.append(')'); + return result.toString(); + } + +} //PpUnitImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/impl/RtActionImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/impl/RtActionImpl.java new file mode 100644 index 00000000000..9e423bb57b1 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/impl/RtActionImpl.java @@ -0,0 +1,407 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HLAM.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtAction; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.SynchronizationKind; + +import org.eclipse.uml2.uml.BehavioralFeature; +import org.eclipse.uml2.uml.InvocationAction; + +/** + * + * An implementation of the model object 'Rt Action'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtActionImpl#isIsAtomic Is Atomic}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtActionImpl#getSynchKind Synch Kind}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtActionImpl#getMsgSize Msg Size}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtActionImpl#getBase_BehavioralFeature Base Behavioral Feature}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtActionImpl#getBase_InvocationAction Base Invocation Action}
  • + *
+ *

+ * + * @generated + */ +public class RtActionImpl extends EObjectImpl implements RtAction { + /** + * The default value of the '{@link #isIsAtomic() Is Atomic}' attribute. + * + * + * @see #isIsAtomic() + * @generated + * @ordered + */ + protected static final boolean IS_ATOMIC_EDEFAULT = false; + + /** + * The cached value of the '{@link #isIsAtomic() Is Atomic}' attribute. + * + * + * @see #isIsAtomic() + * @generated + * @ordered + */ + protected boolean isAtomic = IS_ATOMIC_EDEFAULT; + + /** + * The default value of the '{@link #getSynchKind() Synch Kind}' attribute. + * + * + * @see #getSynchKind() + * @generated + * @ordered + */ + protected static final SynchronizationKind SYNCH_KIND_EDEFAULT = SynchronizationKind.SYNCHRONOUS; + + /** + * The cached value of the '{@link #getSynchKind() Synch Kind}' attribute. + * + * + * @see #getSynchKind() + * @generated + * @ordered + */ + protected SynchronizationKind synchKind = SYNCH_KIND_EDEFAULT; + + /** + * The default value of the '{@link #getMsgSize() Msg Size}' attribute. + * + * + * @see #getMsgSize() + * @generated + * @ordered + */ + protected static final String MSG_SIZE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMsgSize() Msg Size}' attribute. + * + * + * @see #getMsgSize() + * @generated + * @ordered + */ + protected String msgSize = MSG_SIZE_EDEFAULT; + + /** + * The cached value of the '{@link #getBase_BehavioralFeature() Base Behavioral Feature}' reference. + * + * + * @see #getBase_BehavioralFeature() + * @generated + * @ordered + */ + protected BehavioralFeature base_BehavioralFeature; + + /** + * The cached value of the '{@link #getBase_InvocationAction() Base Invocation Action}' reference. + * + * + * @see #getBase_InvocationAction() + * @generated + * @ordered + */ + protected InvocationAction base_InvocationAction; + + /** + * + * + * @generated + */ + protected RtActionImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return HLAMPackage.Literals.RT_ACTION; + } + + /** + * + * + * @generated + */ + public boolean isIsAtomic() { + return isAtomic; + } + + /** + * + * + * @generated + */ + public void setIsAtomic(boolean newIsAtomic) { + boolean oldIsAtomic = isAtomic; + isAtomic = newIsAtomic; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HLAMPackage.RT_ACTION__IS_ATOMIC, oldIsAtomic, isAtomic)); + } + + /** + * + * + * @generated + */ + public SynchronizationKind getSynchKind() { + return synchKind; + } + + /** + * + * + * @generated + */ + public void setSynchKind(SynchronizationKind newSynchKind) { + SynchronizationKind oldSynchKind = synchKind; + synchKind = newSynchKind == null ? SYNCH_KIND_EDEFAULT : newSynchKind; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HLAMPackage.RT_ACTION__SYNCH_KIND, oldSynchKind, synchKind)); + } + + /** + * + * + * @generated + */ + public String getMsgSize() { + return msgSize; + } + + /** + * + * + * @generated + */ + public void setMsgSize(String newMsgSize) { + String oldMsgSize = msgSize; + msgSize = newMsgSize; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HLAMPackage.RT_ACTION__MSG_SIZE, oldMsgSize, msgSize)); + } + + /** + * + * + * @generated + */ + public BehavioralFeature getBase_BehavioralFeature() { + if (base_BehavioralFeature != null && base_BehavioralFeature.eIsProxy()) { + InternalEObject oldBase_BehavioralFeature = (InternalEObject)base_BehavioralFeature; + base_BehavioralFeature = (BehavioralFeature)eResolveProxy(oldBase_BehavioralFeature); + if (base_BehavioralFeature != oldBase_BehavioralFeature) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, HLAMPackage.RT_ACTION__BASE_BEHAVIORAL_FEATURE, oldBase_BehavioralFeature, base_BehavioralFeature)); + } + } + return base_BehavioralFeature; + } + + /** + * + * + * @generated + */ + public BehavioralFeature basicGetBase_BehavioralFeature() { + return base_BehavioralFeature; + } + + /** + * + * + * @generated + */ + public void setBase_BehavioralFeature(BehavioralFeature newBase_BehavioralFeature) { + BehavioralFeature oldBase_BehavioralFeature = base_BehavioralFeature; + base_BehavioralFeature = newBase_BehavioralFeature; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HLAMPackage.RT_ACTION__BASE_BEHAVIORAL_FEATURE, oldBase_BehavioralFeature, base_BehavioralFeature)); + } + + /** + * + * + * @generated + */ + public InvocationAction getBase_InvocationAction() { + if (base_InvocationAction != null && base_InvocationAction.eIsProxy()) { + InternalEObject oldBase_InvocationAction = (InternalEObject)base_InvocationAction; + base_InvocationAction = (InvocationAction)eResolveProxy(oldBase_InvocationAction); + if (base_InvocationAction != oldBase_InvocationAction) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, HLAMPackage.RT_ACTION__BASE_INVOCATION_ACTION, oldBase_InvocationAction, base_InvocationAction)); + } + } + return base_InvocationAction; + } + + /** + * + * + * @generated + */ + public InvocationAction basicGetBase_InvocationAction() { + return base_InvocationAction; + } + + /** + * + * + * @generated + */ + public void setBase_InvocationAction(InvocationAction newBase_InvocationAction) { + InvocationAction oldBase_InvocationAction = base_InvocationAction; + base_InvocationAction = newBase_InvocationAction; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HLAMPackage.RT_ACTION__BASE_INVOCATION_ACTION, oldBase_InvocationAction, base_InvocationAction)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case HLAMPackage.RT_ACTION__IS_ATOMIC: + return isIsAtomic(); + case HLAMPackage.RT_ACTION__SYNCH_KIND: + return getSynchKind(); + case HLAMPackage.RT_ACTION__MSG_SIZE: + return getMsgSize(); + case HLAMPackage.RT_ACTION__BASE_BEHAVIORAL_FEATURE: + if (resolve) return getBase_BehavioralFeature(); + return basicGetBase_BehavioralFeature(); + case HLAMPackage.RT_ACTION__BASE_INVOCATION_ACTION: + if (resolve) return getBase_InvocationAction(); + return basicGetBase_InvocationAction(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case HLAMPackage.RT_ACTION__IS_ATOMIC: + setIsAtomic((Boolean)newValue); + return; + case HLAMPackage.RT_ACTION__SYNCH_KIND: + setSynchKind((SynchronizationKind)newValue); + return; + case HLAMPackage.RT_ACTION__MSG_SIZE: + setMsgSize((String)newValue); + return; + case HLAMPackage.RT_ACTION__BASE_BEHAVIORAL_FEATURE: + setBase_BehavioralFeature((BehavioralFeature)newValue); + return; + case HLAMPackage.RT_ACTION__BASE_INVOCATION_ACTION: + setBase_InvocationAction((InvocationAction)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case HLAMPackage.RT_ACTION__IS_ATOMIC: + setIsAtomic(IS_ATOMIC_EDEFAULT); + return; + case HLAMPackage.RT_ACTION__SYNCH_KIND: + setSynchKind(SYNCH_KIND_EDEFAULT); + return; + case HLAMPackage.RT_ACTION__MSG_SIZE: + setMsgSize(MSG_SIZE_EDEFAULT); + return; + case HLAMPackage.RT_ACTION__BASE_BEHAVIORAL_FEATURE: + setBase_BehavioralFeature((BehavioralFeature)null); + return; + case HLAMPackage.RT_ACTION__BASE_INVOCATION_ACTION: + setBase_InvocationAction((InvocationAction)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case HLAMPackage.RT_ACTION__IS_ATOMIC: + return isAtomic != IS_ATOMIC_EDEFAULT; + case HLAMPackage.RT_ACTION__SYNCH_KIND: + return synchKind != SYNCH_KIND_EDEFAULT; + case HLAMPackage.RT_ACTION__MSG_SIZE: + return MSG_SIZE_EDEFAULT == null ? msgSize != null : !MSG_SIZE_EDEFAULT.equals(msgSize); + case HLAMPackage.RT_ACTION__BASE_BEHAVIORAL_FEATURE: + return base_BehavioralFeature != null; + case HLAMPackage.RT_ACTION__BASE_INVOCATION_ACTION: + return base_InvocationAction != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (isAtomic: "); + result.append(isAtomic); + result.append(", synchKind: "); + result.append(synchKind); + result.append(", msgSize: "); + result.append(msgSize); + result.append(')'); + return result.toString(); + } + +} //RtActionImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/impl/RtFeatureImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/impl/RtFeatureImpl.java new file mode 100644 index 00000000000..1e59c4f26bb --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/impl/RtFeatureImpl.java @@ -0,0 +1,481 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HLAM.impl; + +import java.util.Collection; +import java.util.Iterator; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.BasicEList; +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; +import org.eclipse.emf.ecore.util.BasicInternalEList; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtFeature; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtSpecification; +import org.eclipse.papyrus.umlutils.ElementUtil; + +import org.eclipse.uml2.uml.BehavioralFeature; +import org.eclipse.uml2.uml.Comment; +import org.eclipse.uml2.uml.InvocationAction; +import org.eclipse.uml2.uml.Message; +import org.eclipse.uml2.uml.NamedElement; +import org.eclipse.uml2.uml.Port; +import org.eclipse.uml2.uml.Signal; + +/** + * + * An implementation of the model object 'Rt Feature'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtFeatureImpl#getBase_BehavioralFeature Base Behavioral Feature}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtFeatureImpl#getBase_Message Base Message}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtFeatureImpl#getBase_Signal Base Signal}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtFeatureImpl#getBase_Port Base Port}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtFeatureImpl#getBase_InvocationAction Base Invocation Action}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtFeatureImpl#getSpecification Specification}
  • + *
+ *

+ * + * @generated + */ +public class RtFeatureImpl extends EObjectImpl implements RtFeature { + /** + * The cached value of the '{@link #getBase_BehavioralFeature() Base Behavioral Feature}' reference. + * + * + * @see #getBase_BehavioralFeature() + * @generated + * @ordered + */ + protected BehavioralFeature base_BehavioralFeature; + + /** + * The cached value of the '{@link #getBase_Message() Base Message}' reference. + * + * + * @see #getBase_Message() + * @generated + * @ordered + */ + protected Message base_Message; + + /** + * The cached value of the '{@link #getBase_Signal() Base Signal}' reference. + * + * + * @see #getBase_Signal() + * @generated + * @ordered + */ + protected Signal base_Signal; + + /** + * The cached value of the '{@link #getBase_Port() Base Port}' reference. + * + * + * @see #getBase_Port() + * @generated + * @ordered + */ + protected Port base_Port; + + /** + * The cached value of the '{@link #getBase_InvocationAction() Base Invocation Action}' reference. + * + * + * @see #getBase_InvocationAction() + * @generated + * @ordered + */ + protected InvocationAction base_InvocationAction; + + /** + * + * + * @generated + */ + protected RtFeatureImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return HLAMPackage.Literals.RT_FEATURE; + } + + /** + * + * + * @generated + */ + public BehavioralFeature getBase_BehavioralFeature() { + if (base_BehavioralFeature != null && base_BehavioralFeature.eIsProxy()) { + InternalEObject oldBase_BehavioralFeature = (InternalEObject)base_BehavioralFeature; + base_BehavioralFeature = (BehavioralFeature)eResolveProxy(oldBase_BehavioralFeature); + if (base_BehavioralFeature != oldBase_BehavioralFeature) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, HLAMPackage.RT_FEATURE__BASE_BEHAVIORAL_FEATURE, oldBase_BehavioralFeature, base_BehavioralFeature)); + } + } + return base_BehavioralFeature; + } + + /** + * + * + * @generated + */ + public BehavioralFeature basicGetBase_BehavioralFeature() { + return base_BehavioralFeature; + } + + /** + * + * + * @generated + */ + public void setBase_BehavioralFeature(BehavioralFeature newBase_BehavioralFeature) { + BehavioralFeature oldBase_BehavioralFeature = base_BehavioralFeature; + base_BehavioralFeature = newBase_BehavioralFeature; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HLAMPackage.RT_FEATURE__BASE_BEHAVIORAL_FEATURE, oldBase_BehavioralFeature, base_BehavioralFeature)); + } + + /** + * + * + * @generated + */ + public Message getBase_Message() { + if (base_Message != null && base_Message.eIsProxy()) { + InternalEObject oldBase_Message = (InternalEObject)base_Message; + base_Message = (Message)eResolveProxy(oldBase_Message); + if (base_Message != oldBase_Message) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, HLAMPackage.RT_FEATURE__BASE_MESSAGE, oldBase_Message, base_Message)); + } + } + return base_Message; + } + + /** + * + * + * @generated + */ + public Message basicGetBase_Message() { + return base_Message; + } + + /** + * + * + * @generated + */ + public void setBase_Message(Message newBase_Message) { + Message oldBase_Message = base_Message; + base_Message = newBase_Message; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HLAMPackage.RT_FEATURE__BASE_MESSAGE, oldBase_Message, base_Message)); + } + + /** + * + * + * @generated + */ + public Signal getBase_Signal() { + if (base_Signal != null && base_Signal.eIsProxy()) { + InternalEObject oldBase_Signal = (InternalEObject)base_Signal; + base_Signal = (Signal)eResolveProxy(oldBase_Signal); + if (base_Signal != oldBase_Signal) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, HLAMPackage.RT_FEATURE__BASE_SIGNAL, oldBase_Signal, base_Signal)); + } + } + return base_Signal; + } + + /** + * + * + * @generated + */ + public Signal basicGetBase_Signal() { + return base_Signal; + } + + /** + * + * + * @generated + */ + public void setBase_Signal(Signal newBase_Signal) { + Signal oldBase_Signal = base_Signal; + base_Signal = newBase_Signal; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HLAMPackage.RT_FEATURE__BASE_SIGNAL, oldBase_Signal, base_Signal)); + } + + /** + * + * + * @generated + */ + public Port getBase_Port() { + if (base_Port != null && base_Port.eIsProxy()) { + InternalEObject oldBase_Port = (InternalEObject)base_Port; + base_Port = (Port)eResolveProxy(oldBase_Port); + if (base_Port != oldBase_Port) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, HLAMPackage.RT_FEATURE__BASE_PORT, oldBase_Port, base_Port)); + } + } + return base_Port; + } + + /** + * + * + * @generated + */ + public Port basicGetBase_Port() { + return base_Port; + } + + /** + * + * + * @generated + */ + public void setBase_Port(Port newBase_Port) { + Port oldBase_Port = base_Port; + base_Port = newBase_Port; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HLAMPackage.RT_FEATURE__BASE_PORT, oldBase_Port, base_Port)); + } + + /** + * + * + * @generated + */ + public InvocationAction getBase_InvocationAction() { + if (base_InvocationAction != null && base_InvocationAction.eIsProxy()) { + InternalEObject oldBase_InvocationAction = (InternalEObject)base_InvocationAction; + base_InvocationAction = (InvocationAction)eResolveProxy(oldBase_InvocationAction); + if (base_InvocationAction != oldBase_InvocationAction) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, HLAMPackage.RT_FEATURE__BASE_INVOCATION_ACTION, oldBase_InvocationAction, base_InvocationAction)); + } + } + return base_InvocationAction; + } + + /** + * + * + * @generated + */ + public InvocationAction basicGetBase_InvocationAction() { + return base_InvocationAction; + } + + /** + * + * + * @generated + */ + public void setBase_InvocationAction(InvocationAction newBase_InvocationAction) { + InvocationAction oldBase_InvocationAction = base_InvocationAction; + base_InvocationAction = newBase_InvocationAction; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HLAMPackage.RT_FEATURE__BASE_INVOCATION_ACTION, oldBase_InvocationAction, base_InvocationAction)); + } + + /** + * + * + * @generated NOT + */ + public EList getSpecification() { + // TODO: implement this method to return the 'Specification' reference list + // Ensure that you remove @generated or mark it @generated NOT + // The list is expected to implement org.eclipse.emf.ecore.util.InternalEList and org.eclipse.emf.ecore.EStructuralFeature.Setting + // so it's likely that an appropriate subclass of org.eclipse.emf.ecore.util.EcoreEList should be used. + // throw new UnsupportedOperationException(); + + EList ownedRtSpecifications = new BasicEList(); + Object base = null; + if(getBase_InvocationAction()!=null) + base = getBase_InvocationAction(); + else if(getBase_BehavioralFeature()!=null) + base = getBase_BehavioralFeature(); + else if(getBase_Message()!=null) + base = getBase_Message(); + else if(getBase_Signal()!=null) + base = getBase_Signal(); + else if(getBase_Port()!=null) + base = getBase_Port(); + + if(base != null) { + Iterator ownedComments = ((NamedElement)base).getOwnedComments().iterator(); + while(ownedComments.hasNext()) { + Comment currentComment = ownedComments.next(); + RtSpecification currentRtSpec = (RtSpecification)ElementUtil.hasStereotype(currentComment, HLAMPackage.eINSTANCE.getRtSpecification()); + if(currentRtSpec != null) + ownedRtSpecifications.add(currentRtSpec); + } + } + + + return new BasicInternalEList ( + RtSpecification.class, + ownedRtSpecifications.size(), + ownedRtSpecifications.toArray() + ); + + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case HLAMPackage.RT_FEATURE__BASE_BEHAVIORAL_FEATURE: + if (resolve) return getBase_BehavioralFeature(); + return basicGetBase_BehavioralFeature(); + case HLAMPackage.RT_FEATURE__BASE_MESSAGE: + if (resolve) return getBase_Message(); + return basicGetBase_Message(); + case HLAMPackage.RT_FEATURE__BASE_SIGNAL: + if (resolve) return getBase_Signal(); + return basicGetBase_Signal(); + case HLAMPackage.RT_FEATURE__BASE_PORT: + if (resolve) return getBase_Port(); + return basicGetBase_Port(); + case HLAMPackage.RT_FEATURE__BASE_INVOCATION_ACTION: + if (resolve) return getBase_InvocationAction(); + return basicGetBase_InvocationAction(); + case HLAMPackage.RT_FEATURE__SPECIFICATION: + return getSpecification(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case HLAMPackage.RT_FEATURE__BASE_BEHAVIORAL_FEATURE: + setBase_BehavioralFeature((BehavioralFeature)newValue); + return; + case HLAMPackage.RT_FEATURE__BASE_MESSAGE: + setBase_Message((Message)newValue); + return; + case HLAMPackage.RT_FEATURE__BASE_SIGNAL: + setBase_Signal((Signal)newValue); + return; + case HLAMPackage.RT_FEATURE__BASE_PORT: + setBase_Port((Port)newValue); + return; + case HLAMPackage.RT_FEATURE__BASE_INVOCATION_ACTION: + setBase_InvocationAction((InvocationAction)newValue); + return; + case HLAMPackage.RT_FEATURE__SPECIFICATION: + getSpecification().clear(); + getSpecification().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case HLAMPackage.RT_FEATURE__BASE_BEHAVIORAL_FEATURE: + setBase_BehavioralFeature((BehavioralFeature)null); + return; + case HLAMPackage.RT_FEATURE__BASE_MESSAGE: + setBase_Message((Message)null); + return; + case HLAMPackage.RT_FEATURE__BASE_SIGNAL: + setBase_Signal((Signal)null); + return; + case HLAMPackage.RT_FEATURE__BASE_PORT: + setBase_Port((Port)null); + return; + case HLAMPackage.RT_FEATURE__BASE_INVOCATION_ACTION: + setBase_InvocationAction((InvocationAction)null); + return; + case HLAMPackage.RT_FEATURE__SPECIFICATION: + getSpecification().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case HLAMPackage.RT_FEATURE__BASE_BEHAVIORAL_FEATURE: + return base_BehavioralFeature != null; + case HLAMPackage.RT_FEATURE__BASE_MESSAGE: + return base_Message != null; + case HLAMPackage.RT_FEATURE__BASE_SIGNAL: + return base_Signal != null; + case HLAMPackage.RT_FEATURE__BASE_PORT: + return base_Port != null; + case HLAMPackage.RT_FEATURE__BASE_INVOCATION_ACTION: + return base_InvocationAction != null; + case HLAMPackage.RT_FEATURE__SPECIFICATION: + return !getSpecification().isEmpty(); + } + return super.eIsSet(featureID); + } + +} //RtFeatureImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/impl/RtServiceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/impl/RtServiceImpl.java new file mode 100644 index 00000000000..30b29fb17be --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/impl/RtServiceImpl.java @@ -0,0 +1,402 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HLAM.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.ConcurrencyKind; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.ExecutionKind; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtService; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.SynchronizationKind; + +import org.eclipse.uml2.uml.BehavioralFeature; + +/** + * + * An implementation of the model object 'Rt Service'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtServiceImpl#getConcPolicy Conc Policy}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtServiceImpl#getExeKind Exe Kind}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtServiceImpl#isIsAtomic Is Atomic}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtServiceImpl#getSynchKind Synch Kind}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtServiceImpl#getBase_BehavioralFeature Base Behavioral Feature}
  • + *
+ *

+ * + * @generated + */ +public class RtServiceImpl extends EObjectImpl implements RtService { + /** + * The default value of the '{@link #getConcPolicy() Conc Policy}' attribute. + * + * + * @see #getConcPolicy() + * @generated + * @ordered + */ + protected static final ConcurrencyKind CONC_POLICY_EDEFAULT = ConcurrencyKind.READER; + + /** + * The cached value of the '{@link #getConcPolicy() Conc Policy}' attribute. + * + * + * @see #getConcPolicy() + * @generated + * @ordered + */ + protected ConcurrencyKind concPolicy = CONC_POLICY_EDEFAULT; + + /** + * The default value of the '{@link #getExeKind() Exe Kind}' attribute. + * + * + * @see #getExeKind() + * @generated + * @ordered + */ + protected static final ExecutionKind EXE_KIND_EDEFAULT = ExecutionKind.DEFERRED; + + /** + * The cached value of the '{@link #getExeKind() Exe Kind}' attribute. + * + * + * @see #getExeKind() + * @generated + * @ordered + */ + protected ExecutionKind exeKind = EXE_KIND_EDEFAULT; + + /** + * The default value of the '{@link #isIsAtomic() Is Atomic}' attribute. + * + * + * @see #isIsAtomic() + * @generated + * @ordered + */ + protected static final boolean IS_ATOMIC_EDEFAULT = false; + + /** + * The cached value of the '{@link #isIsAtomic() Is Atomic}' attribute. + * + * + * @see #isIsAtomic() + * @generated + * @ordered + */ + protected boolean isAtomic = IS_ATOMIC_EDEFAULT; + + /** + * The default value of the '{@link #getSynchKind() Synch Kind}' attribute. + * + * + * @see #getSynchKind() + * @generated + * @ordered + */ + protected static final SynchronizationKind SYNCH_KIND_EDEFAULT = SynchronizationKind.SYNCHRONOUS; + + /** + * The cached value of the '{@link #getSynchKind() Synch Kind}' attribute. + * + * + * @see #getSynchKind() + * @generated + * @ordered + */ + protected SynchronizationKind synchKind = SYNCH_KIND_EDEFAULT; + + /** + * The cached value of the '{@link #getBase_BehavioralFeature() Base Behavioral Feature}' reference. + * + * + * @see #getBase_BehavioralFeature() + * @generated + * @ordered + */ + protected BehavioralFeature base_BehavioralFeature; + + /** + * + * + * @generated + */ + protected RtServiceImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return HLAMPackage.Literals.RT_SERVICE; + } + + /** + * + * + * @generated + */ + public ConcurrencyKind getConcPolicy() { + return concPolicy; + } + + /** + * + * + * @generated + */ + public void setConcPolicy(ConcurrencyKind newConcPolicy) { + ConcurrencyKind oldConcPolicy = concPolicy; + concPolicy = newConcPolicy == null ? CONC_POLICY_EDEFAULT : newConcPolicy; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HLAMPackage.RT_SERVICE__CONC_POLICY, oldConcPolicy, concPolicy)); + } + + /** + * + * + * @generated + */ + public ExecutionKind getExeKind() { + return exeKind; + } + + /** + * + * + * @generated + */ + public void setExeKind(ExecutionKind newExeKind) { + ExecutionKind oldExeKind = exeKind; + exeKind = newExeKind == null ? EXE_KIND_EDEFAULT : newExeKind; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HLAMPackage.RT_SERVICE__EXE_KIND, oldExeKind, exeKind)); + } + + /** + * + * + * @generated + */ + public boolean isIsAtomic() { + return isAtomic; + } + + /** + * + * + * @generated + */ + public void setIsAtomic(boolean newIsAtomic) { + boolean oldIsAtomic = isAtomic; + isAtomic = newIsAtomic; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HLAMPackage.RT_SERVICE__IS_ATOMIC, oldIsAtomic, isAtomic)); + } + + /** + * + * + * @generated + */ + public SynchronizationKind getSynchKind() { + return synchKind; + } + + /** + * + * + * @generated + */ + public void setSynchKind(SynchronizationKind newSynchKind) { + SynchronizationKind oldSynchKind = synchKind; + synchKind = newSynchKind == null ? SYNCH_KIND_EDEFAULT : newSynchKind; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HLAMPackage.RT_SERVICE__SYNCH_KIND, oldSynchKind, synchKind)); + } + + /** + * + * + * @generated + */ + public BehavioralFeature getBase_BehavioralFeature() { + if (base_BehavioralFeature != null && base_BehavioralFeature.eIsProxy()) { + InternalEObject oldBase_BehavioralFeature = (InternalEObject)base_BehavioralFeature; + base_BehavioralFeature = (BehavioralFeature)eResolveProxy(oldBase_BehavioralFeature); + if (base_BehavioralFeature != oldBase_BehavioralFeature) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, HLAMPackage.RT_SERVICE__BASE_BEHAVIORAL_FEATURE, oldBase_BehavioralFeature, base_BehavioralFeature)); + } + } + return base_BehavioralFeature; + } + + /** + * + * + * @generated + */ + public BehavioralFeature basicGetBase_BehavioralFeature() { + return base_BehavioralFeature; + } + + /** + * + * + * @generated + */ + public void setBase_BehavioralFeature(BehavioralFeature newBase_BehavioralFeature) { + BehavioralFeature oldBase_BehavioralFeature = base_BehavioralFeature; + base_BehavioralFeature = newBase_BehavioralFeature; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HLAMPackage.RT_SERVICE__BASE_BEHAVIORAL_FEATURE, oldBase_BehavioralFeature, base_BehavioralFeature)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case HLAMPackage.RT_SERVICE__CONC_POLICY: + return getConcPolicy(); + case HLAMPackage.RT_SERVICE__EXE_KIND: + return getExeKind(); + case HLAMPackage.RT_SERVICE__IS_ATOMIC: + return isIsAtomic(); + case HLAMPackage.RT_SERVICE__SYNCH_KIND: + return getSynchKind(); + case HLAMPackage.RT_SERVICE__BASE_BEHAVIORAL_FEATURE: + if (resolve) return getBase_BehavioralFeature(); + return basicGetBase_BehavioralFeature(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case HLAMPackage.RT_SERVICE__CONC_POLICY: + setConcPolicy((ConcurrencyKind)newValue); + return; + case HLAMPackage.RT_SERVICE__EXE_KIND: + setExeKind((ExecutionKind)newValue); + return; + case HLAMPackage.RT_SERVICE__IS_ATOMIC: + setIsAtomic((Boolean)newValue); + return; + case HLAMPackage.RT_SERVICE__SYNCH_KIND: + setSynchKind((SynchronizationKind)newValue); + return; + case HLAMPackage.RT_SERVICE__BASE_BEHAVIORAL_FEATURE: + setBase_BehavioralFeature((BehavioralFeature)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case HLAMPackage.RT_SERVICE__CONC_POLICY: + setConcPolicy(CONC_POLICY_EDEFAULT); + return; + case HLAMPackage.RT_SERVICE__EXE_KIND: + setExeKind(EXE_KIND_EDEFAULT); + return; + case HLAMPackage.RT_SERVICE__IS_ATOMIC: + setIsAtomic(IS_ATOMIC_EDEFAULT); + return; + case HLAMPackage.RT_SERVICE__SYNCH_KIND: + setSynchKind(SYNCH_KIND_EDEFAULT); + return; + case HLAMPackage.RT_SERVICE__BASE_BEHAVIORAL_FEATURE: + setBase_BehavioralFeature((BehavioralFeature)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case HLAMPackage.RT_SERVICE__CONC_POLICY: + return concPolicy != CONC_POLICY_EDEFAULT; + case HLAMPackage.RT_SERVICE__EXE_KIND: + return exeKind != EXE_KIND_EDEFAULT; + case HLAMPackage.RT_SERVICE__IS_ATOMIC: + return isAtomic != IS_ATOMIC_EDEFAULT; + case HLAMPackage.RT_SERVICE__SYNCH_KIND: + return synchKind != SYNCH_KIND_EDEFAULT; + case HLAMPackage.RT_SERVICE__BASE_BEHAVIORAL_FEATURE: + return base_BehavioralFeature != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (concPolicy: "); + result.append(concPolicy); + result.append(", exeKind: "); + result.append(exeKind); + result.append(", isAtomic: "); + result.append(isAtomic); + result.append(", synchKind: "); + result.append(synchKind); + result.append(')'); + return result.toString(); + } + +} //RtServiceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/impl/RtSpecificationImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/impl/RtSpecificationImpl.java new file mode 100644 index 00000000000..89f2d7626c7 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/impl/RtSpecificationImpl.java @@ -0,0 +1,723 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HLAM.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtSpecification; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedInstantObservation; + +import org.eclipse.uml2.uml.BehavioralFeature; +import org.eclipse.uml2.uml.Comment; + +/** + * + * An implementation of the model object 'Rt Specification'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtSpecificationImpl#getUtility Utility}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtSpecificationImpl#getOccKind Occ Kind}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtSpecificationImpl#getTRef TRef}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtSpecificationImpl#getRelDl Rel Dl}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtSpecificationImpl#getAbsDl Abs Dl}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtSpecificationImpl#getBoundDl Bound Dl}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtSpecificationImpl#getRdTime Rd Time}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtSpecificationImpl#getMiss Miss}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtSpecificationImpl#getPriority Priority}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtSpecificationImpl#getBase_Comment Base Comment}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtSpecificationImpl#getContext Context}
  • + *
+ *

+ * + * @generated + */ +public class RtSpecificationImpl extends EObjectImpl implements RtSpecification { + /** + * The default value of the '{@link #getUtility() Utility}' attribute. + * + * + * @see #getUtility() + * @generated + * @ordered + */ + protected static final String UTILITY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getUtility() Utility}' attribute. + * + * + * @see #getUtility() + * @generated + * @ordered + */ + protected String utility = UTILITY_EDEFAULT; + + /** + * The default value of the '{@link #getOccKind() Occ Kind}' attribute. + * + * + * @see #getOccKind() + * @generated + * @ordered + */ + protected static final String OCC_KIND_EDEFAULT = null; + + /** + * The cached value of the '{@link #getOccKind() Occ Kind}' attribute. + * + * + * @see #getOccKind() + * @generated + * @ordered + */ + protected String occKind = OCC_KIND_EDEFAULT; + + /** + * The cached value of the '{@link #getTRef() TRef}' reference. + * + * + * @see #getTRef() + * @generated + * @ordered + */ + protected TimedInstantObservation tRef; + + /** + * The default value of the '{@link #getRelDl() Rel Dl}' attribute. + * + * + * @see #getRelDl() + * @generated + * @ordered + */ + protected static final String REL_DL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getRelDl() Rel Dl}' attribute. + * + * + * @see #getRelDl() + * @generated + * @ordered + */ + protected String relDl = REL_DL_EDEFAULT; + + /** + * The default value of the '{@link #getAbsDl() Abs Dl}' attribute. + * + * + * @see #getAbsDl() + * @generated + * @ordered + */ + protected static final String ABS_DL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAbsDl() Abs Dl}' attribute. + * + * + * @see #getAbsDl() + * @generated + * @ordered + */ + protected String absDl = ABS_DL_EDEFAULT; + + /** + * The default value of the '{@link #getBoundDl() Bound Dl}' attribute. + * + * + * @see #getBoundDl() + * @generated + * @ordered + */ + protected static final String BOUND_DL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getBoundDl() Bound Dl}' attribute. + * + * + * @see #getBoundDl() + * @generated + * @ordered + */ + protected String boundDl = BOUND_DL_EDEFAULT; + + /** + * The default value of the '{@link #getRdTime() Rd Time}' attribute. + * + * + * @see #getRdTime() + * @generated + * @ordered + */ + protected static final String RD_TIME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getRdTime() Rd Time}' attribute. + * + * + * @see #getRdTime() + * @generated + * @ordered + */ + protected String rdTime = RD_TIME_EDEFAULT; + + /** + * The default value of the '{@link #getMiss() Miss}' attribute. + * + * + * @see #getMiss() + * @generated + * @ordered + */ + protected static final String MISS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMiss() Miss}' attribute. + * + * + * @see #getMiss() + * @generated + * @ordered + */ + protected String miss = MISS_EDEFAULT; + + /** + * The default value of the '{@link #getPriority() Priority}' attribute. + * + * + * @see #getPriority() + * @generated + * @ordered + */ + protected static final String PRIORITY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPriority() Priority}' attribute. + * + * + * @see #getPriority() + * @generated + * @ordered + */ + protected String priority = PRIORITY_EDEFAULT; + + /** + * The cached value of the '{@link #getBase_Comment() Base Comment}' reference. + * + * + * @see #getBase_Comment() + * @generated + * @ordered + */ + protected Comment base_Comment; + + /** + * + * + * @generated + */ + protected RtSpecificationImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return HLAMPackage.Literals.RT_SPECIFICATION; + } + + /** + * + * + * @generated + */ + public String getUtility() { + return utility; + } + + /** + * + * + * @generated + */ + public void setUtility(String newUtility) { + String oldUtility = utility; + utility = newUtility; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HLAMPackage.RT_SPECIFICATION__UTILITY, oldUtility, utility)); + } + + /** + * + * + * @generated + */ + public String getOccKind() { + return occKind; + } + + /** + * + * + * @generated + */ + public void setOccKind(String newOccKind) { + String oldOccKind = occKind; + occKind = newOccKind; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HLAMPackage.RT_SPECIFICATION__OCC_KIND, oldOccKind, occKind)); + } + + /** + * + * + * @generated + */ + public TimedInstantObservation getTRef() { + if (tRef != null && tRef.eIsProxy()) { + InternalEObject oldTRef = (InternalEObject)tRef; + tRef = (TimedInstantObservation)eResolveProxy(oldTRef); + if (tRef != oldTRef) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, HLAMPackage.RT_SPECIFICATION__TREF, oldTRef, tRef)); + } + } + return tRef; + } + + /** + * + * + * @generated + */ + public TimedInstantObservation basicGetTRef() { + return tRef; + } + + /** + * + * + * @generated + */ + public void setTRef(TimedInstantObservation newTRef) { + TimedInstantObservation oldTRef = tRef; + tRef = newTRef; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HLAMPackage.RT_SPECIFICATION__TREF, oldTRef, tRef)); + } + + /** + * + * + * @generated + */ + public String getRelDl() { + return relDl; + } + + /** + * + * + * @generated + */ + public void setRelDl(String newRelDl) { + String oldRelDl = relDl; + relDl = newRelDl; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HLAMPackage.RT_SPECIFICATION__REL_DL, oldRelDl, relDl)); + } + + /** + * + * + * @generated + */ + public String getAbsDl() { + return absDl; + } + + /** + * + * + * @generated + */ + public void setAbsDl(String newAbsDl) { + String oldAbsDl = absDl; + absDl = newAbsDl; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HLAMPackage.RT_SPECIFICATION__ABS_DL, oldAbsDl, absDl)); + } + + /** + * + * + * @generated + */ + public String getBoundDl() { + return boundDl; + } + + /** + * + * + * @generated + */ + public void setBoundDl(String newBoundDl) { + String oldBoundDl = boundDl; + boundDl = newBoundDl; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HLAMPackage.RT_SPECIFICATION__BOUND_DL, oldBoundDl, boundDl)); + } + + /** + * + * + * @generated + */ + public String getRdTime() { + return rdTime; + } + + /** + * + * + * @generated + */ + public void setRdTime(String newRdTime) { + String oldRdTime = rdTime; + rdTime = newRdTime; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HLAMPackage.RT_SPECIFICATION__RD_TIME, oldRdTime, rdTime)); + } + + /** + * + * + * @generated + */ + public String getMiss() { + return miss; + } + + /** + * + * + * @generated + */ + public void setMiss(String newMiss) { + String oldMiss = miss; + miss = newMiss; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HLAMPackage.RT_SPECIFICATION__MISS, oldMiss, miss)); + } + + /** + * + * + * @generated + */ + public String getPriority() { + return priority; + } + + /** + * + * + * @generated + */ + public void setPriority(String newPriority) { + String oldPriority = priority; + priority = newPriority; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HLAMPackage.RT_SPECIFICATION__PRIORITY, oldPriority, priority)); + } + + /** + * + * + * @generated + */ + public Comment getBase_Comment() { + if (base_Comment != null && base_Comment.eIsProxy()) { + InternalEObject oldBase_Comment = (InternalEObject)base_Comment; + base_Comment = (Comment)eResolveProxy(oldBase_Comment); + if (base_Comment != oldBase_Comment) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, HLAMPackage.RT_SPECIFICATION__BASE_COMMENT, oldBase_Comment, base_Comment)); + } + } + return base_Comment; + } + + /** + * + * + * @generated + */ + public Comment basicGetBase_Comment() { + return base_Comment; + } + + /** + * + * + * @generated + */ + public void setBase_Comment(Comment newBase_Comment) { + Comment oldBase_Comment = base_Comment; + base_Comment = newBase_Comment; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HLAMPackage.RT_SPECIFICATION__BASE_COMMENT, oldBase_Comment, base_Comment)); + } + + /** + * + * + * @generated + */ + public BehavioralFeature getContext() { + BehavioralFeature context = basicGetContext(); + return context != null && context.eIsProxy() ? (BehavioralFeature)eResolveProxy((InternalEObject)context) : context; + } + + /** + * + * + * @generated + */ + public BehavioralFeature basicGetContext() { + // TODO: implement this method to return the 'Context' reference + // -> do not perform proxy resolution + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void setContext(BehavioralFeature newContext) { + // TODO: implement this method to set the 'Context' reference + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case HLAMPackage.RT_SPECIFICATION__UTILITY: + return getUtility(); + case HLAMPackage.RT_SPECIFICATION__OCC_KIND: + return getOccKind(); + case HLAMPackage.RT_SPECIFICATION__TREF: + if (resolve) return getTRef(); + return basicGetTRef(); + case HLAMPackage.RT_SPECIFICATION__REL_DL: + return getRelDl(); + case HLAMPackage.RT_SPECIFICATION__ABS_DL: + return getAbsDl(); + case HLAMPackage.RT_SPECIFICATION__BOUND_DL: + return getBoundDl(); + case HLAMPackage.RT_SPECIFICATION__RD_TIME: + return getRdTime(); + case HLAMPackage.RT_SPECIFICATION__MISS: + return getMiss(); + case HLAMPackage.RT_SPECIFICATION__PRIORITY: + return getPriority(); + case HLAMPackage.RT_SPECIFICATION__BASE_COMMENT: + if (resolve) return getBase_Comment(); + return basicGetBase_Comment(); + case HLAMPackage.RT_SPECIFICATION__CONTEXT: + if (resolve) return getContext(); + return basicGetContext(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case HLAMPackage.RT_SPECIFICATION__UTILITY: + setUtility((String)newValue); + return; + case HLAMPackage.RT_SPECIFICATION__OCC_KIND: + setOccKind((String)newValue); + return; + case HLAMPackage.RT_SPECIFICATION__TREF: + setTRef((TimedInstantObservation)newValue); + return; + case HLAMPackage.RT_SPECIFICATION__REL_DL: + setRelDl((String)newValue); + return; + case HLAMPackage.RT_SPECIFICATION__ABS_DL: + setAbsDl((String)newValue); + return; + case HLAMPackage.RT_SPECIFICATION__BOUND_DL: + setBoundDl((String)newValue); + return; + case HLAMPackage.RT_SPECIFICATION__RD_TIME: + setRdTime((String)newValue); + return; + case HLAMPackage.RT_SPECIFICATION__MISS: + setMiss((String)newValue); + return; + case HLAMPackage.RT_SPECIFICATION__PRIORITY: + setPriority((String)newValue); + return; + case HLAMPackage.RT_SPECIFICATION__BASE_COMMENT: + setBase_Comment((Comment)newValue); + return; + case HLAMPackage.RT_SPECIFICATION__CONTEXT: + setContext((BehavioralFeature)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case HLAMPackage.RT_SPECIFICATION__UTILITY: + setUtility(UTILITY_EDEFAULT); + return; + case HLAMPackage.RT_SPECIFICATION__OCC_KIND: + setOccKind(OCC_KIND_EDEFAULT); + return; + case HLAMPackage.RT_SPECIFICATION__TREF: + setTRef((TimedInstantObservation)null); + return; + case HLAMPackage.RT_SPECIFICATION__REL_DL: + setRelDl(REL_DL_EDEFAULT); + return; + case HLAMPackage.RT_SPECIFICATION__ABS_DL: + setAbsDl(ABS_DL_EDEFAULT); + return; + case HLAMPackage.RT_SPECIFICATION__BOUND_DL: + setBoundDl(BOUND_DL_EDEFAULT); + return; + case HLAMPackage.RT_SPECIFICATION__RD_TIME: + setRdTime(RD_TIME_EDEFAULT); + return; + case HLAMPackage.RT_SPECIFICATION__MISS: + setMiss(MISS_EDEFAULT); + return; + case HLAMPackage.RT_SPECIFICATION__PRIORITY: + setPriority(PRIORITY_EDEFAULT); + return; + case HLAMPackage.RT_SPECIFICATION__BASE_COMMENT: + setBase_Comment((Comment)null); + return; + case HLAMPackage.RT_SPECIFICATION__CONTEXT: + setContext((BehavioralFeature)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case HLAMPackage.RT_SPECIFICATION__UTILITY: + return UTILITY_EDEFAULT == null ? utility != null : !UTILITY_EDEFAULT.equals(utility); + case HLAMPackage.RT_SPECIFICATION__OCC_KIND: + return OCC_KIND_EDEFAULT == null ? occKind != null : !OCC_KIND_EDEFAULT.equals(occKind); + case HLAMPackage.RT_SPECIFICATION__TREF: + return tRef != null; + case HLAMPackage.RT_SPECIFICATION__REL_DL: + return REL_DL_EDEFAULT == null ? relDl != null : !REL_DL_EDEFAULT.equals(relDl); + case HLAMPackage.RT_SPECIFICATION__ABS_DL: + return ABS_DL_EDEFAULT == null ? absDl != null : !ABS_DL_EDEFAULT.equals(absDl); + case HLAMPackage.RT_SPECIFICATION__BOUND_DL: + return BOUND_DL_EDEFAULT == null ? boundDl != null : !BOUND_DL_EDEFAULT.equals(boundDl); + case HLAMPackage.RT_SPECIFICATION__RD_TIME: + return RD_TIME_EDEFAULT == null ? rdTime != null : !RD_TIME_EDEFAULT.equals(rdTime); + case HLAMPackage.RT_SPECIFICATION__MISS: + return MISS_EDEFAULT == null ? miss != null : !MISS_EDEFAULT.equals(miss); + case HLAMPackage.RT_SPECIFICATION__PRIORITY: + return PRIORITY_EDEFAULT == null ? priority != null : !PRIORITY_EDEFAULT.equals(priority); + case HLAMPackage.RT_SPECIFICATION__BASE_COMMENT: + return base_Comment != null; + case HLAMPackage.RT_SPECIFICATION__CONTEXT: + return basicGetContext() != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (utility: "); + result.append(utility); + result.append(", occKind: "); + result.append(occKind); + result.append(", relDl: "); + result.append(relDl); + result.append(", absDl: "); + result.append(absDl); + result.append(", boundDl: "); + result.append(boundDl); + result.append(", rdTime: "); + result.append(rdTime); + result.append(", miss: "); + result.append(miss); + result.append(", priority: "); + result.append(priority); + result.append(')'); + return result.toString(); + } + +} //RtSpecificationImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/impl/RtUnitImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/impl/RtUnitImpl.java new file mode 100644 index 00000000000..c84193b1faf --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/impl/RtUnitImpl.java @@ -0,0 +1,794 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HLAM.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.PoolMgtPolicyKind; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtUnit; + +import org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.SchedPolicyKind; + +import org.eclipse.uml2.uml.Behavior; +import org.eclipse.uml2.uml.BehavioredClassifier; +import org.eclipse.uml2.uml.Operation; + +/** + * + * An implementation of the model object 'Rt Unit'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtUnitImpl#isIsDynamic Is Dynamic}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtUnitImpl#isIsMain Is Main}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtUnitImpl#getSrPoolSize Sr Pool Size}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtUnitImpl#getSrPoolPolicy Sr Pool Policy}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtUnitImpl#getSrPoolWaitingTime Sr Pool Waiting Time}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtUnitImpl#getOperationalMode Operational Mode}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtUnitImpl#getMain Main}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtUnitImpl#getMemorySize Memory Size}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtUnitImpl#getBase_BehavioredClassifier Base Behaviored Classifier}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtUnitImpl#getQueueSchedPolicy Queue Sched Policy}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtUnitImpl#getQueueSize Queue Size}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.impl.RtUnitImpl#getMsgMaxSize Msg Max Size}
  • + *
+ *

+ * + * @generated + */ +public class RtUnitImpl extends EObjectImpl implements RtUnit { + /** + * The default value of the '{@link #isIsDynamic() Is Dynamic}' attribute. + * + * + * @see #isIsDynamic() + * @generated + * @ordered + */ + protected static final boolean IS_DYNAMIC_EDEFAULT = true; + + /** + * The cached value of the '{@link #isIsDynamic() Is Dynamic}' attribute. + * + * + * @see #isIsDynamic() + * @generated + * @ordered + */ + protected boolean isDynamic = IS_DYNAMIC_EDEFAULT; + + /** + * The default value of the '{@link #isIsMain() Is Main}' attribute. + * + * + * @see #isIsMain() + * @generated + * @ordered + */ + protected static final boolean IS_MAIN_EDEFAULT = false; + + /** + * The cached value of the '{@link #isIsMain() Is Main}' attribute. + * + * + * @see #isIsMain() + * @generated + * @ordered + */ + protected boolean isMain = IS_MAIN_EDEFAULT; + + /** + * The default value of the '{@link #getSrPoolSize() Sr Pool Size}' attribute. + * + * + * @see #getSrPoolSize() + * @generated + * @ordered + */ + protected static final int SR_POOL_SIZE_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getSrPoolSize() Sr Pool Size}' attribute. + * + * + * @see #getSrPoolSize() + * @generated + * @ordered + */ + protected int srPoolSize = SR_POOL_SIZE_EDEFAULT; + + /** + * The default value of the '{@link #getSrPoolPolicy() Sr Pool Policy}' attribute. + * + * + * @see #getSrPoolPolicy() + * @generated + * @ordered + */ + protected static final PoolMgtPolicyKind SR_POOL_POLICY_EDEFAULT = PoolMgtPolicyKind.INFINITE_WAIT; + + /** + * The cached value of the '{@link #getSrPoolPolicy() Sr Pool Policy}' attribute. + * + * + * @see #getSrPoolPolicy() + * @generated + * @ordered + */ + protected PoolMgtPolicyKind srPoolPolicy = SR_POOL_POLICY_EDEFAULT; + + /** + * The default value of the '{@link #getSrPoolWaitingTime() Sr Pool Waiting Time}' attribute. + * + * + * @see #getSrPoolWaitingTime() + * @generated + * @ordered + */ + protected static final String SR_POOL_WAITING_TIME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSrPoolWaitingTime() Sr Pool Waiting Time}' attribute. + * + * + * @see #getSrPoolWaitingTime() + * @generated + * @ordered + */ + protected String srPoolWaitingTime = SR_POOL_WAITING_TIME_EDEFAULT; + + /** + * The cached value of the '{@link #getOperationalMode() Operational Mode}' reference. + * + * + * @see #getOperationalMode() + * @generated + * @ordered + */ + protected Behavior operationalMode; + + /** + * The cached value of the '{@link #getMain() Main}' reference. + * + * + * @see #getMain() + * @generated + * @ordered + */ + protected Operation main; + + /** + * The default value of the '{@link #getMemorySize() Memory Size}' attribute. + * + * + * @see #getMemorySize() + * @generated + * @ordered + */ + protected static final String MEMORY_SIZE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMemorySize() Memory Size}' attribute. + * + * + * @see #getMemorySize() + * @generated + * @ordered + */ + protected String memorySize = MEMORY_SIZE_EDEFAULT; + + /** + * The cached value of the '{@link #getBase_BehavioredClassifier() Base Behaviored Classifier}' reference. + * + * + * @see #getBase_BehavioredClassifier() + * @generated + * @ordered + */ + protected BehavioredClassifier base_BehavioredClassifier; + + /** + * The default value of the '{@link #getQueueSchedPolicy() Queue Sched Policy}' attribute. + * + * + * @see #getQueueSchedPolicy() + * @generated + * @ordered + */ + protected static final SchedPolicyKind QUEUE_SCHED_POLICY_EDEFAULT = SchedPolicyKind.EARLIEST_DEADLINE_FIRST; + + /** + * The cached value of the '{@link #getQueueSchedPolicy() Queue Sched Policy}' attribute. + * + * + * @see #getQueueSchedPolicy() + * @generated + * @ordered + */ + protected SchedPolicyKind queueSchedPolicy = QUEUE_SCHED_POLICY_EDEFAULT; + + /** + * The default value of the '{@link #getQueueSize() Queue Size}' attribute. + * + * + * @see #getQueueSize() + * @generated + * @ordered + */ + protected static final int QUEUE_SIZE_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getQueueSize() Queue Size}' attribute. + * + * + * @see #getQueueSize() + * @generated + * @ordered + */ + protected int queueSize = QUEUE_SIZE_EDEFAULT; + + /** + * The default value of the '{@link #getMsgMaxSize() Msg Max Size}' attribute. + * + * + * @see #getMsgMaxSize() + * @generated + * @ordered + */ + protected static final String MSG_MAX_SIZE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMsgMaxSize() Msg Max Size}' attribute. + * + * + * @see #getMsgMaxSize() + * @generated + * @ordered + */ + protected String msgMaxSize = MSG_MAX_SIZE_EDEFAULT; + + /** + * + * + * @generated + */ + protected RtUnitImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return HLAMPackage.Literals.RT_UNIT; + } + + /** + * + * + * @generated + */ + public boolean isIsDynamic() { + return isDynamic; + } + + /** + * + * + * @generated + */ + public void setIsDynamic(boolean newIsDynamic) { + boolean oldIsDynamic = isDynamic; + isDynamic = newIsDynamic; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HLAMPackage.RT_UNIT__IS_DYNAMIC, oldIsDynamic, isDynamic)); + } + + /** + * + * + * @generated + */ + public boolean isIsMain() { + return isMain; + } + + /** + * + * + * @generated + */ + public void setIsMain(boolean newIsMain) { + boolean oldIsMain = isMain; + isMain = newIsMain; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HLAMPackage.RT_UNIT__IS_MAIN, oldIsMain, isMain)); + } + + /** + * + * + * @generated + */ + public int getSrPoolSize() { + return srPoolSize; + } + + /** + * + * + * @generated + */ + public void setSrPoolSize(int newSrPoolSize) { + int oldSrPoolSize = srPoolSize; + srPoolSize = newSrPoolSize; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HLAMPackage.RT_UNIT__SR_POOL_SIZE, oldSrPoolSize, srPoolSize)); + } + + /** + * + * + * @generated + */ + public PoolMgtPolicyKind getSrPoolPolicy() { + return srPoolPolicy; + } + + /** + * + * + * @generated + */ + public void setSrPoolPolicy(PoolMgtPolicyKind newSrPoolPolicy) { + PoolMgtPolicyKind oldSrPoolPolicy = srPoolPolicy; + srPoolPolicy = newSrPoolPolicy == null ? SR_POOL_POLICY_EDEFAULT : newSrPoolPolicy; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HLAMPackage.RT_UNIT__SR_POOL_POLICY, oldSrPoolPolicy, srPoolPolicy)); + } + + /** + * + * + * @generated + */ + public String getSrPoolWaitingTime() { + return srPoolWaitingTime; + } + + /** + * + * + * @generated + */ + public void setSrPoolWaitingTime(String newSrPoolWaitingTime) { + String oldSrPoolWaitingTime = srPoolWaitingTime; + srPoolWaitingTime = newSrPoolWaitingTime; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HLAMPackage.RT_UNIT__SR_POOL_WAITING_TIME, oldSrPoolWaitingTime, srPoolWaitingTime)); + } + + /** + * + * + * @generated + */ + public Behavior getOperationalMode() { + if (operationalMode != null && operationalMode.eIsProxy()) { + InternalEObject oldOperationalMode = (InternalEObject)operationalMode; + operationalMode = (Behavior)eResolveProxy(oldOperationalMode); + if (operationalMode != oldOperationalMode) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, HLAMPackage.RT_UNIT__OPERATIONAL_MODE, oldOperationalMode, operationalMode)); + } + } + return operationalMode; + } + + /** + * + * + * @generated + */ + public Behavior basicGetOperationalMode() { + return operationalMode; + } + + /** + * + * + * @generated + */ + public void setOperationalMode(Behavior newOperationalMode) { + Behavior oldOperationalMode = operationalMode; + operationalMode = newOperationalMode; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HLAMPackage.RT_UNIT__OPERATIONAL_MODE, oldOperationalMode, operationalMode)); + } + + /** + * + * + * @generated + */ + public Operation getMain() { + if (main != null && main.eIsProxy()) { + InternalEObject oldMain = (InternalEObject)main; + main = (Operation)eResolveProxy(oldMain); + if (main != oldMain) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, HLAMPackage.RT_UNIT__MAIN, oldMain, main)); + } + } + return main; + } + + /** + * + * + * @generated + */ + public Operation basicGetMain() { + return main; + } + + /** + * + * + * @generated + */ + public void setMain(Operation newMain) { + Operation oldMain = main; + main = newMain; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HLAMPackage.RT_UNIT__MAIN, oldMain, main)); + } + + /** + * + * + * @generated + */ + public String getMemorySize() { + return memorySize; + } + + /** + * + * + * @generated + */ + public void setMemorySize(String newMemorySize) { + String oldMemorySize = memorySize; + memorySize = newMemorySize; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HLAMPackage.RT_UNIT__MEMORY_SIZE, oldMemorySize, memorySize)); + } + + /** + * + * + * @generated + */ + public BehavioredClassifier getBase_BehavioredClassifier() { + if (base_BehavioredClassifier != null && base_BehavioredClassifier.eIsProxy()) { + InternalEObject oldBase_BehavioredClassifier = (InternalEObject)base_BehavioredClassifier; + base_BehavioredClassifier = (BehavioredClassifier)eResolveProxy(oldBase_BehavioredClassifier); + if (base_BehavioredClassifier != oldBase_BehavioredClassifier) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, HLAMPackage.RT_UNIT__BASE_BEHAVIORED_CLASSIFIER, oldBase_BehavioredClassifier, base_BehavioredClassifier)); + } + } + return base_BehavioredClassifier; + } + + /** + * + * + * @generated + */ + public BehavioredClassifier basicGetBase_BehavioredClassifier() { + return base_BehavioredClassifier; + } + + /** + * + * + * @generated + */ + public void setBase_BehavioredClassifier(BehavioredClassifier newBase_BehavioredClassifier) { + BehavioredClassifier oldBase_BehavioredClassifier = base_BehavioredClassifier; + base_BehavioredClassifier = newBase_BehavioredClassifier; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HLAMPackage.RT_UNIT__BASE_BEHAVIORED_CLASSIFIER, oldBase_BehavioredClassifier, base_BehavioredClassifier)); + } + + /** + * + * + * @generated + */ + public SchedPolicyKind getQueueSchedPolicy() { + return queueSchedPolicy; + } + + /** + * + * + * @generated + */ + public void setQueueSchedPolicy(SchedPolicyKind newQueueSchedPolicy) { + SchedPolicyKind oldQueueSchedPolicy = queueSchedPolicy; + queueSchedPolicy = newQueueSchedPolicy == null ? QUEUE_SCHED_POLICY_EDEFAULT : newQueueSchedPolicy; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HLAMPackage.RT_UNIT__QUEUE_SCHED_POLICY, oldQueueSchedPolicy, queueSchedPolicy)); + } + + /** + * + * + * @generated + */ + public int getQueueSize() { + return queueSize; + } + + /** + * + * + * @generated + */ + public void setQueueSize(int newQueueSize) { + int oldQueueSize = queueSize; + queueSize = newQueueSize; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HLAMPackage.RT_UNIT__QUEUE_SIZE, oldQueueSize, queueSize)); + } + + /** + * + * + * @generated + */ + public String getMsgMaxSize() { + return msgMaxSize; + } + + /** + * + * + * @generated + */ + public void setMsgMaxSize(String newMsgMaxSize) { + String oldMsgMaxSize = msgMaxSize; + msgMaxSize = newMsgMaxSize; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HLAMPackage.RT_UNIT__MSG_MAX_SIZE, oldMsgMaxSize, msgMaxSize)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case HLAMPackage.RT_UNIT__IS_DYNAMIC: + return isIsDynamic(); + case HLAMPackage.RT_UNIT__IS_MAIN: + return isIsMain(); + case HLAMPackage.RT_UNIT__SR_POOL_SIZE: + return getSrPoolSize(); + case HLAMPackage.RT_UNIT__SR_POOL_POLICY: + return getSrPoolPolicy(); + case HLAMPackage.RT_UNIT__SR_POOL_WAITING_TIME: + return getSrPoolWaitingTime(); + case HLAMPackage.RT_UNIT__OPERATIONAL_MODE: + if (resolve) return getOperationalMode(); + return basicGetOperationalMode(); + case HLAMPackage.RT_UNIT__MAIN: + if (resolve) return getMain(); + return basicGetMain(); + case HLAMPackage.RT_UNIT__MEMORY_SIZE: + return getMemorySize(); + case HLAMPackage.RT_UNIT__BASE_BEHAVIORED_CLASSIFIER: + if (resolve) return getBase_BehavioredClassifier(); + return basicGetBase_BehavioredClassifier(); + case HLAMPackage.RT_UNIT__QUEUE_SCHED_POLICY: + return getQueueSchedPolicy(); + case HLAMPackage.RT_UNIT__QUEUE_SIZE: + return getQueueSize(); + case HLAMPackage.RT_UNIT__MSG_MAX_SIZE: + return getMsgMaxSize(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case HLAMPackage.RT_UNIT__IS_DYNAMIC: + setIsDynamic((Boolean)newValue); + return; + case HLAMPackage.RT_UNIT__IS_MAIN: + setIsMain((Boolean)newValue); + return; + case HLAMPackage.RT_UNIT__SR_POOL_SIZE: + setSrPoolSize((Integer)newValue); + return; + case HLAMPackage.RT_UNIT__SR_POOL_POLICY: + setSrPoolPolicy((PoolMgtPolicyKind)newValue); + return; + case HLAMPackage.RT_UNIT__SR_POOL_WAITING_TIME: + setSrPoolWaitingTime((String)newValue); + return; + case HLAMPackage.RT_UNIT__OPERATIONAL_MODE: + setOperationalMode((Behavior)newValue); + return; + case HLAMPackage.RT_UNIT__MAIN: + setMain((Operation)newValue); + return; + case HLAMPackage.RT_UNIT__MEMORY_SIZE: + setMemorySize((String)newValue); + return; + case HLAMPackage.RT_UNIT__BASE_BEHAVIORED_CLASSIFIER: + setBase_BehavioredClassifier((BehavioredClassifier)newValue); + return; + case HLAMPackage.RT_UNIT__QUEUE_SCHED_POLICY: + setQueueSchedPolicy((SchedPolicyKind)newValue); + return; + case HLAMPackage.RT_UNIT__QUEUE_SIZE: + setQueueSize((Integer)newValue); + return; + case HLAMPackage.RT_UNIT__MSG_MAX_SIZE: + setMsgMaxSize((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case HLAMPackage.RT_UNIT__IS_DYNAMIC: + setIsDynamic(IS_DYNAMIC_EDEFAULT); + return; + case HLAMPackage.RT_UNIT__IS_MAIN: + setIsMain(IS_MAIN_EDEFAULT); + return; + case HLAMPackage.RT_UNIT__SR_POOL_SIZE: + setSrPoolSize(SR_POOL_SIZE_EDEFAULT); + return; + case HLAMPackage.RT_UNIT__SR_POOL_POLICY: + setSrPoolPolicy(SR_POOL_POLICY_EDEFAULT); + return; + case HLAMPackage.RT_UNIT__SR_POOL_WAITING_TIME: + setSrPoolWaitingTime(SR_POOL_WAITING_TIME_EDEFAULT); + return; + case HLAMPackage.RT_UNIT__OPERATIONAL_MODE: + setOperationalMode((Behavior)null); + return; + case HLAMPackage.RT_UNIT__MAIN: + setMain((Operation)null); + return; + case HLAMPackage.RT_UNIT__MEMORY_SIZE: + setMemorySize(MEMORY_SIZE_EDEFAULT); + return; + case HLAMPackage.RT_UNIT__BASE_BEHAVIORED_CLASSIFIER: + setBase_BehavioredClassifier((BehavioredClassifier)null); + return; + case HLAMPackage.RT_UNIT__QUEUE_SCHED_POLICY: + setQueueSchedPolicy(QUEUE_SCHED_POLICY_EDEFAULT); + return; + case HLAMPackage.RT_UNIT__QUEUE_SIZE: + setQueueSize(QUEUE_SIZE_EDEFAULT); + return; + case HLAMPackage.RT_UNIT__MSG_MAX_SIZE: + setMsgMaxSize(MSG_MAX_SIZE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case HLAMPackage.RT_UNIT__IS_DYNAMIC: + return isDynamic != IS_DYNAMIC_EDEFAULT; + case HLAMPackage.RT_UNIT__IS_MAIN: + return isMain != IS_MAIN_EDEFAULT; + case HLAMPackage.RT_UNIT__SR_POOL_SIZE: + return srPoolSize != SR_POOL_SIZE_EDEFAULT; + case HLAMPackage.RT_UNIT__SR_POOL_POLICY: + return srPoolPolicy != SR_POOL_POLICY_EDEFAULT; + case HLAMPackage.RT_UNIT__SR_POOL_WAITING_TIME: + return SR_POOL_WAITING_TIME_EDEFAULT == null ? srPoolWaitingTime != null : !SR_POOL_WAITING_TIME_EDEFAULT.equals(srPoolWaitingTime); + case HLAMPackage.RT_UNIT__OPERATIONAL_MODE: + return operationalMode != null; + case HLAMPackage.RT_UNIT__MAIN: + return main != null; + case HLAMPackage.RT_UNIT__MEMORY_SIZE: + return MEMORY_SIZE_EDEFAULT == null ? memorySize != null : !MEMORY_SIZE_EDEFAULT.equals(memorySize); + case HLAMPackage.RT_UNIT__BASE_BEHAVIORED_CLASSIFIER: + return base_BehavioredClassifier != null; + case HLAMPackage.RT_UNIT__QUEUE_SCHED_POLICY: + return queueSchedPolicy != QUEUE_SCHED_POLICY_EDEFAULT; + case HLAMPackage.RT_UNIT__QUEUE_SIZE: + return queueSize != QUEUE_SIZE_EDEFAULT; + case HLAMPackage.RT_UNIT__MSG_MAX_SIZE: + return MSG_MAX_SIZE_EDEFAULT == null ? msgMaxSize != null : !MSG_MAX_SIZE_EDEFAULT.equals(msgMaxSize); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (isDynamic: "); + result.append(isDynamic); + result.append(", isMain: "); + result.append(isMain); + result.append(", srPoolSize: "); + result.append(srPoolSize); + result.append(", srPoolPolicy: "); + result.append(srPoolPolicy); + result.append(", srPoolWaitingTime: "); + result.append(srPoolWaitingTime); + result.append(", memorySize: "); + result.append(memorySize); + result.append(", queueSchedPolicy: "); + result.append(queueSchedPolicy); + result.append(", queueSize: "); + result.append(queueSize); + result.append(", msgMaxSize: "); + result.append(msgMaxSize); + result.append(')'); + return result.toString(); + } + +} //RtUnitImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/util/HLAMAdapterFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/util/HLAMAdapterFactory.java new file mode 100644 index 00000000000..467f6c30d7c --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/util/HLAMAdapterFactory.java @@ -0,0 +1,221 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HLAM.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.MARTE_DesignModel.HLAM.*; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage + * @generated + */ +public class HLAMAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * @generated + */ + protected static HLAMPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public HLAMAdapterFactory() { + if (modelPackage == null) { + modelPackage = HLAMPackage.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 HLAMSwitch modelSwitch = + new HLAMSwitch() { + @Override + public Adapter caseRtUnit(RtUnit object) { + return createRtUnitAdapter(); + } + @Override + public Adapter casePpUnit(PpUnit object) { + return createPpUnitAdapter(); + } + @Override + public Adapter caseRtFeature(RtFeature object) { + return createRtFeatureAdapter(); + } + @Override + public Adapter caseRtSpecification(RtSpecification object) { + return createRtSpecificationAdapter(); + } + @Override + public Adapter caseRtAction(RtAction object) { + return createRtActionAdapter(); + } + @Override + public Adapter caseRtService(RtService object) { + return createRtServiceAdapter(); + } + @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.MARTE_DesignModel.HLAM.RtUnit Rt Unit}'. + * + * 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.MARTE_DesignModel.HLAM.RtUnit + * @generated + */ + public Adapter createRtUnitAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.PpUnit Pp Unit}'. + * + * 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.MARTE_DesignModel.HLAM.PpUnit + * @generated + */ + public Adapter createPpUnitAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtFeature Rt Feature}'. + * + * 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.MARTE_DesignModel.HLAM.RtFeature + * @generated + */ + public Adapter createRtFeatureAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtSpecification Rt Specification}'. + * + * 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.MARTE_DesignModel.HLAM.RtSpecification + * @generated + */ + public Adapter createRtSpecificationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtAction Rt Action}'. + * + * 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.MARTE_DesignModel.HLAM.RtAction + * @generated + */ + public Adapter createRtActionAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.RtService Rt Service}'. + * + * 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.MARTE_DesignModel.HLAM.RtService + * @generated + */ + public Adapter createRtServiceAdapter() { + 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; + } + +} //HLAMAdapterFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/util/HLAMResourceFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/util/HLAMResourceFactoryImpl.java new file mode 100644 index 00000000000..ffe8f3c4915 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/util/HLAMResourceFactoryImpl.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.MARTE_DesignModel.HLAM.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; + +import org.eclipse.emf.ecore.xmi.XMLResource; + +/** + * + * The Resource Factory associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.util.HLAMResourceImpl + * @generated + */ +public class HLAMResourceFactoryImpl extends ResourceFactoryImpl { + /** + * Creates an instance of the resource factory. + * + * + * @generated + */ + public HLAMResourceFactoryImpl() { + super(); + } + + /** + * Creates an instance of the resource. + * + * + * @generated + */ + @Override + public Resource createResource(URI uri) { + XMLResource result = new HLAMResourceImpl(uri); + result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + + result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); + return result; + } + +} //HLAMResourceFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/util/HLAMResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/util/HLAMResourceImpl.java new file mode 100644 index 00000000000..6a79287da17 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/util/HLAMResourceImpl.java @@ -0,0 +1,39 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HLAM.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; + +/** + * + * The Resource associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.util.HLAMResourceFactoryImpl + * @generated + */ +public class HLAMResourceImpl extends XMLResourceImpl { + /** + * Creates an instance of the resource. + * + * + * @param uri the URI of the new resource. + * @generated + */ + public HLAMResourceImpl(URI uri) { + super(uri); + } + +} //HLAMResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/util/HLAMSwitch.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/util/HLAMSwitch.java new file mode 100644 index 00000000000..0f44ce50a4c --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/util/HLAMSwitch.java @@ -0,0 +1,242 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HLAM.util; + +import java.util.List; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.*; + +/** + * + * 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.MARTE_DesignModel.HLAM.HLAMPackage + * @generated + */ +public class HLAMSwitch { + /** + * The cached model package + * + * + * @generated + */ + protected static HLAMPackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public HLAMSwitch() { + if (modelPackage == null) { + modelPackage = HLAMPackage.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 HLAMPackage.RT_UNIT: { + RtUnit rtUnit = (RtUnit)theEObject; + T result = caseRtUnit(rtUnit); + if (result == null) result = defaultCase(theEObject); + return result; + } + case HLAMPackage.PP_UNIT: { + PpUnit ppUnit = (PpUnit)theEObject; + T result = casePpUnit(ppUnit); + if (result == null) result = defaultCase(theEObject); + return result; + } + case HLAMPackage.RT_FEATURE: { + RtFeature rtFeature = (RtFeature)theEObject; + T result = caseRtFeature(rtFeature); + if (result == null) result = defaultCase(theEObject); + return result; + } + case HLAMPackage.RT_SPECIFICATION: { + RtSpecification rtSpecification = (RtSpecification)theEObject; + T result = caseRtSpecification(rtSpecification); + if (result == null) result = defaultCase(theEObject); + return result; + } + case HLAMPackage.RT_ACTION: { + RtAction rtAction = (RtAction)theEObject; + T result = caseRtAction(rtAction); + if (result == null) result = defaultCase(theEObject); + return result; + } + case HLAMPackage.RT_SERVICE: { + RtService rtService = (RtService)theEObject; + T result = caseRtService(rtService); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Rt Unit'. + * + * 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 'Rt Unit'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseRtUnit(RtUnit object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Pp Unit'. + * + * 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 'Pp Unit'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T casePpUnit(PpUnit object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Rt Feature'. + * + * 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 'Rt Feature'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseRtFeature(RtFeature object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Rt Specification'. + * + * 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 'Rt Specification'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseRtSpecification(RtSpecification object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Rt Action'. + * + * 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 'Rt Action'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseRtAction(RtAction object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Rt Service'. + * + * 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 'Rt Service'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseRtService(RtService 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; + } + +} //HLAMSwitch diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/util/HLAMXMLProcessor.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/util/HLAMXMLProcessor.java new file mode 100644 index 00000000000..dd4ed64b019 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HLAM/util/HLAMXMLProcessor.java @@ -0,0 +1,61 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HLAM.util; + +import java.util.Map; + +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.xmi.util.XMLProcessor; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HLAM.HLAMPackage; + +/** + * This class contains helper methods to serialize and deserialize XML documents + * + * + * @generated + */ +public class HLAMXMLProcessor extends XMLProcessor { + + /** + * Public constructor to instantiate the helper. + * + * + * @generated + */ + public HLAMXMLProcessor() { + super((EPackage.Registry.INSTANCE)); + HLAMPackage.eINSTANCE.eClass(); + } + + /** + * Register for "*" and "xml" file extensions the HLAMResourceFactoryImpl factory. + * + * + * @generated + */ + @Override + protected Map getRegistrations() { + if (registrations == null) { + super.getRegistrations(); + registrations.put(XML_EXTENSION, new HLAMResourceFactoryImpl()); + registrations.put(STAR_EXTENSION, new HLAMResourceFactoryImpl()); + } + return registrations; + } + +} //HLAMXMLProcessor diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/HwGeneralFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/HwGeneralFactory.java new file mode 100644 index 00000000000..52e6029bc26 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/HwGeneralFactory.java @@ -0,0 +1,62 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwGeneral; + +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.MARTE_DesignModel.HRM.HwGeneral.HwGeneralPackage + * @generated + */ +public interface HwGeneralFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + HwGeneralFactory eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.impl.HwGeneralFactoryImpl.init(); + + /** + * Returns a new object of class 'Hw Resource Service'. + * + * + * @return a new object of class 'Hw Resource Service'. + * @generated + */ + HwResourceService createHwResourceService(); + + /** + * Returns a new object of class 'Hw Resource'. + * + * + * @return a new object of class 'Hw Resource'. + * @generated + */ + HwResource createHwResource(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + HwGeneralPackage getHwGeneralPackage(); + +} //HwGeneralFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/HwGeneralPackage.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/HwGeneralPackage.java new file mode 100644 index 00000000000..53d4e272141 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/HwGeneralPackage.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.MARTE_DesignModel.HRM.HwGeneral; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage; + +/** + * + * 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.MARTE_DesignModel.HRM.HwGeneral.HwGeneralFactory + * @model kind="package" + * @generated + */ +public interface HwGeneralPackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "HwGeneral"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "http://www.eclipse.org/papyrus/HwGeneral/1"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "HwGeneral"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + HwGeneralPackage eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.impl.HwGeneralPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.impl.HwResourceServiceImpl Hw Resource Service}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.impl.HwResourceServiceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.impl.HwGeneralPackageImpl#getHwResourceService() + * @generated + */ + int HW_RESOURCE_SERVICE = 0; + + /** + * The feature id for the 'Owner' reference. + * + * + * @generated + * @ordered + */ + int HW_RESOURCE_SERVICE__OWNER = GRMPackage.GR_SERVICE__OWNER; + + /** + * The feature id for the 'Base Execution Specification' reference. + * + * + * @generated + * @ordered + */ + int HW_RESOURCE_SERVICE__BASE_EXECUTION_SPECIFICATION = GRMPackage.GR_SERVICE__BASE_EXECUTION_SPECIFICATION; + + /** + * The feature id for the 'Base Behavioral Feature' reference. + * + * + * @generated + * @ordered + */ + int HW_RESOURCE_SERVICE__BASE_BEHAVIORAL_FEATURE = GRMPackage.GR_SERVICE__BASE_BEHAVIORAL_FEATURE; + + /** + * The feature id for the 'Base Behavior' reference. + * + * + * @generated + * @ordered + */ + int HW_RESOURCE_SERVICE__BASE_BEHAVIOR = GRMPackage.GR_SERVICE__BASE_BEHAVIOR; + + /** + * The feature id for the 'Base Collaboration' reference. + * + * + * @generated + * @ordered + */ + int HW_RESOURCE_SERVICE__BASE_COLLABORATION = GRMPackage.GR_SERVICE__BASE_COLLABORATION; + + /** + * The feature id for the 'Base Collaboration Use' reference. + * + * + * @generated + * @ordered + */ + int HW_RESOURCE_SERVICE__BASE_COLLABORATION_USE = GRMPackage.GR_SERVICE__BASE_COLLABORATION_USE; + + /** + * The feature id for the 'Consumption' attribute. + * + * + * @generated + * @ordered + */ + int HW_RESOURCE_SERVICE__CONSUMPTION = GRMPackage.GR_SERVICE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Dissipation' attribute. + * + * + * @generated + * @ordered + */ + int HW_RESOURCE_SERVICE__DISSIPATION = GRMPackage.GR_SERVICE_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Hw Resource Service' class. + * + * + * @generated + * @ordered + */ + int HW_RESOURCE_SERVICE_FEATURE_COUNT = GRMPackage.GR_SERVICE_FEATURE_COUNT + 2; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.impl.HwResourceImpl Hw Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.impl.HwResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.impl.HwGeneralPackageImpl#getHwResource() + * @generated + */ + int HW_RESOURCE = 1; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int HW_RESOURCE__RES_MULT = GRMPackage.RESOURCE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int HW_RESOURCE__IS_PROTECTED = GRMPackage.RESOURCE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int HW_RESOURCE__IS_ACTIVE = GRMPackage.RESOURCE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int HW_RESOURCE__BASE_PROPERTY = GRMPackage.RESOURCE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int HW_RESOURCE__BASE_INSTANCE_SPECIFICATION = GRMPackage.RESOURCE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int HW_RESOURCE__BASE_CLASSIFIER = GRMPackage.RESOURCE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int HW_RESOURCE__BASE_LIFELINE = GRMPackage.RESOURCE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int HW_RESOURCE__BASE_CONNECTABLE_ELEMENT = GRMPackage.RESOURCE__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int HW_RESOURCE__DESCRIPTION = GRMPackage.RESOURCE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'PHW Services' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_RESOURCE__PHW_SERVICES = GRMPackage.RESOURCE_FEATURE_COUNT + 1; + + /** + * The feature id for the 'RHW Services' reference list. + * + * + * @generated + * @ordered + */ + int HW_RESOURCE__RHW_SERVICES = GRMPackage.RESOURCE_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Owned HW' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_RESOURCE__OWNED_HW = GRMPackage.RESOURCE_FEATURE_COUNT + 3; + + /** + * The feature id for the 'End Points' reference list. + * + * + * @generated + * @ordered + */ + int HW_RESOURCE__END_POINTS = GRMPackage.RESOURCE_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Frequency' attribute. + * + * + * @generated + * @ordered + */ + int HW_RESOURCE__FREQUENCY = GRMPackage.RESOURCE_FEATURE_COUNT + 5; + + /** + * The number of structural features of the 'Hw Resource' class. + * + * + * @generated + * @ordered + */ + int HW_RESOURCE_FEATURE_COUNT = GRMPackage.RESOURCE_FEATURE_COUNT + 6; + + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResourceService Hw Resource Service}'. + * + * + * @return the meta object for class 'Hw Resource Service'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResourceService + * @generated + */ + EClass getHwResourceService(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResourceService#getConsumption Consumption}'. + * + * + * @return the meta object for the attribute 'Consumption'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResourceService#getConsumption() + * @see #getHwResourceService() + * @generated + */ + EAttribute getHwResourceService_Consumption(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResourceService#getDissipation Dissipation}'. + * + * + * @return the meta object for the attribute 'Dissipation'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResourceService#getDissipation() + * @see #getHwResourceService() + * @generated + */ + EAttribute getHwResourceService_Dissipation(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource Hw Resource}'. + * + * + * @return the meta object for class 'Hw Resource'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource + * @generated + */ + EClass getHwResource(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource#getDescription Description}'. + * + * + * @return the meta object for the attribute 'Description'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource#getDescription() + * @see #getHwResource() + * @generated + */ + EAttribute getHwResource_Description(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource#getP_HW_Services PHW Services}'. + * + * + * @return the meta object for the containment reference list 'PHW Services'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource#getP_HW_Services() + * @see #getHwResource() + * @generated + */ + EReference getHwResource_P_HW_Services(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource#getR_HW_Services RHW Services}'. + * + * + * @return the meta object for the reference list 'RHW Services'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource#getR_HW_Services() + * @see #getHwResource() + * @generated + */ + EReference getHwResource_R_HW_Services(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource#getOwnedHW Owned HW}'. + * + * + * @return the meta object for the containment reference list 'Owned HW'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource#getOwnedHW() + * @see #getHwResource() + * @generated + */ + EReference getHwResource_OwnedHW(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource#getEndPoints End Points}'. + * + * + * @return the meta object for the reference list 'End Points'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource#getEndPoints() + * @see #getHwResource() + * @generated + */ + EReference getHwResource_EndPoints(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource#getFrequency Frequency}'. + * + * + * @return the meta object for the attribute 'Frequency'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource#getFrequency() + * @see #getHwResource() + * @generated + */ + EAttribute getHwResource_Frequency(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + HwGeneralFactory getHwGeneralFactory(); + + /** + * + * 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.MARTE_DesignModel.HRM.HwGeneral.impl.HwResourceServiceImpl Hw Resource Service}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.impl.HwResourceServiceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.impl.HwGeneralPackageImpl#getHwResourceService() + * @generated + */ + EClass HW_RESOURCE_SERVICE = eINSTANCE.getHwResourceService(); + + /** + * The meta object literal for the 'Consumption' attribute feature. + * + * + * @generated + */ + EAttribute HW_RESOURCE_SERVICE__CONSUMPTION = eINSTANCE.getHwResourceService_Consumption(); + + /** + * The meta object literal for the 'Dissipation' attribute feature. + * + * + * @generated + */ + EAttribute HW_RESOURCE_SERVICE__DISSIPATION = eINSTANCE.getHwResourceService_Dissipation(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.impl.HwResourceImpl Hw Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.impl.HwResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.impl.HwGeneralPackageImpl#getHwResource() + * @generated + */ + EClass HW_RESOURCE = eINSTANCE.getHwResource(); + + /** + * The meta object literal for the 'Description' attribute feature. + * + * + * @generated + */ + EAttribute HW_RESOURCE__DESCRIPTION = eINSTANCE.getHwResource_Description(); + + /** + * The meta object literal for the 'PHW Services' containment reference list feature. + * + * + * @generated + */ + EReference HW_RESOURCE__PHW_SERVICES = eINSTANCE.getHwResource_P_HW_Services(); + + /** + * The meta object literal for the 'RHW Services' reference list feature. + * + * + * @generated + */ + EReference HW_RESOURCE__RHW_SERVICES = eINSTANCE.getHwResource_R_HW_Services(); + + /** + * The meta object literal for the 'Owned HW' containment reference list feature. + * + * + * @generated + */ + EReference HW_RESOURCE__OWNED_HW = eINSTANCE.getHwResource_OwnedHW(); + + /** + * The meta object literal for the 'End Points' reference list feature. + * + * + * @generated + */ + EReference HW_RESOURCE__END_POINTS = eINSTANCE.getHwResource_EndPoints(); + + /** + * The meta object literal for the 'Frequency' attribute feature. + * + * + * @generated + */ + EAttribute HW_RESOURCE__FREQUENCY = eINSTANCE.getHwResource_Frequency(); + + } + +} //HwGeneralPackage diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/HwResource.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/HwResource.java new file mode 100644 index 00000000000..437ce7f8dca --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/HwResource.java @@ -0,0 +1,160 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwGeneral; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwEndPoint; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource; + +/** + * + * A representation of the model object 'Hw Resource'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource#getDescription Description}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource#getP_HW_Services PHW Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource#getR_HW_Services RHW Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource#getOwnedHW Owned HW}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource#getEndPoints End Points}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource#getFrequency Frequency}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwGeneralPackage#getHwResource() + * @model + * @generated + */ +public interface HwResource extends Resource { + /** + * Returns the value of the 'Description' attribute. + * + *

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

+ * + * @return the value of the 'Description' attribute. + * @see #setDescription(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwGeneralPackage#getHwResource_Description() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_String" ordered="false" + * @generated + */ + String getDescription(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource#getDescription Description}' attribute. + * + * + * @param value the new value of the 'Description' attribute. + * @see #getDescription() + * @generated + */ + void setDescription(String value); + + /** + * Returns the value of the 'PHW Services' containment reference list. + * The list contents are of type {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResourceService}. + * + *

+ * If the meaning of the 'PHW Services' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'PHW Services' containment reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwGeneralPackage#getHwResource_P_HW_Services() + * @model containment="true" ordered="false" + * @generated + */ + EList getP_HW_Services(); + + /** + * Returns the value of the 'RHW Services' reference list. + * The list contents are of type {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResourceService}. + * + *

+ * If the meaning of the 'RHW Services' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'RHW Services' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwGeneralPackage#getHwResource_R_HW_Services() + * @model ordered="false" + * @generated + */ + EList getR_HW_Services(); + + /** + * Returns the value of the 'Owned HW' containment reference list. + * The list contents are of type {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource}. + * + *

+ * If the meaning of the 'Owned HW' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Owned HW' containment reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwGeneralPackage#getHwResource_OwnedHW() + * @model containment="true" ordered="false" + * @generated + */ + EList getOwnedHW(); + + /** + * Returns the value of the 'End Points' reference list. + * The list contents are of type {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwEndPoint}. + * + *

+ * If the meaning of the 'End Points' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'End Points' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwGeneralPackage#getHwResource_EndPoints() + * @model ordered="false" + * @generated + */ + EList getEndPoints(); + + /** + * Returns the value of the 'Frequency' attribute. + * + *

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

+ * + * @return the value of the 'Frequency' attribute. + * @see #setFrequency(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwGeneralPackage#getHwResource_Frequency() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Frequency" ordered="false" + * @generated + */ + String getFrequency(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource#getFrequency Frequency}' attribute. + * + * + * @param value the new value of the 'Frequency' attribute. + * @see #getFrequency() + * @generated + */ + void setFrequency(String value); + +} // HwResource diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/HwResourceService.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/HwResourceService.java new file mode 100644 index 00000000000..633c4d8dac1 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/HwResourceService.java @@ -0,0 +1,88 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwGeneral; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GrService; + +/** + * + * A representation of the model object 'Hw Resource Service'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResourceService#getConsumption Consumption}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResourceService#getDissipation Dissipation}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwGeneralPackage#getHwResourceService() + * @model + * @generated + */ +public interface HwResourceService extends GrService { + /** + * Returns the value of the 'Consumption' attribute. + * + *

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

+ * + * @return the value of the 'Consumption' attribute. + * @see #setConsumption(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwGeneralPackage#getHwResourceService_Consumption() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Power" ordered="false" + * @generated + */ + String getConsumption(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResourceService#getConsumption Consumption}' attribute. + * + * + * @param value the new value of the 'Consumption' attribute. + * @see #getConsumption() + * @generated + */ + void setConsumption(String value); + + /** + * Returns the value of the 'Dissipation' attribute. + * + *

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

+ * + * @return the value of the 'Dissipation' attribute. + * @see #setDissipation(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwGeneralPackage#getHwResourceService_Dissipation() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Power" ordered="false" + * @generated + */ + String getDissipation(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResourceService#getDissipation Dissipation}' attribute. + * + * + * @param value the new value of the 'Dissipation' attribute. + * @see #getDissipation() + * @generated + */ + void setDissipation(String value); + +} // HwResourceService diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/impl/HwGeneralFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/impl/HwGeneralFactoryImpl.java new file mode 100644 index 00000000000..036f2ac8840 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/impl/HwGeneralFactoryImpl.java @@ -0,0 +1,117 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwGeneral.impl; + +import org.eclipse.emf.ecore.EClass; +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.MARTE_DesignModel.HRM.HwGeneral.*; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class HwGeneralFactoryImpl extends EFactoryImpl implements HwGeneralFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static HwGeneralFactory init() { + try { + HwGeneralFactory theHwGeneralFactory = (HwGeneralFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/HwGeneral/1"); + if (theHwGeneralFactory != null) { + return theHwGeneralFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new HwGeneralFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public HwGeneralFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case HwGeneralPackage.HW_RESOURCE_SERVICE: return createHwResourceService(); + case HwGeneralPackage.HW_RESOURCE: return createHwResource(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public HwResourceService createHwResourceService() { + HwResourceServiceImpl hwResourceService = new HwResourceServiceImpl(); + return hwResourceService; + } + + /** + * + * + * @generated + */ + public HwResource createHwResource() { + HwResourceImpl hwResource = new HwResourceImpl(); + return hwResource; + } + + /** + * + * + * @generated + */ + public HwGeneralPackage getHwGeneralPackage() { + return (HwGeneralPackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static HwGeneralPackage getPackage() { + return HwGeneralPackage.eINSTANCE; + } + +} //HwGeneralFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/impl/HwGeneralPackageImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/impl/HwGeneralPackageImpl.java new file mode 100644 index 00000000000..024a39648db --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/impl/HwGeneralPackageImpl.java @@ -0,0 +1,565 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwGeneral.impl; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +import org.eclipse.emf.ecore.impl.EPackageImpl; + +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.HwGeneralFactory; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwGeneralPackage; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResourceService; + +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.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 HwGeneralPackageImpl extends EPackageImpl implements HwGeneralPackage { + /** + * + * + * @generated + */ + private EClass hwResourceServiceEClass = null; + + /** + * + * + * @generated + */ + private EClass hwResourceEClass = 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.MARTE_DesignModel.HRM.HwGeneral.HwGeneralPackage#eNS_URI + * @see #init() + * @generated + */ + private HwGeneralPackageImpl() { + super(eNS_URI, HwGeneralFactory.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 HwGeneralPackage#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 HwGeneralPackage init() { + if (isInited) return (HwGeneralPackage)EPackage.Registry.INSTANCE.getEPackage(HwGeneralPackage.eNS_URI); + + // Obtain or create and register package + HwGeneralPackageImpl theHwGeneralPackage = (HwGeneralPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof HwGeneralPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new HwGeneralPackageImpl()); + + 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); + 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); + 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 + theHwGeneralPackage.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(); + 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(); + theMARTE_PrimitivesTypesPackage.createPackageContents(); + + // Initialize created meta-data + theHwGeneralPackage.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(); + 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(); + theMARTE_PrimitivesTypesPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theHwGeneralPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(HwGeneralPackage.eNS_URI, theHwGeneralPackage); + return theHwGeneralPackage; + } + + /** + * + * + * @generated + */ + public EClass getHwResourceService() { + return hwResourceServiceEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getHwResourceService_Consumption() { + return (EAttribute)hwResourceServiceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getHwResourceService_Dissipation() { + return (EAttribute)hwResourceServiceEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getHwResource() { + return hwResourceEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getHwResource_Description() { + return (EAttribute)hwResourceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getHwResource_P_HW_Services() { + return (EReference)hwResourceEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getHwResource_R_HW_Services() { + return (EReference)hwResourceEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getHwResource_OwnedHW() { + return (EReference)hwResourceEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EReference getHwResource_EndPoints() { + return (EReference)hwResourceEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getHwResource_Frequency() { + return (EAttribute)hwResourceEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public HwGeneralFactory getHwGeneralFactory() { + return (HwGeneralFactory)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 + hwResourceServiceEClass = createEClass(HW_RESOURCE_SERVICE); + createEAttribute(hwResourceServiceEClass, HW_RESOURCE_SERVICE__CONSUMPTION); + createEAttribute(hwResourceServiceEClass, HW_RESOURCE_SERVICE__DISSIPATION); + + hwResourceEClass = createEClass(HW_RESOURCE); + createEAttribute(hwResourceEClass, HW_RESOURCE__DESCRIPTION); + createEReference(hwResourceEClass, HW_RESOURCE__PHW_SERVICES); + createEReference(hwResourceEClass, HW_RESOURCE__RHW_SERVICES); + createEReference(hwResourceEClass, HW_RESOURCE__OWNED_HW); + createEReference(hwResourceEClass, HW_RESOURCE__END_POINTS); + createEAttribute(hwResourceEClass, HW_RESOURCE__FREQUENCY); + } + + /** + * + * + * @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 + GRMPackage theGRMPackage = (GRMPackage)EPackage.Registry.INSTANCE.getEPackage(GRMPackage.eNS_URI); + BasicNFP_TypesPackage theBasicNFP_TypesPackage = (BasicNFP_TypesPackage)EPackage.Registry.INSTANCE.getEPackage(BasicNFP_TypesPackage.eNS_URI); + HwCommunicationPackage theHwCommunicationPackage = (HwCommunicationPackage)EPackage.Registry.INSTANCE.getEPackage(HwCommunicationPackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + hwResourceServiceEClass.getESuperTypes().add(theGRMPackage.getGrService()); + hwResourceEClass.getESuperTypes().add(theGRMPackage.getResource()); + + // Initialize classes and features; add operations and parameters + initEClass(hwResourceServiceEClass, HwResourceService.class, "HwResourceService", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getHwResourceService_Consumption(), theBasicNFP_TypesPackage.getNFP_Power(), "consumption", null, 0, 1, HwResourceService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getHwResourceService_Dissipation(), theBasicNFP_TypesPackage.getNFP_Power(), "dissipation", null, 0, 1, HwResourceService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(hwResourceEClass, HwResource.class, "HwResource", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getHwResource_Description(), theBasicNFP_TypesPackage.getNFP_String(), "description", null, 0, 1, HwResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getHwResource_P_HW_Services(), this.getHwResourceService(), null, "p_HW_Services", null, 0, -1, HwResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getHwResource_R_HW_Services(), this.getHwResourceService(), null, "r_HW_Services", null, 0, -1, HwResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getHwResource_OwnedHW(), this.getHwResource(), null, "ownedHW", null, 0, -1, HwResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getHwResource_EndPoints(), theHwCommunicationPackage.getHwEndPoint(), null, "endPoints", null, 0, -1, HwResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getHwResource_Frequency(), theBasicNFP_TypesPackage.getNFP_Frequency(), "frequency", null, 0, 1, HwResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + // Create annotations + // subsets + createSubsetsAnnotations(); + } + + /** + * Initializes the annotations for subsets. + * + * + * @generated + */ + protected void createSubsetsAnnotations() { + String source = "subsets"; + addAnnotation + (getHwResource_EndPoints(), + source, + new String[] { + }, + new URI[] { + URI.createURI(MARTEPackage.eNS_URI).appendFragment("//MARTE_DesignModel/HRM/HwGeneral/HwResource/ownedHW") + }); + } + +} //HwGeneralPackageImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/impl/HwResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/impl/HwResourceImpl.java new file mode 100644 index 00000000000..0630eebf1a8 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/impl/HwResourceImpl.java @@ -0,0 +1,395 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwGeneral.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.EObjectResolvingEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwGeneralPackage; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResourceService; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwEndPoint; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ResourceImpl; + +/** + * + * An implementation of the model object 'Hw Resource'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.impl.HwResourceImpl#getDescription Description}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.impl.HwResourceImpl#getP_HW_Services PHW Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.impl.HwResourceImpl#getR_HW_Services RHW Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.impl.HwResourceImpl#getOwnedHW Owned HW}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.impl.HwResourceImpl#getEndPoints End Points}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.impl.HwResourceImpl#getFrequency Frequency}
  • + *
+ *

+ * + * @generated + */ +public class HwResourceImpl extends ResourceImpl implements HwResource { + /** + * The default value of the '{@link #getDescription() Description}' attribute. + * + * + * @see #getDescription() + * @generated + * @ordered + */ + protected static final String DESCRIPTION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDescription() Description}' attribute. + * + * + * @see #getDescription() + * @generated + * @ordered + */ + protected String description = DESCRIPTION_EDEFAULT; + + /** + * The cached value of the '{@link #getP_HW_Services() PHW Services}' containment reference list. + * + * + * @see #getP_HW_Services() + * @generated + * @ordered + */ + protected EList p_HW_Services; + + /** + * The cached value of the '{@link #getR_HW_Services() RHW Services}' reference list. + * + * + * @see #getR_HW_Services() + * @generated + * @ordered + */ + protected EList r_HW_Services; + + /** + * The cached value of the '{@link #getOwnedHW() Owned HW}' containment reference list. + * + * + * @see #getOwnedHW() + * @generated + * @ordered + */ + protected EList ownedHW; + + /** + * The cached value of the '{@link #getEndPoints() End Points}' reference list. + * + * + * @see #getEndPoints() + * @generated + * @ordered + */ + protected EList endPoints; + + /** + * The default value of the '{@link #getFrequency() Frequency}' attribute. + * + * + * @see #getFrequency() + * @generated + * @ordered + */ + protected static final String FREQUENCY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getFrequency() Frequency}' attribute. + * + * + * @see #getFrequency() + * @generated + * @ordered + */ + protected String frequency = FREQUENCY_EDEFAULT; + + /** + * + * + * @generated + */ + protected HwResourceImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return HwGeneralPackage.Literals.HW_RESOURCE; + } + + /** + * + * + * @generated + */ + public String getDescription() { + return description; + } + + /** + * + * + * @generated + */ + public void setDescription(String newDescription) { + String oldDescription = description; + description = newDescription; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwGeneralPackage.HW_RESOURCE__DESCRIPTION, oldDescription, description)); + } + + /** + * + * + * @generated + */ + public EList getP_HW_Services() { + if (p_HW_Services == null) { + p_HW_Services = new EObjectContainmentEList(HwResourceService.class, this, HwGeneralPackage.HW_RESOURCE__PHW_SERVICES); + } + return p_HW_Services; + } + + /** + * + * + * @generated + */ + public EList getR_HW_Services() { + if (r_HW_Services == null) { + r_HW_Services = new EObjectResolvingEList(HwResourceService.class, this, HwGeneralPackage.HW_RESOURCE__RHW_SERVICES); + } + return r_HW_Services; + } + + /** + * + * + * @generated + */ + public EList getOwnedHW() { + if (ownedHW == null) { + ownedHW = new EObjectContainmentEList(HwResource.class, this, HwGeneralPackage.HW_RESOURCE__OWNED_HW); + } + return ownedHW; + } + + /** + * + * + * @generated + */ + public EList getEndPoints() { + if (endPoints == null) { + endPoints = new EObjectResolvingEList(HwEndPoint.class, this, HwGeneralPackage.HW_RESOURCE__END_POINTS); + } + return endPoints; + } + + /** + * + * + * @generated + */ + public String getFrequency() { + return frequency; + } + + /** + * + * + * @generated + */ + public void setFrequency(String newFrequency) { + String oldFrequency = frequency; + frequency = newFrequency; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwGeneralPackage.HW_RESOURCE__FREQUENCY, oldFrequency, frequency)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case HwGeneralPackage.HW_RESOURCE__PHW_SERVICES: + return ((InternalEList)getP_HW_Services()).basicRemove(otherEnd, msgs); + case HwGeneralPackage.HW_RESOURCE__OWNED_HW: + return ((InternalEList)getOwnedHW()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case HwGeneralPackage.HW_RESOURCE__DESCRIPTION: + return getDescription(); + case HwGeneralPackage.HW_RESOURCE__PHW_SERVICES: + return getP_HW_Services(); + case HwGeneralPackage.HW_RESOURCE__RHW_SERVICES: + return getR_HW_Services(); + case HwGeneralPackage.HW_RESOURCE__OWNED_HW: + return getOwnedHW(); + case HwGeneralPackage.HW_RESOURCE__END_POINTS: + return getEndPoints(); + case HwGeneralPackage.HW_RESOURCE__FREQUENCY: + return getFrequency(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case HwGeneralPackage.HW_RESOURCE__DESCRIPTION: + setDescription((String)newValue); + return; + case HwGeneralPackage.HW_RESOURCE__PHW_SERVICES: + getP_HW_Services().clear(); + getP_HW_Services().addAll((Collection)newValue); + return; + case HwGeneralPackage.HW_RESOURCE__RHW_SERVICES: + getR_HW_Services().clear(); + getR_HW_Services().addAll((Collection)newValue); + return; + case HwGeneralPackage.HW_RESOURCE__OWNED_HW: + getOwnedHW().clear(); + getOwnedHW().addAll((Collection)newValue); + return; + case HwGeneralPackage.HW_RESOURCE__END_POINTS: + getEndPoints().clear(); + getEndPoints().addAll((Collection)newValue); + return; + case HwGeneralPackage.HW_RESOURCE__FREQUENCY: + setFrequency((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case HwGeneralPackage.HW_RESOURCE__DESCRIPTION: + setDescription(DESCRIPTION_EDEFAULT); + return; + case HwGeneralPackage.HW_RESOURCE__PHW_SERVICES: + getP_HW_Services().clear(); + return; + case HwGeneralPackage.HW_RESOURCE__RHW_SERVICES: + getR_HW_Services().clear(); + return; + case HwGeneralPackage.HW_RESOURCE__OWNED_HW: + getOwnedHW().clear(); + return; + case HwGeneralPackage.HW_RESOURCE__END_POINTS: + getEndPoints().clear(); + return; + case HwGeneralPackage.HW_RESOURCE__FREQUENCY: + setFrequency(FREQUENCY_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case HwGeneralPackage.HW_RESOURCE__DESCRIPTION: + return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); + case HwGeneralPackage.HW_RESOURCE__PHW_SERVICES: + return p_HW_Services != null && !p_HW_Services.isEmpty(); + case HwGeneralPackage.HW_RESOURCE__RHW_SERVICES: + return r_HW_Services != null && !r_HW_Services.isEmpty(); + case HwGeneralPackage.HW_RESOURCE__OWNED_HW: + return ownedHW != null && !ownedHW.isEmpty(); + case HwGeneralPackage.HW_RESOURCE__END_POINTS: + return endPoints != null && !endPoints.isEmpty(); + case HwGeneralPackage.HW_RESOURCE__FREQUENCY: + return FREQUENCY_EDEFAULT == null ? frequency != null : !FREQUENCY_EDEFAULT.equals(frequency); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (description: "); + result.append(description); + result.append(", frequency: "); + result.append(frequency); + result.append(')'); + return result.toString(); + } + +} //HwResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/impl/HwResourceServiceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/impl/HwResourceServiceImpl.java new file mode 100644 index 00000000000..7ea597ca626 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/impl/HwResourceServiceImpl.java @@ -0,0 +1,229 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwGeneral.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwGeneralPackage; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResourceService; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GrServiceImpl; + +/** + * + * An implementation of the model object 'Hw Resource Service'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.impl.HwResourceServiceImpl#getConsumption Consumption}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.impl.HwResourceServiceImpl#getDissipation Dissipation}
  • + *
+ *

+ * + * @generated + */ +public class HwResourceServiceImpl extends GrServiceImpl implements HwResourceService { + /** + * The default value of the '{@link #getConsumption() Consumption}' attribute. + * + * + * @see #getConsumption() + * @generated + * @ordered + */ + protected static final String CONSUMPTION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getConsumption() Consumption}' attribute. + * + * + * @see #getConsumption() + * @generated + * @ordered + */ + protected String consumption = CONSUMPTION_EDEFAULT; + + /** + * The default value of the '{@link #getDissipation() Dissipation}' attribute. + * + * + * @see #getDissipation() + * @generated + * @ordered + */ + protected static final String DISSIPATION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDissipation() Dissipation}' attribute. + * + * + * @see #getDissipation() + * @generated + * @ordered + */ + protected String dissipation = DISSIPATION_EDEFAULT; + + /** + * + * + * @generated + */ + protected HwResourceServiceImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return HwGeneralPackage.Literals.HW_RESOURCE_SERVICE; + } + + /** + * + * + * @generated + */ + public String getConsumption() { + return consumption; + } + + /** + * + * + * @generated + */ + public void setConsumption(String newConsumption) { + String oldConsumption = consumption; + consumption = newConsumption; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwGeneralPackage.HW_RESOURCE_SERVICE__CONSUMPTION, oldConsumption, consumption)); + } + + /** + * + * + * @generated + */ + public String getDissipation() { + return dissipation; + } + + /** + * + * + * @generated + */ + public void setDissipation(String newDissipation) { + String oldDissipation = dissipation; + dissipation = newDissipation; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwGeneralPackage.HW_RESOURCE_SERVICE__DISSIPATION, oldDissipation, dissipation)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case HwGeneralPackage.HW_RESOURCE_SERVICE__CONSUMPTION: + return getConsumption(); + case HwGeneralPackage.HW_RESOURCE_SERVICE__DISSIPATION: + return getDissipation(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case HwGeneralPackage.HW_RESOURCE_SERVICE__CONSUMPTION: + setConsumption((String)newValue); + return; + case HwGeneralPackage.HW_RESOURCE_SERVICE__DISSIPATION: + setDissipation((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case HwGeneralPackage.HW_RESOURCE_SERVICE__CONSUMPTION: + setConsumption(CONSUMPTION_EDEFAULT); + return; + case HwGeneralPackage.HW_RESOURCE_SERVICE__DISSIPATION: + setDissipation(DISSIPATION_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case HwGeneralPackage.HW_RESOURCE_SERVICE__CONSUMPTION: + return CONSUMPTION_EDEFAULT == null ? consumption != null : !CONSUMPTION_EDEFAULT.equals(consumption); + case HwGeneralPackage.HW_RESOURCE_SERVICE__DISSIPATION: + return DISSIPATION_EDEFAULT == null ? dissipation != null : !DISSIPATION_EDEFAULT.equals(dissipation); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (consumption: "); + result.append(consumption); + result.append(", dissipation: "); + result.append(dissipation); + result.append(')'); + return result.toString(); + } + +} //HwResourceServiceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/util/HwGeneralAdapterFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/util/HwGeneralAdapterFactory.java new file mode 100644 index 00000000000..648f00f82df --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/util/HwGeneralAdapterFactory.java @@ -0,0 +1,188 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwGeneral.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.MARTE_DesignModel.HRM.HwGeneral.*; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GrService; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwGeneralPackage + * @generated + */ +public class HwGeneralAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * @generated + */ + protected static HwGeneralPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public HwGeneralAdapterFactory() { + if (modelPackage == null) { + modelPackage = HwGeneralPackage.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 HwGeneralSwitch modelSwitch = + new HwGeneralSwitch() { + @Override + public Adapter caseHwResourceService(HwResourceService object) { + return createHwResourceServiceAdapter(); + } + @Override + public Adapter caseHwResource(HwResource object) { + return createHwResourceAdapter(); + } + @Override + public Adapter caseGrService(GrService object) { + return createGrServiceAdapter(); + } + @Override + public Adapter caseResource(Resource object) { + return createResourceAdapter(); + } + @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.MARTE_DesignModel.HRM.HwGeneral.HwResourceService Hw Resource Service}'. + * + * 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.MARTE_DesignModel.HRM.HwGeneral.HwResourceService + * @generated + */ + public Adapter createHwResourceServiceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource Hw Resource}'. + * + * 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.MARTE_DesignModel.HRM.HwGeneral.HwResource + * @generated + */ + public Adapter createHwResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GrService Gr Service}'. + * + * 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.MARTE_Foundations.GRM.GrService + * @generated + */ + public Adapter createGrServiceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource Resource}'. + * + * 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.MARTE_Foundations.GRM.Resource + * @generated + */ + public Adapter createResourceAdapter() { + 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; + } + +} //HwGeneralAdapterFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/util/HwGeneralResourceFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/util/HwGeneralResourceFactoryImpl.java new file mode 100644 index 00000000000..428cae69f71 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/util/HwGeneralResourceFactoryImpl.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.MARTE_DesignModel.HRM.HwGeneral.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; + +import org.eclipse.emf.ecore.xmi.XMLResource; + +/** + * + * The Resource Factory associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.util.HwGeneralResourceImpl + * @generated + */ +public class HwGeneralResourceFactoryImpl extends ResourceFactoryImpl { + /** + * Creates an instance of the resource factory. + * + * + * @generated + */ + public HwGeneralResourceFactoryImpl() { + super(); + } + + /** + * Creates an instance of the resource. + * + * + * @generated + */ + @Override + public Resource createResource(URI uri) { + XMLResource result = new HwGeneralResourceImpl(uri); + result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + + result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); + return result; + } + +} //HwGeneralResourceFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/util/HwGeneralResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/util/HwGeneralResourceImpl.java new file mode 100644 index 00000000000..eaa7fe3ad10 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/util/HwGeneralResourceImpl.java @@ -0,0 +1,39 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwGeneral.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; + +/** + * + * The Resource associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.util.HwGeneralResourceFactoryImpl + * @generated + */ +public class HwGeneralResourceImpl extends XMLResourceImpl { + /** + * Creates an instance of the resource. + * + * + * @param uri the URI of the new resource. + * @generated + */ + public HwGeneralResourceImpl(URI uri) { + super(uri); + } + +} //HwGeneralResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/util/HwGeneralSwitch.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/util/HwGeneralSwitch.java new file mode 100644 index 00000000000..0efd752059c --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/util/HwGeneralSwitch.java @@ -0,0 +1,193 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwGeneral.util; + +import java.util.List; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.*; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GrService; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource; + +/** + * + * 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.MARTE_DesignModel.HRM.HwGeneral.HwGeneralPackage + * @generated + */ +public class HwGeneralSwitch { + /** + * The cached model package + * + * + * @generated + */ + protected static HwGeneralPackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public HwGeneralSwitch() { + if (modelPackage == null) { + modelPackage = HwGeneralPackage.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 HwGeneralPackage.HW_RESOURCE_SERVICE: { + HwResourceService hwResourceService = (HwResourceService)theEObject; + T result = caseHwResourceService(hwResourceService); + if (result == null) result = caseGrService(hwResourceService); + if (result == null) result = defaultCase(theEObject); + return result; + } + case HwGeneralPackage.HW_RESOURCE: { + HwResource hwResource = (HwResource)theEObject; + T result = caseHwResource(hwResource); + if (result == null) result = caseResource(hwResource); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Hw Resource Service'. + * + * 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 'Hw Resource Service'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHwResourceService(HwResourceService object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Hw Resource'. + * + * 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 'Hw Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHwResource(HwResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Gr Service'. + * + * 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 'Gr Service'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseGrService(GrService object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Resource'. + * + * 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 'Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseResource(Resource 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; + } + +} //HwGeneralSwitch diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/util/HwGeneralXMLProcessor.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/util/HwGeneralXMLProcessor.java new file mode 100644 index 00000000000..8044eec8d8f --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwGeneral/util/HwGeneralXMLProcessor.java @@ -0,0 +1,61 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwGeneral.util; + +import java.util.Map; + +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.xmi.util.XMLProcessor; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwGeneralPackage; + +/** + * This class contains helper methods to serialize and deserialize XML documents + * + * + * @generated + */ +public class HwGeneralXMLProcessor extends XMLProcessor { + + /** + * Public constructor to instantiate the helper. + * + * + * @generated + */ + public HwGeneralXMLProcessor() { + super((EPackage.Registry.INSTANCE)); + HwGeneralPackage.eINSTANCE.eClass(); + } + + /** + * Register for "*" and "xml" file extensions the HwGeneralResourceFactoryImpl factory. + * + * + * @generated + */ + @Override + protected Map getRegistrations() { + if (registrations == null) { + super.getRegistrations(); + registrations.put(XML_EXTENSION, new HwGeneralResourceFactoryImpl()); + registrations.put(STAR_EXTENSION, new HwGeneralResourceFactoryImpl()); + } + return registrations; + } + +} //HwGeneralXMLProcessor diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/HwArbiter.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/HwArbiter.java new file mode 100644 index 00000000000..310a5efc3eb --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/HwArbiter.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.MARTE_DesignModel.HRM.HwLogical.HwCommunication; + +import org.eclipse.emf.common.util.EList; + +/** + * + * A representation of the model object 'Hw Arbiter'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwArbiter#getControlledMedias Controlled Medias}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwCommunicationPackage#getHwArbiter() + * @model + * @generated + */ +public interface HwArbiter extends HwCommunicationResource { + /** + * Returns the value of the 'Controlled Medias' reference list. + * The list contents are of type {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwMedia}. + * It is bidirectional and its opposite is '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwMedia#getArbiters Arbiters}'. + * + *

+ * If the meaning of the 'Controlled Medias' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Controlled Medias' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwCommunicationPackage#getHwArbiter_ControlledMedias() + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwMedia#getArbiters + * @model opposite="arbiters" ordered="false" + * @generated + */ + EList getControlledMedias(); + +} // HwArbiter diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/HwBridge.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/HwBridge.java new file mode 100644 index 00000000000..d01ea35ef3a --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/HwBridge.java @@ -0,0 +1,51 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwCommunication; + +import org.eclipse.emf.common.util.EList; + +/** + * + * A representation of the model object 'Hw Bridge'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwBridge#getSides Sides}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwCommunicationPackage#getHwBridge() + * @model + * @generated + */ +public interface HwBridge extends HwMedia { + /** + * Returns the value of the 'Sides' reference list. + * The list contents are of type {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwMedia}. + * + *

+ * If the meaning of the 'Sides' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Sides' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwCommunicationPackage#getHwBridge_Sides() + * @model ordered="false" + * @generated + */ + EList getSides(); + +} // HwBridge diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/HwBus.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/HwBus.java new file mode 100644 index 00000000000..97b051a7bf4 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/HwBus.java @@ -0,0 +1,141 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwCommunication; + + +/** + * + * A representation of the model object 'Hw Bus'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwBus#getAdressWidth Adress Width}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwBus#getWordWidth Word Width}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwBus#getIsSynchronous Is Synchronous}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwBus#getIsSerial Is Serial}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwCommunicationPackage#getHwBus() + * @model + * @generated + */ +public interface HwBus extends HwMedia { + /** + * Returns the value of the 'Adress Width' attribute. + * + *

+ * If the meaning of the 'Adress Width' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Adress Width' attribute. + * @see #setAdressWidth(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwCommunicationPackage#getHwBus_AdressWidth() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_DataSize" ordered="false" + * @generated + */ + String getAdressWidth(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwBus#getAdressWidth Adress Width}' attribute. + * + * + * @param value the new value of the 'Adress Width' attribute. + * @see #getAdressWidth() + * @generated + */ + void setAdressWidth(String value); + + /** + * Returns the value of the 'Word Width' attribute. + * + *

+ * If the meaning of the 'Word Width' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Word Width' attribute. + * @see #setWordWidth(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwCommunicationPackage#getHwBus_WordWidth() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_DataSize" ordered="false" + * @generated + */ + String getWordWidth(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwBus#getWordWidth Word Width}' attribute. + * + * + * @param value the new value of the 'Word Width' attribute. + * @see #getWordWidth() + * @generated + */ + void setWordWidth(String value); + + /** + * Returns the value of the 'Is Synchronous' attribute. + * + *

+ * If the meaning of the 'Is Synchronous' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Is Synchronous' attribute. + * @see #setIsSynchronous(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwCommunicationPackage#getHwBus_IsSynchronous() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Boolean" ordered="false" + * @generated + */ + String getIsSynchronous(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwBus#getIsSynchronous Is Synchronous}' attribute. + * + * + * @param value the new value of the 'Is Synchronous' attribute. + * @see #getIsSynchronous() + * @generated + */ + void setIsSynchronous(String value); + + /** + * Returns the value of the 'Is Serial' attribute. + * + *

+ * If the meaning of the 'Is Serial' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Is Serial' attribute. + * @see #setIsSerial(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwCommunicationPackage#getHwBus_IsSerial() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Boolean" ordered="false" + * @generated + */ + String getIsSerial(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwBus#getIsSerial Is Serial}' attribute. + * + * + * @param value the new value of the 'Is Serial' attribute. + * @see #getIsSerial() + * @generated + */ + void setIsSerial(String value); + +} // HwBus diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/HwCommunicationFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/HwCommunicationFactory.java new file mode 100644 index 00000000000..9556afefa11 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/HwCommunicationFactory.java @@ -0,0 +1,98 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwCommunication; + +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.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwCommunicationPackage + * @generated + */ +public interface HwCommunicationFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + HwCommunicationFactory eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwCommunicationFactoryImpl.init(); + + /** + * Returns a new object of class 'Resource'. + * + * + * @return a new object of class 'Resource'. + * @generated + */ + HwCommunicationResource createHwCommunicationResource(); + + /** + * Returns a new object of class 'Hw Arbiter'. + * + * + * @return a new object of class 'Hw Arbiter'. + * @generated + */ + HwArbiter createHwArbiter(); + + /** + * Returns a new object of class 'Hw Media'. + * + * + * @return a new object of class 'Hw Media'. + * @generated + */ + HwMedia createHwMedia(); + + /** + * Returns a new object of class 'Hw Bus'. + * + * + * @return a new object of class 'Hw Bus'. + * @generated + */ + HwBus createHwBus(); + + /** + * Returns a new object of class 'Hw Bridge'. + * + * + * @return a new object of class 'Hw Bridge'. + * @generated + */ + HwBridge createHwBridge(); + + /** + * Returns a new object of class 'Hw End Point'. + * + * + * @return a new object of class 'Hw End Point'. + * @generated + */ + HwEndPoint createHwEndPoint(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + HwCommunicationPackage getHwCommunicationPackage(); + +} //HwCommunicationFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/HwCommunicationPackage.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/HwCommunicationPackage.java new file mode 100644 index 00000000000..24a3cb06df0 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/HwCommunicationPackage.java @@ -0,0 +1,1601 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwCommunication; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwGeneralPackage; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage; + +/** + * + * 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.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwCommunicationFactory + * @model kind="package" + * @generated + */ +public interface HwCommunicationPackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "HwCommunication"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "http://www.eclipse.org/papyrus/HwCommunication/1"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "HwCommunication"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + HwCommunicationPackage eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwCommunicationPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwCommunicationResourceImpl Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwCommunicationResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwCommunicationPackageImpl#getHwCommunicationResource() + * @generated + */ + int HW_COMMUNICATION_RESOURCE = 0; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int HW_COMMUNICATION_RESOURCE__RES_MULT = HwGeneralPackage.HW_RESOURCE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int HW_COMMUNICATION_RESOURCE__IS_PROTECTED = HwGeneralPackage.HW_RESOURCE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int HW_COMMUNICATION_RESOURCE__IS_ACTIVE = HwGeneralPackage.HW_RESOURCE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int HW_COMMUNICATION_RESOURCE__BASE_PROPERTY = HwGeneralPackage.HW_RESOURCE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int HW_COMMUNICATION_RESOURCE__BASE_INSTANCE_SPECIFICATION = HwGeneralPackage.HW_RESOURCE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int HW_COMMUNICATION_RESOURCE__BASE_CLASSIFIER = HwGeneralPackage.HW_RESOURCE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int HW_COMMUNICATION_RESOURCE__BASE_LIFELINE = HwGeneralPackage.HW_RESOURCE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int HW_COMMUNICATION_RESOURCE__BASE_CONNECTABLE_ELEMENT = HwGeneralPackage.HW_RESOURCE__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int HW_COMMUNICATION_RESOURCE__DESCRIPTION = HwGeneralPackage.HW_RESOURCE__DESCRIPTION; + + /** + * The feature id for the 'PHW Services' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_COMMUNICATION_RESOURCE__PHW_SERVICES = HwGeneralPackage.HW_RESOURCE__PHW_SERVICES; + + /** + * The feature id for the 'RHW Services' reference list. + * + * + * @generated + * @ordered + */ + int HW_COMMUNICATION_RESOURCE__RHW_SERVICES = HwGeneralPackage.HW_RESOURCE__RHW_SERVICES; + + /** + * The feature id for the 'Owned HW' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_COMMUNICATION_RESOURCE__OWNED_HW = HwGeneralPackage.HW_RESOURCE__OWNED_HW; + + /** + * The feature id for the 'End Points' reference list. + * + * + * @generated + * @ordered + */ + int HW_COMMUNICATION_RESOURCE__END_POINTS = HwGeneralPackage.HW_RESOURCE__END_POINTS; + + /** + * The feature id for the 'Frequency' attribute. + * + * + * @generated + * @ordered + */ + int HW_COMMUNICATION_RESOURCE__FREQUENCY = HwGeneralPackage.HW_RESOURCE__FREQUENCY; + + /** + * The number of structural features of the 'Resource' class. + * + * + * @generated + * @ordered + */ + int HW_COMMUNICATION_RESOURCE_FEATURE_COUNT = HwGeneralPackage.HW_RESOURCE_FEATURE_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwArbiterImpl Hw Arbiter}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwArbiterImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwCommunicationPackageImpl#getHwArbiter() + * @generated + */ + int HW_ARBITER = 1; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int HW_ARBITER__RES_MULT = HW_COMMUNICATION_RESOURCE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int HW_ARBITER__IS_PROTECTED = HW_COMMUNICATION_RESOURCE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int HW_ARBITER__IS_ACTIVE = HW_COMMUNICATION_RESOURCE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int HW_ARBITER__BASE_PROPERTY = HW_COMMUNICATION_RESOURCE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int HW_ARBITER__BASE_INSTANCE_SPECIFICATION = HW_COMMUNICATION_RESOURCE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int HW_ARBITER__BASE_CLASSIFIER = HW_COMMUNICATION_RESOURCE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int HW_ARBITER__BASE_LIFELINE = HW_COMMUNICATION_RESOURCE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int HW_ARBITER__BASE_CONNECTABLE_ELEMENT = HW_COMMUNICATION_RESOURCE__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int HW_ARBITER__DESCRIPTION = HW_COMMUNICATION_RESOURCE__DESCRIPTION; + + /** + * The feature id for the 'PHW Services' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_ARBITER__PHW_SERVICES = HW_COMMUNICATION_RESOURCE__PHW_SERVICES; + + /** + * The feature id for the 'RHW Services' reference list. + * + * + * @generated + * @ordered + */ + int HW_ARBITER__RHW_SERVICES = HW_COMMUNICATION_RESOURCE__RHW_SERVICES; + + /** + * The feature id for the 'Owned HW' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_ARBITER__OWNED_HW = HW_COMMUNICATION_RESOURCE__OWNED_HW; + + /** + * The feature id for the 'End Points' reference list. + * + * + * @generated + * @ordered + */ + int HW_ARBITER__END_POINTS = HW_COMMUNICATION_RESOURCE__END_POINTS; + + /** + * The feature id for the 'Frequency' attribute. + * + * + * @generated + * @ordered + */ + int HW_ARBITER__FREQUENCY = HW_COMMUNICATION_RESOURCE__FREQUENCY; + + /** + * The feature id for the 'Controlled Medias' reference list. + * + * + * @generated + * @ordered + */ + int HW_ARBITER__CONTROLLED_MEDIAS = HW_COMMUNICATION_RESOURCE_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Hw Arbiter' class. + * + * + * @generated + * @ordered + */ + int HW_ARBITER_FEATURE_COUNT = HW_COMMUNICATION_RESOURCE_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwMediaImpl Hw Media}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwMediaImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwCommunicationPackageImpl#getHwMedia() + * @generated + */ + int HW_MEDIA = 2; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int HW_MEDIA__RES_MULT = GRMPackage.COMMUNICATION_MEDIA__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int HW_MEDIA__IS_PROTECTED = GRMPackage.COMMUNICATION_MEDIA__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int HW_MEDIA__IS_ACTIVE = GRMPackage.COMMUNICATION_MEDIA__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int HW_MEDIA__BASE_PROPERTY = GRMPackage.COMMUNICATION_MEDIA__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int HW_MEDIA__BASE_INSTANCE_SPECIFICATION = GRMPackage.COMMUNICATION_MEDIA__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int HW_MEDIA__BASE_CLASSIFIER = GRMPackage.COMMUNICATION_MEDIA__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int HW_MEDIA__BASE_LIFELINE = GRMPackage.COMMUNICATION_MEDIA__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int HW_MEDIA__BASE_CONNECTABLE_ELEMENT = GRMPackage.COMMUNICATION_MEDIA__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Speed Factor' attribute. + * + * + * @generated + * @ordered + */ + int HW_MEDIA__SPEED_FACTOR = GRMPackage.COMMUNICATION_MEDIA__SPEED_FACTOR; + + /** + * The feature id for the 'Main Scheduler' reference. + * + * + * @generated + * @ordered + */ + int HW_MEDIA__MAIN_SCHEDULER = GRMPackage.COMMUNICATION_MEDIA__MAIN_SCHEDULER; + + /** + * The feature id for the 'Element Size' attribute. + * + * + * @generated + * @ordered + */ + int HW_MEDIA__ELEMENT_SIZE = GRMPackage.COMMUNICATION_MEDIA__ELEMENT_SIZE; + + /** + * The feature id for the 'Base Connector' reference. + * + * + * @generated + * @ordered + */ + int HW_MEDIA__BASE_CONNECTOR = GRMPackage.COMMUNICATION_MEDIA__BASE_CONNECTOR; + + /** + * The feature id for the 'Transm Mode' attribute. + * + * + * @generated + * @ordered + */ + int HW_MEDIA__TRANSM_MODE = GRMPackage.COMMUNICATION_MEDIA__TRANSM_MODE; + + /** + * The feature id for the 'Block T' attribute list. + * + * + * @generated + * @ordered + */ + int HW_MEDIA__BLOCK_T = GRMPackage.COMMUNICATION_MEDIA__BLOCK_T; + + /** + * The feature id for the 'Packet T' attribute list. + * + * + * @generated + * @ordered + */ + int HW_MEDIA__PACKET_T = GRMPackage.COMMUNICATION_MEDIA__PACKET_T; + + /** + * The feature id for the 'Capacity' attribute list. + * + * + * @generated + * @ordered + */ + int HW_MEDIA__CAPACITY = GRMPackage.COMMUNICATION_MEDIA__CAPACITY; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int HW_MEDIA__DESCRIPTION = GRMPackage.COMMUNICATION_MEDIA_FEATURE_COUNT + 0; + + /** + * The feature id for the 'PHW Services' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_MEDIA__PHW_SERVICES = GRMPackage.COMMUNICATION_MEDIA_FEATURE_COUNT + 1; + + /** + * The feature id for the 'RHW Services' reference list. + * + * + * @generated + * @ordered + */ + int HW_MEDIA__RHW_SERVICES = GRMPackage.COMMUNICATION_MEDIA_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Owned HW' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_MEDIA__OWNED_HW = GRMPackage.COMMUNICATION_MEDIA_FEATURE_COUNT + 3; + + /** + * The feature id for the 'End Points' reference list. + * + * + * @generated + * @ordered + */ + int HW_MEDIA__END_POINTS = GRMPackage.COMMUNICATION_MEDIA_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Frequency' attribute. + * + * + * @generated + * @ordered + */ + int HW_MEDIA__FREQUENCY = GRMPackage.COMMUNICATION_MEDIA_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Band Width' attribute. + * + * + * @generated + * @ordered + */ + int HW_MEDIA__BAND_WIDTH = GRMPackage.COMMUNICATION_MEDIA_FEATURE_COUNT + 6; + + /** + * The feature id for the 'Arbiters' reference list. + * + * + * @generated + * @ordered + */ + int HW_MEDIA__ARBITERS = GRMPackage.COMMUNICATION_MEDIA_FEATURE_COUNT + 7; + + /** + * The number of structural features of the 'Hw Media' class. + * + * + * @generated + * @ordered + */ + int HW_MEDIA_FEATURE_COUNT = GRMPackage.COMMUNICATION_MEDIA_FEATURE_COUNT + 8; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwBusImpl Hw Bus}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwBusImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwCommunicationPackageImpl#getHwBus() + * @generated + */ + int HW_BUS = 3; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int HW_BUS__RES_MULT = HW_MEDIA__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int HW_BUS__IS_PROTECTED = HW_MEDIA__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int HW_BUS__IS_ACTIVE = HW_MEDIA__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int HW_BUS__BASE_PROPERTY = HW_MEDIA__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int HW_BUS__BASE_INSTANCE_SPECIFICATION = HW_MEDIA__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int HW_BUS__BASE_CLASSIFIER = HW_MEDIA__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int HW_BUS__BASE_LIFELINE = HW_MEDIA__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int HW_BUS__BASE_CONNECTABLE_ELEMENT = HW_MEDIA__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Speed Factor' attribute. + * + * + * @generated + * @ordered + */ + int HW_BUS__SPEED_FACTOR = HW_MEDIA__SPEED_FACTOR; + + /** + * The feature id for the 'Main Scheduler' reference. + * + * + * @generated + * @ordered + */ + int HW_BUS__MAIN_SCHEDULER = HW_MEDIA__MAIN_SCHEDULER; + + /** + * The feature id for the 'Element Size' attribute. + * + * + * @generated + * @ordered + */ + int HW_BUS__ELEMENT_SIZE = HW_MEDIA__ELEMENT_SIZE; + + /** + * The feature id for the 'Base Connector' reference. + * + * + * @generated + * @ordered + */ + int HW_BUS__BASE_CONNECTOR = HW_MEDIA__BASE_CONNECTOR; + + /** + * The feature id for the 'Transm Mode' attribute. + * + * + * @generated + * @ordered + */ + int HW_BUS__TRANSM_MODE = HW_MEDIA__TRANSM_MODE; + + /** + * The feature id for the 'Block T' attribute list. + * + * + * @generated + * @ordered + */ + int HW_BUS__BLOCK_T = HW_MEDIA__BLOCK_T; + + /** + * The feature id for the 'Packet T' attribute list. + * + * + * @generated + * @ordered + */ + int HW_BUS__PACKET_T = HW_MEDIA__PACKET_T; + + /** + * The feature id for the 'Capacity' attribute list. + * + * + * @generated + * @ordered + */ + int HW_BUS__CAPACITY = HW_MEDIA__CAPACITY; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int HW_BUS__DESCRIPTION = HW_MEDIA__DESCRIPTION; + + /** + * The feature id for the 'PHW Services' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_BUS__PHW_SERVICES = HW_MEDIA__PHW_SERVICES; + + /** + * The feature id for the 'RHW Services' reference list. + * + * + * @generated + * @ordered + */ + int HW_BUS__RHW_SERVICES = HW_MEDIA__RHW_SERVICES; + + /** + * The feature id for the 'Owned HW' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_BUS__OWNED_HW = HW_MEDIA__OWNED_HW; + + /** + * The feature id for the 'End Points' reference list. + * + * + * @generated + * @ordered + */ + int HW_BUS__END_POINTS = HW_MEDIA__END_POINTS; + + /** + * The feature id for the 'Frequency' attribute. + * + * + * @generated + * @ordered + */ + int HW_BUS__FREQUENCY = HW_MEDIA__FREQUENCY; + + /** + * The feature id for the 'Band Width' attribute. + * + * + * @generated + * @ordered + */ + int HW_BUS__BAND_WIDTH = HW_MEDIA__BAND_WIDTH; + + /** + * The feature id for the 'Arbiters' reference list. + * + * + * @generated + * @ordered + */ + int HW_BUS__ARBITERS = HW_MEDIA__ARBITERS; + + /** + * The feature id for the 'Adress Width' attribute. + * + * + * @generated + * @ordered + */ + int HW_BUS__ADRESS_WIDTH = HW_MEDIA_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Word Width' attribute. + * + * + * @generated + * @ordered + */ + int HW_BUS__WORD_WIDTH = HW_MEDIA_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Is Synchronous' attribute. + * + * + * @generated + * @ordered + */ + int HW_BUS__IS_SYNCHRONOUS = HW_MEDIA_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Is Serial' attribute. + * + * + * @generated + * @ordered + */ + int HW_BUS__IS_SERIAL = HW_MEDIA_FEATURE_COUNT + 3; + + /** + * The number of structural features of the 'Hw Bus' class. + * + * + * @generated + * @ordered + */ + int HW_BUS_FEATURE_COUNT = HW_MEDIA_FEATURE_COUNT + 4; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwBridgeImpl Hw Bridge}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwBridgeImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwCommunicationPackageImpl#getHwBridge() + * @generated + */ + int HW_BRIDGE = 4; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int HW_BRIDGE__RES_MULT = HW_MEDIA__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int HW_BRIDGE__IS_PROTECTED = HW_MEDIA__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int HW_BRIDGE__IS_ACTIVE = HW_MEDIA__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int HW_BRIDGE__BASE_PROPERTY = HW_MEDIA__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int HW_BRIDGE__BASE_INSTANCE_SPECIFICATION = HW_MEDIA__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int HW_BRIDGE__BASE_CLASSIFIER = HW_MEDIA__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int HW_BRIDGE__BASE_LIFELINE = HW_MEDIA__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int HW_BRIDGE__BASE_CONNECTABLE_ELEMENT = HW_MEDIA__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Speed Factor' attribute. + * + * + * @generated + * @ordered + */ + int HW_BRIDGE__SPEED_FACTOR = HW_MEDIA__SPEED_FACTOR; + + /** + * The feature id for the 'Main Scheduler' reference. + * + * + * @generated + * @ordered + */ + int HW_BRIDGE__MAIN_SCHEDULER = HW_MEDIA__MAIN_SCHEDULER; + + /** + * The feature id for the 'Element Size' attribute. + * + * + * @generated + * @ordered + */ + int HW_BRIDGE__ELEMENT_SIZE = HW_MEDIA__ELEMENT_SIZE; + + /** + * The feature id for the 'Base Connector' reference. + * + * + * @generated + * @ordered + */ + int HW_BRIDGE__BASE_CONNECTOR = HW_MEDIA__BASE_CONNECTOR; + + /** + * The feature id for the 'Transm Mode' attribute. + * + * + * @generated + * @ordered + */ + int HW_BRIDGE__TRANSM_MODE = HW_MEDIA__TRANSM_MODE; + + /** + * The feature id for the 'Block T' attribute list. + * + * + * @generated + * @ordered + */ + int HW_BRIDGE__BLOCK_T = HW_MEDIA__BLOCK_T; + + /** + * The feature id for the 'Packet T' attribute list. + * + * + * @generated + * @ordered + */ + int HW_BRIDGE__PACKET_T = HW_MEDIA__PACKET_T; + + /** + * The feature id for the 'Capacity' attribute list. + * + * + * @generated + * @ordered + */ + int HW_BRIDGE__CAPACITY = HW_MEDIA__CAPACITY; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int HW_BRIDGE__DESCRIPTION = HW_MEDIA__DESCRIPTION; + + /** + * The feature id for the 'PHW Services' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_BRIDGE__PHW_SERVICES = HW_MEDIA__PHW_SERVICES; + + /** + * The feature id for the 'RHW Services' reference list. + * + * + * @generated + * @ordered + */ + int HW_BRIDGE__RHW_SERVICES = HW_MEDIA__RHW_SERVICES; + + /** + * The feature id for the 'Owned HW' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_BRIDGE__OWNED_HW = HW_MEDIA__OWNED_HW; + + /** + * The feature id for the 'End Points' reference list. + * + * + * @generated + * @ordered + */ + int HW_BRIDGE__END_POINTS = HW_MEDIA__END_POINTS; + + /** + * The feature id for the 'Frequency' attribute. + * + * + * @generated + * @ordered + */ + int HW_BRIDGE__FREQUENCY = HW_MEDIA__FREQUENCY; + + /** + * The feature id for the 'Band Width' attribute. + * + * + * @generated + * @ordered + */ + int HW_BRIDGE__BAND_WIDTH = HW_MEDIA__BAND_WIDTH; + + /** + * The feature id for the 'Arbiters' reference list. + * + * + * @generated + * @ordered + */ + int HW_BRIDGE__ARBITERS = HW_MEDIA__ARBITERS; + + /** + * The feature id for the 'Sides' reference list. + * + * + * @generated + * @ordered + */ + int HW_BRIDGE__SIDES = HW_MEDIA_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Hw Bridge' class. + * + * + * @generated + * @ordered + */ + int HW_BRIDGE_FEATURE_COUNT = HW_MEDIA_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwEndPointImpl Hw End Point}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwEndPointImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwCommunicationPackageImpl#getHwEndPoint() + * @generated + */ + int HW_END_POINT = 5; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int HW_END_POINT__RES_MULT = HW_COMMUNICATION_RESOURCE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int HW_END_POINT__IS_PROTECTED = HW_COMMUNICATION_RESOURCE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int HW_END_POINT__IS_ACTIVE = HW_COMMUNICATION_RESOURCE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int HW_END_POINT__BASE_PROPERTY = HW_COMMUNICATION_RESOURCE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int HW_END_POINT__BASE_INSTANCE_SPECIFICATION = HW_COMMUNICATION_RESOURCE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int HW_END_POINT__BASE_CLASSIFIER = HW_COMMUNICATION_RESOURCE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int HW_END_POINT__BASE_LIFELINE = HW_COMMUNICATION_RESOURCE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int HW_END_POINT__BASE_CONNECTABLE_ELEMENT = HW_COMMUNICATION_RESOURCE__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int HW_END_POINT__DESCRIPTION = HW_COMMUNICATION_RESOURCE__DESCRIPTION; + + /** + * The feature id for the 'PHW Services' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_END_POINT__PHW_SERVICES = HW_COMMUNICATION_RESOURCE__PHW_SERVICES; + + /** + * The feature id for the 'RHW Services' reference list. + * + * + * @generated + * @ordered + */ + int HW_END_POINT__RHW_SERVICES = HW_COMMUNICATION_RESOURCE__RHW_SERVICES; + + /** + * The feature id for the 'Owned HW' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_END_POINT__OWNED_HW = HW_COMMUNICATION_RESOURCE__OWNED_HW; + + /** + * The feature id for the 'End Points' reference list. + * + * + * @generated + * @ordered + */ + int HW_END_POINT__END_POINTS = HW_COMMUNICATION_RESOURCE__END_POINTS; + + /** + * The feature id for the 'Frequency' attribute. + * + * + * @generated + * @ordered + */ + int HW_END_POINT__FREQUENCY = HW_COMMUNICATION_RESOURCE__FREQUENCY; + + /** + * The feature id for the 'Packet Size' attribute. + * + * + * @generated + * @ordered + */ + int HW_END_POINT__PACKET_SIZE = HW_COMMUNICATION_RESOURCE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Connected To' reference list. + * + * + * @generated + * @ordered + */ + int HW_END_POINT__CONNECTED_TO = HW_COMMUNICATION_RESOURCE_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Hw End Point' class. + * + * + * @generated + * @ordered + */ + int HW_END_POINT_FEATURE_COUNT = HW_COMMUNICATION_RESOURCE_FEATURE_COUNT + 2; + + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwCommunicationResource Resource}'. + * + * + * @return the meta object for class 'Resource'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwCommunicationResource + * @generated + */ + EClass getHwCommunicationResource(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwArbiter Hw Arbiter}'. + * + * + * @return the meta object for class 'Hw Arbiter'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwArbiter + * @generated + */ + EClass getHwArbiter(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwArbiter#getControlledMedias Controlled Medias}'. + * + * + * @return the meta object for the reference list 'Controlled Medias'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwArbiter#getControlledMedias() + * @see #getHwArbiter() + * @generated + */ + EReference getHwArbiter_ControlledMedias(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwMedia Hw Media}'. + * + * + * @return the meta object for class 'Hw Media'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwMedia + * @generated + */ + EClass getHwMedia(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwMedia#getBandWidth Band Width}'. + * + * + * @return the meta object for the attribute 'Band Width'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwMedia#getBandWidth() + * @see #getHwMedia() + * @generated + */ + EAttribute getHwMedia_BandWidth(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwMedia#getArbiters Arbiters}'. + * + * + * @return the meta object for the reference list 'Arbiters'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwMedia#getArbiters() + * @see #getHwMedia() + * @generated + */ + EReference getHwMedia_Arbiters(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwBus Hw Bus}'. + * + * + * @return the meta object for class 'Hw Bus'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwBus + * @generated + */ + EClass getHwBus(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwBus#getAdressWidth Adress Width}'. + * + * + * @return the meta object for the attribute 'Adress Width'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwBus#getAdressWidth() + * @see #getHwBus() + * @generated + */ + EAttribute getHwBus_AdressWidth(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwBus#getWordWidth Word Width}'. + * + * + * @return the meta object for the attribute 'Word Width'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwBus#getWordWidth() + * @see #getHwBus() + * @generated + */ + EAttribute getHwBus_WordWidth(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwBus#getIsSynchronous Is Synchronous}'. + * + * + * @return the meta object for the attribute 'Is Synchronous'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwBus#getIsSynchronous() + * @see #getHwBus() + * @generated + */ + EAttribute getHwBus_IsSynchronous(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwBus#getIsSerial Is Serial}'. + * + * + * @return the meta object for the attribute 'Is Serial'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwBus#getIsSerial() + * @see #getHwBus() + * @generated + */ + EAttribute getHwBus_IsSerial(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwBridge Hw Bridge}'. + * + * + * @return the meta object for class 'Hw Bridge'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwBridge + * @generated + */ + EClass getHwBridge(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwBridge#getSides Sides}'. + * + * + * @return the meta object for the reference list 'Sides'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwBridge#getSides() + * @see #getHwBridge() + * @generated + */ + EReference getHwBridge_Sides(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwEndPoint Hw End Point}'. + * + * + * @return the meta object for class 'Hw End Point'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwEndPoint + * @generated + */ + EClass getHwEndPoint(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwEndPoint#getConnectedTo Connected To}'. + * + * + * @return the meta object for the reference list 'Connected To'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwEndPoint#getConnectedTo() + * @see #getHwEndPoint() + * @generated + */ + EReference getHwEndPoint_ConnectedTo(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + HwCommunicationFactory getHwCommunicationFactory(); + + /** + * + * 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.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwCommunicationResourceImpl Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwCommunicationResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwCommunicationPackageImpl#getHwCommunicationResource() + * @generated + */ + EClass HW_COMMUNICATION_RESOURCE = eINSTANCE.getHwCommunicationResource(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwArbiterImpl Hw Arbiter}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwArbiterImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwCommunicationPackageImpl#getHwArbiter() + * @generated + */ + EClass HW_ARBITER = eINSTANCE.getHwArbiter(); + + /** + * The meta object literal for the 'Controlled Medias' reference list feature. + * + * + * @generated + */ + EReference HW_ARBITER__CONTROLLED_MEDIAS = eINSTANCE.getHwArbiter_ControlledMedias(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwMediaImpl Hw Media}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwMediaImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwCommunicationPackageImpl#getHwMedia() + * @generated + */ + EClass HW_MEDIA = eINSTANCE.getHwMedia(); + + /** + * The meta object literal for the 'Band Width' attribute feature. + * + * + * @generated + */ + EAttribute HW_MEDIA__BAND_WIDTH = eINSTANCE.getHwMedia_BandWidth(); + + /** + * The meta object literal for the 'Arbiters' reference list feature. + * + * + * @generated + */ + EReference HW_MEDIA__ARBITERS = eINSTANCE.getHwMedia_Arbiters(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwBusImpl Hw Bus}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwBusImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwCommunicationPackageImpl#getHwBus() + * @generated + */ + EClass HW_BUS = eINSTANCE.getHwBus(); + + /** + * The meta object literal for the 'Adress Width' attribute feature. + * + * + * @generated + */ + EAttribute HW_BUS__ADRESS_WIDTH = eINSTANCE.getHwBus_AdressWidth(); + + /** + * The meta object literal for the 'Word Width' attribute feature. + * + * + * @generated + */ + EAttribute HW_BUS__WORD_WIDTH = eINSTANCE.getHwBus_WordWidth(); + + /** + * The meta object literal for the 'Is Synchronous' attribute feature. + * + * + * @generated + */ + EAttribute HW_BUS__IS_SYNCHRONOUS = eINSTANCE.getHwBus_IsSynchronous(); + + /** + * The meta object literal for the 'Is Serial' attribute feature. + * + * + * @generated + */ + EAttribute HW_BUS__IS_SERIAL = eINSTANCE.getHwBus_IsSerial(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwBridgeImpl Hw Bridge}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwBridgeImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwCommunicationPackageImpl#getHwBridge() + * @generated + */ + EClass HW_BRIDGE = eINSTANCE.getHwBridge(); + + /** + * The meta object literal for the 'Sides' reference list feature. + * + * + * @generated + */ + EReference HW_BRIDGE__SIDES = eINSTANCE.getHwBridge_Sides(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwEndPointImpl Hw End Point}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwEndPointImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwCommunicationPackageImpl#getHwEndPoint() + * @generated + */ + EClass HW_END_POINT = eINSTANCE.getHwEndPoint(); + + /** + * The meta object literal for the 'Connected To' reference list feature. + * + * + * @generated + */ + EReference HW_END_POINT__CONNECTED_TO = eINSTANCE.getHwEndPoint_ConnectedTo(); + + } + +} //HwCommunicationPackage diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/HwCommunicationResource.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/HwCommunicationResource.java new file mode 100644 index 00000000000..29f5b58162b --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/HwCommunicationResource.java @@ -0,0 +1,29 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwCommunication; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource; + +/** + * + * A representation of the model object 'Resource'. + * + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwCommunicationPackage#getHwCommunicationResource() + * @model + * @generated + */ +public interface HwCommunicationResource extends HwResource { +} // HwCommunicationResource diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/HwEndPoint.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/HwEndPoint.java new file mode 100644 index 00000000000..1ae6e3afd9d --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/HwEndPoint.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.MARTE_DesignModel.HRM.HwLogical.HwCommunication; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationEndPoint; + +/** + * + * A representation of the model object 'Hw End Point'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwEndPoint#getConnectedTo Connected To}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwCommunicationPackage#getHwEndPoint() + * @model + * @generated + */ +public interface HwEndPoint extends HwCommunicationResource, CommunicationEndPoint { + /** + * Returns the value of the 'Connected To' reference list. + * The list contents are of type {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwMedia}. + * + *

+ * If the meaning of the 'Connected To' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Connected To' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwCommunicationPackage#getHwEndPoint_ConnectedTo() + * @model ordered="false" + * @generated + */ + EList getConnectedTo(); + +} // HwEndPoint diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/HwMedia.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/HwMedia.java new file mode 100644 index 00000000000..6e63abf4587 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/HwMedia.java @@ -0,0 +1,82 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwCommunication; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationMedia; + +/** + * + * A representation of the model object 'Hw Media'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwMedia#getBandWidth Band Width}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwMedia#getArbiters Arbiters}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwCommunicationPackage#getHwMedia() + * @model + * @generated + */ +public interface HwMedia extends CommunicationMedia, HwCommunicationResource { + /** + * Returns the value of the 'Band Width' attribute. + * + *

+ * If the meaning of the 'Band Width' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Band Width' attribute. + * @see #setBandWidth(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwCommunicationPackage#getHwMedia_BandWidth() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_DataTxRate" ordered="false" + * @generated + */ + String getBandWidth(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwMedia#getBandWidth Band Width}' attribute. + * + * + * @param value the new value of the 'Band Width' attribute. + * @see #getBandWidth() + * @generated + */ + void setBandWidth(String value); + + /** + * Returns the value of the 'Arbiters' reference list. + * The list contents are of type {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwArbiter}. + * It is bidirectional and its opposite is '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwArbiter#getControlledMedias Controlled Medias}'. + * + *

+ * If the meaning of the 'Arbiters' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Arbiters' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwCommunicationPackage#getHwMedia_Arbiters() + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwArbiter#getControlledMedias + * @model opposite="controlledMedias" ordered="false" + * @generated + */ + EList getArbiters(); + +} // HwMedia diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/impl/HwArbiterImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/impl/HwArbiterImpl.java new file mode 100644 index 00000000000..c3c0b93679a --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/impl/HwArbiterImpl.java @@ -0,0 +1,176 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.util.EObjectWithInverseResolvingEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwArbiter; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwCommunicationPackage; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwMedia; + +/** + * + * An implementation of the model object 'Hw Arbiter'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwArbiterImpl#getControlledMedias Controlled Medias}
  • + *
+ *

+ * + * @generated + */ +public class HwArbiterImpl extends HwCommunicationResourceImpl implements HwArbiter { + /** + * The cached value of the '{@link #getControlledMedias() Controlled Medias}' reference list. + * + * + * @see #getControlledMedias() + * @generated + * @ordered + */ + protected EList controlledMedias; + + /** + * + * + * @generated + */ + protected HwArbiterImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return HwCommunicationPackage.Literals.HW_ARBITER; + } + + /** + * + * + * @generated + */ + public EList getControlledMedias() { + if (controlledMedias == null) { + controlledMedias = new EObjectWithInverseResolvingEList.ManyInverse(HwMedia.class, this, HwCommunicationPackage.HW_ARBITER__CONTROLLED_MEDIAS, HwCommunicationPackage.HW_MEDIA__ARBITERS); + } + return controlledMedias; + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case HwCommunicationPackage.HW_ARBITER__CONTROLLED_MEDIAS: + return ((InternalEList)(InternalEList)getControlledMedias()).basicAdd(otherEnd, msgs); + } + return super.eInverseAdd(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case HwCommunicationPackage.HW_ARBITER__CONTROLLED_MEDIAS: + return ((InternalEList)getControlledMedias()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case HwCommunicationPackage.HW_ARBITER__CONTROLLED_MEDIAS: + return getControlledMedias(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case HwCommunicationPackage.HW_ARBITER__CONTROLLED_MEDIAS: + getControlledMedias().clear(); + getControlledMedias().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case HwCommunicationPackage.HW_ARBITER__CONTROLLED_MEDIAS: + getControlledMedias().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case HwCommunicationPackage.HW_ARBITER__CONTROLLED_MEDIAS: + return controlledMedias != null && !controlledMedias.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //HwArbiterImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/impl/HwBridgeImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/impl/HwBridgeImpl.java new file mode 100644 index 00000000000..4b95a52d1e7 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/impl/HwBridgeImpl.java @@ -0,0 +1,143 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.util.EObjectResolvingEList; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwBridge; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwCommunicationPackage; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwMedia; + +/** + * + * An implementation of the model object 'Hw Bridge'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwBridgeImpl#getSides Sides}
  • + *
+ *

+ * + * @generated + */ +public class HwBridgeImpl extends HwMediaImpl implements HwBridge { + /** + * The cached value of the '{@link #getSides() Sides}' reference list. + * + * + * @see #getSides() + * @generated + * @ordered + */ + protected EList sides; + + /** + * + * + * @generated + */ + protected HwBridgeImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return HwCommunicationPackage.Literals.HW_BRIDGE; + } + + /** + * + * + * @generated + */ + public EList getSides() { + if (sides == null) { + sides = new EObjectResolvingEList(HwMedia.class, this, HwCommunicationPackage.HW_BRIDGE__SIDES); + } + return sides; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case HwCommunicationPackage.HW_BRIDGE__SIDES: + return getSides(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case HwCommunicationPackage.HW_BRIDGE__SIDES: + getSides().clear(); + getSides().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case HwCommunicationPackage.HW_BRIDGE__SIDES: + getSides().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case HwCommunicationPackage.HW_BRIDGE__SIDES: + return sides != null && !sides.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //HwBridgeImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/impl/HwBusImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/impl/HwBusImpl.java new file mode 100644 index 00000000000..de7c22c2f69 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/impl/HwBusImpl.java @@ -0,0 +1,335 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwBus; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwCommunicationPackage; + +/** + * + * An implementation of the model object 'Hw Bus'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwBusImpl#getAdressWidth Adress Width}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwBusImpl#getWordWidth Word Width}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwBusImpl#getIsSynchronous Is Synchronous}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwBusImpl#getIsSerial Is Serial}
  • + *
+ *

+ * + * @generated + */ +public class HwBusImpl extends HwMediaImpl implements HwBus { + /** + * The default value of the '{@link #getAdressWidth() Adress Width}' attribute. + * + * + * @see #getAdressWidth() + * @generated + * @ordered + */ + protected static final String ADRESS_WIDTH_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAdressWidth() Adress Width}' attribute. + * + * + * @see #getAdressWidth() + * @generated + * @ordered + */ + protected String adressWidth = ADRESS_WIDTH_EDEFAULT; + + /** + * The default value of the '{@link #getWordWidth() Word Width}' attribute. + * + * + * @see #getWordWidth() + * @generated + * @ordered + */ + protected static final String WORD_WIDTH_EDEFAULT = null; + + /** + * The cached value of the '{@link #getWordWidth() Word Width}' attribute. + * + * + * @see #getWordWidth() + * @generated + * @ordered + */ + protected String wordWidth = WORD_WIDTH_EDEFAULT; + + /** + * The default value of the '{@link #getIsSynchronous() Is Synchronous}' attribute. + * + * + * @see #getIsSynchronous() + * @generated + * @ordered + */ + protected static final String IS_SYNCHRONOUS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIsSynchronous() Is Synchronous}' attribute. + * + * + * @see #getIsSynchronous() + * @generated + * @ordered + */ + protected String isSynchronous = IS_SYNCHRONOUS_EDEFAULT; + + /** + * The default value of the '{@link #getIsSerial() Is Serial}' attribute. + * + * + * @see #getIsSerial() + * @generated + * @ordered + */ + protected static final String IS_SERIAL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIsSerial() Is Serial}' attribute. + * + * + * @see #getIsSerial() + * @generated + * @ordered + */ + protected String isSerial = IS_SERIAL_EDEFAULT; + + /** + * + * + * @generated + */ + protected HwBusImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return HwCommunicationPackage.Literals.HW_BUS; + } + + /** + * + * + * @generated + */ + public String getAdressWidth() { + return adressWidth; + } + + /** + * + * + * @generated + */ + public void setAdressWidth(String newAdressWidth) { + String oldAdressWidth = adressWidth; + adressWidth = newAdressWidth; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwCommunicationPackage.HW_BUS__ADRESS_WIDTH, oldAdressWidth, adressWidth)); + } + + /** + * + * + * @generated + */ + public String getWordWidth() { + return wordWidth; + } + + /** + * + * + * @generated + */ + public void setWordWidth(String newWordWidth) { + String oldWordWidth = wordWidth; + wordWidth = newWordWidth; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwCommunicationPackage.HW_BUS__WORD_WIDTH, oldWordWidth, wordWidth)); + } + + /** + * + * + * @generated + */ + public String getIsSynchronous() { + return isSynchronous; + } + + /** + * + * + * @generated + */ + public void setIsSynchronous(String newIsSynchronous) { + String oldIsSynchronous = isSynchronous; + isSynchronous = newIsSynchronous; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwCommunicationPackage.HW_BUS__IS_SYNCHRONOUS, oldIsSynchronous, isSynchronous)); + } + + /** + * + * + * @generated + */ + public String getIsSerial() { + return isSerial; + } + + /** + * + * + * @generated + */ + public void setIsSerial(String newIsSerial) { + String oldIsSerial = isSerial; + isSerial = newIsSerial; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwCommunicationPackage.HW_BUS__IS_SERIAL, oldIsSerial, isSerial)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case HwCommunicationPackage.HW_BUS__ADRESS_WIDTH: + return getAdressWidth(); + case HwCommunicationPackage.HW_BUS__WORD_WIDTH: + return getWordWidth(); + case HwCommunicationPackage.HW_BUS__IS_SYNCHRONOUS: + return getIsSynchronous(); + case HwCommunicationPackage.HW_BUS__IS_SERIAL: + return getIsSerial(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case HwCommunicationPackage.HW_BUS__ADRESS_WIDTH: + setAdressWidth((String)newValue); + return; + case HwCommunicationPackage.HW_BUS__WORD_WIDTH: + setWordWidth((String)newValue); + return; + case HwCommunicationPackage.HW_BUS__IS_SYNCHRONOUS: + setIsSynchronous((String)newValue); + return; + case HwCommunicationPackage.HW_BUS__IS_SERIAL: + setIsSerial((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case HwCommunicationPackage.HW_BUS__ADRESS_WIDTH: + setAdressWidth(ADRESS_WIDTH_EDEFAULT); + return; + case HwCommunicationPackage.HW_BUS__WORD_WIDTH: + setWordWidth(WORD_WIDTH_EDEFAULT); + return; + case HwCommunicationPackage.HW_BUS__IS_SYNCHRONOUS: + setIsSynchronous(IS_SYNCHRONOUS_EDEFAULT); + return; + case HwCommunicationPackage.HW_BUS__IS_SERIAL: + setIsSerial(IS_SERIAL_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case HwCommunicationPackage.HW_BUS__ADRESS_WIDTH: + return ADRESS_WIDTH_EDEFAULT == null ? adressWidth != null : !ADRESS_WIDTH_EDEFAULT.equals(adressWidth); + case HwCommunicationPackage.HW_BUS__WORD_WIDTH: + return WORD_WIDTH_EDEFAULT == null ? wordWidth != null : !WORD_WIDTH_EDEFAULT.equals(wordWidth); + case HwCommunicationPackage.HW_BUS__IS_SYNCHRONOUS: + return IS_SYNCHRONOUS_EDEFAULT == null ? isSynchronous != null : !IS_SYNCHRONOUS_EDEFAULT.equals(isSynchronous); + case HwCommunicationPackage.HW_BUS__IS_SERIAL: + return IS_SERIAL_EDEFAULT == null ? isSerial != null : !IS_SERIAL_EDEFAULT.equals(isSerial); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (adressWidth: "); + result.append(adressWidth); + result.append(", wordWidth: "); + result.append(wordWidth); + result.append(", isSynchronous: "); + result.append(isSynchronous); + result.append(", isSerial: "); + result.append(isSerial); + result.append(')'); + return result.toString(); + } + +} //HwBusImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/impl/HwCommunicationFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/impl/HwCommunicationFactoryImpl.java new file mode 100644 index 00000000000..dcc804f6d8f --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/impl/HwCommunicationFactoryImpl.java @@ -0,0 +1,161 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl; + +import org.eclipse.emf.ecore.EClass; +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.MARTE_DesignModel.HRM.HwLogical.HwCommunication.*; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class HwCommunicationFactoryImpl extends EFactoryImpl implements HwCommunicationFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static HwCommunicationFactory init() { + try { + HwCommunicationFactory theHwCommunicationFactory = (HwCommunicationFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/HwCommunication/1"); + if (theHwCommunicationFactory != null) { + return theHwCommunicationFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new HwCommunicationFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public HwCommunicationFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case HwCommunicationPackage.HW_COMMUNICATION_RESOURCE: return createHwCommunicationResource(); + case HwCommunicationPackage.HW_ARBITER: return createHwArbiter(); + case HwCommunicationPackage.HW_MEDIA: return createHwMedia(); + case HwCommunicationPackage.HW_BUS: return createHwBus(); + case HwCommunicationPackage.HW_BRIDGE: return createHwBridge(); + case HwCommunicationPackage.HW_END_POINT: return createHwEndPoint(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public HwCommunicationResource createHwCommunicationResource() { + HwCommunicationResourceImpl hwCommunicationResource = new HwCommunicationResourceImpl(); + return hwCommunicationResource; + } + + /** + * + * + * @generated + */ + public HwArbiter createHwArbiter() { + HwArbiterImpl hwArbiter = new HwArbiterImpl(); + return hwArbiter; + } + + /** + * + * + * @generated + */ + public HwMedia createHwMedia() { + HwMediaImpl hwMedia = new HwMediaImpl(); + return hwMedia; + } + + /** + * + * + * @generated + */ + public HwBus createHwBus() { + HwBusImpl hwBus = new HwBusImpl(); + return hwBus; + } + + /** + * + * + * @generated + */ + public HwBridge createHwBridge() { + HwBridgeImpl hwBridge = new HwBridgeImpl(); + return hwBridge; + } + + /** + * + * + * @generated + */ + public HwEndPoint createHwEndPoint() { + HwEndPointImpl hwEndPoint = new HwEndPointImpl(); + return hwEndPoint; + } + + /** + * + * + * @generated + */ + public HwCommunicationPackage getHwCommunicationPackage() { + return (HwCommunicationPackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static HwCommunicationPackage getPackage() { + return HwCommunicationPackage.eINSTANCE; + } + +} //HwCommunicationFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/impl/HwCommunicationPackageImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/impl/HwCommunicationPackageImpl.java new file mode 100644 index 00000000000..307de031b50 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/impl/HwCommunicationPackageImpl.java @@ -0,0 +1,642 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +import org.eclipse.emf.ecore.impl.EPackageImpl; + +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.HwArbiter; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwBridge; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwBus; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwCommunicationFactory; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwCommunicationPackage; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwCommunicationResource; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwEndPoint; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwMedia; + +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.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 HwCommunicationPackageImpl extends EPackageImpl implements HwCommunicationPackage { + /** + * + * + * @generated + */ + private EClass hwCommunicationResourceEClass = null; + + /** + * + * + * @generated + */ + private EClass hwArbiterEClass = null; + + /** + * + * + * @generated + */ + private EClass hwMediaEClass = null; + + /** + * + * + * @generated + */ + private EClass hwBusEClass = null; + + /** + * + * + * @generated + */ + private EClass hwBridgeEClass = null; + + /** + * + * + * @generated + */ + private EClass hwEndPointEClass = 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.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwCommunicationPackage#eNS_URI + * @see #init() + * @generated + */ + private HwCommunicationPackageImpl() { + super(eNS_URI, HwCommunicationFactory.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 HwCommunicationPackage#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 HwCommunicationPackage init() { + if (isInited) return (HwCommunicationPackage)EPackage.Registry.INSTANCE.getEPackage(HwCommunicationPackage.eNS_URI); + + // Obtain or create and register package + HwCommunicationPackageImpl theHwCommunicationPackage = (HwCommunicationPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof HwCommunicationPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new HwCommunicationPackageImpl()); + + 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); + 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); + 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 + theHwCommunicationPackage.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(); + 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(); + theMARTE_PrimitivesTypesPackage.createPackageContents(); + + // Initialize created meta-data + theHwCommunicationPackage.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(); + 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(); + theMARTE_PrimitivesTypesPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theHwCommunicationPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(HwCommunicationPackage.eNS_URI, theHwCommunicationPackage); + return theHwCommunicationPackage; + } + + /** + * + * + * @generated + */ + public EClass getHwCommunicationResource() { + return hwCommunicationResourceEClass; + } + + /** + * + * + * @generated + */ + public EClass getHwArbiter() { + return hwArbiterEClass; + } + + /** + * + * + * @generated + */ + public EReference getHwArbiter_ControlledMedias() { + return (EReference)hwArbiterEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getHwMedia() { + return hwMediaEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getHwMedia_BandWidth() { + return (EAttribute)hwMediaEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getHwMedia_Arbiters() { + return (EReference)hwMediaEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getHwBus() { + return hwBusEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getHwBus_AdressWidth() { + return (EAttribute)hwBusEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getHwBus_WordWidth() { + return (EAttribute)hwBusEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getHwBus_IsSynchronous() { + return (EAttribute)hwBusEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getHwBus_IsSerial() { + return (EAttribute)hwBusEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EClass getHwBridge() { + return hwBridgeEClass; + } + + /** + * + * + * @generated + */ + public EReference getHwBridge_Sides() { + return (EReference)hwBridgeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getHwEndPoint() { + return hwEndPointEClass; + } + + /** + * + * + * @generated + */ + public EReference getHwEndPoint_ConnectedTo() { + return (EReference)hwEndPointEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public HwCommunicationFactory getHwCommunicationFactory() { + return (HwCommunicationFactory)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 + hwCommunicationResourceEClass = createEClass(HW_COMMUNICATION_RESOURCE); + + hwArbiterEClass = createEClass(HW_ARBITER); + createEReference(hwArbiterEClass, HW_ARBITER__CONTROLLED_MEDIAS); + + hwMediaEClass = createEClass(HW_MEDIA); + createEAttribute(hwMediaEClass, HW_MEDIA__BAND_WIDTH); + createEReference(hwMediaEClass, HW_MEDIA__ARBITERS); + + hwBusEClass = createEClass(HW_BUS); + createEAttribute(hwBusEClass, HW_BUS__ADRESS_WIDTH); + createEAttribute(hwBusEClass, HW_BUS__WORD_WIDTH); + createEAttribute(hwBusEClass, HW_BUS__IS_SYNCHRONOUS); + createEAttribute(hwBusEClass, HW_BUS__IS_SERIAL); + + hwBridgeEClass = createEClass(HW_BRIDGE); + createEReference(hwBridgeEClass, HW_BRIDGE__SIDES); + + hwEndPointEClass = createEClass(HW_END_POINT); + createEReference(hwEndPointEClass, HW_END_POINT__CONNECTED_TO); + } + + /** + * + * + * @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 + HwGeneralPackage theHwGeneralPackage = (HwGeneralPackage)EPackage.Registry.INSTANCE.getEPackage(HwGeneralPackage.eNS_URI); + GRMPackage theGRMPackage = (GRMPackage)EPackage.Registry.INSTANCE.getEPackage(GRMPackage.eNS_URI); + BasicNFP_TypesPackage theBasicNFP_TypesPackage = (BasicNFP_TypesPackage)EPackage.Registry.INSTANCE.getEPackage(BasicNFP_TypesPackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + hwCommunicationResourceEClass.getESuperTypes().add(theHwGeneralPackage.getHwResource()); + hwArbiterEClass.getESuperTypes().add(this.getHwCommunicationResource()); + hwMediaEClass.getESuperTypes().add(theGRMPackage.getCommunicationMedia()); + hwMediaEClass.getESuperTypes().add(this.getHwCommunicationResource()); + hwBusEClass.getESuperTypes().add(this.getHwMedia()); + hwBridgeEClass.getESuperTypes().add(this.getHwMedia()); + hwEndPointEClass.getESuperTypes().add(this.getHwCommunicationResource()); + hwEndPointEClass.getESuperTypes().add(theGRMPackage.getCommunicationEndPoint()); + + // Initialize classes and features; add operations and parameters + initEClass(hwCommunicationResourceEClass, HwCommunicationResource.class, "HwCommunicationResource", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(hwArbiterEClass, HwArbiter.class, "HwArbiter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getHwArbiter_ControlledMedias(), this.getHwMedia(), this.getHwMedia_Arbiters(), "controlledMedias", null, 0, -1, HwArbiter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(hwMediaEClass, HwMedia.class, "HwMedia", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getHwMedia_BandWidth(), theBasicNFP_TypesPackage.getNFP_DataTxRate(), "bandWidth", null, 0, 1, HwMedia.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getHwMedia_Arbiters(), this.getHwArbiter(), this.getHwArbiter_ControlledMedias(), "arbiters", null, 0, -1, HwMedia.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(hwBusEClass, HwBus.class, "HwBus", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getHwBus_AdressWidth(), theBasicNFP_TypesPackage.getNFP_DataSize(), "adressWidth", null, 0, 1, HwBus.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getHwBus_WordWidth(), theBasicNFP_TypesPackage.getNFP_DataSize(), "wordWidth", null, 0, 1, HwBus.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getHwBus_IsSynchronous(), theBasicNFP_TypesPackage.getNFP_Boolean(), "isSynchronous", null, 0, 1, HwBus.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getHwBus_IsSerial(), theBasicNFP_TypesPackage.getNFP_Boolean(), "isSerial", null, 0, 1, HwBus.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(hwBridgeEClass, HwBridge.class, "HwBridge", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getHwBridge_Sides(), this.getHwMedia(), null, "sides", null, 0, -1, HwBridge.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(hwEndPointEClass, HwEndPoint.class, "HwEndPoint", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getHwEndPoint_ConnectedTo(), this.getHwMedia(), null, "connectedTo", null, 0, -1, HwEndPoint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + } + +} //HwCommunicationPackageImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/impl/HwCommunicationResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/impl/HwCommunicationResourceImpl.java new file mode 100644 index 00000000000..b20f1ef9eb9 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/impl/HwCommunicationResourceImpl.java @@ -0,0 +1,52 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.impl.HwResourceImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwCommunicationPackage; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwCommunicationResource; + +/** + * + * An implementation of the model object 'Resource'. + * + *

+ *

+ * + * @generated + */ +public class HwCommunicationResourceImpl extends HwResourceImpl implements HwCommunicationResource { + /** + * + * + * @generated + */ + protected HwCommunicationResourceImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return HwCommunicationPackage.Literals.HW_COMMUNICATION_RESOURCE; + } + +} //HwCommunicationResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/impl/HwEndPointImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/impl/HwEndPointImpl.java new file mode 100644 index 00000000000..83508faaab3 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/impl/HwEndPointImpl.java @@ -0,0 +1,250 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EObjectResolvingEList; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwCommunicationPackage; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwEndPoint; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwMedia; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationEndPoint; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage; + +/** + * + * An implementation of the model object 'Hw End Point'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwEndPointImpl#getPacketSize Packet Size}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwEndPointImpl#getConnectedTo Connected To}
  • + *
+ *

+ * + * @generated + */ +public class HwEndPointImpl extends HwCommunicationResourceImpl implements HwEndPoint { + /** + * The default value of the '{@link #getPacketSize() Packet Size}' attribute. + * + * + * @see #getPacketSize() + * @generated + * @ordered + */ + protected static final String PACKET_SIZE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPacketSize() Packet Size}' attribute. + * + * + * @see #getPacketSize() + * @generated + * @ordered + */ + protected String packetSize = PACKET_SIZE_EDEFAULT; + + /** + * The cached value of the '{@link #getConnectedTo() Connected To}' reference list. + * + * + * @see #getConnectedTo() + * @generated + * @ordered + */ + protected EList connectedTo; + + /** + * + * + * @generated + */ + protected HwEndPointImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return HwCommunicationPackage.Literals.HW_END_POINT; + } + + /** + * + * + * @generated + */ + public String getPacketSize() { + return packetSize; + } + + /** + * + * + * @generated + */ + public void setPacketSize(String newPacketSize) { + String oldPacketSize = packetSize; + packetSize = newPacketSize; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwCommunicationPackage.HW_END_POINT__PACKET_SIZE, oldPacketSize, packetSize)); + } + + /** + * + * + * @generated + */ + public EList getConnectedTo() { + if (connectedTo == null) { + connectedTo = new EObjectResolvingEList(HwMedia.class, this, HwCommunicationPackage.HW_END_POINT__CONNECTED_TO); + } + return connectedTo; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case HwCommunicationPackage.HW_END_POINT__PACKET_SIZE: + return getPacketSize(); + case HwCommunicationPackage.HW_END_POINT__CONNECTED_TO: + return getConnectedTo(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case HwCommunicationPackage.HW_END_POINT__PACKET_SIZE: + setPacketSize((String)newValue); + return; + case HwCommunicationPackage.HW_END_POINT__CONNECTED_TO: + getConnectedTo().clear(); + getConnectedTo().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case HwCommunicationPackage.HW_END_POINT__PACKET_SIZE: + setPacketSize(PACKET_SIZE_EDEFAULT); + return; + case HwCommunicationPackage.HW_END_POINT__CONNECTED_TO: + getConnectedTo().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case HwCommunicationPackage.HW_END_POINT__PACKET_SIZE: + return PACKET_SIZE_EDEFAULT == null ? packetSize != null : !PACKET_SIZE_EDEFAULT.equals(packetSize); + case HwCommunicationPackage.HW_END_POINT__CONNECTED_TO: + return connectedTo != null && !connectedTo.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) { + if (baseClass == CommunicationEndPoint.class) { + switch (derivedFeatureID) { + case HwCommunicationPackage.HW_END_POINT__PACKET_SIZE: return GRMPackage.COMMUNICATION_END_POINT__PACKET_SIZE; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) { + if (baseClass == CommunicationEndPoint.class) { + switch (baseFeatureID) { + case GRMPackage.COMMUNICATION_END_POINT__PACKET_SIZE: return HwCommunicationPackage.HW_END_POINT__PACKET_SIZE; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (packetSize: "); + result.append(packetSize); + result.append(')'); + return result.toString(); + } + +} //HwEndPointImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/impl/HwMediaImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/impl/HwMediaImpl.java new file mode 100644 index 00000000000..d263097a192 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/impl/HwMediaImpl.java @@ -0,0 +1,557 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.EObjectResolvingEList; +import org.eclipse.emf.ecore.util.EObjectWithInverseResolvingEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwGeneralPackage; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResourceService; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwArbiter; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwCommunicationPackage; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwCommunicationResource; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwEndPoint; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwMedia; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.CommunicationMediaImpl; + +/** + * + * An implementation of the model object 'Hw Media'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwMediaImpl#getDescription Description}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwMediaImpl#getP_HW_Services PHW Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwMediaImpl#getR_HW_Services RHW Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwMediaImpl#getOwnedHW Owned HW}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwMediaImpl#getEndPoints End Points}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwMediaImpl#getFrequency Frequency}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwMediaImpl#getBandWidth Band Width}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.impl.HwMediaImpl#getArbiters Arbiters}
  • + *
+ *

+ * + * @generated + */ +public class HwMediaImpl extends CommunicationMediaImpl implements HwMedia { + /** + * The default value of the '{@link #getDescription() Description}' attribute. + * + * + * @see #getDescription() + * @generated + * @ordered + */ + protected static final String DESCRIPTION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDescription() Description}' attribute. + * + * + * @see #getDescription() + * @generated + * @ordered + */ + protected String description = DESCRIPTION_EDEFAULT; + + /** + * The cached value of the '{@link #getP_HW_Services() PHW Services}' containment reference list. + * + * + * @see #getP_HW_Services() + * @generated + * @ordered + */ + protected EList p_HW_Services; + + /** + * The cached value of the '{@link #getR_HW_Services() RHW Services}' reference list. + * + * + * @see #getR_HW_Services() + * @generated + * @ordered + */ + protected EList r_HW_Services; + + /** + * The cached value of the '{@link #getOwnedHW() Owned HW}' containment reference list. + * + * + * @see #getOwnedHW() + * @generated + * @ordered + */ + protected EList ownedHW; + + /** + * The cached value of the '{@link #getEndPoints() End Points}' reference list. + * + * + * @see #getEndPoints() + * @generated + * @ordered + */ + protected EList endPoints; + + /** + * The default value of the '{@link #getFrequency() Frequency}' attribute. + * + * + * @see #getFrequency() + * @generated + * @ordered + */ + protected static final String FREQUENCY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getFrequency() Frequency}' attribute. + * + * + * @see #getFrequency() + * @generated + * @ordered + */ + protected String frequency = FREQUENCY_EDEFAULT; + + /** + * The default value of the '{@link #getBandWidth() Band Width}' attribute. + * + * + * @see #getBandWidth() + * @generated + * @ordered + */ + protected static final String BAND_WIDTH_EDEFAULT = null; + + /** + * The cached value of the '{@link #getBandWidth() Band Width}' attribute. + * + * + * @see #getBandWidth() + * @generated + * @ordered + */ + protected String bandWidth = BAND_WIDTH_EDEFAULT; + + /** + * The cached value of the '{@link #getArbiters() Arbiters}' reference list. + * + * + * @see #getArbiters() + * @generated + * @ordered + */ + protected EList arbiters; + + /** + * + * + * @generated + */ + protected HwMediaImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return HwCommunicationPackage.Literals.HW_MEDIA; + } + + /** + * + * + * @generated + */ + public String getDescription() { + return description; + } + + /** + * + * + * @generated + */ + public void setDescription(String newDescription) { + String oldDescription = description; + description = newDescription; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwCommunicationPackage.HW_MEDIA__DESCRIPTION, oldDescription, description)); + } + + /** + * + * + * @generated + */ + public EList getP_HW_Services() { + if (p_HW_Services == null) { + p_HW_Services = new EObjectContainmentEList(HwResourceService.class, this, HwCommunicationPackage.HW_MEDIA__PHW_SERVICES); + } + return p_HW_Services; + } + + /** + * + * + * @generated + */ + public EList getR_HW_Services() { + if (r_HW_Services == null) { + r_HW_Services = new EObjectResolvingEList(HwResourceService.class, this, HwCommunicationPackage.HW_MEDIA__RHW_SERVICES); + } + return r_HW_Services; + } + + /** + * + * + * @generated + */ + public EList getOwnedHW() { + if (ownedHW == null) { + ownedHW = new EObjectContainmentEList(HwResource.class, this, HwCommunicationPackage.HW_MEDIA__OWNED_HW); + } + return ownedHW; + } + + /** + * + * + * @generated + */ + public EList getEndPoints() { + if (endPoints == null) { + endPoints = new EObjectResolvingEList(HwEndPoint.class, this, HwCommunicationPackage.HW_MEDIA__END_POINTS); + } + return endPoints; + } + + /** + * + * + * @generated + */ + public String getFrequency() { + return frequency; + } + + /** + * + * + * @generated + */ + public void setFrequency(String newFrequency) { + String oldFrequency = frequency; + frequency = newFrequency; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwCommunicationPackage.HW_MEDIA__FREQUENCY, oldFrequency, frequency)); + } + + /** + * + * + * @generated + */ + public String getBandWidth() { + return bandWidth; + } + + /** + * + * + * @generated + */ + public void setBandWidth(String newBandWidth) { + String oldBandWidth = bandWidth; + bandWidth = newBandWidth; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwCommunicationPackage.HW_MEDIA__BAND_WIDTH, oldBandWidth, bandWidth)); + } + + /** + * + * + * @generated + */ + public EList getArbiters() { + if (arbiters == null) { + arbiters = new EObjectWithInverseResolvingEList.ManyInverse(HwArbiter.class, this, HwCommunicationPackage.HW_MEDIA__ARBITERS, HwCommunicationPackage.HW_ARBITER__CONTROLLED_MEDIAS); + } + return arbiters; + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case HwCommunicationPackage.HW_MEDIA__ARBITERS: + return ((InternalEList)(InternalEList)getArbiters()).basicAdd(otherEnd, msgs); + } + return super.eInverseAdd(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case HwCommunicationPackage.HW_MEDIA__PHW_SERVICES: + return ((InternalEList)getP_HW_Services()).basicRemove(otherEnd, msgs); + case HwCommunicationPackage.HW_MEDIA__OWNED_HW: + return ((InternalEList)getOwnedHW()).basicRemove(otherEnd, msgs); + case HwCommunicationPackage.HW_MEDIA__ARBITERS: + return ((InternalEList)getArbiters()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case HwCommunicationPackage.HW_MEDIA__DESCRIPTION: + return getDescription(); + case HwCommunicationPackage.HW_MEDIA__PHW_SERVICES: + return getP_HW_Services(); + case HwCommunicationPackage.HW_MEDIA__RHW_SERVICES: + return getR_HW_Services(); + case HwCommunicationPackage.HW_MEDIA__OWNED_HW: + return getOwnedHW(); + case HwCommunicationPackage.HW_MEDIA__END_POINTS: + return getEndPoints(); + case HwCommunicationPackage.HW_MEDIA__FREQUENCY: + return getFrequency(); + case HwCommunicationPackage.HW_MEDIA__BAND_WIDTH: + return getBandWidth(); + case HwCommunicationPackage.HW_MEDIA__ARBITERS: + return getArbiters(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case HwCommunicationPackage.HW_MEDIA__DESCRIPTION: + setDescription((String)newValue); + return; + case HwCommunicationPackage.HW_MEDIA__PHW_SERVICES: + getP_HW_Services().clear(); + getP_HW_Services().addAll((Collection)newValue); + return; + case HwCommunicationPackage.HW_MEDIA__RHW_SERVICES: + getR_HW_Services().clear(); + getR_HW_Services().addAll((Collection)newValue); + return; + case HwCommunicationPackage.HW_MEDIA__OWNED_HW: + getOwnedHW().clear(); + getOwnedHW().addAll((Collection)newValue); + return; + case HwCommunicationPackage.HW_MEDIA__END_POINTS: + getEndPoints().clear(); + getEndPoints().addAll((Collection)newValue); + return; + case HwCommunicationPackage.HW_MEDIA__FREQUENCY: + setFrequency((String)newValue); + return; + case HwCommunicationPackage.HW_MEDIA__BAND_WIDTH: + setBandWidth((String)newValue); + return; + case HwCommunicationPackage.HW_MEDIA__ARBITERS: + getArbiters().clear(); + getArbiters().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case HwCommunicationPackage.HW_MEDIA__DESCRIPTION: + setDescription(DESCRIPTION_EDEFAULT); + return; + case HwCommunicationPackage.HW_MEDIA__PHW_SERVICES: + getP_HW_Services().clear(); + return; + case HwCommunicationPackage.HW_MEDIA__RHW_SERVICES: + getR_HW_Services().clear(); + return; + case HwCommunicationPackage.HW_MEDIA__OWNED_HW: + getOwnedHW().clear(); + return; + case HwCommunicationPackage.HW_MEDIA__END_POINTS: + getEndPoints().clear(); + return; + case HwCommunicationPackage.HW_MEDIA__FREQUENCY: + setFrequency(FREQUENCY_EDEFAULT); + return; + case HwCommunicationPackage.HW_MEDIA__BAND_WIDTH: + setBandWidth(BAND_WIDTH_EDEFAULT); + return; + case HwCommunicationPackage.HW_MEDIA__ARBITERS: + getArbiters().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case HwCommunicationPackage.HW_MEDIA__DESCRIPTION: + return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); + case HwCommunicationPackage.HW_MEDIA__PHW_SERVICES: + return p_HW_Services != null && !p_HW_Services.isEmpty(); + case HwCommunicationPackage.HW_MEDIA__RHW_SERVICES: + return r_HW_Services != null && !r_HW_Services.isEmpty(); + case HwCommunicationPackage.HW_MEDIA__OWNED_HW: + return ownedHW != null && !ownedHW.isEmpty(); + case HwCommunicationPackage.HW_MEDIA__END_POINTS: + return endPoints != null && !endPoints.isEmpty(); + case HwCommunicationPackage.HW_MEDIA__FREQUENCY: + return FREQUENCY_EDEFAULT == null ? frequency != null : !FREQUENCY_EDEFAULT.equals(frequency); + case HwCommunicationPackage.HW_MEDIA__BAND_WIDTH: + return BAND_WIDTH_EDEFAULT == null ? bandWidth != null : !BAND_WIDTH_EDEFAULT.equals(bandWidth); + case HwCommunicationPackage.HW_MEDIA__ARBITERS: + return arbiters != null && !arbiters.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) { + if (baseClass == HwResource.class) { + switch (derivedFeatureID) { + case HwCommunicationPackage.HW_MEDIA__DESCRIPTION: return HwGeneralPackage.HW_RESOURCE__DESCRIPTION; + case HwCommunicationPackage.HW_MEDIA__PHW_SERVICES: return HwGeneralPackage.HW_RESOURCE__PHW_SERVICES; + case HwCommunicationPackage.HW_MEDIA__RHW_SERVICES: return HwGeneralPackage.HW_RESOURCE__RHW_SERVICES; + case HwCommunicationPackage.HW_MEDIA__OWNED_HW: return HwGeneralPackage.HW_RESOURCE__OWNED_HW; + case HwCommunicationPackage.HW_MEDIA__END_POINTS: return HwGeneralPackage.HW_RESOURCE__END_POINTS; + case HwCommunicationPackage.HW_MEDIA__FREQUENCY: return HwGeneralPackage.HW_RESOURCE__FREQUENCY; + default: return -1; + } + } + if (baseClass == HwCommunicationResource.class) { + switch (derivedFeatureID) { + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) { + if (baseClass == HwResource.class) { + switch (baseFeatureID) { + case HwGeneralPackage.HW_RESOURCE__DESCRIPTION: return HwCommunicationPackage.HW_MEDIA__DESCRIPTION; + case HwGeneralPackage.HW_RESOURCE__PHW_SERVICES: return HwCommunicationPackage.HW_MEDIA__PHW_SERVICES; + case HwGeneralPackage.HW_RESOURCE__RHW_SERVICES: return HwCommunicationPackage.HW_MEDIA__RHW_SERVICES; + case HwGeneralPackage.HW_RESOURCE__OWNED_HW: return HwCommunicationPackage.HW_MEDIA__OWNED_HW; + case HwGeneralPackage.HW_RESOURCE__END_POINTS: return HwCommunicationPackage.HW_MEDIA__END_POINTS; + case HwGeneralPackage.HW_RESOURCE__FREQUENCY: return HwCommunicationPackage.HW_MEDIA__FREQUENCY; + default: return -1; + } + } + if (baseClass == HwCommunicationResource.class) { + switch (baseFeatureID) { + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (description: "); + result.append(description); + result.append(", frequency: "); + result.append(frequency); + result.append(", bandWidth: "); + result.append(bandWidth); + result.append(')'); + return result.toString(); + } + +} //HwMediaImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/util/HwCommunicationAdapterFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/util/HwCommunicationAdapterFactory.java new file mode 100644 index 00000000000..498dc844525 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/util/HwCommunicationAdapterFactory.java @@ -0,0 +1,318 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwCommunication.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.MARTE_DesignModel.HRM.HwGeneral.HwResource; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.*; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationEndPoint; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationMedia; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ProcessingResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwCommunicationPackage + * @generated + */ +public class HwCommunicationAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * @generated + */ + protected static HwCommunicationPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public HwCommunicationAdapterFactory() { + if (modelPackage == null) { + modelPackage = HwCommunicationPackage.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 HwCommunicationSwitch modelSwitch = + new HwCommunicationSwitch() { + @Override + public Adapter caseHwCommunicationResource(HwCommunicationResource object) { + return createHwCommunicationResourceAdapter(); + } + @Override + public Adapter caseHwArbiter(HwArbiter object) { + return createHwArbiterAdapter(); + } + @Override + public Adapter caseHwMedia(HwMedia object) { + return createHwMediaAdapter(); + } + @Override + public Adapter caseHwBus(HwBus object) { + return createHwBusAdapter(); + } + @Override + public Adapter caseHwBridge(HwBridge object) { + return createHwBridgeAdapter(); + } + @Override + public Adapter caseHwEndPoint(HwEndPoint object) { + return createHwEndPointAdapter(); + } + @Override + public Adapter caseResource(Resource object) { + return createResourceAdapter(); + } + @Override + public Adapter caseHwResource(HwResource object) { + return createHwResourceAdapter(); + } + @Override + public Adapter caseProcessingResource(ProcessingResource object) { + return createProcessingResourceAdapter(); + } + @Override + public Adapter caseCommunicationMedia(CommunicationMedia object) { + return createCommunicationMediaAdapter(); + } + @Override + public Adapter caseCommunicationEndPoint(CommunicationEndPoint object) { + return createCommunicationEndPointAdapter(); + } + @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.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwCommunicationResource Resource}'. + * + * 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.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwCommunicationResource + * @generated + */ + public Adapter createHwCommunicationResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwArbiter Hw Arbiter}'. + * + * 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.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwArbiter + * @generated + */ + public Adapter createHwArbiterAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwMedia Hw Media}'. + * + * 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.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwMedia + * @generated + */ + public Adapter createHwMediaAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwBus Hw Bus}'. + * + * 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.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwBus + * @generated + */ + public Adapter createHwBusAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwBridge Hw Bridge}'. + * + * 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.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwBridge + * @generated + */ + public Adapter createHwBridgeAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwEndPoint Hw End Point}'. + * + * 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.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwEndPoint + * @generated + */ + public Adapter createHwEndPointAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource Resource}'. + * + * 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.MARTE_Foundations.GRM.Resource + * @generated + */ + public Adapter createResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource Hw Resource}'. + * + * 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.MARTE_DesignModel.HRM.HwGeneral.HwResource + * @generated + */ + public Adapter createHwResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ProcessingResource Processing Resource}'. + * + * 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.MARTE_Foundations.GRM.ProcessingResource + * @generated + */ + public Adapter createProcessingResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationMedia Communication Media}'. + * + * 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.MARTE_Foundations.GRM.CommunicationMedia + * @generated + */ + public Adapter createCommunicationMediaAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationEndPoint Communication End Point}'. + * + * 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.MARTE_Foundations.GRM.CommunicationEndPoint + * @generated + */ + public Adapter createCommunicationEndPointAdapter() { + 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; + } + +} //HwCommunicationAdapterFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/util/HwCommunicationResourceFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/util/HwCommunicationResourceFactoryImpl.java new file mode 100644 index 00000000000..6e1ef87244e --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/util/HwCommunicationResourceFactoryImpl.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.MARTE_DesignModel.HRM.HwLogical.HwCommunication.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; + +import org.eclipse.emf.ecore.xmi.XMLResource; + +/** + * + * The Resource Factory associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.util.HwCommunicationResourceImpl + * @generated + */ +public class HwCommunicationResourceFactoryImpl extends ResourceFactoryImpl { + /** + * Creates an instance of the resource factory. + * + * + * @generated + */ + public HwCommunicationResourceFactoryImpl() { + super(); + } + + /** + * Creates an instance of the resource. + * + * + * @generated + */ + @Override + public Resource createResource(URI uri) { + XMLResource result = new HwCommunicationResourceImpl(uri); + result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + + result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); + return result; + } + +} //HwCommunicationResourceFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/util/HwCommunicationResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/util/HwCommunicationResourceImpl.java new file mode 100644 index 00000000000..10a7966b596 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/util/HwCommunicationResourceImpl.java @@ -0,0 +1,39 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwCommunication.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; + +/** + * + * The Resource associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.util.HwCommunicationResourceFactoryImpl + * @generated + */ +public class HwCommunicationResourceImpl extends XMLResourceImpl { + /** + * Creates an instance of the resource. + * + * + * @param uri the URI of the new resource. + * @generated + */ + public HwCommunicationResourceImpl(URI uri) { + super(uri); + } + +} //HwCommunicationResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/util/HwCommunicationSwitch.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/util/HwCommunicationSwitch.java new file mode 100644 index 00000000000..6ef392260f2 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/util/HwCommunicationSwitch.java @@ -0,0 +1,350 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwCommunication.util; + +import java.util.List; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.*; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationEndPoint; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationMedia; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ProcessingResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource; + +/** + * + * 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.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwCommunicationPackage + * @generated + */ +public class HwCommunicationSwitch { + /** + * The cached model package + * + * + * @generated + */ + protected static HwCommunicationPackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public HwCommunicationSwitch() { + if (modelPackage == null) { + modelPackage = HwCommunicationPackage.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 HwCommunicationPackage.HW_COMMUNICATION_RESOURCE: { + HwCommunicationResource hwCommunicationResource = (HwCommunicationResource)theEObject; + T result = caseHwCommunicationResource(hwCommunicationResource); + if (result == null) result = caseHwResource(hwCommunicationResource); + if (result == null) result = caseResource(hwCommunicationResource); + if (result == null) result = defaultCase(theEObject); + return result; + } + case HwCommunicationPackage.HW_ARBITER: { + HwArbiter hwArbiter = (HwArbiter)theEObject; + T result = caseHwArbiter(hwArbiter); + if (result == null) result = caseHwCommunicationResource(hwArbiter); + if (result == null) result = caseHwResource(hwArbiter); + if (result == null) result = caseResource(hwArbiter); + if (result == null) result = defaultCase(theEObject); + return result; + } + case HwCommunicationPackage.HW_MEDIA: { + HwMedia hwMedia = (HwMedia)theEObject; + T result = caseHwMedia(hwMedia); + if (result == null) result = caseCommunicationMedia(hwMedia); + if (result == null) result = caseHwCommunicationResource(hwMedia); + if (result == null) result = caseProcessingResource(hwMedia); + if (result == null) result = caseHwResource(hwMedia); + if (result == null) result = caseResource(hwMedia); + if (result == null) result = defaultCase(theEObject); + return result; + } + case HwCommunicationPackage.HW_BUS: { + HwBus hwBus = (HwBus)theEObject; + T result = caseHwBus(hwBus); + if (result == null) result = caseHwMedia(hwBus); + if (result == null) result = caseCommunicationMedia(hwBus); + if (result == null) result = caseHwCommunicationResource(hwBus); + if (result == null) result = caseProcessingResource(hwBus); + if (result == null) result = caseHwResource(hwBus); + if (result == null) result = caseResource(hwBus); + if (result == null) result = defaultCase(theEObject); + return result; + } + case HwCommunicationPackage.HW_BRIDGE: { + HwBridge hwBridge = (HwBridge)theEObject; + T result = caseHwBridge(hwBridge); + if (result == null) result = caseHwMedia(hwBridge); + if (result == null) result = caseCommunicationMedia(hwBridge); + if (result == null) result = caseHwCommunicationResource(hwBridge); + if (result == null) result = caseProcessingResource(hwBridge); + if (result == null) result = caseHwResource(hwBridge); + if (result == null) result = caseResource(hwBridge); + if (result == null) result = defaultCase(theEObject); + return result; + } + case HwCommunicationPackage.HW_END_POINT: { + HwEndPoint hwEndPoint = (HwEndPoint)theEObject; + T result = caseHwEndPoint(hwEndPoint); + if (result == null) result = caseHwCommunicationResource(hwEndPoint); + if (result == null) result = caseCommunicationEndPoint(hwEndPoint); + if (result == null) result = caseHwResource(hwEndPoint); + if (result == null) result = caseResource(hwEndPoint); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Resource'. + * + * 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 'Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHwCommunicationResource(HwCommunicationResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Hw Arbiter'. + * + * 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 'Hw Arbiter'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHwArbiter(HwArbiter object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Hw Media'. + * + * 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 'Hw Media'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHwMedia(HwMedia object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Hw Bus'. + * + * 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 'Hw Bus'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHwBus(HwBus object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Hw Bridge'. + * + * 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 'Hw Bridge'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHwBridge(HwBridge object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Hw End Point'. + * + * 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 'Hw End Point'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHwEndPoint(HwEndPoint object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Resource'. + * + * 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 'Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseResource(Resource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Hw Resource'. + * + * 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 'Hw Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHwResource(HwResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Processing Resource'. + * + * 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 'Processing Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseProcessingResource(ProcessingResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Communication Media'. + * + * 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 'Communication Media'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCommunicationMedia(CommunicationMedia object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Communication End Point'. + * + * 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 'Communication End Point'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCommunicationEndPoint(CommunicationEndPoint 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; + } + +} //HwCommunicationSwitch diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/util/HwCommunicationXMLProcessor.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/util/HwCommunicationXMLProcessor.java new file mode 100644 index 00000000000..5c4da24cea5 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwCommunication/util/HwCommunicationXMLProcessor.java @@ -0,0 +1,61 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwCommunication.util; + +import java.util.Map; + +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.xmi.util.XMLProcessor; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwCommunicationPackage; + +/** + * This class contains helper methods to serialize and deserialize XML documents + * + * + * @generated + */ +public class HwCommunicationXMLProcessor extends XMLProcessor { + + /** + * Public constructor to instantiate the helper. + * + * + * @generated + */ + public HwCommunicationXMLProcessor() { + super((EPackage.Registry.INSTANCE)); + HwCommunicationPackage.eINSTANCE.eClass(); + } + + /** + * Register for "*" and "xml" file extensions the HwCommunicationResourceFactoryImpl factory. + * + * + * @generated + */ + @Override + protected Map getRegistrations() { + if (registrations == null) { + super.getRegistrations(); + registrations.put(XML_EXTENSION, new HwCommunicationResourceFactoryImpl()); + registrations.put(STAR_EXTENSION, new HwCommunicationResourceFactoryImpl()); + } + return registrations; + } + +} //HwCommunicationXMLProcessor diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/HwASIC.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/HwASIC.java new file mode 100644 index 00000000000..286193d02d1 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/HwASIC.java @@ -0,0 +1,28 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwComputing; + + +/** + * + * A representation of the model object 'Hw ASIC'. + * + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingPackage#getHwASIC() + * @model + * @generated + */ +public interface HwASIC extends HwComputingResource { +} // HwASIC diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/HwBranchPredictor.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/HwBranchPredictor.java new file mode 100644 index 00000000000..719cf035707 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/HwBranchPredictor.java @@ -0,0 +1,29 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwComputing; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource; + +/** + * + * A representation of the model object 'Hw Branch Predictor'. + * + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingPackage#getHwBranchPredictor() + * @model + * @generated + */ +public interface HwBranchPredictor extends HwResource { +} // HwBranchPredictor diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/HwComputingFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/HwComputingFactory.java new file mode 100644 index 00000000000..e472859ba80 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/HwComputingFactory.java @@ -0,0 +1,98 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwComputing; + +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.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingPackage + * @generated + */ +public interface HwComputingFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + HwComputingFactory eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwComputingFactoryImpl.init(); + + /** + * Returns a new object of class 'Hw Processor'. + * + * + * @return a new object of class 'Hw Processor'. + * @generated + */ + HwProcessor createHwProcessor(); + + /** + * Returns a new object of class 'Resource'. + * + * + * @return a new object of class 'Resource'. + * @generated + */ + HwComputingResource createHwComputingResource(); + + /** + * Returns a new object of class 'Hw ISA'. + * + * + * @return a new object of class 'Hw ISA'. + * @generated + */ + HwISA createHwISA(); + + /** + * Returns a new object of class 'Hw Branch Predictor'. + * + * + * @return a new object of class 'Hw Branch Predictor'. + * @generated + */ + HwBranchPredictor createHwBranchPredictor(); + + /** + * Returns a new object of class 'Hw ASIC'. + * + * + * @return a new object of class 'Hw ASIC'. + * @generated + */ + HwASIC createHwASIC(); + + /** + * Returns a new object of class 'Hw PLD'. + * + * + * @return a new object of class 'Hw PLD'. + * @generated + */ + HwPLD createHwPLD(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + HwComputingPackage getHwComputingPackage(); + +} //HwComputingFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/HwComputingPackage.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/HwComputingPackage.java new file mode 100644 index 00000000000..3b088665079 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/HwComputingPackage.java @@ -0,0 +1,1952 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwComputing; + +import org.eclipse.emf.ecore.EAttribute; +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.EReference; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwGeneralPackage; + +/** + * + * 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.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingFactory + * @model kind="package" + * @generated + */ +public interface HwComputingPackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "HwComputing"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "http://www.eclipse.org/papyrus/HwComputing/1"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "HwComputing"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + HwComputingPackage eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwComputingPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwComputingResourceImpl Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwComputingResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwComputingPackageImpl#getHwComputingResource() + * @generated + */ + int HW_COMPUTING_RESOURCE = 1; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int HW_COMPUTING_RESOURCE__RES_MULT = HwGeneralPackage.HW_RESOURCE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int HW_COMPUTING_RESOURCE__IS_PROTECTED = HwGeneralPackage.HW_RESOURCE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int HW_COMPUTING_RESOURCE__IS_ACTIVE = HwGeneralPackage.HW_RESOURCE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int HW_COMPUTING_RESOURCE__BASE_PROPERTY = HwGeneralPackage.HW_RESOURCE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int HW_COMPUTING_RESOURCE__BASE_INSTANCE_SPECIFICATION = HwGeneralPackage.HW_RESOURCE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int HW_COMPUTING_RESOURCE__BASE_CLASSIFIER = HwGeneralPackage.HW_RESOURCE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int HW_COMPUTING_RESOURCE__BASE_LIFELINE = HwGeneralPackage.HW_RESOURCE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int HW_COMPUTING_RESOURCE__BASE_CONNECTABLE_ELEMENT = HwGeneralPackage.HW_RESOURCE__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int HW_COMPUTING_RESOURCE__DESCRIPTION = HwGeneralPackage.HW_RESOURCE__DESCRIPTION; + + /** + * The feature id for the 'PHW Services' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_COMPUTING_RESOURCE__PHW_SERVICES = HwGeneralPackage.HW_RESOURCE__PHW_SERVICES; + + /** + * The feature id for the 'RHW Services' reference list. + * + * + * @generated + * @ordered + */ + int HW_COMPUTING_RESOURCE__RHW_SERVICES = HwGeneralPackage.HW_RESOURCE__RHW_SERVICES; + + /** + * The feature id for the 'Owned HW' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_COMPUTING_RESOURCE__OWNED_HW = HwGeneralPackage.HW_RESOURCE__OWNED_HW; + + /** + * The feature id for the 'End Points' reference list. + * + * + * @generated + * @ordered + */ + int HW_COMPUTING_RESOURCE__END_POINTS = HwGeneralPackage.HW_RESOURCE__END_POINTS; + + /** + * The feature id for the 'Frequency' attribute. + * + * + * @generated + * @ordered + */ + int HW_COMPUTING_RESOURCE__FREQUENCY = HwGeneralPackage.HW_RESOURCE__FREQUENCY; + + /** + * The feature id for the 'Speed Factor' attribute. + * + * + * @generated + * @ordered + */ + int HW_COMPUTING_RESOURCE__SPEED_FACTOR = HwGeneralPackage.HW_RESOURCE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Main Scheduler' reference. + * + * + * @generated + * @ordered + */ + int HW_COMPUTING_RESOURCE__MAIN_SCHEDULER = HwGeneralPackage.HW_RESOURCE_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Op Frequencies' attribute. + * + * + * @generated + * @ordered + */ + int HW_COMPUTING_RESOURCE__OP_FREQUENCIES = HwGeneralPackage.HW_RESOURCE_FEATURE_COUNT + 2; + + /** + * The number of structural features of the 'Resource' class. + * + * + * @generated + * @ordered + */ + int HW_COMPUTING_RESOURCE_FEATURE_COUNT = HwGeneralPackage.HW_RESOURCE_FEATURE_COUNT + 3; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwProcessorImpl Hw Processor}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwProcessorImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwComputingPackageImpl#getHwProcessor() + * @generated + */ + int HW_PROCESSOR = 0; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int HW_PROCESSOR__RES_MULT = HW_COMPUTING_RESOURCE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int HW_PROCESSOR__IS_PROTECTED = HW_COMPUTING_RESOURCE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int HW_PROCESSOR__IS_ACTIVE = HW_COMPUTING_RESOURCE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int HW_PROCESSOR__BASE_PROPERTY = HW_COMPUTING_RESOURCE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int HW_PROCESSOR__BASE_INSTANCE_SPECIFICATION = HW_COMPUTING_RESOURCE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int HW_PROCESSOR__BASE_CLASSIFIER = HW_COMPUTING_RESOURCE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int HW_PROCESSOR__BASE_LIFELINE = HW_COMPUTING_RESOURCE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int HW_PROCESSOR__BASE_CONNECTABLE_ELEMENT = HW_COMPUTING_RESOURCE__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int HW_PROCESSOR__DESCRIPTION = HW_COMPUTING_RESOURCE__DESCRIPTION; + + /** + * The feature id for the 'PHW Services' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_PROCESSOR__PHW_SERVICES = HW_COMPUTING_RESOURCE__PHW_SERVICES; + + /** + * The feature id for the 'RHW Services' reference list. + * + * + * @generated + * @ordered + */ + int HW_PROCESSOR__RHW_SERVICES = HW_COMPUTING_RESOURCE__RHW_SERVICES; + + /** + * The feature id for the 'Owned HW' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_PROCESSOR__OWNED_HW = HW_COMPUTING_RESOURCE__OWNED_HW; + + /** + * The feature id for the 'End Points' reference list. + * + * + * @generated + * @ordered + */ + int HW_PROCESSOR__END_POINTS = HW_COMPUTING_RESOURCE__END_POINTS; + + /** + * The feature id for the 'Frequency' attribute. + * + * + * @generated + * @ordered + */ + int HW_PROCESSOR__FREQUENCY = HW_COMPUTING_RESOURCE__FREQUENCY; + + /** + * The feature id for the 'Speed Factor' attribute. + * + * + * @generated + * @ordered + */ + int HW_PROCESSOR__SPEED_FACTOR = HW_COMPUTING_RESOURCE__SPEED_FACTOR; + + /** + * The feature id for the 'Main Scheduler' reference. + * + * + * @generated + * @ordered + */ + int HW_PROCESSOR__MAIN_SCHEDULER = HW_COMPUTING_RESOURCE__MAIN_SCHEDULER; + + /** + * The feature id for the 'Op Frequencies' attribute. + * + * + * @generated + * @ordered + */ + int HW_PROCESSOR__OP_FREQUENCIES = HW_COMPUTING_RESOURCE__OP_FREQUENCIES; + + /** + * The feature id for the 'Architecture' attribute. + * + * + * @generated + * @ordered + */ + int HW_PROCESSOR__ARCHITECTURE = HW_COMPUTING_RESOURCE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Mips' attribute. + * + * + * @generated + * @ordered + */ + int HW_PROCESSOR__MIPS = HW_COMPUTING_RESOURCE_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Ipc' attribute. + * + * + * @generated + * @ordered + */ + int HW_PROCESSOR__IPC = HW_COMPUTING_RESOURCE_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Nb Cores' attribute. + * + * + * @generated + * @ordered + */ + int HW_PROCESSOR__NB_CORES = HW_COMPUTING_RESOURCE_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Nb Pipelines' attribute. + * + * + * @generated + * @ordered + */ + int HW_PROCESSOR__NB_PIPELINES = HW_COMPUTING_RESOURCE_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Nb Stages' attribute. + * + * + * @generated + * @ordered + */ + int HW_PROCESSOR__NB_STAGES = HW_COMPUTING_RESOURCE_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Nb AL Us' attribute. + * + * + * @generated + * @ordered + */ + int HW_PROCESSOR__NB_AL_US = HW_COMPUTING_RESOURCE_FEATURE_COUNT + 6; + + /** + * The feature id for the 'Nb FP Us' attribute. + * + * + * @generated + * @ordered + */ + int HW_PROCESSOR__NB_FP_US = HW_COMPUTING_RESOURCE_FEATURE_COUNT + 7; + + /** + * The feature id for the 'Owned IS As' reference list. + * + * + * @generated + * @ordered + */ + int HW_PROCESSOR__OWNED_IS_AS = HW_COMPUTING_RESOURCE_FEATURE_COUNT + 8; + + /** + * The feature id for the 'Predictors' reference list. + * + * + * @generated + * @ordered + */ + int HW_PROCESSOR__PREDICTORS = HW_COMPUTING_RESOURCE_FEATURE_COUNT + 9; + + /** + * The feature id for the 'Caches' reference list. + * + * + * @generated + * @ordered + */ + int HW_PROCESSOR__CACHES = HW_COMPUTING_RESOURCE_FEATURE_COUNT + 10; + + /** + * The feature id for the 'Owned MM Us' reference list. + * + * + * @generated + * @ordered + */ + int HW_PROCESSOR__OWNED_MM_US = HW_COMPUTING_RESOURCE_FEATURE_COUNT + 11; + + /** + * The number of structural features of the 'Hw Processor' class. + * + * + * @generated + * @ordered + */ + int HW_PROCESSOR_FEATURE_COUNT = HW_COMPUTING_RESOURCE_FEATURE_COUNT + 12; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwISAImpl Hw ISA}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwISAImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwComputingPackageImpl#getHwISA() + * @generated + */ + int HW_ISA = 2; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int HW_ISA__RES_MULT = HwGeneralPackage.HW_RESOURCE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int HW_ISA__IS_PROTECTED = HwGeneralPackage.HW_RESOURCE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int HW_ISA__IS_ACTIVE = HwGeneralPackage.HW_RESOURCE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int HW_ISA__BASE_PROPERTY = HwGeneralPackage.HW_RESOURCE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int HW_ISA__BASE_INSTANCE_SPECIFICATION = HwGeneralPackage.HW_RESOURCE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int HW_ISA__BASE_CLASSIFIER = HwGeneralPackage.HW_RESOURCE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int HW_ISA__BASE_LIFELINE = HwGeneralPackage.HW_RESOURCE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int HW_ISA__BASE_CONNECTABLE_ELEMENT = HwGeneralPackage.HW_RESOURCE__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int HW_ISA__DESCRIPTION = HwGeneralPackage.HW_RESOURCE__DESCRIPTION; + + /** + * The feature id for the 'PHW Services' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_ISA__PHW_SERVICES = HwGeneralPackage.HW_RESOURCE__PHW_SERVICES; + + /** + * The feature id for the 'RHW Services' reference list. + * + * + * @generated + * @ordered + */ + int HW_ISA__RHW_SERVICES = HwGeneralPackage.HW_RESOURCE__RHW_SERVICES; + + /** + * The feature id for the 'Owned HW' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_ISA__OWNED_HW = HwGeneralPackage.HW_RESOURCE__OWNED_HW; + + /** + * The feature id for the 'End Points' reference list. + * + * + * @generated + * @ordered + */ + int HW_ISA__END_POINTS = HwGeneralPackage.HW_RESOURCE__END_POINTS; + + /** + * The feature id for the 'Frequency' attribute. + * + * + * @generated + * @ordered + */ + int HW_ISA__FREQUENCY = HwGeneralPackage.HW_RESOURCE__FREQUENCY; + + /** + * The feature id for the 'Family' attribute. + * + * + * @generated + * @ordered + */ + int HW_ISA__FAMILY = HwGeneralPackage.HW_RESOURCE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Inst Width' attribute. + * + * + * @generated + * @ordered + */ + int HW_ISA__INST_WIDTH = HwGeneralPackage.HW_RESOURCE_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Type' attribute. + * + * + * @generated + * @ordered + */ + int HW_ISA__TYPE = HwGeneralPackage.HW_RESOURCE_FEATURE_COUNT + 2; + + /** + * The number of structural features of the 'Hw ISA' class. + * + * + * @generated + * @ordered + */ + int HW_ISA_FEATURE_COUNT = HwGeneralPackage.HW_RESOURCE_FEATURE_COUNT + 3; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwBranchPredictorImpl Hw Branch Predictor}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwBranchPredictorImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwComputingPackageImpl#getHwBranchPredictor() + * @generated + */ + int HW_BRANCH_PREDICTOR = 3; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int HW_BRANCH_PREDICTOR__RES_MULT = HwGeneralPackage.HW_RESOURCE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int HW_BRANCH_PREDICTOR__IS_PROTECTED = HwGeneralPackage.HW_RESOURCE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int HW_BRANCH_PREDICTOR__IS_ACTIVE = HwGeneralPackage.HW_RESOURCE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int HW_BRANCH_PREDICTOR__BASE_PROPERTY = HwGeneralPackage.HW_RESOURCE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int HW_BRANCH_PREDICTOR__BASE_INSTANCE_SPECIFICATION = HwGeneralPackage.HW_RESOURCE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int HW_BRANCH_PREDICTOR__BASE_CLASSIFIER = HwGeneralPackage.HW_RESOURCE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int HW_BRANCH_PREDICTOR__BASE_LIFELINE = HwGeneralPackage.HW_RESOURCE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int HW_BRANCH_PREDICTOR__BASE_CONNECTABLE_ELEMENT = HwGeneralPackage.HW_RESOURCE__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int HW_BRANCH_PREDICTOR__DESCRIPTION = HwGeneralPackage.HW_RESOURCE__DESCRIPTION; + + /** + * The feature id for the 'PHW Services' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_BRANCH_PREDICTOR__PHW_SERVICES = HwGeneralPackage.HW_RESOURCE__PHW_SERVICES; + + /** + * The feature id for the 'RHW Services' reference list. + * + * + * @generated + * @ordered + */ + int HW_BRANCH_PREDICTOR__RHW_SERVICES = HwGeneralPackage.HW_RESOURCE__RHW_SERVICES; + + /** + * The feature id for the 'Owned HW' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_BRANCH_PREDICTOR__OWNED_HW = HwGeneralPackage.HW_RESOURCE__OWNED_HW; + + /** + * The feature id for the 'End Points' reference list. + * + * + * @generated + * @ordered + */ + int HW_BRANCH_PREDICTOR__END_POINTS = HwGeneralPackage.HW_RESOURCE__END_POINTS; + + /** + * The feature id for the 'Frequency' attribute. + * + * + * @generated + * @ordered + */ + int HW_BRANCH_PREDICTOR__FREQUENCY = HwGeneralPackage.HW_RESOURCE__FREQUENCY; + + /** + * The number of structural features of the 'Hw Branch Predictor' class. + * + * + * @generated + * @ordered + */ + int HW_BRANCH_PREDICTOR_FEATURE_COUNT = HwGeneralPackage.HW_RESOURCE_FEATURE_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwASICImpl Hw ASIC}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwASICImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwComputingPackageImpl#getHwASIC() + * @generated + */ + int HW_ASIC = 4; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int HW_ASIC__RES_MULT = HW_COMPUTING_RESOURCE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int HW_ASIC__IS_PROTECTED = HW_COMPUTING_RESOURCE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int HW_ASIC__IS_ACTIVE = HW_COMPUTING_RESOURCE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int HW_ASIC__BASE_PROPERTY = HW_COMPUTING_RESOURCE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int HW_ASIC__BASE_INSTANCE_SPECIFICATION = HW_COMPUTING_RESOURCE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int HW_ASIC__BASE_CLASSIFIER = HW_COMPUTING_RESOURCE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int HW_ASIC__BASE_LIFELINE = HW_COMPUTING_RESOURCE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int HW_ASIC__BASE_CONNECTABLE_ELEMENT = HW_COMPUTING_RESOURCE__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int HW_ASIC__DESCRIPTION = HW_COMPUTING_RESOURCE__DESCRIPTION; + + /** + * The feature id for the 'PHW Services' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_ASIC__PHW_SERVICES = HW_COMPUTING_RESOURCE__PHW_SERVICES; + + /** + * The feature id for the 'RHW Services' reference list. + * + * + * @generated + * @ordered + */ + int HW_ASIC__RHW_SERVICES = HW_COMPUTING_RESOURCE__RHW_SERVICES; + + /** + * The feature id for the 'Owned HW' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_ASIC__OWNED_HW = HW_COMPUTING_RESOURCE__OWNED_HW; + + /** + * The feature id for the 'End Points' reference list. + * + * + * @generated + * @ordered + */ + int HW_ASIC__END_POINTS = HW_COMPUTING_RESOURCE__END_POINTS; + + /** + * The feature id for the 'Frequency' attribute. + * + * + * @generated + * @ordered + */ + int HW_ASIC__FREQUENCY = HW_COMPUTING_RESOURCE__FREQUENCY; + + /** + * The feature id for the 'Speed Factor' attribute. + * + * + * @generated + * @ordered + */ + int HW_ASIC__SPEED_FACTOR = HW_COMPUTING_RESOURCE__SPEED_FACTOR; + + /** + * The feature id for the 'Main Scheduler' reference. + * + * + * @generated + * @ordered + */ + int HW_ASIC__MAIN_SCHEDULER = HW_COMPUTING_RESOURCE__MAIN_SCHEDULER; + + /** + * The feature id for the 'Op Frequencies' attribute. + * + * + * @generated + * @ordered + */ + int HW_ASIC__OP_FREQUENCIES = HW_COMPUTING_RESOURCE__OP_FREQUENCIES; + + /** + * The number of structural features of the 'Hw ASIC' class. + * + * + * @generated + * @ordered + */ + int HW_ASIC_FEATURE_COUNT = HW_COMPUTING_RESOURCE_FEATURE_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwPLDImpl Hw PLD}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwPLDImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwComputingPackageImpl#getHwPLD() + * @generated + */ + int HW_PLD = 5; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int HW_PLD__RES_MULT = HW_COMPUTING_RESOURCE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int HW_PLD__IS_PROTECTED = HW_COMPUTING_RESOURCE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int HW_PLD__IS_ACTIVE = HW_COMPUTING_RESOURCE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int HW_PLD__BASE_PROPERTY = HW_COMPUTING_RESOURCE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int HW_PLD__BASE_INSTANCE_SPECIFICATION = HW_COMPUTING_RESOURCE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int HW_PLD__BASE_CLASSIFIER = HW_COMPUTING_RESOURCE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int HW_PLD__BASE_LIFELINE = HW_COMPUTING_RESOURCE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int HW_PLD__BASE_CONNECTABLE_ELEMENT = HW_COMPUTING_RESOURCE__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int HW_PLD__DESCRIPTION = HW_COMPUTING_RESOURCE__DESCRIPTION; + + /** + * The feature id for the 'PHW Services' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_PLD__PHW_SERVICES = HW_COMPUTING_RESOURCE__PHW_SERVICES; + + /** + * The feature id for the 'RHW Services' reference list. + * + * + * @generated + * @ordered + */ + int HW_PLD__RHW_SERVICES = HW_COMPUTING_RESOURCE__RHW_SERVICES; + + /** + * The feature id for the 'Owned HW' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_PLD__OWNED_HW = HW_COMPUTING_RESOURCE__OWNED_HW; + + /** + * The feature id for the 'End Points' reference list. + * + * + * @generated + * @ordered + */ + int HW_PLD__END_POINTS = HW_COMPUTING_RESOURCE__END_POINTS; + + /** + * The feature id for the 'Frequency' attribute. + * + * + * @generated + * @ordered + */ + int HW_PLD__FREQUENCY = HW_COMPUTING_RESOURCE__FREQUENCY; + + /** + * The feature id for the 'Speed Factor' attribute. + * + * + * @generated + * @ordered + */ + int HW_PLD__SPEED_FACTOR = HW_COMPUTING_RESOURCE__SPEED_FACTOR; + + /** + * The feature id for the 'Main Scheduler' reference. + * + * + * @generated + * @ordered + */ + int HW_PLD__MAIN_SCHEDULER = HW_COMPUTING_RESOURCE__MAIN_SCHEDULER; + + /** + * The feature id for the 'Op Frequencies' attribute. + * + * + * @generated + * @ordered + */ + int HW_PLD__OP_FREQUENCIES = HW_COMPUTING_RESOURCE__OP_FREQUENCIES; + + /** + * The feature id for the 'Technology' attribute. + * + * + * @generated + * @ordered + */ + int HW_PLD__TECHNOLOGY = HW_COMPUTING_RESOURCE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Organization' attribute. + * + * + * @generated + * @ordered + */ + int HW_PLD__ORGANIZATION = HW_COMPUTING_RESOURCE_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Nb LU Ts' attribute. + * + * + * @generated + * @ordered + */ + int HW_PLD__NB_LU_TS = HW_COMPUTING_RESOURCE_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Nd LUT Inputs' attribute. + * + * + * @generated + * @ordered + */ + int HW_PLD__ND_LUT_INPUTS = HW_COMPUTING_RESOURCE_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Nb Flip Flops' attribute. + * + * + * @generated + * @ordered + */ + int HW_PLD__NB_FLIP_FLOPS = HW_COMPUTING_RESOURCE_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Blocks RAM' reference list. + * + * + * @generated + * @ordered + */ + int HW_PLD__BLOCKS_RAM = HW_COMPUTING_RESOURCE_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Blocks Computing' reference list. + * + * + * @generated + * @ordered + */ + int HW_PLD__BLOCKS_COMPUTING = HW_COMPUTING_RESOURCE_FEATURE_COUNT + 6; + + /** + * The number of structural features of the 'Hw PLD' class. + * + * + * @generated + * @ordered + */ + int HW_PLD_FEATURE_COUNT = HW_COMPUTING_RESOURCE_FEATURE_COUNT + 7; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.ISA_Type ISA Type}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.ISA_Type + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwComputingPackageImpl#getISA_Type() + * @generated + */ + int ISA_TYPE = 6; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.PLD_Technology PLD Technology}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.PLD_Technology + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwComputingPackageImpl#getPLD_Technology() + * @generated + */ + int PLD_TECHNOLOGY = 7; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.PLD_Class PLD Class}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.PLD_Class + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwComputingPackageImpl#getPLD_Class() + * @generated + */ + int PLD_CLASS = 8; + + /** + * The meta object id for the 'PLD Organization' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwComputingPackageImpl#getPLD_Organization() + * @generated + */ + int PLD_ORGANIZATION = 9; + + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor Hw Processor}'. + * + * + * @return the meta object for class 'Hw Processor'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor + * @generated + */ + EClass getHwProcessor(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor#getArchitecture Architecture}'. + * + * + * @return the meta object for the attribute 'Architecture'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor#getArchitecture() + * @see #getHwProcessor() + * @generated + */ + EAttribute getHwProcessor_Architecture(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor#getMips Mips}'. + * + * + * @return the meta object for the attribute 'Mips'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor#getMips() + * @see #getHwProcessor() + * @generated + */ + EAttribute getHwProcessor_Mips(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor#getIpc Ipc}'. + * + * + * @return the meta object for the attribute 'Ipc'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor#getIpc() + * @see #getHwProcessor() + * @generated + */ + EAttribute getHwProcessor_Ipc(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor#getNbCores Nb Cores}'. + * + * + * @return the meta object for the attribute 'Nb Cores'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor#getNbCores() + * @see #getHwProcessor() + * @generated + */ + EAttribute getHwProcessor_NbCores(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor#getNbPipelines Nb Pipelines}'. + * + * + * @return the meta object for the attribute 'Nb Pipelines'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor#getNbPipelines() + * @see #getHwProcessor() + * @generated + */ + EAttribute getHwProcessor_NbPipelines(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor#getNbStages Nb Stages}'. + * + * + * @return the meta object for the attribute 'Nb Stages'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor#getNbStages() + * @see #getHwProcessor() + * @generated + */ + EAttribute getHwProcessor_NbStages(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor#getNbALUs Nb AL Us}'. + * + * + * @return the meta object for the attribute 'Nb AL Us'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor#getNbALUs() + * @see #getHwProcessor() + * @generated + */ + EAttribute getHwProcessor_NbALUs(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor#getNbFPUs Nb FP Us}'. + * + * + * @return the meta object for the attribute 'Nb FP Us'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor#getNbFPUs() + * @see #getHwProcessor() + * @generated + */ + EAttribute getHwProcessor_NbFPUs(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor#getOwnedISAs Owned IS As}'. + * + * + * @return the meta object for the reference list 'Owned IS As'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor#getOwnedISAs() + * @see #getHwProcessor() + * @generated + */ + EReference getHwProcessor_OwnedISAs(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor#getPredictors Predictors}'. + * + * + * @return the meta object for the reference list 'Predictors'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor#getPredictors() + * @see #getHwProcessor() + * @generated + */ + EReference getHwProcessor_Predictors(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor#getCaches Caches}'. + * + * + * @return the meta object for the reference list 'Caches'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor#getCaches() + * @see #getHwProcessor() + * @generated + */ + EReference getHwProcessor_Caches(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor#getOwnedMMUs Owned MM Us}'. + * + * + * @return the meta object for the reference list 'Owned MM Us'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor#getOwnedMMUs() + * @see #getHwProcessor() + * @generated + */ + EReference getHwProcessor_OwnedMMUs(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingResource Resource}'. + * + * + * @return the meta object for class 'Resource'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingResource + * @generated + */ + EClass getHwComputingResource(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingResource#getOp_Frequencies Op Frequencies}'. + * + * + * @return the meta object for the attribute 'Op Frequencies'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingResource#getOp_Frequencies() + * @see #getHwComputingResource() + * @generated + */ + EAttribute getHwComputingResource_Op_Frequencies(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwISA Hw ISA}'. + * + * + * @return the meta object for class 'Hw ISA'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwISA + * @generated + */ + EClass getHwISA(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwISA#getFamily Family}'. + * + * + * @return the meta object for the attribute 'Family'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwISA#getFamily() + * @see #getHwISA() + * @generated + */ + EAttribute getHwISA_Family(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwISA#getInst_Width Inst Width}'. + * + * + * @return the meta object for the attribute 'Inst Width'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwISA#getInst_Width() + * @see #getHwISA() + * @generated + */ + EAttribute getHwISA_Inst_Width(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwISA#getType Type}'. + * + * + * @return the meta object for the attribute 'Type'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwISA#getType() + * @see #getHwISA() + * @generated + */ + EAttribute getHwISA_Type(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwBranchPredictor Hw Branch Predictor}'. + * + * + * @return the meta object for class 'Hw Branch Predictor'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwBranchPredictor + * @generated + */ + EClass getHwBranchPredictor(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwASIC Hw ASIC}'. + * + * + * @return the meta object for class 'Hw ASIC'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwASIC + * @generated + */ + EClass getHwASIC(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwPLD Hw PLD}'. + * + * + * @return the meta object for class 'Hw PLD'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwPLD + * @generated + */ + EClass getHwPLD(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwPLD#getTechnology Technology}'. + * + * + * @return the meta object for the attribute 'Technology'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwPLD#getTechnology() + * @see #getHwPLD() + * @generated + */ + EAttribute getHwPLD_Technology(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwPLD#getOrganization Organization}'. + * + * + * @return the meta object for the attribute 'Organization'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwPLD#getOrganization() + * @see #getHwPLD() + * @generated + */ + EAttribute getHwPLD_Organization(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwPLD#getNbLUTs Nb LU Ts}'. + * + * + * @return the meta object for the attribute 'Nb LU Ts'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwPLD#getNbLUTs() + * @see #getHwPLD() + * @generated + */ + EAttribute getHwPLD_NbLUTs(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwPLD#getNdLUT_Inputs Nd LUT Inputs}'. + * + * + * @return the meta object for the attribute 'Nd LUT Inputs'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwPLD#getNdLUT_Inputs() + * @see #getHwPLD() + * @generated + */ + EAttribute getHwPLD_NdLUT_Inputs(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwPLD#getNbFlipFlops Nb Flip Flops}'. + * + * + * @return the meta object for the attribute 'Nb Flip Flops'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwPLD#getNbFlipFlops() + * @see #getHwPLD() + * @generated + */ + EAttribute getHwPLD_NbFlipFlops(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwPLD#getBlocksRAM Blocks RAM}'. + * + * + * @return the meta object for the reference list 'Blocks RAM'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwPLD#getBlocksRAM() + * @see #getHwPLD() + * @generated + */ + EReference getHwPLD_BlocksRAM(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwPLD#getBlocksComputing Blocks Computing}'. + * + * + * @return the meta object for the reference list 'Blocks Computing'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwPLD#getBlocksComputing() + * @see #getHwPLD() + * @generated + */ + EReference getHwPLD_BlocksComputing(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.ISA_Type ISA Type}'. + * + * + * @return the meta object for enum 'ISA Type'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.ISA_Type + * @generated + */ + EEnum getISA_Type(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.PLD_Technology PLD Technology}'. + * + * + * @return the meta object for enum 'PLD Technology'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.PLD_Technology + * @generated + */ + EEnum getPLD_Technology(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.PLD_Class PLD Class}'. + * + * + * @return the meta object for enum 'PLD Class'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.PLD_Class + * @generated + */ + EEnum getPLD_Class(); + + /** + * Returns the meta object for data type '{@link java.lang.String PLD Organization}'. + * + * + * @return the meta object for data type 'PLD Organization'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getPLD_Organization(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + HwComputingFactory getHwComputingFactory(); + + /** + * + * 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.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwProcessorImpl Hw Processor}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwProcessorImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwComputingPackageImpl#getHwProcessor() + * @generated + */ + EClass HW_PROCESSOR = eINSTANCE.getHwProcessor(); + + /** + * The meta object literal for the 'Architecture' attribute feature. + * + * + * @generated + */ + EAttribute HW_PROCESSOR__ARCHITECTURE = eINSTANCE.getHwProcessor_Architecture(); + + /** + * The meta object literal for the 'Mips' attribute feature. + * + * + * @generated + */ + EAttribute HW_PROCESSOR__MIPS = eINSTANCE.getHwProcessor_Mips(); + + /** + * The meta object literal for the 'Ipc' attribute feature. + * + * + * @generated + */ + EAttribute HW_PROCESSOR__IPC = eINSTANCE.getHwProcessor_Ipc(); + + /** + * The meta object literal for the 'Nb Cores' attribute feature. + * + * + * @generated + */ + EAttribute HW_PROCESSOR__NB_CORES = eINSTANCE.getHwProcessor_NbCores(); + + /** + * The meta object literal for the 'Nb Pipelines' attribute feature. + * + * + * @generated + */ + EAttribute HW_PROCESSOR__NB_PIPELINES = eINSTANCE.getHwProcessor_NbPipelines(); + + /** + * The meta object literal for the 'Nb Stages' attribute feature. + * + * + * @generated + */ + EAttribute HW_PROCESSOR__NB_STAGES = eINSTANCE.getHwProcessor_NbStages(); + + /** + * The meta object literal for the 'Nb AL Us' attribute feature. + * + * + * @generated + */ + EAttribute HW_PROCESSOR__NB_AL_US = eINSTANCE.getHwProcessor_NbALUs(); + + /** + * The meta object literal for the 'Nb FP Us' attribute feature. + * + * + * @generated + */ + EAttribute HW_PROCESSOR__NB_FP_US = eINSTANCE.getHwProcessor_NbFPUs(); + + /** + * The meta object literal for the 'Owned IS As' reference list feature. + * + * + * @generated + */ + EReference HW_PROCESSOR__OWNED_IS_AS = eINSTANCE.getHwProcessor_OwnedISAs(); + + /** + * The meta object literal for the 'Predictors' reference list feature. + * + * + * @generated + */ + EReference HW_PROCESSOR__PREDICTORS = eINSTANCE.getHwProcessor_Predictors(); + + /** + * The meta object literal for the 'Caches' reference list feature. + * + * + * @generated + */ + EReference HW_PROCESSOR__CACHES = eINSTANCE.getHwProcessor_Caches(); + + /** + * The meta object literal for the 'Owned MM Us' reference list feature. + * + * + * @generated + */ + EReference HW_PROCESSOR__OWNED_MM_US = eINSTANCE.getHwProcessor_OwnedMMUs(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwComputingResourceImpl Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwComputingResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwComputingPackageImpl#getHwComputingResource() + * @generated + */ + EClass HW_COMPUTING_RESOURCE = eINSTANCE.getHwComputingResource(); + + /** + * The meta object literal for the 'Op Frequencies' attribute feature. + * + * + * @generated + */ + EAttribute HW_COMPUTING_RESOURCE__OP_FREQUENCIES = eINSTANCE.getHwComputingResource_Op_Frequencies(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwISAImpl Hw ISA}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwISAImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwComputingPackageImpl#getHwISA() + * @generated + */ + EClass HW_ISA = eINSTANCE.getHwISA(); + + /** + * The meta object literal for the 'Family' attribute feature. + * + * + * @generated + */ + EAttribute HW_ISA__FAMILY = eINSTANCE.getHwISA_Family(); + + /** + * The meta object literal for the 'Inst Width' attribute feature. + * + * + * @generated + */ + EAttribute HW_ISA__INST_WIDTH = eINSTANCE.getHwISA_Inst_Width(); + + /** + * The meta object literal for the 'Type' attribute feature. + * + * + * @generated + */ + EAttribute HW_ISA__TYPE = eINSTANCE.getHwISA_Type(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwBranchPredictorImpl Hw Branch Predictor}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwBranchPredictorImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwComputingPackageImpl#getHwBranchPredictor() + * @generated + */ + EClass HW_BRANCH_PREDICTOR = eINSTANCE.getHwBranchPredictor(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwASICImpl Hw ASIC}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwASICImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwComputingPackageImpl#getHwASIC() + * @generated + */ + EClass HW_ASIC = eINSTANCE.getHwASIC(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwPLDImpl Hw PLD}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwPLDImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwComputingPackageImpl#getHwPLD() + * @generated + */ + EClass HW_PLD = eINSTANCE.getHwPLD(); + + /** + * The meta object literal for the 'Technology' attribute feature. + * + * + * @generated + */ + EAttribute HW_PLD__TECHNOLOGY = eINSTANCE.getHwPLD_Technology(); + + /** + * The meta object literal for the 'Organization' attribute feature. + * + * + * @generated + */ + EAttribute HW_PLD__ORGANIZATION = eINSTANCE.getHwPLD_Organization(); + + /** + * The meta object literal for the 'Nb LU Ts' attribute feature. + * + * + * @generated + */ + EAttribute HW_PLD__NB_LU_TS = eINSTANCE.getHwPLD_NbLUTs(); + + /** + * The meta object literal for the 'Nd LUT Inputs' attribute feature. + * + * + * @generated + */ + EAttribute HW_PLD__ND_LUT_INPUTS = eINSTANCE.getHwPLD_NdLUT_Inputs(); + + /** + * The meta object literal for the 'Nb Flip Flops' attribute feature. + * + * + * @generated + */ + EAttribute HW_PLD__NB_FLIP_FLOPS = eINSTANCE.getHwPLD_NbFlipFlops(); + + /** + * The meta object literal for the 'Blocks RAM' reference list feature. + * + * + * @generated + */ + EReference HW_PLD__BLOCKS_RAM = eINSTANCE.getHwPLD_BlocksRAM(); + + /** + * The meta object literal for the 'Blocks Computing' reference list feature. + * + * + * @generated + */ + EReference HW_PLD__BLOCKS_COMPUTING = eINSTANCE.getHwPLD_BlocksComputing(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.ISA_Type ISA Type}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.ISA_Type + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwComputingPackageImpl#getISA_Type() + * @generated + */ + EEnum ISA_TYPE = eINSTANCE.getISA_Type(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.PLD_Technology PLD Technology}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.PLD_Technology + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwComputingPackageImpl#getPLD_Technology() + * @generated + */ + EEnum PLD_TECHNOLOGY = eINSTANCE.getPLD_Technology(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.PLD_Class PLD Class}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.PLD_Class + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwComputingPackageImpl#getPLD_Class() + * @generated + */ + EEnum PLD_CLASS = eINSTANCE.getPLD_Class(); + + /** + * The meta object literal for the 'PLD Organization' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwComputingPackageImpl#getPLD_Organization() + * @generated + */ + EDataType PLD_ORGANIZATION = eINSTANCE.getPLD_Organization(); + + } + +} //HwComputingPackage diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/HwComputingResource.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/HwComputingResource.java new file mode 100644 index 00000000000..59c3b891929 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/HwComputingResource.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.MARTE_DesignModel.HRM.HwLogical.HwComputing; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ComputingResource; + +/** + * + * A representation of the model object 'Resource'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingResource#getOp_Frequencies Op Frequencies}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingPackage#getHwComputingResource() + * @model + * @generated + */ +public interface HwComputingResource extends HwResource, ComputingResource { + /** + * Returns the value of the 'Op Frequencies' attribute. + * + *

+ * If the meaning of the 'Op Frequencies' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Op Frequencies' attribute. + * @see #setOp_Frequencies(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingPackage#getHwComputingResource_Op_Frequencies() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.NFP_FrequencyInterval" ordered="false" + * @generated + */ + String getOp_Frequencies(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingResource#getOp_Frequencies Op Frequencies}' attribute. + * + * + * @param value the new value of the 'Op Frequencies' attribute. + * @see #getOp_Frequencies() + * @generated + */ + void setOp_Frequencies(String value); + +} // HwComputingResource diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/HwISA.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/HwISA.java new file mode 100644 index 00000000000..3e6f1b358a3 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/HwISA.java @@ -0,0 +1,118 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwComputing; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource; + +/** + * + * A representation of the model object 'Hw ISA'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwISA#getFamily Family}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwISA#getInst_Width Inst Width}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwISA#getType Type}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingPackage#getHwISA() + * @model + * @generated + */ +public interface HwISA extends HwResource { + /** + * Returns the value of the 'Family' attribute. + * + *

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

+ * + * @return the value of the 'Family' attribute. + * @see #setFamily(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingPackage#getHwISA_Family() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_String" ordered="false" + * @generated + */ + String getFamily(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwISA#getFamily Family}' attribute. + * + * + * @param value the new value of the 'Family' attribute. + * @see #getFamily() + * @generated + */ + void setFamily(String value); + + /** + * Returns the value of the 'Inst Width' attribute. + * + *

+ * If the meaning of the 'Inst Width' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Inst Width' attribute. + * @see #setInst_Width(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingPackage#getHwISA_Inst_Width() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_DataSize" ordered="false" + * @generated + */ + String getInst_Width(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwISA#getInst_Width Inst Width}' attribute. + * + * + * @param value the new value of the 'Inst Width' attribute. + * @see #getInst_Width() + * @generated + */ + void setInst_Width(String value); + + /** + * Returns the value of the 'Type' attribute. + * The literals are from the enumeration {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.ISA_Type}. + * + *

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

+ * + * @return the value of the 'Type' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.ISA_Type + * @see #setType(ISA_Type) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingPackage#getHwISA_Type() + * @model unique="false" ordered="false" + * @generated + */ + ISA_Type getType(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwISA#getType Type}' attribute. + * + * + * @param value the new value of the 'Type' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.ISA_Type + * @see #getType() + * @generated + */ + void setType(ISA_Type value); + +} // HwISA diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/HwPLD.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/HwPLD.java new file mode 100644 index 00000000000..aac333517ec --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/HwPLD.java @@ -0,0 +1,208 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwComputing; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwRAM; + +/** + * + * A representation of the model object 'Hw PLD'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwPLD#getTechnology Technology}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwPLD#getOrganization Organization}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwPLD#getNbLUTs Nb LU Ts}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwPLD#getNdLUT_Inputs Nd LUT Inputs}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwPLD#getNbFlipFlops Nb Flip Flops}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwPLD#getBlocksRAM Blocks RAM}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwPLD#getBlocksComputing Blocks Computing}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingPackage#getHwPLD() + * @model + * @generated + */ +public interface HwPLD extends HwComputingResource { + /** + * Returns the value of the 'Technology' attribute. + * The literals are from the enumeration {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.PLD_Technology}. + * + *

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

+ * + * @return the value of the 'Technology' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.PLD_Technology + * @see #setTechnology(PLD_Technology) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingPackage#getHwPLD_Technology() + * @model unique="false" ordered="false" + * @generated + */ + PLD_Technology getTechnology(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwPLD#getTechnology Technology}' attribute. + * + * + * @param value the new value of the 'Technology' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.PLD_Technology + * @see #getTechnology() + * @generated + */ + void setTechnology(PLD_Technology value); + + /** + * Returns the value of the 'Organization' attribute. + * + *

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

+ * + * @return the value of the 'Organization' attribute. + * @see #setOrganization(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingPackage#getHwPLD_Organization() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.PLD_Organization" ordered="false" + * @generated + */ + String getOrganization(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwPLD#getOrganization Organization}' attribute. + * + * + * @param value the new value of the 'Organization' attribute. + * @see #getOrganization() + * @generated + */ + void setOrganization(String value); + + /** + * Returns the value of the 'Nb LU Ts' attribute. + * + *

+ * If the meaning of the 'Nb LU Ts' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Nb LU Ts' attribute. + * @see #setNbLUTs(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingPackage#getHwPLD_NbLUTs() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Natural" ordered="false" + * @generated + */ + String getNbLUTs(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwPLD#getNbLUTs Nb LU Ts}' attribute. + * + * + * @param value the new value of the 'Nb LU Ts' attribute. + * @see #getNbLUTs() + * @generated + */ + void setNbLUTs(String value); + + /** + * Returns the value of the 'Nd LUT Inputs' attribute. + * + *

+ * If the meaning of the 'Nd LUT Inputs' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Nd LUT Inputs' attribute. + * @see #setNdLUT_Inputs(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingPackage#getHwPLD_NdLUT_Inputs() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Natural" ordered="false" + * @generated + */ + String getNdLUT_Inputs(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwPLD#getNdLUT_Inputs Nd LUT Inputs}' attribute. + * + * + * @param value the new value of the 'Nd LUT Inputs' attribute. + * @see #getNdLUT_Inputs() + * @generated + */ + void setNdLUT_Inputs(String value); + + /** + * Returns the value of the 'Nb Flip Flops' attribute. + * + *

+ * If the meaning of the 'Nb Flip Flops' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Nb Flip Flops' attribute. + * @see #setNbFlipFlops(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingPackage#getHwPLD_NbFlipFlops() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Natural" ordered="false" + * @generated + */ + String getNbFlipFlops(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwPLD#getNbFlipFlops Nb Flip Flops}' attribute. + * + * + * @param value the new value of the 'Nb Flip Flops' attribute. + * @see #getNbFlipFlops() + * @generated + */ + void setNbFlipFlops(String value); + + /** + * Returns the value of the 'Blocks RAM' reference list. + * The list contents are of type {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwRAM}. + * + *

+ * If the meaning of the 'Blocks RAM' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Blocks RAM' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingPackage#getHwPLD_BlocksRAM() + * @model ordered="false" + * @generated + */ + EList getBlocksRAM(); + + /** + * Returns the value of the 'Blocks Computing' reference list. + * The list contents are of type {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingResource}. + * + *

+ * If the meaning of the 'Blocks Computing' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Blocks Computing' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingPackage#getHwPLD_BlocksComputing() + * @model ordered="false" + * @generated + */ + EList getBlocksComputing(); + +} // HwPLD diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/HwProcessor.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/HwProcessor.java new file mode 100644 index 00000000000..50d2b065159 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/HwProcessor.java @@ -0,0 +1,322 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwComputing; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwCache; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwMMU; + +/** + * + * A representation of the model object 'Hw Processor'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor#getArchitecture Architecture}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor#getMips Mips}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor#getIpc Ipc}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor#getNbCores Nb Cores}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor#getNbPipelines Nb Pipelines}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor#getNbStages Nb Stages}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor#getNbALUs Nb AL Us}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor#getNbFPUs Nb FP Us}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor#getOwnedISAs Owned IS As}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor#getPredictors Predictors}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor#getCaches Caches}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor#getOwnedMMUs Owned MM Us}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingPackage#getHwProcessor() + * @model + * @generated + */ +public interface HwProcessor extends HwComputingResource { + /** + * Returns the value of the 'Architecture' attribute. + * + *

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

+ * + * @return the value of the 'Architecture' attribute. + * @see #setArchitecture(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingPackage#getHwProcessor_Architecture() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_DataSize" volatile="true" derived="true" ordered="false" + * @generated + */ + String getArchitecture(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor#getArchitecture Architecture}' attribute. + * + * + * @param value the new value of the 'Architecture' attribute. + * @see #getArchitecture() + * @generated + */ + void setArchitecture(String value); + + /** + * Returns the value of the 'Mips' attribute. + * + *

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

+ * + * @return the value of the 'Mips' attribute. + * @see #setMips(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingPackage#getHwProcessor_Mips() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Natural" ordered="false" + * @generated + */ + String getMips(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor#getMips Mips}' attribute. + * + * + * @param value the new value of the 'Mips' attribute. + * @see #getMips() + * @generated + */ + void setMips(String value); + + /** + * Returns the value of the 'Ipc' attribute. + * + *

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

+ * + * @return the value of the 'Ipc' attribute. + * @see #setIpc(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingPackage#getHwProcessor_Ipc() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Real" volatile="true" derived="true" ordered="false" + * @generated + */ + String getIpc(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor#getIpc Ipc}' attribute. + * + * + * @param value the new value of the 'Ipc' attribute. + * @see #getIpc() + * @generated + */ + void setIpc(String value); + + /** + * Returns the value of the 'Nb Cores' attribute. + * + *

+ * If the meaning of the 'Nb Cores' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Nb Cores' attribute. + * @see #setNbCores(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingPackage#getHwProcessor_NbCores() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Natural" ordered="false" + * @generated + */ + String getNbCores(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor#getNbCores Nb Cores}' attribute. + * + * + * @param value the new value of the 'Nb Cores' attribute. + * @see #getNbCores() + * @generated + */ + void setNbCores(String value); + + /** + * Returns the value of the 'Nb Pipelines' attribute. + * + *

+ * If the meaning of the 'Nb Pipelines' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Nb Pipelines' attribute. + * @see #setNbPipelines(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingPackage#getHwProcessor_NbPipelines() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Natural" ordered="false" + * @generated + */ + String getNbPipelines(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor#getNbPipelines Nb Pipelines}' attribute. + * + * + * @param value the new value of the 'Nb Pipelines' attribute. + * @see #getNbPipelines() + * @generated + */ + void setNbPipelines(String value); + + /** + * Returns the value of the 'Nb Stages' attribute. + * + *

+ * If the meaning of the 'Nb Stages' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Nb Stages' attribute. + * @see #setNbStages(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingPackage#getHwProcessor_NbStages() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Natural" ordered="false" + * @generated + */ + String getNbStages(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor#getNbStages Nb Stages}' attribute. + * + * + * @param value the new value of the 'Nb Stages' attribute. + * @see #getNbStages() + * @generated + */ + void setNbStages(String value); + + /** + * Returns the value of the 'Nb AL Us' attribute. + * + *

+ * If the meaning of the 'Nb AL Us' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Nb AL Us' attribute. + * @see #setNbALUs(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingPackage#getHwProcessor_NbALUs() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Natural" ordered="false" + * @generated + */ + String getNbALUs(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor#getNbALUs Nb AL Us}' attribute. + * + * + * @param value the new value of the 'Nb AL Us' attribute. + * @see #getNbALUs() + * @generated + */ + void setNbALUs(String value); + + /** + * Returns the value of the 'Nb FP Us' attribute. + * + *

+ * If the meaning of the 'Nb FP Us' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Nb FP Us' attribute. + * @see #setNbFPUs(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingPackage#getHwProcessor_NbFPUs() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Natural" ordered="false" + * @generated + */ + String getNbFPUs(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor#getNbFPUs Nb FP Us}' attribute. + * + * + * @param value the new value of the 'Nb FP Us' attribute. + * @see #getNbFPUs() + * @generated + */ + void setNbFPUs(String value); + + /** + * Returns the value of the 'Owned IS As' reference list. + * The list contents are of type {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwISA}. + * + *

+ * If the meaning of the 'Owned IS As' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Owned IS As' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingPackage#getHwProcessor_OwnedISAs() + * @model ordered="false" + * @generated + */ + EList getOwnedISAs(); + + /** + * Returns the value of the 'Predictors' reference list. + * The list contents are of type {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwBranchPredictor}. + * + *

+ * If the meaning of the 'Predictors' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Predictors' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingPackage#getHwProcessor_Predictors() + * @model ordered="false" + * @generated + */ + EList getPredictors(); + + /** + * Returns the value of the 'Caches' reference list. + * The list contents are of type {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwCache}. + * + *

+ * If the meaning of the 'Caches' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Caches' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingPackage#getHwProcessor_Caches() + * @model ordered="false" + * @generated + */ + EList getCaches(); + + /** + * Returns the value of the 'Owned MM Us' reference list. + * The list contents are of type {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwMMU}. + * + *

+ * If the meaning of the 'Owned MM Us' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Owned MM Us' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingPackage#getHwProcessor_OwnedMMUs() + * @model ordered="false" + * @generated + */ + EList getOwnedMMUs(); + +} // HwProcessor diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/ISA_Type.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/ISA_Type.java new file mode 100644 index 00000000000..40437ff19e0 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/ISA_Type.java @@ -0,0 +1,327 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwComputing; + +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 'ISA Type', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingPackage#getISA_Type() + * @model + * @generated + */ +public enum ISA_Type implements Enumerator { + /** + * The 'RISC' literal object. + * + * + * @see #RISC_VALUE + * @generated + * @ordered + */ + RISC(0, "RISC", "RISC"), + + /** + * The 'CISC' literal object. + * + * + * @see #CISC_VALUE + * @generated + * @ordered + */ + CISC(1, "CISC", "CISC"), + + /** + * The 'VLIW' literal object. + * + * + * @see #VLIW_VALUE + * @generated + * @ordered + */ + VLIW(2, "VLIW", "VLIW"), + + /** + * The 'SIMD' literal object. + * + * + * @see #SIMD_VALUE + * @generated + * @ordered + */ + SIMD(3, "SIMD", "SIMD"), + + /** + * The 'Other' literal object. + * + * + * @see #OTHER_VALUE + * @generated + * @ordered + */ + OTHER(4, "other", "other"), + + /** + * The 'Undef' literal object. + * + * + * @see #UNDEF_VALUE + * @generated + * @ordered + */ + UNDEF(5, "undef", "undef"); + + /** + * The 'RISC' literal value. + * + *

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

+ * + * @see #RISC + * @model + * @generated + * @ordered + */ + public static final int RISC_VALUE = 0; + + /** + * The 'CISC' literal value. + * + *

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

+ * + * @see #CISC + * @model + * @generated + * @ordered + */ + public static final int CISC_VALUE = 1; + + /** + * The 'VLIW' literal value. + * + *

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

+ * + * @see #VLIW + * @model + * @generated + * @ordered + */ + public static final int VLIW_VALUE = 2; + + /** + * The 'SIMD' literal value. + * + *

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

+ * + * @see #SIMD + * @model + * @generated + * @ordered + */ + public static final int SIMD_VALUE = 3; + + /** + * 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 = 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; + + /** + * An array of all the 'ISA Type' enumerators. + * + * + * @generated + */ + private static final ISA_Type[] VALUES_ARRAY = + new ISA_Type[] { + RISC, + CISC, + VLIW, + SIMD, + OTHER, + UNDEF, + }; + + /** + * A public read-only list of all the 'ISA Type' enumerators. + * + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'ISA Type' literal with the specified literal value. + * + * + * @generated + */ + public static ISA_Type get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + ISA_Type result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'ISA Type' literal with the specified name. + * + * + * @generated + */ + public static ISA_Type getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + ISA_Type result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'ISA Type' literal with the specified integer value. + * + * + * @generated + */ + public static ISA_Type get(int value) { + switch (value) { + case RISC_VALUE: return RISC; + case CISC_VALUE: return CISC; + case VLIW_VALUE: return VLIW; + case SIMD_VALUE: return SIMD; + case OTHER_VALUE: return OTHER; + case UNDEF_VALUE: return UNDEF; + } + 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 ISA_Type(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; + } + +} //ISA_Type diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/PLD_Class.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/PLD_Class.java new file mode 100644 index 00000000000..3a1a1a21fd8 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/PLD_Class.java @@ -0,0 +1,327 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwComputing; + +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 'PLD Class', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingPackage#getPLD_Class() + * @model + * @generated + */ +public enum PLD_Class implements Enumerator { + /** + * The 'Symetrical Array' literal object. + * + * + * @see #SYMETRICAL_ARRAY_VALUE + * @generated + * @ordered + */ + SYMETRICAL_ARRAY(0, "symetricalArray", "symetricalArray"), + + /** + * The 'Row Based' literal object. + * + * + * @see #ROW_BASED_VALUE + * @generated + * @ordered + */ + ROW_BASED(1, "rowBased", "rowBased"), + + /** + * The 'Sea Of Gates' literal object. + * + * + * @see #SEA_OF_GATES_VALUE + * @generated + * @ordered + */ + SEA_OF_GATES(2, "seaOfGates", "seaOfGates"), + + /** + * The 'Hierarchical PLD' literal object. + * + * + * @see #HIERARCHICAL_PLD_VALUE + * @generated + * @ordered + */ + HIERARCHICAL_PLD(3, "hierarchicalPLD", "hierarchicalPLD"), + + /** + * The 'Other' literal object. + * + * + * @see #OTHER_VALUE + * @generated + * @ordered + */ + OTHER(4, "other", "other"), + + /** + * The 'Undef' literal object. + * + * + * @see #UNDEF_VALUE + * @generated + * @ordered + */ + UNDEF(5, "undef", "undef"); + + /** + * The 'Symetrical Array' literal value. + * + *

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

+ * + * @see #SYMETRICAL_ARRAY + * @model name="symetricalArray" + * @generated + * @ordered + */ + public static final int SYMETRICAL_ARRAY_VALUE = 0; + + /** + * The 'Row Based' literal value. + * + *

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

+ * + * @see #ROW_BASED + * @model name="rowBased" + * @generated + * @ordered + */ + public static final int ROW_BASED_VALUE = 1; + + /** + * The 'Sea Of Gates' literal value. + * + *

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

+ * + * @see #SEA_OF_GATES + * @model name="seaOfGates" + * @generated + * @ordered + */ + public static final int SEA_OF_GATES_VALUE = 2; + + /** + * The 'Hierarchical PLD' literal value. + * + *

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

+ * + * @see #HIERARCHICAL_PLD + * @model name="hierarchicalPLD" + * @generated + * @ordered + */ + public static final int HIERARCHICAL_PLD_VALUE = 3; + + /** + * 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 = 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; + + /** + * An array of all the 'PLD Class' enumerators. + * + * + * @generated + */ + private static final PLD_Class[] VALUES_ARRAY = + new PLD_Class[] { + SYMETRICAL_ARRAY, + ROW_BASED, + SEA_OF_GATES, + HIERARCHICAL_PLD, + OTHER, + UNDEF, + }; + + /** + * A public read-only list of all the 'PLD Class' enumerators. + * + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'PLD Class' literal with the specified literal value. + * + * + * @generated + */ + public static PLD_Class get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + PLD_Class result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'PLD Class' literal with the specified name. + * + * + * @generated + */ + public static PLD_Class getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + PLD_Class result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'PLD Class' literal with the specified integer value. + * + * + * @generated + */ + public static PLD_Class get(int value) { + switch (value) { + case SYMETRICAL_ARRAY_VALUE: return SYMETRICAL_ARRAY; + case ROW_BASED_VALUE: return ROW_BASED; + case SEA_OF_GATES_VALUE: return SEA_OF_GATES; + case HIERARCHICAL_PLD_VALUE: return HIERARCHICAL_PLD; + case OTHER_VALUE: return OTHER; + case UNDEF_VALUE: return UNDEF; + } + 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 PLD_Class(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; + } + +} //PLD_Class diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/PLD_Technology.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/PLD_Technology.java new file mode 100644 index 00000000000..000e0fb72a7 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/PLD_Technology.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.MARTE_DesignModel.HRM.HwLogical.HwComputing; + +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 'PLD Technology', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingPackage#getPLD_Technology() + * @model + * @generated + */ +public enum PLD_Technology implements Enumerator { + /** + * The 'SRAM' literal object. + * + * + * @see #SRAM_VALUE + * @generated + * @ordered + */ + SRAM(0, "SRAM", "SRAM"), + + /** + * The 'Antifuse' literal object. + * + * + * @see #ANTIFUSE_VALUE + * @generated + * @ordered + */ + ANTIFUSE(1, "antifuse", "antifuse"), + + /** + * The 'Flash' literal object. + * + * + * @see #FLASH_VALUE + * @generated + * @ordered + */ + FLASH(2, "flash", "flash"), + + /** + * The 'Other' literal object. + * + * + * @see #OTHER_VALUE + * @generated + * @ordered + */ + OTHER(3, "other", "other"), + + /** + * The 'Undef' literal object. + * + * + * @see #UNDEF_VALUE + * @generated + * @ordered + */ + UNDEF(4, "undef", "undef"); + + /** + * The 'SRAM' literal value. + * + *

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

+ * + * @see #SRAM + * @model + * @generated + * @ordered + */ + public static final int SRAM_VALUE = 0; + + /** + * The 'Antifuse' literal value. + * + *

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

+ * + * @see #ANTIFUSE + * @model name="antifuse" + * @generated + * @ordered + */ + public static final int ANTIFUSE_VALUE = 1; + + /** + * The 'Flash' literal value. + * + *

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

+ * + * @see #FLASH + * @model name="flash" + * @generated + * @ordered + */ + public static final int FLASH_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; + + /** + * 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 = 4; + + /** + * An array of all the 'PLD Technology' enumerators. + * + * + * @generated + */ + private static final PLD_Technology[] VALUES_ARRAY = + new PLD_Technology[] { + SRAM, + ANTIFUSE, + FLASH, + OTHER, + UNDEF, + }; + + /** + * A public read-only list of all the 'PLD Technology' enumerators. + * + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'PLD Technology' literal with the specified literal value. + * + * + * @generated + */ + public static PLD_Technology get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + PLD_Technology result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'PLD Technology' literal with the specified name. + * + * + * @generated + */ + public static PLD_Technology getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + PLD_Technology result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'PLD Technology' literal with the specified integer value. + * + * + * @generated + */ + public static PLD_Technology get(int value) { + switch (value) { + case SRAM_VALUE: return SRAM; + case ANTIFUSE_VALUE: return ANTIFUSE; + case FLASH_VALUE: return FLASH; + case OTHER_VALUE: return OTHER; + case UNDEF_VALUE: return UNDEF; + } + 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 PLD_Technology(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; + } + +} //PLD_Technology diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/impl/HwASICImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/impl/HwASICImpl.java new file mode 100644 index 00000000000..9738b474d5c --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/impl/HwASICImpl.java @@ -0,0 +1,50 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwASIC; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingPackage; + +/** + * + * An implementation of the model object 'Hw ASIC'. + * + *

+ *

+ * + * @generated + */ +public class HwASICImpl extends HwComputingResourceImpl implements HwASIC { + /** + * + * + * @generated + */ + protected HwASICImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return HwComputingPackage.Literals.HW_ASIC; + } + +} //HwASICImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/impl/HwBranchPredictorImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/impl/HwBranchPredictorImpl.java new file mode 100644 index 00000000000..f5fbe62355c --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/impl/HwBranchPredictorImpl.java @@ -0,0 +1,52 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.impl.HwResourceImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwBranchPredictor; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingPackage; + +/** + * + * An implementation of the model object 'Hw Branch Predictor'. + * + *

+ *

+ * + * @generated + */ +public class HwBranchPredictorImpl extends HwResourceImpl implements HwBranchPredictor { + /** + * + * + * @generated + */ + protected HwBranchPredictorImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return HwComputingPackage.Literals.HW_BRANCH_PREDICTOR; + } + +} //HwBranchPredictorImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/impl/HwComputingFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/impl/HwComputingFactoryImpl.java new file mode 100644 index 00000000000..b46021e6f77 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/impl/HwComputingFactoryImpl.java @@ -0,0 +1,282 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwComputing.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.MARTE_DesignModel.HRM.HwLogical.HwComputing.*; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class HwComputingFactoryImpl extends EFactoryImpl implements HwComputingFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static HwComputingFactory init() { + try { + HwComputingFactory theHwComputingFactory = (HwComputingFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/HwComputing/1"); + if (theHwComputingFactory != null) { + return theHwComputingFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new HwComputingFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public HwComputingFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case HwComputingPackage.HW_PROCESSOR: return createHwProcessor(); + case HwComputingPackage.HW_COMPUTING_RESOURCE: return createHwComputingResource(); + case HwComputingPackage.HW_ISA: return createHwISA(); + case HwComputingPackage.HW_BRANCH_PREDICTOR: return createHwBranchPredictor(); + case HwComputingPackage.HW_ASIC: return createHwASIC(); + case HwComputingPackage.HW_PLD: return createHwPLD(); + 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 HwComputingPackage.ISA_TYPE: + return createISA_TypeFromString(eDataType, initialValue); + case HwComputingPackage.PLD_TECHNOLOGY: + return createPLD_TechnologyFromString(eDataType, initialValue); + case HwComputingPackage.PLD_CLASS: + return createPLD_ClassFromString(eDataType, initialValue); + case HwComputingPackage.PLD_ORGANIZATION: + return createPLD_OrganizationFromString(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 HwComputingPackage.ISA_TYPE: + return convertISA_TypeToString(eDataType, instanceValue); + case HwComputingPackage.PLD_TECHNOLOGY: + return convertPLD_TechnologyToString(eDataType, instanceValue); + case HwComputingPackage.PLD_CLASS: + return convertPLD_ClassToString(eDataType, instanceValue); + case HwComputingPackage.PLD_ORGANIZATION: + return convertPLD_OrganizationToString(eDataType, instanceValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public HwProcessor createHwProcessor() { + HwProcessorImpl hwProcessor = new HwProcessorImpl(); + return hwProcessor; + } + + /** + * + * + * @generated + */ + public HwComputingResource createHwComputingResource() { + HwComputingResourceImpl hwComputingResource = new HwComputingResourceImpl(); + return hwComputingResource; + } + + /** + * + * + * @generated + */ + public HwISA createHwISA() { + HwISAImpl hwISA = new HwISAImpl(); + return hwISA; + } + + /** + * + * + * @generated + */ + public HwBranchPredictor createHwBranchPredictor() { + HwBranchPredictorImpl hwBranchPredictor = new HwBranchPredictorImpl(); + return hwBranchPredictor; + } + + /** + * + * + * @generated + */ + public HwASIC createHwASIC() { + HwASICImpl hwASIC = new HwASICImpl(); + return hwASIC; + } + + /** + * + * + * @generated + */ + public HwPLD createHwPLD() { + HwPLDImpl hwPLD = new HwPLDImpl(); + return hwPLD; + } + + /** + * + * + * @generated + */ + public ISA_Type createISA_TypeFromString(EDataType eDataType, String initialValue) { + ISA_Type result = ISA_Type.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertISA_TypeToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public PLD_Technology createPLD_TechnologyFromString(EDataType eDataType, String initialValue) { + PLD_Technology result = PLD_Technology.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertPLD_TechnologyToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public PLD_Class createPLD_ClassFromString(EDataType eDataType, String initialValue) { + PLD_Class result = PLD_Class.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertPLD_ClassToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public String createPLD_OrganizationFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertPLD_OrganizationToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public HwComputingPackage getHwComputingPackage() { + return (HwComputingPackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static HwComputingPackage getPackage() { + return HwComputingPackage.eINSTANCE; + } + +} //HwComputingFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/impl/HwComputingPackageImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/impl/HwComputingPackageImpl.java new file mode 100644 index 00000000000..cc0dc367da4 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/impl/HwComputingPackageImpl.java @@ -0,0 +1,966 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.EAttribute; +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.EReference; + +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.HwASIC; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwBranchPredictor; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingFactory; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingPackage; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingResource; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwISA; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwPLD; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.ISA_Type; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.PLD_Class; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.PLD_Technology; + +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.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 HwComputingPackageImpl extends EPackageImpl implements HwComputingPackage { + /** + * + * + * @generated + */ + private EClass hwProcessorEClass = null; + + /** + * + * + * @generated + */ + private EClass hwComputingResourceEClass = null; + + /** + * + * + * @generated + */ + private EClass hwISAEClass = null; + + /** + * + * + * @generated + */ + private EClass hwBranchPredictorEClass = null; + + /** + * + * + * @generated + */ + private EClass hwASICEClass = null; + + /** + * + * + * @generated + */ + private EClass hwPLDEClass = null; + + /** + * + * + * @generated + */ + private EEnum isA_TypeEEnum = null; + + /** + * + * + * @generated + */ + private EEnum plD_TechnologyEEnum = null; + + /** + * + * + * @generated + */ + private EEnum plD_ClassEEnum = null; + + /** + * + * + * @generated + */ + private EDataType plD_OrganizationEDataType = 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.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingPackage#eNS_URI + * @see #init() + * @generated + */ + private HwComputingPackageImpl() { + super(eNS_URI, HwComputingFactory.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 HwComputingPackage#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 HwComputingPackage init() { + if (isInited) return (HwComputingPackage)EPackage.Registry.INSTANCE.getEPackage(HwComputingPackage.eNS_URI); + + // Obtain or create and register package + HwComputingPackageImpl theHwComputingPackage = (HwComputingPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof HwComputingPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new HwComputingPackageImpl()); + + 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); + 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); + 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 + theHwComputingPackage.createPackageContents(); + theMARTEPackage.createPackageContents(); + theNFPsPackage.createPackageContents(); + theCoreElementsPackage.createPackageContents(); + theAllocPackage.createPackageContents(); + theTimePackage.createPackageContents(); + theGRMPackage.createPackageContents(); + theRSMPackage.createPackageContents(); + theVariablesPackage.createPackageContents(); + theOperatorsPackage.createPackageContents(); + theDataTypesPackage.createPackageContents(); + theHLAMPackage.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(); + theMARTE_PrimitivesTypesPackage.createPackageContents(); + + // Initialize created meta-data + theHwComputingPackage.initializePackageContents(); + theMARTEPackage.initializePackageContents(); + theNFPsPackage.initializePackageContents(); + theCoreElementsPackage.initializePackageContents(); + theAllocPackage.initializePackageContents(); + theTimePackage.initializePackageContents(); + theGRMPackage.initializePackageContents(); + theRSMPackage.initializePackageContents(); + theVariablesPackage.initializePackageContents(); + theOperatorsPackage.initializePackageContents(); + theDataTypesPackage.initializePackageContents(); + theHLAMPackage.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(); + theMARTE_PrimitivesTypesPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theHwComputingPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(HwComputingPackage.eNS_URI, theHwComputingPackage); + return theHwComputingPackage; + } + + /** + * + * + * @generated + */ + public EClass getHwProcessor() { + return hwProcessorEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getHwProcessor_Architecture() { + return (EAttribute)hwProcessorEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getHwProcessor_Mips() { + return (EAttribute)hwProcessorEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getHwProcessor_Ipc() { + return (EAttribute)hwProcessorEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getHwProcessor_NbCores() { + return (EAttribute)hwProcessorEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getHwProcessor_NbPipelines() { + return (EAttribute)hwProcessorEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getHwProcessor_NbStages() { + return (EAttribute)hwProcessorEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getHwProcessor_NbALUs() { + return (EAttribute)hwProcessorEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EAttribute getHwProcessor_NbFPUs() { + return (EAttribute)hwProcessorEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EReference getHwProcessor_OwnedISAs() { + return (EReference)hwProcessorEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + public EReference getHwProcessor_Predictors() { + return (EReference)hwProcessorEClass.getEStructuralFeatures().get(9); + } + + /** + * + * + * @generated + */ + public EReference getHwProcessor_Caches() { + return (EReference)hwProcessorEClass.getEStructuralFeatures().get(10); + } + + /** + * + * + * @generated + */ + public EReference getHwProcessor_OwnedMMUs() { + return (EReference)hwProcessorEClass.getEStructuralFeatures().get(11); + } + + /** + * + * + * @generated + */ + public EClass getHwComputingResource() { + return hwComputingResourceEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getHwComputingResource_Op_Frequencies() { + return (EAttribute)hwComputingResourceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getHwISA() { + return hwISAEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getHwISA_Family() { + return (EAttribute)hwISAEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getHwISA_Inst_Width() { + return (EAttribute)hwISAEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getHwISA_Type() { + return (EAttribute)hwISAEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getHwBranchPredictor() { + return hwBranchPredictorEClass; + } + + /** + * + * + * @generated + */ + public EClass getHwASIC() { + return hwASICEClass; + } + + /** + * + * + * @generated + */ + public EClass getHwPLD() { + return hwPLDEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getHwPLD_Technology() { + return (EAttribute)hwPLDEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getHwPLD_Organization() { + return (EAttribute)hwPLDEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getHwPLD_NbLUTs() { + return (EAttribute)hwPLDEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getHwPLD_NdLUT_Inputs() { + return (EAttribute)hwPLDEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getHwPLD_NbFlipFlops() { + return (EAttribute)hwPLDEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EReference getHwPLD_BlocksRAM() { + return (EReference)hwPLDEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EReference getHwPLD_BlocksComputing() { + return (EReference)hwPLDEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EEnum getISA_Type() { + return isA_TypeEEnum; + } + + /** + * + * + * @generated + */ + public EEnum getPLD_Technology() { + return plD_TechnologyEEnum; + } + + /** + * + * + * @generated + */ + public EEnum getPLD_Class() { + return plD_ClassEEnum; + } + + /** + * + * + * @generated + */ + public EDataType getPLD_Organization() { + return plD_OrganizationEDataType; + } + + /** + * + * + * @generated + */ + public HwComputingFactory getHwComputingFactory() { + return (HwComputingFactory)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 + hwProcessorEClass = createEClass(HW_PROCESSOR); + createEAttribute(hwProcessorEClass, HW_PROCESSOR__ARCHITECTURE); + createEAttribute(hwProcessorEClass, HW_PROCESSOR__MIPS); + createEAttribute(hwProcessorEClass, HW_PROCESSOR__IPC); + createEAttribute(hwProcessorEClass, HW_PROCESSOR__NB_CORES); + createEAttribute(hwProcessorEClass, HW_PROCESSOR__NB_PIPELINES); + createEAttribute(hwProcessorEClass, HW_PROCESSOR__NB_STAGES); + createEAttribute(hwProcessorEClass, HW_PROCESSOR__NB_AL_US); + createEAttribute(hwProcessorEClass, HW_PROCESSOR__NB_FP_US); + createEReference(hwProcessorEClass, HW_PROCESSOR__OWNED_IS_AS); + createEReference(hwProcessorEClass, HW_PROCESSOR__PREDICTORS); + createEReference(hwProcessorEClass, HW_PROCESSOR__CACHES); + createEReference(hwProcessorEClass, HW_PROCESSOR__OWNED_MM_US); + + hwComputingResourceEClass = createEClass(HW_COMPUTING_RESOURCE); + createEAttribute(hwComputingResourceEClass, HW_COMPUTING_RESOURCE__OP_FREQUENCIES); + + hwISAEClass = createEClass(HW_ISA); + createEAttribute(hwISAEClass, HW_ISA__FAMILY); + createEAttribute(hwISAEClass, HW_ISA__INST_WIDTH); + createEAttribute(hwISAEClass, HW_ISA__TYPE); + + hwBranchPredictorEClass = createEClass(HW_BRANCH_PREDICTOR); + + hwASICEClass = createEClass(HW_ASIC); + + hwPLDEClass = createEClass(HW_PLD); + createEAttribute(hwPLDEClass, HW_PLD__TECHNOLOGY); + createEAttribute(hwPLDEClass, HW_PLD__ORGANIZATION); + createEAttribute(hwPLDEClass, HW_PLD__NB_LU_TS); + createEAttribute(hwPLDEClass, HW_PLD__ND_LUT_INPUTS); + createEAttribute(hwPLDEClass, HW_PLD__NB_FLIP_FLOPS); + createEReference(hwPLDEClass, HW_PLD__BLOCKS_RAM); + createEReference(hwPLDEClass, HW_PLD__BLOCKS_COMPUTING); + + // Create enums + isA_TypeEEnum = createEEnum(ISA_TYPE); + plD_TechnologyEEnum = createEEnum(PLD_TECHNOLOGY); + plD_ClassEEnum = createEEnum(PLD_CLASS); + + // Create data types + plD_OrganizationEDataType = createEDataType(PLD_ORGANIZATION); + } + + /** + * + * + * @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 + BasicNFP_TypesPackage theBasicNFP_TypesPackage = (BasicNFP_TypesPackage)EPackage.Registry.INSTANCE.getEPackage(BasicNFP_TypesPackage.eNS_URI); + HwMemoryPackage theHwMemoryPackage = (HwMemoryPackage)EPackage.Registry.INSTANCE.getEPackage(HwMemoryPackage.eNS_URI); + HwStorageManagerPackage theHwStorageManagerPackage = (HwStorageManagerPackage)EPackage.Registry.INSTANCE.getEPackage(HwStorageManagerPackage.eNS_URI); + HwGeneralPackage theHwGeneralPackage = (HwGeneralPackage)EPackage.Registry.INSTANCE.getEPackage(HwGeneralPackage.eNS_URI); + GRMPackage theGRMPackage = (GRMPackage)EPackage.Registry.INSTANCE.getEPackage(GRMPackage.eNS_URI); + MARTE_DataTypesPackage theMARTE_DataTypesPackage = (MARTE_DataTypesPackage)EPackage.Registry.INSTANCE.getEPackage(MARTE_DataTypesPackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + hwProcessorEClass.getESuperTypes().add(this.getHwComputingResource()); + hwComputingResourceEClass.getESuperTypes().add(theHwGeneralPackage.getHwResource()); + hwComputingResourceEClass.getESuperTypes().add(theGRMPackage.getComputingResource()); + hwISAEClass.getESuperTypes().add(theHwGeneralPackage.getHwResource()); + hwBranchPredictorEClass.getESuperTypes().add(theHwGeneralPackage.getHwResource()); + hwASICEClass.getESuperTypes().add(this.getHwComputingResource()); + hwPLDEClass.getESuperTypes().add(this.getHwComputingResource()); + + // Initialize classes and features; add operations and parameters + initEClass(hwProcessorEClass, HwProcessor.class, "HwProcessor", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getHwProcessor_Architecture(), theBasicNFP_TypesPackage.getNFP_DataSize(), "architecture", null, 0, 1, HwProcessor.class, !IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, IS_DERIVED, !IS_ORDERED); + initEAttribute(getHwProcessor_Mips(), theBasicNFP_TypesPackage.getNFP_Natural(), "mips", null, 0, 1, HwProcessor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getHwProcessor_Ipc(), theBasicNFP_TypesPackage.getNFP_Real(), "ipc", null, 0, 1, HwProcessor.class, !IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, IS_DERIVED, !IS_ORDERED); + initEAttribute(getHwProcessor_NbCores(), theBasicNFP_TypesPackage.getNFP_Natural(), "nbCores", null, 0, 1, HwProcessor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getHwProcessor_NbPipelines(), theBasicNFP_TypesPackage.getNFP_Natural(), "nbPipelines", null, 0, 1, HwProcessor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getHwProcessor_NbStages(), theBasicNFP_TypesPackage.getNFP_Natural(), "nbStages", null, 0, 1, HwProcessor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getHwProcessor_NbALUs(), theBasicNFP_TypesPackage.getNFP_Natural(), "nbALUs", null, 0, 1, HwProcessor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getHwProcessor_NbFPUs(), theBasicNFP_TypesPackage.getNFP_Natural(), "nbFPUs", null, 0, 1, HwProcessor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getHwProcessor_OwnedISAs(), this.getHwISA(), null, "ownedISAs", null, 0, -1, HwProcessor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getHwProcessor_Predictors(), this.getHwBranchPredictor(), null, "predictors", null, 0, -1, HwProcessor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getHwProcessor_Caches(), theHwMemoryPackage.getHwCache(), null, "caches", null, 0, -1, HwProcessor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getHwProcessor_OwnedMMUs(), theHwStorageManagerPackage.getHwMMU(), null, "ownedMMUs", null, 0, -1, HwProcessor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(hwComputingResourceEClass, HwComputingResource.class, "HwComputingResource", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getHwComputingResource_Op_Frequencies(), theMARTE_DataTypesPackage.getNFP_FrequencyInterval(), "op_Frequencies", null, 0, 1, HwComputingResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(hwISAEClass, HwISA.class, "HwISA", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getHwISA_Family(), theBasicNFP_TypesPackage.getNFP_String(), "family", null, 0, 1, HwISA.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getHwISA_Inst_Width(), theBasicNFP_TypesPackage.getNFP_DataSize(), "inst_Width", null, 0, 1, HwISA.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getHwISA_Type(), this.getISA_Type(), "type", null, 0, 1, HwISA.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(hwBranchPredictorEClass, HwBranchPredictor.class, "HwBranchPredictor", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(hwASICEClass, HwASIC.class, "HwASIC", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(hwPLDEClass, HwPLD.class, "HwPLD", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getHwPLD_Technology(), this.getPLD_Technology(), "technology", null, 0, 1, HwPLD.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getHwPLD_Organization(), this.getPLD_Organization(), "organization", null, 0, 1, HwPLD.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getHwPLD_NbLUTs(), theBasicNFP_TypesPackage.getNFP_Natural(), "nbLUTs", null, 0, 1, HwPLD.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getHwPLD_NdLUT_Inputs(), theBasicNFP_TypesPackage.getNFP_Natural(), "ndLUT_Inputs", null, 0, 1, HwPLD.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getHwPLD_NbFlipFlops(), theBasicNFP_TypesPackage.getNFP_Natural(), "nbFlipFlops", null, 0, 1, HwPLD.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getHwPLD_BlocksRAM(), theHwMemoryPackage.getHwRAM(), null, "blocksRAM", null, 0, -1, HwPLD.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getHwPLD_BlocksComputing(), this.getHwComputingResource(), null, "blocksComputing", null, 0, -1, HwPLD.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + // Initialize enums and add enum literals + initEEnum(isA_TypeEEnum, ISA_Type.class, "ISA_Type"); + addEEnumLiteral(isA_TypeEEnum, ISA_Type.RISC); + addEEnumLiteral(isA_TypeEEnum, ISA_Type.CISC); + addEEnumLiteral(isA_TypeEEnum, ISA_Type.VLIW); + addEEnumLiteral(isA_TypeEEnum, ISA_Type.SIMD); + addEEnumLiteral(isA_TypeEEnum, ISA_Type.OTHER); + addEEnumLiteral(isA_TypeEEnum, ISA_Type.UNDEF); + + initEEnum(plD_TechnologyEEnum, PLD_Technology.class, "PLD_Technology"); + addEEnumLiteral(plD_TechnologyEEnum, PLD_Technology.SRAM); + addEEnumLiteral(plD_TechnologyEEnum, PLD_Technology.ANTIFUSE); + addEEnumLiteral(plD_TechnologyEEnum, PLD_Technology.FLASH); + addEEnumLiteral(plD_TechnologyEEnum, PLD_Technology.OTHER); + addEEnumLiteral(plD_TechnologyEEnum, PLD_Technology.UNDEF); + + initEEnum(plD_ClassEEnum, PLD_Class.class, "PLD_Class"); + addEEnumLiteral(plD_ClassEEnum, PLD_Class.SYMETRICAL_ARRAY); + addEEnumLiteral(plD_ClassEEnum, PLD_Class.ROW_BASED); + addEEnumLiteral(plD_ClassEEnum, PLD_Class.SEA_OF_GATES); + addEEnumLiteral(plD_ClassEEnum, PLD_Class.HIERARCHICAL_PLD); + addEEnumLiteral(plD_ClassEEnum, PLD_Class.OTHER); + addEEnumLiteral(plD_ClassEEnum, PLD_Class.UNDEF); + + // Initialize data types + initEDataType(plD_OrganizationEDataType, String.class, "PLD_Organization", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + + // Create annotations + // subsets + createSubsetsAnnotations(); + } + + /** + * Initializes the annotations for subsets. + * + * + * @generated + */ + protected void createSubsetsAnnotations() { + String source = "subsets"; + addAnnotation + (getHwProcessor_OwnedISAs(), + source, + new String[] { + }, + new URI[] { + URI.createURI(MARTEPackage.eNS_URI).appendFragment("//MARTE_DesignModel/HRM/HwGeneral/HwResource/ownedHW") + }); + addAnnotation + (getHwProcessor_Predictors(), + source, + new String[] { + }, + new URI[] { + URI.createURI(MARTEPackage.eNS_URI).appendFragment("//MARTE_DesignModel/HRM/HwGeneral/HwResource/ownedHW") + }); + addAnnotation + (getHwProcessor_Caches(), + source, + new String[] { + }, + new URI[] { + URI.createURI(MARTEPackage.eNS_URI).appendFragment("//MARTE_DesignModel/HRM/HwGeneral/HwResource/ownedHW") + }); + addAnnotation + (getHwProcessor_OwnedMMUs(), + source, + new String[] { + }, + new URI[] { + URI.createURI(MARTEPackage.eNS_URI).appendFragment("//MARTE_DesignModel/HRM/HwGeneral/HwResource/ownedHW") + }); + addAnnotation + (getHwPLD_BlocksRAM(), + source, + new String[] { + }, + new URI[] { + URI.createURI(MARTEPackage.eNS_URI).appendFragment("//MARTE_DesignModel/HRM/HwGeneral/HwResource/ownedHW") + }); + addAnnotation + (getHwPLD_BlocksComputing(), + source, + new String[] { + }, + new URI[] { + URI.createURI(MARTEPackage.eNS_URI).appendFragment("//MARTE_DesignModel/HRM/HwGeneral/HwResource/ownedHW") + }); + } + +} //HwComputingPackageImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/impl/HwComputingResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/impl/HwComputingResourceImpl.java new file mode 100644 index 00000000000..49e6327eb72 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/impl/HwComputingResourceImpl.java @@ -0,0 +1,339 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.impl.HwResourceImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingPackage; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingResource; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ComputingResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ProcessingResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler; + +/** + * + * An implementation of the model object 'Resource'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwComputingResourceImpl#getSpeedFactor Speed Factor}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwComputingResourceImpl#getMainScheduler Main Scheduler}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwComputingResourceImpl#getOp_Frequencies Op Frequencies}
  • + *
+ *

+ * + * @generated + */ +public class HwComputingResourceImpl extends HwResourceImpl implements HwComputingResource { + /** + * The default value of the '{@link #getSpeedFactor() Speed Factor}' attribute. + * + * + * @see #getSpeedFactor() + * @generated + * @ordered + */ + protected static final String SPEED_FACTOR_EDEFAULT = "1.0"; + + /** + * The cached value of the '{@link #getSpeedFactor() Speed Factor}' attribute. + * + * + * @see #getSpeedFactor() + * @generated + * @ordered + */ + protected String speedFactor = SPEED_FACTOR_EDEFAULT; + + /** + * The cached value of the '{@link #getMainScheduler() Main Scheduler}' reference. + * + * + * @see #getMainScheduler() + * @generated + * @ordered + */ + protected Scheduler mainScheduler; + + /** + * The default value of the '{@link #getOp_Frequencies() Op Frequencies}' attribute. + * + * + * @see #getOp_Frequencies() + * @generated + * @ordered + */ + protected static final String OP_FREQUENCIES_EDEFAULT = null; + + /** + * The cached value of the '{@link #getOp_Frequencies() Op Frequencies}' attribute. + * + * + * @see #getOp_Frequencies() + * @generated + * @ordered + */ + protected String op_Frequencies = OP_FREQUENCIES_EDEFAULT; + + /** + * + * + * @generated + */ + protected HwComputingResourceImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return HwComputingPackage.Literals.HW_COMPUTING_RESOURCE; + } + + /** + * + * + * @generated + */ + public String getSpeedFactor() { + return speedFactor; + } + + /** + * + * + * @generated + */ + public void setSpeedFactor(String newSpeedFactor) { + String oldSpeedFactor = speedFactor; + speedFactor = newSpeedFactor; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwComputingPackage.HW_COMPUTING_RESOURCE__SPEED_FACTOR, oldSpeedFactor, speedFactor)); + } + + /** + * + * + * @generated + */ + public Scheduler getMainScheduler() { + if (mainScheduler != null && mainScheduler.eIsProxy()) { + InternalEObject oldMainScheduler = (InternalEObject)mainScheduler; + mainScheduler = (Scheduler)eResolveProxy(oldMainScheduler); + if (mainScheduler != oldMainScheduler) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, HwComputingPackage.HW_COMPUTING_RESOURCE__MAIN_SCHEDULER, oldMainScheduler, mainScheduler)); + } + } + return mainScheduler; + } + + /** + * + * + * @generated + */ + public Scheduler basicGetMainScheduler() { + return mainScheduler; + } + + /** + * + * + * @generated + */ + public void setMainScheduler(Scheduler newMainScheduler) { + Scheduler oldMainScheduler = mainScheduler; + mainScheduler = newMainScheduler; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwComputingPackage.HW_COMPUTING_RESOURCE__MAIN_SCHEDULER, oldMainScheduler, mainScheduler)); + } + + /** + * + * + * @generated + */ + public String getOp_Frequencies() { + return op_Frequencies; + } + + /** + * + * + * @generated + */ + public void setOp_Frequencies(String newOp_Frequencies) { + String oldOp_Frequencies = op_Frequencies; + op_Frequencies = newOp_Frequencies; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwComputingPackage.HW_COMPUTING_RESOURCE__OP_FREQUENCIES, oldOp_Frequencies, op_Frequencies)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case HwComputingPackage.HW_COMPUTING_RESOURCE__SPEED_FACTOR: + return getSpeedFactor(); + case HwComputingPackage.HW_COMPUTING_RESOURCE__MAIN_SCHEDULER: + if (resolve) return getMainScheduler(); + return basicGetMainScheduler(); + case HwComputingPackage.HW_COMPUTING_RESOURCE__OP_FREQUENCIES: + return getOp_Frequencies(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case HwComputingPackage.HW_COMPUTING_RESOURCE__SPEED_FACTOR: + setSpeedFactor((String)newValue); + return; + case HwComputingPackage.HW_COMPUTING_RESOURCE__MAIN_SCHEDULER: + setMainScheduler((Scheduler)newValue); + return; + case HwComputingPackage.HW_COMPUTING_RESOURCE__OP_FREQUENCIES: + setOp_Frequencies((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case HwComputingPackage.HW_COMPUTING_RESOURCE__SPEED_FACTOR: + setSpeedFactor(SPEED_FACTOR_EDEFAULT); + return; + case HwComputingPackage.HW_COMPUTING_RESOURCE__MAIN_SCHEDULER: + setMainScheduler((Scheduler)null); + return; + case HwComputingPackage.HW_COMPUTING_RESOURCE__OP_FREQUENCIES: + setOp_Frequencies(OP_FREQUENCIES_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case HwComputingPackage.HW_COMPUTING_RESOURCE__SPEED_FACTOR: + return SPEED_FACTOR_EDEFAULT == null ? speedFactor != null : !SPEED_FACTOR_EDEFAULT.equals(speedFactor); + case HwComputingPackage.HW_COMPUTING_RESOURCE__MAIN_SCHEDULER: + return mainScheduler != null; + case HwComputingPackage.HW_COMPUTING_RESOURCE__OP_FREQUENCIES: + return OP_FREQUENCIES_EDEFAULT == null ? op_Frequencies != null : !OP_FREQUENCIES_EDEFAULT.equals(op_Frequencies); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) { + if (baseClass == ProcessingResource.class) { + switch (derivedFeatureID) { + case HwComputingPackage.HW_COMPUTING_RESOURCE__SPEED_FACTOR: return GRMPackage.PROCESSING_RESOURCE__SPEED_FACTOR; + case HwComputingPackage.HW_COMPUTING_RESOURCE__MAIN_SCHEDULER: return GRMPackage.PROCESSING_RESOURCE__MAIN_SCHEDULER; + default: return -1; + } + } + if (baseClass == ComputingResource.class) { + switch (derivedFeatureID) { + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) { + if (baseClass == ProcessingResource.class) { + switch (baseFeatureID) { + case GRMPackage.PROCESSING_RESOURCE__SPEED_FACTOR: return HwComputingPackage.HW_COMPUTING_RESOURCE__SPEED_FACTOR; + case GRMPackage.PROCESSING_RESOURCE__MAIN_SCHEDULER: return HwComputingPackage.HW_COMPUTING_RESOURCE__MAIN_SCHEDULER; + default: return -1; + } + } + if (baseClass == ComputingResource.class) { + switch (baseFeatureID) { + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (speedFactor: "); + result.append(speedFactor); + result.append(", op_Frequencies: "); + result.append(op_Frequencies); + result.append(')'); + return result.toString(); + } + +} //HwComputingResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/impl/HwISAImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/impl/HwISAImpl.java new file mode 100644 index 00000000000..87b784ddd0b --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/impl/HwISAImpl.java @@ -0,0 +1,284 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.impl.HwResourceImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingPackage; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwISA; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.ISA_Type; + +/** + * + * An implementation of the model object 'Hw ISA'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwISAImpl#getFamily Family}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwISAImpl#getInst_Width Inst Width}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwISAImpl#getType Type}
  • + *
+ *

+ * + * @generated + */ +public class HwISAImpl extends HwResourceImpl implements HwISA { + /** + * The default value of the '{@link #getFamily() Family}' attribute. + * + * + * @see #getFamily() + * @generated + * @ordered + */ + protected static final String FAMILY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getFamily() Family}' attribute. + * + * + * @see #getFamily() + * @generated + * @ordered + */ + protected String family = FAMILY_EDEFAULT; + + /** + * The default value of the '{@link #getInst_Width() Inst Width}' attribute. + * + * + * @see #getInst_Width() + * @generated + * @ordered + */ + protected static final String INST_WIDTH_EDEFAULT = null; + + /** + * The cached value of the '{@link #getInst_Width() Inst Width}' attribute. + * + * + * @see #getInst_Width() + * @generated + * @ordered + */ + protected String inst_Width = INST_WIDTH_EDEFAULT; + + /** + * The default value of the '{@link #getType() Type}' attribute. + * + * + * @see #getType() + * @generated + * @ordered + */ + protected static final ISA_Type TYPE_EDEFAULT = ISA_Type.RISC; + + /** + * The cached value of the '{@link #getType() Type}' attribute. + * + * + * @see #getType() + * @generated + * @ordered + */ + protected ISA_Type type = TYPE_EDEFAULT; + + /** + * + * + * @generated + */ + protected HwISAImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return HwComputingPackage.Literals.HW_ISA; + } + + /** + * + * + * @generated + */ + public String getFamily() { + return family; + } + + /** + * + * + * @generated + */ + public void setFamily(String newFamily) { + String oldFamily = family; + family = newFamily; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwComputingPackage.HW_ISA__FAMILY, oldFamily, family)); + } + + /** + * + * + * @generated + */ + public String getInst_Width() { + return inst_Width; + } + + /** + * + * + * @generated + */ + public void setInst_Width(String newInst_Width) { + String oldInst_Width = inst_Width; + inst_Width = newInst_Width; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwComputingPackage.HW_ISA__INST_WIDTH, oldInst_Width, inst_Width)); + } + + /** + * + * + * @generated + */ + public ISA_Type getType() { + return type; + } + + /** + * + * + * @generated + */ + public void setType(ISA_Type newType) { + ISA_Type oldType = type; + type = newType == null ? TYPE_EDEFAULT : newType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwComputingPackage.HW_ISA__TYPE, oldType, type)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case HwComputingPackage.HW_ISA__FAMILY: + return getFamily(); + case HwComputingPackage.HW_ISA__INST_WIDTH: + return getInst_Width(); + case HwComputingPackage.HW_ISA__TYPE: + return getType(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case HwComputingPackage.HW_ISA__FAMILY: + setFamily((String)newValue); + return; + case HwComputingPackage.HW_ISA__INST_WIDTH: + setInst_Width((String)newValue); + return; + case HwComputingPackage.HW_ISA__TYPE: + setType((ISA_Type)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case HwComputingPackage.HW_ISA__FAMILY: + setFamily(FAMILY_EDEFAULT); + return; + case HwComputingPackage.HW_ISA__INST_WIDTH: + setInst_Width(INST_WIDTH_EDEFAULT); + return; + case HwComputingPackage.HW_ISA__TYPE: + setType(TYPE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case HwComputingPackage.HW_ISA__FAMILY: + return FAMILY_EDEFAULT == null ? family != null : !FAMILY_EDEFAULT.equals(family); + case HwComputingPackage.HW_ISA__INST_WIDTH: + return INST_WIDTH_EDEFAULT == null ? inst_Width != null : !INST_WIDTH_EDEFAULT.equals(inst_Width); + case HwComputingPackage.HW_ISA__TYPE: + return type != TYPE_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (family: "); + result.append(family); + result.append(", inst_Width: "); + result.append(inst_Width); + result.append(", type: "); + result.append(type); + result.append(')'); + return result.toString(); + } + +} //HwISAImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/impl/HwPLDImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/impl/HwPLDImpl.java new file mode 100644 index 00000000000..e627c5d91ea --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/impl/HwPLDImpl.java @@ -0,0 +1,468 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EObjectResolvingEList; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingPackage; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingResource; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwPLD; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.PLD_Technology; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwRAM; + +/** + * + * An implementation of the model object 'Hw PLD'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwPLDImpl#getTechnology Technology}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwPLDImpl#getOrganization Organization}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwPLDImpl#getNbLUTs Nb LU Ts}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwPLDImpl#getNdLUT_Inputs Nd LUT Inputs}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwPLDImpl#getNbFlipFlops Nb Flip Flops}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwPLDImpl#getBlocksRAM Blocks RAM}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwPLDImpl#getBlocksComputing Blocks Computing}
  • + *
+ *

+ * + * @generated + */ +public class HwPLDImpl extends HwComputingResourceImpl implements HwPLD { + /** + * The default value of the '{@link #getTechnology() Technology}' attribute. + * + * + * @see #getTechnology() + * @generated + * @ordered + */ + protected static final PLD_Technology TECHNOLOGY_EDEFAULT = PLD_Technology.SRAM; + + /** + * The cached value of the '{@link #getTechnology() Technology}' attribute. + * + * + * @see #getTechnology() + * @generated + * @ordered + */ + protected PLD_Technology technology = TECHNOLOGY_EDEFAULT; + + /** + * The default value of the '{@link #getOrganization() Organization}' attribute. + * + * + * @see #getOrganization() + * @generated + * @ordered + */ + protected static final String ORGANIZATION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getOrganization() Organization}' attribute. + * + * + * @see #getOrganization() + * @generated + * @ordered + */ + protected String organization = ORGANIZATION_EDEFAULT; + + /** + * The default value of the '{@link #getNbLUTs() Nb LU Ts}' attribute. + * + * + * @see #getNbLUTs() + * @generated + * @ordered + */ + protected static final String NB_LU_TS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getNbLUTs() Nb LU Ts}' attribute. + * + * + * @see #getNbLUTs() + * @generated + * @ordered + */ + protected String nbLUTs = NB_LU_TS_EDEFAULT; + + /** + * The default value of the '{@link #getNdLUT_Inputs() Nd LUT Inputs}' attribute. + * + * + * @see #getNdLUT_Inputs() + * @generated + * @ordered + */ + protected static final String ND_LUT_INPUTS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getNdLUT_Inputs() Nd LUT Inputs}' attribute. + * + * + * @see #getNdLUT_Inputs() + * @generated + * @ordered + */ + protected String ndLUT_Inputs = ND_LUT_INPUTS_EDEFAULT; + + /** + * The default value of the '{@link #getNbFlipFlops() Nb Flip Flops}' attribute. + * + * + * @see #getNbFlipFlops() + * @generated + * @ordered + */ + protected static final String NB_FLIP_FLOPS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getNbFlipFlops() Nb Flip Flops}' attribute. + * + * + * @see #getNbFlipFlops() + * @generated + * @ordered + */ + protected String nbFlipFlops = NB_FLIP_FLOPS_EDEFAULT; + + /** + * The cached value of the '{@link #getBlocksRAM() Blocks RAM}' reference list. + * + * + * @see #getBlocksRAM() + * @generated + * @ordered + */ + protected EList blocksRAM; + + /** + * The cached value of the '{@link #getBlocksComputing() Blocks Computing}' reference list. + * + * + * @see #getBlocksComputing() + * @generated + * @ordered + */ + protected EList blocksComputing; + + /** + * + * + * @generated + */ + protected HwPLDImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return HwComputingPackage.Literals.HW_PLD; + } + + /** + * + * + * @generated + */ + public PLD_Technology getTechnology() { + return technology; + } + + /** + * + * + * @generated + */ + public void setTechnology(PLD_Technology newTechnology) { + PLD_Technology oldTechnology = technology; + technology = newTechnology == null ? TECHNOLOGY_EDEFAULT : newTechnology; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwComputingPackage.HW_PLD__TECHNOLOGY, oldTechnology, technology)); + } + + /** + * + * + * @generated + */ + public String getOrganization() { + return organization; + } + + /** + * + * + * @generated + */ + public void setOrganization(String newOrganization) { + String oldOrganization = organization; + organization = newOrganization; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwComputingPackage.HW_PLD__ORGANIZATION, oldOrganization, organization)); + } + + /** + * + * + * @generated + */ + public String getNbLUTs() { + return nbLUTs; + } + + /** + * + * + * @generated + */ + public void setNbLUTs(String newNbLUTs) { + String oldNbLUTs = nbLUTs; + nbLUTs = newNbLUTs; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwComputingPackage.HW_PLD__NB_LU_TS, oldNbLUTs, nbLUTs)); + } + + /** + * + * + * @generated + */ + public String getNdLUT_Inputs() { + return ndLUT_Inputs; + } + + /** + * + * + * @generated + */ + public void setNdLUT_Inputs(String newNdLUT_Inputs) { + String oldNdLUT_Inputs = ndLUT_Inputs; + ndLUT_Inputs = newNdLUT_Inputs; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwComputingPackage.HW_PLD__ND_LUT_INPUTS, oldNdLUT_Inputs, ndLUT_Inputs)); + } + + /** + * + * + * @generated + */ + public String getNbFlipFlops() { + return nbFlipFlops; + } + + /** + * + * + * @generated + */ + public void setNbFlipFlops(String newNbFlipFlops) { + String oldNbFlipFlops = nbFlipFlops; + nbFlipFlops = newNbFlipFlops; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwComputingPackage.HW_PLD__NB_FLIP_FLOPS, oldNbFlipFlops, nbFlipFlops)); + } + + /** + * + * + * @generated + */ + public EList getBlocksRAM() { + if (blocksRAM == null) { + blocksRAM = new EObjectResolvingEList(HwRAM.class, this, HwComputingPackage.HW_PLD__BLOCKS_RAM); + } + return blocksRAM; + } + + /** + * + * + * @generated + */ + public EList getBlocksComputing() { + if (blocksComputing == null) { + blocksComputing = new EObjectResolvingEList(HwComputingResource.class, this, HwComputingPackage.HW_PLD__BLOCKS_COMPUTING); + } + return blocksComputing; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case HwComputingPackage.HW_PLD__TECHNOLOGY: + return getTechnology(); + case HwComputingPackage.HW_PLD__ORGANIZATION: + return getOrganization(); + case HwComputingPackage.HW_PLD__NB_LU_TS: + return getNbLUTs(); + case HwComputingPackage.HW_PLD__ND_LUT_INPUTS: + return getNdLUT_Inputs(); + case HwComputingPackage.HW_PLD__NB_FLIP_FLOPS: + return getNbFlipFlops(); + case HwComputingPackage.HW_PLD__BLOCKS_RAM: + return getBlocksRAM(); + case HwComputingPackage.HW_PLD__BLOCKS_COMPUTING: + return getBlocksComputing(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case HwComputingPackage.HW_PLD__TECHNOLOGY: + setTechnology((PLD_Technology)newValue); + return; + case HwComputingPackage.HW_PLD__ORGANIZATION: + setOrganization((String)newValue); + return; + case HwComputingPackage.HW_PLD__NB_LU_TS: + setNbLUTs((String)newValue); + return; + case HwComputingPackage.HW_PLD__ND_LUT_INPUTS: + setNdLUT_Inputs((String)newValue); + return; + case HwComputingPackage.HW_PLD__NB_FLIP_FLOPS: + setNbFlipFlops((String)newValue); + return; + case HwComputingPackage.HW_PLD__BLOCKS_RAM: + getBlocksRAM().clear(); + getBlocksRAM().addAll((Collection)newValue); + return; + case HwComputingPackage.HW_PLD__BLOCKS_COMPUTING: + getBlocksComputing().clear(); + getBlocksComputing().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case HwComputingPackage.HW_PLD__TECHNOLOGY: + setTechnology(TECHNOLOGY_EDEFAULT); + return; + case HwComputingPackage.HW_PLD__ORGANIZATION: + setOrganization(ORGANIZATION_EDEFAULT); + return; + case HwComputingPackage.HW_PLD__NB_LU_TS: + setNbLUTs(NB_LU_TS_EDEFAULT); + return; + case HwComputingPackage.HW_PLD__ND_LUT_INPUTS: + setNdLUT_Inputs(ND_LUT_INPUTS_EDEFAULT); + return; + case HwComputingPackage.HW_PLD__NB_FLIP_FLOPS: + setNbFlipFlops(NB_FLIP_FLOPS_EDEFAULT); + return; + case HwComputingPackage.HW_PLD__BLOCKS_RAM: + getBlocksRAM().clear(); + return; + case HwComputingPackage.HW_PLD__BLOCKS_COMPUTING: + getBlocksComputing().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case HwComputingPackage.HW_PLD__TECHNOLOGY: + return technology != TECHNOLOGY_EDEFAULT; + case HwComputingPackage.HW_PLD__ORGANIZATION: + return ORGANIZATION_EDEFAULT == null ? organization != null : !ORGANIZATION_EDEFAULT.equals(organization); + case HwComputingPackage.HW_PLD__NB_LU_TS: + return NB_LU_TS_EDEFAULT == null ? nbLUTs != null : !NB_LU_TS_EDEFAULT.equals(nbLUTs); + case HwComputingPackage.HW_PLD__ND_LUT_INPUTS: + return ND_LUT_INPUTS_EDEFAULT == null ? ndLUT_Inputs != null : !ND_LUT_INPUTS_EDEFAULT.equals(ndLUT_Inputs); + case HwComputingPackage.HW_PLD__NB_FLIP_FLOPS: + return NB_FLIP_FLOPS_EDEFAULT == null ? nbFlipFlops != null : !NB_FLIP_FLOPS_EDEFAULT.equals(nbFlipFlops); + case HwComputingPackage.HW_PLD__BLOCKS_RAM: + return blocksRAM != null && !blocksRAM.isEmpty(); + case HwComputingPackage.HW_PLD__BLOCKS_COMPUTING: + return blocksComputing != null && !blocksComputing.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (technology: "); + result.append(technology); + result.append(", organization: "); + result.append(organization); + result.append(", nbLUTs: "); + result.append(nbLUTs); + result.append(", ndLUT_Inputs: "); + result.append(ndLUT_Inputs); + result.append(", nbFlipFlops: "); + result.append(nbFlipFlops); + result.append(')'); + return result.toString(); + } + +} //HwPLDImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/impl/HwProcessorImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/impl/HwProcessorImpl.java new file mode 100644 index 00000000000..1489aefb6f1 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/impl/HwProcessorImpl.java @@ -0,0 +1,738 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl; + +import java.util.Collection; +import java.util.Iterator; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EObjectResolvingEList; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwBranchPredictor; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingPackage; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwISA; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwCache; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwMMU; +import org.eclipse.papyrus.MARTE.utils.MarteUtils; + +/** + * + * An implementation of the model object 'Hw Processor'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwProcessorImpl#getArchitecture Architecture}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwProcessorImpl#getMips Mips}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwProcessorImpl#getIpc Ipc}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwProcessorImpl#getNbCores Nb Cores}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwProcessorImpl#getNbPipelines Nb Pipelines}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwProcessorImpl#getNbStages Nb Stages}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwProcessorImpl#getNbALUs Nb AL Us}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwProcessorImpl#getNbFPUs Nb FP Us}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwProcessorImpl#getOwnedISAs Owned IS As}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwProcessorImpl#getPredictors Predictors}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwProcessorImpl#getCaches Caches}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.impl.HwProcessorImpl#getOwnedMMUs Owned MM Us}
  • + *
+ *

+ * + * @generated + */ +public class HwProcessorImpl extends HwComputingResourceImpl implements HwProcessor { + /** + * The default value of the '{@link #getArchitecture() Architecture}' attribute. + * + * + * @see #getArchitecture() + * @generated + * @ordered + */ + protected static final String ARCHITECTURE_EDEFAULT = null; + + /** + * The default value of the '{@link #getMips() Mips}' attribute. + * + * + * @see #getMips() + * @generated + * @ordered + */ + protected static final String MIPS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMips() Mips}' attribute. + * + * + * @see #getMips() + * @generated + * @ordered + */ + protected String mips = MIPS_EDEFAULT; + + /** + * The default value of the '{@link #getIpc() Ipc}' attribute. + * + * + * @see #getIpc() + * @generated + * @ordered + */ + protected static final String IPC_EDEFAULT = null; + + /** + * The default value of the '{@link #getNbCores() Nb Cores}' attribute. + * + * + * @see #getNbCores() + * @generated + * @ordered + */ + protected static final String NB_CORES_EDEFAULT = null; + + /** + * The cached value of the '{@link #getNbCores() Nb Cores}' attribute. + * + * + * @see #getNbCores() + * @generated + * @ordered + */ + protected String nbCores = NB_CORES_EDEFAULT; + + /** + * The default value of the '{@link #getNbPipelines() Nb Pipelines}' attribute. + * + * + * @see #getNbPipelines() + * @generated + * @ordered + */ + protected static final String NB_PIPELINES_EDEFAULT = null; + + /** + * The cached value of the '{@link #getNbPipelines() Nb Pipelines}' attribute. + * + * + * @see #getNbPipelines() + * @generated + * @ordered + */ + protected String nbPipelines = NB_PIPELINES_EDEFAULT; + + /** + * The default value of the '{@link #getNbStages() Nb Stages}' attribute. + * + * + * @see #getNbStages() + * @generated + * @ordered + */ + protected static final String NB_STAGES_EDEFAULT = null; + + /** + * The cached value of the '{@link #getNbStages() Nb Stages}' attribute. + * + * + * @see #getNbStages() + * @generated + * @ordered + */ + protected String nbStages = NB_STAGES_EDEFAULT; + + /** + * The default value of the '{@link #getNbALUs() Nb AL Us}' attribute. + * + * + * @see #getNbALUs() + * @generated + * @ordered + */ + protected static final String NB_AL_US_EDEFAULT = null; + + /** + * The cached value of the '{@link #getNbALUs() Nb AL Us}' attribute. + * + * + * @see #getNbALUs() + * @generated + * @ordered + */ + protected String nbALUs = NB_AL_US_EDEFAULT; + + /** + * The default value of the '{@link #getNbFPUs() Nb FP Us}' attribute. + * + * + * @see #getNbFPUs() + * @generated + * @ordered + */ + protected static final String NB_FP_US_EDEFAULT = null; + + /** + * The cached value of the '{@link #getNbFPUs() Nb FP Us}' attribute. + * + * + * @see #getNbFPUs() + * @generated + * @ordered + */ + protected String nbFPUs = NB_FP_US_EDEFAULT; + + /** + * The cached value of the '{@link #getOwnedISAs() Owned IS As}' reference list. + * + * + * @see #getOwnedISAs() + * @generated + * @ordered + */ + protected EList ownedISAs; + + /** + * The cached value of the '{@link #getPredictors() Predictors}' reference list. + * + * + * @see #getPredictors() + * @generated + * @ordered + */ + protected EList predictors; + + /** + * The cached value of the '{@link #getCaches() Caches}' reference list. + * + * + * @see #getCaches() + * @generated + * @ordered + */ + protected EList caches; + + /** + * The cached value of the '{@link #getOwnedMMUs() Owned MM Us}' reference list. + * + * + * @see #getOwnedMMUs() + * @generated + * @ordered + */ + protected EList ownedMMUs; + + /** + * + * + * @generated + */ + protected HwProcessorImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return HwComputingPackage.Literals.HW_PROCESSOR; + } + + /** + * + * + * @generated NOT + */ + public String getArchitecture() { + // TODO: implement this method to return the 'Architecture' attribute + // Ensure that you remove @generated or mark it @generated NOT + // throw new UnsupportedOperationException(); + + Object base = null; + if(getBase_Classifier()!=null) + base = getBase_Classifier(); + else if(getBase_ConnectableElement()!=null) + base = getBase_ConnectableElement(); + else if(getBase_InstanceSpecification()!=null) + base = getBase_InstanceSpecification(); + else if(getBase_Lifeline()!=null) + base = getBase_Lifeline(); + else if(getBase_Property()!=null) + base = getBase_Property(); + + String archi=null; + + if(base!=null) { + //Object ownedISAs = eGet(HwComputingPackage.HW_PROCESSOR__OWNED_IS_AS, false, false); + + int instWidth = 0; + Iterator isaIter = getOwnedISAs().iterator(); + while(isaIter.hasNext()) { + HwISA currentISA = isaIter.next(); + String widthTuple = currentISA.getInst_Width(); + if(widthTuple!=null) { + Integer intWidth = Integer.valueOf(MarteUtils.getValueFromTuple(widthTuple, "value")); + if(instWidth < intWidth) { + instWidth = intWidth; + String stringUnit = MarteUtils.getValueFromTuple(widthTuple, "unit"); + archi = "{unit="+stringUnit+",value=" + String.valueOf(instWidth) + "}"; + } + } + } + } + + return archi; + + } + + /** + * + * + * @generated + */ + public void setArchitecture(String newArchitecture) { + // TODO: implement this method to set the 'Architecture' attribute + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public String getMips() { + return mips; + } + + /** + * + * + * @generated + */ + public void setMips(String newMips) { + String oldMips = mips; + mips = newMips; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwComputingPackage.HW_PROCESSOR__MIPS, oldMips, mips)); + } + + /** + * + * + * @generated NOT + */ + public String getIpc() { + // TODO: implement this method to return the 'Ipc' attribute + // Ensure that you remove @generated or mark it @generated NOT + // throw new UnsupportedOperationException(); + + String ipc = null; + + String mipsTuple = getMips(); + String frequencyTuple = getFrequency(); + + if(mipsTuple != null && frequencyTuple!=null) { + int mipsValue = Integer.valueOf(MarteUtils.getValueFromTuple(mipsTuple, "value")); + float frequencyValue = Float.valueOf(MarteUtils.getValueFromTuple(frequencyTuple, "value")); + String frequencyUnit = MarteUtils.getValueFromTuple(frequencyTuple, "unit"); + long convFactor = 1; + if(frequencyUnit.equals("Gz")) + convFactor = 1000000000; + else if(frequencyUnit.equals("Mz")) + convFactor = 1000000; + else if(frequencyUnit.equals("KHz")) + convFactor = 1000; + + ipc = String.valueOf((mipsValue*1000000)/(convFactor*frequencyValue)); + } + + return ipc; + } + + /** + * + * + * @generated + */ + public void setIpc(String newIpc) { + // TODO: implement this method to set the 'Ipc' attribute + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public String getNbCores() { + return nbCores; + } + + /** + * + * + * @generated + */ + public void setNbCores(String newNbCores) { + String oldNbCores = nbCores; + nbCores = newNbCores; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwComputingPackage.HW_PROCESSOR__NB_CORES, oldNbCores, nbCores)); + } + + /** + * + * + * @generated + */ + public String getNbPipelines() { + return nbPipelines; + } + + /** + * + * + * @generated + */ + public void setNbPipelines(String newNbPipelines) { + String oldNbPipelines = nbPipelines; + nbPipelines = newNbPipelines; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwComputingPackage.HW_PROCESSOR__NB_PIPELINES, oldNbPipelines, nbPipelines)); + } + + /** + * + * + * @generated + */ + public String getNbStages() { + return nbStages; + } + + /** + * + * + * @generated + */ + public void setNbStages(String newNbStages) { + String oldNbStages = nbStages; + nbStages = newNbStages; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwComputingPackage.HW_PROCESSOR__NB_STAGES, oldNbStages, nbStages)); + } + + /** + * + * + * @generated + */ + public String getNbALUs() { + return nbALUs; + } + + /** + * + * + * @generated + */ + public void setNbALUs(String newNbALUs) { + String oldNbALUs = nbALUs; + nbALUs = newNbALUs; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwComputingPackage.HW_PROCESSOR__NB_AL_US, oldNbALUs, nbALUs)); + } + + /** + * + * + * @generated + */ + public String getNbFPUs() { + return nbFPUs; + } + + /** + * + * + * @generated + */ + public void setNbFPUs(String newNbFPUs) { + String oldNbFPUs = nbFPUs; + nbFPUs = newNbFPUs; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwComputingPackage.HW_PROCESSOR__NB_FP_US, oldNbFPUs, nbFPUs)); + } + + /** + * + * + * @generated + */ + public EList getOwnedISAs() { + if (ownedISAs == null) { + ownedISAs = new EObjectResolvingEList(HwISA.class, this, HwComputingPackage.HW_PROCESSOR__OWNED_IS_AS); + } + return ownedISAs; + } + + /** + * + * + * @generated + */ + public EList getPredictors() { + if (predictors == null) { + predictors = new EObjectResolvingEList(HwBranchPredictor.class, this, HwComputingPackage.HW_PROCESSOR__PREDICTORS); + } + return predictors; + } + + /** + * + * + * @generated + */ + public EList getCaches() { + if (caches == null) { + caches = new EObjectResolvingEList(HwCache.class, this, HwComputingPackage.HW_PROCESSOR__CACHES); + } + return caches; + } + + /** + * + * + * @generated + */ + public EList getOwnedMMUs() { + if (ownedMMUs == null) { + ownedMMUs = new EObjectResolvingEList(HwMMU.class, this, HwComputingPackage.HW_PROCESSOR__OWNED_MM_US); + } + return ownedMMUs; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case HwComputingPackage.HW_PROCESSOR__ARCHITECTURE: + return getArchitecture(); + case HwComputingPackage.HW_PROCESSOR__MIPS: + return getMips(); + case HwComputingPackage.HW_PROCESSOR__IPC: + return getIpc(); + case HwComputingPackage.HW_PROCESSOR__NB_CORES: + return getNbCores(); + case HwComputingPackage.HW_PROCESSOR__NB_PIPELINES: + return getNbPipelines(); + case HwComputingPackage.HW_PROCESSOR__NB_STAGES: + return getNbStages(); + case HwComputingPackage.HW_PROCESSOR__NB_AL_US: + return getNbALUs(); + case HwComputingPackage.HW_PROCESSOR__NB_FP_US: + return getNbFPUs(); + case HwComputingPackage.HW_PROCESSOR__OWNED_IS_AS: + return getOwnedISAs(); + case HwComputingPackage.HW_PROCESSOR__PREDICTORS: + return getPredictors(); + case HwComputingPackage.HW_PROCESSOR__CACHES: + return getCaches(); + case HwComputingPackage.HW_PROCESSOR__OWNED_MM_US: + return getOwnedMMUs(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case HwComputingPackage.HW_PROCESSOR__ARCHITECTURE: + setArchitecture((String)newValue); + return; + case HwComputingPackage.HW_PROCESSOR__MIPS: + setMips((String)newValue); + return; + case HwComputingPackage.HW_PROCESSOR__IPC: + setIpc((String)newValue); + return; + case HwComputingPackage.HW_PROCESSOR__NB_CORES: + setNbCores((String)newValue); + return; + case HwComputingPackage.HW_PROCESSOR__NB_PIPELINES: + setNbPipelines((String)newValue); + return; + case HwComputingPackage.HW_PROCESSOR__NB_STAGES: + setNbStages((String)newValue); + return; + case HwComputingPackage.HW_PROCESSOR__NB_AL_US: + setNbALUs((String)newValue); + return; + case HwComputingPackage.HW_PROCESSOR__NB_FP_US: + setNbFPUs((String)newValue); + return; + case HwComputingPackage.HW_PROCESSOR__OWNED_IS_AS: + getOwnedISAs().clear(); + getOwnedISAs().addAll((Collection)newValue); + return; + case HwComputingPackage.HW_PROCESSOR__PREDICTORS: + getPredictors().clear(); + getPredictors().addAll((Collection)newValue); + return; + case HwComputingPackage.HW_PROCESSOR__CACHES: + getCaches().clear(); + getCaches().addAll((Collection)newValue); + return; + case HwComputingPackage.HW_PROCESSOR__OWNED_MM_US: + getOwnedMMUs().clear(); + getOwnedMMUs().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case HwComputingPackage.HW_PROCESSOR__ARCHITECTURE: + setArchitecture(ARCHITECTURE_EDEFAULT); + return; + case HwComputingPackage.HW_PROCESSOR__MIPS: + setMips(MIPS_EDEFAULT); + return; + case HwComputingPackage.HW_PROCESSOR__IPC: + setIpc(IPC_EDEFAULT); + return; + case HwComputingPackage.HW_PROCESSOR__NB_CORES: + setNbCores(NB_CORES_EDEFAULT); + return; + case HwComputingPackage.HW_PROCESSOR__NB_PIPELINES: + setNbPipelines(NB_PIPELINES_EDEFAULT); + return; + case HwComputingPackage.HW_PROCESSOR__NB_STAGES: + setNbStages(NB_STAGES_EDEFAULT); + return; + case HwComputingPackage.HW_PROCESSOR__NB_AL_US: + setNbALUs(NB_AL_US_EDEFAULT); + return; + case HwComputingPackage.HW_PROCESSOR__NB_FP_US: + setNbFPUs(NB_FP_US_EDEFAULT); + return; + case HwComputingPackage.HW_PROCESSOR__OWNED_IS_AS: + getOwnedISAs().clear(); + return; + case HwComputingPackage.HW_PROCESSOR__PREDICTORS: + getPredictors().clear(); + return; + case HwComputingPackage.HW_PROCESSOR__CACHES: + getCaches().clear(); + return; + case HwComputingPackage.HW_PROCESSOR__OWNED_MM_US: + getOwnedMMUs().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case HwComputingPackage.HW_PROCESSOR__ARCHITECTURE: + return ARCHITECTURE_EDEFAULT == null ? getArchitecture() != null : !ARCHITECTURE_EDEFAULT.equals(getArchitecture()); + case HwComputingPackage.HW_PROCESSOR__MIPS: + return MIPS_EDEFAULT == null ? mips != null : !MIPS_EDEFAULT.equals(mips); + case HwComputingPackage.HW_PROCESSOR__IPC: + return IPC_EDEFAULT == null ? getIpc() != null : !IPC_EDEFAULT.equals(getIpc()); + case HwComputingPackage.HW_PROCESSOR__NB_CORES: + return NB_CORES_EDEFAULT == null ? nbCores != null : !NB_CORES_EDEFAULT.equals(nbCores); + case HwComputingPackage.HW_PROCESSOR__NB_PIPELINES: + return NB_PIPELINES_EDEFAULT == null ? nbPipelines != null : !NB_PIPELINES_EDEFAULT.equals(nbPipelines); + case HwComputingPackage.HW_PROCESSOR__NB_STAGES: + return NB_STAGES_EDEFAULT == null ? nbStages != null : !NB_STAGES_EDEFAULT.equals(nbStages); + case HwComputingPackage.HW_PROCESSOR__NB_AL_US: + return NB_AL_US_EDEFAULT == null ? nbALUs != null : !NB_AL_US_EDEFAULT.equals(nbALUs); + case HwComputingPackage.HW_PROCESSOR__NB_FP_US: + return NB_FP_US_EDEFAULT == null ? nbFPUs != null : !NB_FP_US_EDEFAULT.equals(nbFPUs); + case HwComputingPackage.HW_PROCESSOR__OWNED_IS_AS: + return ownedISAs != null && !ownedISAs.isEmpty(); + case HwComputingPackage.HW_PROCESSOR__PREDICTORS: + return predictors != null && !predictors.isEmpty(); + case HwComputingPackage.HW_PROCESSOR__CACHES: + return caches != null && !caches.isEmpty(); + case HwComputingPackage.HW_PROCESSOR__OWNED_MM_US: + return ownedMMUs != null && !ownedMMUs.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (mips: "); + result.append(mips); + result.append(", nbCores: "); + result.append(nbCores); + result.append(", nbPipelines: "); + result.append(nbPipelines); + result.append(", nbStages: "); + result.append(nbStages); + result.append(", nbALUs: "); + result.append(nbALUs); + result.append(", nbFPUs: "); + result.append(nbFPUs); + result.append(')'); + return result.toString(); + } + +} //HwProcessorImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/util/HwComputingAdapterFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/util/HwComputingAdapterFactory.java new file mode 100644 index 00000000000..338e3d7c12c --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/util/HwComputingAdapterFactory.java @@ -0,0 +1,299 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwComputing.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.MARTE_DesignModel.HRM.HwGeneral.HwResource; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.*; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ComputingResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ProcessingResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingPackage + * @generated + */ +public class HwComputingAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * @generated + */ + protected static HwComputingPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public HwComputingAdapterFactory() { + if (modelPackage == null) { + modelPackage = HwComputingPackage.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 HwComputingSwitch modelSwitch = + new HwComputingSwitch() { + @Override + public Adapter caseHwProcessor(HwProcessor object) { + return createHwProcessorAdapter(); + } + @Override + public Adapter caseHwComputingResource(HwComputingResource object) { + return createHwComputingResourceAdapter(); + } + @Override + public Adapter caseHwISA(HwISA object) { + return createHwISAAdapter(); + } + @Override + public Adapter caseHwBranchPredictor(HwBranchPredictor object) { + return createHwBranchPredictorAdapter(); + } + @Override + public Adapter caseHwASIC(HwASIC object) { + return createHwASICAdapter(); + } + @Override + public Adapter caseHwPLD(HwPLD object) { + return createHwPLDAdapter(); + } + @Override + public Adapter caseResource(Resource object) { + return createResourceAdapter(); + } + @Override + public Adapter caseHwResource(HwResource object) { + return createHwResourceAdapter(); + } + @Override + public Adapter caseProcessingResource(ProcessingResource object) { + return createProcessingResourceAdapter(); + } + @Override + public Adapter caseComputingResource(ComputingResource object) { + return createComputingResourceAdapter(); + } + @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.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor Hw Processor}'. + * + * 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.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor + * @generated + */ + public Adapter createHwProcessorAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingResource Resource}'. + * + * 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.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingResource + * @generated + */ + public Adapter createHwComputingResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwISA Hw ISA}'. + * + * 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.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwISA + * @generated + */ + public Adapter createHwISAAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwBranchPredictor Hw Branch Predictor}'. + * + * 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.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwBranchPredictor + * @generated + */ + public Adapter createHwBranchPredictorAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwASIC Hw ASIC}'. + * + * 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.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwASIC + * @generated + */ + public Adapter createHwASICAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwPLD Hw PLD}'. + * + * 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.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwPLD + * @generated + */ + public Adapter createHwPLDAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource Resource}'. + * + * 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.MARTE_Foundations.GRM.Resource + * @generated + */ + public Adapter createResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource Hw Resource}'. + * + * 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.MARTE_DesignModel.HRM.HwGeneral.HwResource + * @generated + */ + public Adapter createHwResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ProcessingResource Processing Resource}'. + * + * 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.MARTE_Foundations.GRM.ProcessingResource + * @generated + */ + public Adapter createProcessingResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ComputingResource Computing Resource}'. + * + * 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.MARTE_Foundations.GRM.ComputingResource + * @generated + */ + public Adapter createComputingResourceAdapter() { + 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; + } + +} //HwComputingAdapterFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/util/HwComputingResourceFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/util/HwComputingResourceFactoryImpl.java new file mode 100644 index 00000000000..b61ff248b51 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/util/HwComputingResourceFactoryImpl.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.MARTE_DesignModel.HRM.HwLogical.HwComputing.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; + +import org.eclipse.emf.ecore.xmi.XMLResource; + +/** + * + * The Resource Factory associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.util.HwComputingResourceImpl + * @generated + */ +public class HwComputingResourceFactoryImpl extends ResourceFactoryImpl { + /** + * Creates an instance of the resource factory. + * + * + * @generated + */ + public HwComputingResourceFactoryImpl() { + super(); + } + + /** + * Creates an instance of the resource. + * + * + * @generated + */ + @Override + public Resource createResource(URI uri) { + XMLResource result = new HwComputingResourceImpl(uri); + result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + + result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); + return result; + } + +} //HwComputingResourceFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/util/HwComputingResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/util/HwComputingResourceImpl.java new file mode 100644 index 00000000000..be8e94e1bc6 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/util/HwComputingResourceImpl.java @@ -0,0 +1,39 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwComputing.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; + +/** + * + * The Resource associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.util.HwComputingResourceFactoryImpl + * @generated + */ +public class HwComputingResourceImpl extends XMLResourceImpl { + /** + * Creates an instance of the resource. + * + * + * @param uri the URI of the new resource. + * @generated + */ + public HwComputingResourceImpl(URI uri) { + super(uri); + } + +} //HwComputingResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/util/HwComputingSwitch.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/util/HwComputingSwitch.java new file mode 100644 index 00000000000..dfd0ce92d66 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/util/HwComputingSwitch.java @@ -0,0 +1,331 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwComputing.util; + +import java.util.List; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.*; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ComputingResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ProcessingResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource; + +/** + * + * 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.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingPackage + * @generated + */ +public class HwComputingSwitch { + /** + * The cached model package + * + * + * @generated + */ + protected static HwComputingPackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public HwComputingSwitch() { + if (modelPackage == null) { + modelPackage = HwComputingPackage.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 HwComputingPackage.HW_PROCESSOR: { + HwProcessor hwProcessor = (HwProcessor)theEObject; + T result = caseHwProcessor(hwProcessor); + if (result == null) result = caseHwComputingResource(hwProcessor); + if (result == null) result = caseHwResource(hwProcessor); + if (result == null) result = caseComputingResource(hwProcessor); + if (result == null) result = caseProcessingResource(hwProcessor); + if (result == null) result = caseResource(hwProcessor); + if (result == null) result = defaultCase(theEObject); + return result; + } + case HwComputingPackage.HW_COMPUTING_RESOURCE: { + HwComputingResource hwComputingResource = (HwComputingResource)theEObject; + T result = caseHwComputingResource(hwComputingResource); + if (result == null) result = caseHwResource(hwComputingResource); + if (result == null) result = caseComputingResource(hwComputingResource); + if (result == null) result = caseProcessingResource(hwComputingResource); + if (result == null) result = caseResource(hwComputingResource); + if (result == null) result = defaultCase(theEObject); + return result; + } + case HwComputingPackage.HW_ISA: { + HwISA hwISA = (HwISA)theEObject; + T result = caseHwISA(hwISA); + if (result == null) result = caseHwResource(hwISA); + if (result == null) result = caseResource(hwISA); + if (result == null) result = defaultCase(theEObject); + return result; + } + case HwComputingPackage.HW_BRANCH_PREDICTOR: { + HwBranchPredictor hwBranchPredictor = (HwBranchPredictor)theEObject; + T result = caseHwBranchPredictor(hwBranchPredictor); + if (result == null) result = caseHwResource(hwBranchPredictor); + if (result == null) result = caseResource(hwBranchPredictor); + if (result == null) result = defaultCase(theEObject); + return result; + } + case HwComputingPackage.HW_ASIC: { + HwASIC hwASIC = (HwASIC)theEObject; + T result = caseHwASIC(hwASIC); + if (result == null) result = caseHwComputingResource(hwASIC); + if (result == null) result = caseHwResource(hwASIC); + if (result == null) result = caseComputingResource(hwASIC); + if (result == null) result = caseProcessingResource(hwASIC); + if (result == null) result = caseResource(hwASIC); + if (result == null) result = defaultCase(theEObject); + return result; + } + case HwComputingPackage.HW_PLD: { + HwPLD hwPLD = (HwPLD)theEObject; + T result = caseHwPLD(hwPLD); + if (result == null) result = caseHwComputingResource(hwPLD); + if (result == null) result = caseHwResource(hwPLD); + if (result == null) result = caseComputingResource(hwPLD); + if (result == null) result = caseProcessingResource(hwPLD); + if (result == null) result = caseResource(hwPLD); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Hw Processor'. + * + * 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 'Hw Processor'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHwProcessor(HwProcessor object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Resource'. + * + * 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 'Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHwComputingResource(HwComputingResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Hw ISA'. + * + * 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 'Hw ISA'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHwISA(HwISA object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Hw Branch Predictor'. + * + * 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 'Hw Branch Predictor'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHwBranchPredictor(HwBranchPredictor object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Hw ASIC'. + * + * 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 'Hw ASIC'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHwASIC(HwASIC object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Hw PLD'. + * + * 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 'Hw PLD'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHwPLD(HwPLD object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Resource'. + * + * 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 'Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseResource(Resource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Hw Resource'. + * + * 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 'Hw Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHwResource(HwResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Processing Resource'. + * + * 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 'Processing Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseProcessingResource(ProcessingResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Computing Resource'. + * + * 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 'Computing Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseComputingResource(ComputingResource 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; + } + +} //HwComputingSwitch diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/util/HwComputingXMLProcessor.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/util/HwComputingXMLProcessor.java new file mode 100644 index 00000000000..386ff3eb880 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwComputing/util/HwComputingXMLProcessor.java @@ -0,0 +1,61 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwComputing.util; + +import java.util.Map; + +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.xmi.util.XMLProcessor; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwComputingPackage; + +/** + * This class contains helper methods to serialize and deserialize XML documents + * + * + * @generated + */ +public class HwComputingXMLProcessor extends XMLProcessor { + + /** + * Public constructor to instantiate the helper. + * + * + * @generated + */ + public HwComputingXMLProcessor() { + super((EPackage.Registry.INSTANCE)); + HwComputingPackage.eINSTANCE.eClass(); + } + + /** + * Register for "*" and "xml" file extensions the HwComputingResourceFactoryImpl factory. + * + * + * @generated + */ + @Override + protected Map getRegistrations() { + if (registrations == null) { + super.getRegistrations(); + registrations.put(XML_EXTENSION, new HwComputingResourceFactoryImpl()); + registrations.put(STAR_EXTENSION, new HwComputingResourceFactoryImpl()); + } + return registrations; + } + +} //HwComputingXMLProcessor diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/HWActuator.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/HWActuator.java new file mode 100644 index 00000000000..268d2d26f51 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/HWActuator.java @@ -0,0 +1,28 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwDevice; + + +/** + * + * A representation of the model object 'HW Actuator'. + * + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.HwDevicePackage#getHWActuator() + * @model + * @generated + */ +public interface HWActuator extends HwI_O { +} // HWActuator diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/HWSensor.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/HWSensor.java new file mode 100644 index 00000000000..440561fac61 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/HWSensor.java @@ -0,0 +1,28 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwDevice; + + +/** + * + * A representation of the model object 'HW Sensor'. + * + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.HwDevicePackage#getHWSensor() + * @model + * @generated + */ +public interface HWSensor extends HwI_O { +} // HWSensor diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/HwDevice.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/HwDevice.java new file mode 100644 index 00000000000..6ab15cbe06d --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/HwDevice.java @@ -0,0 +1,31 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwDevice; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.DeviceResource; + +/** + * + * A representation of the model object 'Hw Device'. + * + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.HwDevicePackage#getHwDevice() + * @model + * @generated + */ +public interface HwDevice extends HwResource, DeviceResource { +} // HwDevice diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/HwDeviceFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/HwDeviceFactory.java new file mode 100644 index 00000000000..f7b543a973f --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/HwDeviceFactory.java @@ -0,0 +1,89 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwDevice; + +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.MARTE_DesignModel.HRM.HwLogical.HwDevice.HwDevicePackage + * @generated + */ +public interface HwDeviceFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + HwDeviceFactory eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.impl.HwDeviceFactoryImpl.init(); + + /** + * Returns a new object of class 'Hw Device'. + * + * + * @return a new object of class 'Hw Device'. + * @generated + */ + HwDevice createHwDevice(); + + /** + * Returns a new object of class 'Hw IO'. + * + * + * @return a new object of class 'Hw IO'. + * @generated + */ + HwI_O createHwI_O(); + + /** + * Returns a new object of class 'Hw Support'. + * + * + * @return a new object of class 'Hw Support'. + * @generated + */ + HwSupport createHwSupport(); + + /** + * Returns a new object of class 'HW Actuator'. + * + * + * @return a new object of class 'HW Actuator'. + * @generated + */ + HWActuator createHWActuator(); + + /** + * Returns a new object of class 'HW Sensor'. + * + * + * @return a new object of class 'HW Sensor'. + * @generated + */ + HWSensor createHWSensor(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + HwDevicePackage getHwDevicePackage(); + +} //HwDeviceFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/HwDevicePackage.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/HwDevicePackage.java new file mode 100644 index 00000000000..ed9bd9788a4 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/HwDevicePackage.java @@ -0,0 +1,1009 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwDevice; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwGeneralPackage; + +/** + * + * 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.MARTE_DesignModel.HRM.HwLogical.HwDevice.HwDeviceFactory + * @model kind="package" + * @generated + */ +public interface HwDevicePackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "HwDevice"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "http://www.eclipse.org/papyrus/HwDevice/1"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "HwDevice"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + HwDevicePackage eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.impl.HwDevicePackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.impl.HwDeviceImpl Hw Device}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.impl.HwDeviceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.impl.HwDevicePackageImpl#getHwDevice() + * @generated + */ + int HW_DEVICE = 0; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int HW_DEVICE__RES_MULT = HwGeneralPackage.HW_RESOURCE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int HW_DEVICE__IS_PROTECTED = HwGeneralPackage.HW_RESOURCE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int HW_DEVICE__IS_ACTIVE = HwGeneralPackage.HW_RESOURCE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int HW_DEVICE__BASE_PROPERTY = HwGeneralPackage.HW_RESOURCE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int HW_DEVICE__BASE_INSTANCE_SPECIFICATION = HwGeneralPackage.HW_RESOURCE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int HW_DEVICE__BASE_CLASSIFIER = HwGeneralPackage.HW_RESOURCE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int HW_DEVICE__BASE_LIFELINE = HwGeneralPackage.HW_RESOURCE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int HW_DEVICE__BASE_CONNECTABLE_ELEMENT = HwGeneralPackage.HW_RESOURCE__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int HW_DEVICE__DESCRIPTION = HwGeneralPackage.HW_RESOURCE__DESCRIPTION; + + /** + * The feature id for the 'PHW Services' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_DEVICE__PHW_SERVICES = HwGeneralPackage.HW_RESOURCE__PHW_SERVICES; + + /** + * The feature id for the 'RHW Services' reference list. + * + * + * @generated + * @ordered + */ + int HW_DEVICE__RHW_SERVICES = HwGeneralPackage.HW_RESOURCE__RHW_SERVICES; + + /** + * The feature id for the 'Owned HW' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_DEVICE__OWNED_HW = HwGeneralPackage.HW_RESOURCE__OWNED_HW; + + /** + * The feature id for the 'End Points' reference list. + * + * + * @generated + * @ordered + */ + int HW_DEVICE__END_POINTS = HwGeneralPackage.HW_RESOURCE__END_POINTS; + + /** + * The feature id for the 'Frequency' attribute. + * + * + * @generated + * @ordered + */ + int HW_DEVICE__FREQUENCY = HwGeneralPackage.HW_RESOURCE__FREQUENCY; + + /** + * The feature id for the 'Speed Factor' attribute. + * + * + * @generated + * @ordered + */ + int HW_DEVICE__SPEED_FACTOR = HwGeneralPackage.HW_RESOURCE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Main Scheduler' reference. + * + * + * @generated + * @ordered + */ + int HW_DEVICE__MAIN_SCHEDULER = HwGeneralPackage.HW_RESOURCE_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Hw Device' class. + * + * + * @generated + * @ordered + */ + int HW_DEVICE_FEATURE_COUNT = HwGeneralPackage.HW_RESOURCE_FEATURE_COUNT + 2; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.impl.HwI_OImpl Hw IO}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.impl.HwI_OImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.impl.HwDevicePackageImpl#getHwI_O() + * @generated + */ + int HW_IO = 1; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int HW_IO__RES_MULT = HW_DEVICE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int HW_IO__IS_PROTECTED = HW_DEVICE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int HW_IO__IS_ACTIVE = HW_DEVICE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int HW_IO__BASE_PROPERTY = HW_DEVICE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int HW_IO__BASE_INSTANCE_SPECIFICATION = HW_DEVICE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int HW_IO__BASE_CLASSIFIER = HW_DEVICE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int HW_IO__BASE_LIFELINE = HW_DEVICE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int HW_IO__BASE_CONNECTABLE_ELEMENT = HW_DEVICE__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int HW_IO__DESCRIPTION = HW_DEVICE__DESCRIPTION; + + /** + * The feature id for the 'PHW Services' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_IO__PHW_SERVICES = HW_DEVICE__PHW_SERVICES; + + /** + * The feature id for the 'RHW Services' reference list. + * + * + * @generated + * @ordered + */ + int HW_IO__RHW_SERVICES = HW_DEVICE__RHW_SERVICES; + + /** + * The feature id for the 'Owned HW' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_IO__OWNED_HW = HW_DEVICE__OWNED_HW; + + /** + * The feature id for the 'End Points' reference list. + * + * + * @generated + * @ordered + */ + int HW_IO__END_POINTS = HW_DEVICE__END_POINTS; + + /** + * The feature id for the 'Frequency' attribute. + * + * + * @generated + * @ordered + */ + int HW_IO__FREQUENCY = HW_DEVICE__FREQUENCY; + + /** + * The feature id for the 'Speed Factor' attribute. + * + * + * @generated + * @ordered + */ + int HW_IO__SPEED_FACTOR = HW_DEVICE__SPEED_FACTOR; + + /** + * The feature id for the 'Main Scheduler' reference. + * + * + * @generated + * @ordered + */ + int HW_IO__MAIN_SCHEDULER = HW_DEVICE__MAIN_SCHEDULER; + + /** + * The number of structural features of the 'Hw IO' class. + * + * + * @generated + * @ordered + */ + int HW_IO_FEATURE_COUNT = HW_DEVICE_FEATURE_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.impl.HwSupportImpl Hw Support}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.impl.HwSupportImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.impl.HwDevicePackageImpl#getHwSupport() + * @generated + */ + int HW_SUPPORT = 2; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int HW_SUPPORT__RES_MULT = HW_DEVICE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int HW_SUPPORT__IS_PROTECTED = HW_DEVICE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int HW_SUPPORT__IS_ACTIVE = HW_DEVICE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int HW_SUPPORT__BASE_PROPERTY = HW_DEVICE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int HW_SUPPORT__BASE_INSTANCE_SPECIFICATION = HW_DEVICE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int HW_SUPPORT__BASE_CLASSIFIER = HW_DEVICE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int HW_SUPPORT__BASE_LIFELINE = HW_DEVICE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int HW_SUPPORT__BASE_CONNECTABLE_ELEMENT = HW_DEVICE__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int HW_SUPPORT__DESCRIPTION = HW_DEVICE__DESCRIPTION; + + /** + * The feature id for the 'PHW Services' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_SUPPORT__PHW_SERVICES = HW_DEVICE__PHW_SERVICES; + + /** + * The feature id for the 'RHW Services' reference list. + * + * + * @generated + * @ordered + */ + int HW_SUPPORT__RHW_SERVICES = HW_DEVICE__RHW_SERVICES; + + /** + * The feature id for the 'Owned HW' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_SUPPORT__OWNED_HW = HW_DEVICE__OWNED_HW; + + /** + * The feature id for the 'End Points' reference list. + * + * + * @generated + * @ordered + */ + int HW_SUPPORT__END_POINTS = HW_DEVICE__END_POINTS; + + /** + * The feature id for the 'Frequency' attribute. + * + * + * @generated + * @ordered + */ + int HW_SUPPORT__FREQUENCY = HW_DEVICE__FREQUENCY; + + /** + * The feature id for the 'Speed Factor' attribute. + * + * + * @generated + * @ordered + */ + int HW_SUPPORT__SPEED_FACTOR = HW_DEVICE__SPEED_FACTOR; + + /** + * The feature id for the 'Main Scheduler' reference. + * + * + * @generated + * @ordered + */ + int HW_SUPPORT__MAIN_SCHEDULER = HW_DEVICE__MAIN_SCHEDULER; + + /** + * The number of structural features of the 'Hw Support' class. + * + * + * @generated + * @ordered + */ + int HW_SUPPORT_FEATURE_COUNT = HW_DEVICE_FEATURE_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.impl.HWActuatorImpl HW Actuator}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.impl.HWActuatorImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.impl.HwDevicePackageImpl#getHWActuator() + * @generated + */ + int HW_ACTUATOR = 3; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int HW_ACTUATOR__RES_MULT = HW_IO__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int HW_ACTUATOR__IS_PROTECTED = HW_IO__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int HW_ACTUATOR__IS_ACTIVE = HW_IO__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int HW_ACTUATOR__BASE_PROPERTY = HW_IO__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int HW_ACTUATOR__BASE_INSTANCE_SPECIFICATION = HW_IO__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int HW_ACTUATOR__BASE_CLASSIFIER = HW_IO__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int HW_ACTUATOR__BASE_LIFELINE = HW_IO__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int HW_ACTUATOR__BASE_CONNECTABLE_ELEMENT = HW_IO__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int HW_ACTUATOR__DESCRIPTION = HW_IO__DESCRIPTION; + + /** + * The feature id for the 'PHW Services' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_ACTUATOR__PHW_SERVICES = HW_IO__PHW_SERVICES; + + /** + * The feature id for the 'RHW Services' reference list. + * + * + * @generated + * @ordered + */ + int HW_ACTUATOR__RHW_SERVICES = HW_IO__RHW_SERVICES; + + /** + * The feature id for the 'Owned HW' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_ACTUATOR__OWNED_HW = HW_IO__OWNED_HW; + + /** + * The feature id for the 'End Points' reference list. + * + * + * @generated + * @ordered + */ + int HW_ACTUATOR__END_POINTS = HW_IO__END_POINTS; + + /** + * The feature id for the 'Frequency' attribute. + * + * + * @generated + * @ordered + */ + int HW_ACTUATOR__FREQUENCY = HW_IO__FREQUENCY; + + /** + * The feature id for the 'Speed Factor' attribute. + * + * + * @generated + * @ordered + */ + int HW_ACTUATOR__SPEED_FACTOR = HW_IO__SPEED_FACTOR; + + /** + * The feature id for the 'Main Scheduler' reference. + * + * + * @generated + * @ordered + */ + int HW_ACTUATOR__MAIN_SCHEDULER = HW_IO__MAIN_SCHEDULER; + + /** + * The number of structural features of the 'HW Actuator' class. + * + * + * @generated + * @ordered + */ + int HW_ACTUATOR_FEATURE_COUNT = HW_IO_FEATURE_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.impl.HWSensorImpl HW Sensor}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.impl.HWSensorImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.impl.HwDevicePackageImpl#getHWSensor() + * @generated + */ + int HW_SENSOR = 4; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int HW_SENSOR__RES_MULT = HW_IO__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int HW_SENSOR__IS_PROTECTED = HW_IO__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int HW_SENSOR__IS_ACTIVE = HW_IO__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int HW_SENSOR__BASE_PROPERTY = HW_IO__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int HW_SENSOR__BASE_INSTANCE_SPECIFICATION = HW_IO__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int HW_SENSOR__BASE_CLASSIFIER = HW_IO__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int HW_SENSOR__BASE_LIFELINE = HW_IO__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int HW_SENSOR__BASE_CONNECTABLE_ELEMENT = HW_IO__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int HW_SENSOR__DESCRIPTION = HW_IO__DESCRIPTION; + + /** + * The feature id for the 'PHW Services' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_SENSOR__PHW_SERVICES = HW_IO__PHW_SERVICES; + + /** + * The feature id for the 'RHW Services' reference list. + * + * + * @generated + * @ordered + */ + int HW_SENSOR__RHW_SERVICES = HW_IO__RHW_SERVICES; + + /** + * The feature id for the 'Owned HW' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_SENSOR__OWNED_HW = HW_IO__OWNED_HW; + + /** + * The feature id for the 'End Points' reference list. + * + * + * @generated + * @ordered + */ + int HW_SENSOR__END_POINTS = HW_IO__END_POINTS; + + /** + * The feature id for the 'Frequency' attribute. + * + * + * @generated + * @ordered + */ + int HW_SENSOR__FREQUENCY = HW_IO__FREQUENCY; + + /** + * The feature id for the 'Speed Factor' attribute. + * + * + * @generated + * @ordered + */ + int HW_SENSOR__SPEED_FACTOR = HW_IO__SPEED_FACTOR; + + /** + * The feature id for the 'Main Scheduler' reference. + * + * + * @generated + * @ordered + */ + int HW_SENSOR__MAIN_SCHEDULER = HW_IO__MAIN_SCHEDULER; + + /** + * The number of structural features of the 'HW Sensor' class. + * + * + * @generated + * @ordered + */ + int HW_SENSOR_FEATURE_COUNT = HW_IO_FEATURE_COUNT + 0; + + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.HwDevice Hw Device}'. + * + * + * @return the meta object for class 'Hw Device'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.HwDevice + * @generated + */ + EClass getHwDevice(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.HwI_O Hw IO}'. + * + * + * @return the meta object for class 'Hw IO'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.HwI_O + * @generated + */ + EClass getHwI_O(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.HwSupport Hw Support}'. + * + * + * @return the meta object for class 'Hw Support'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.HwSupport + * @generated + */ + EClass getHwSupport(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.HWActuator HW Actuator}'. + * + * + * @return the meta object for class 'HW Actuator'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.HWActuator + * @generated + */ + EClass getHWActuator(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.HWSensor HW Sensor}'. + * + * + * @return the meta object for class 'HW Sensor'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.HWSensor + * @generated + */ + EClass getHWSensor(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + HwDeviceFactory getHwDeviceFactory(); + + /** + * + * 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.MARTE_DesignModel.HRM.HwLogical.HwDevice.impl.HwDeviceImpl Hw Device}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.impl.HwDeviceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.impl.HwDevicePackageImpl#getHwDevice() + * @generated + */ + EClass HW_DEVICE = eINSTANCE.getHwDevice(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.impl.HwI_OImpl Hw IO}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.impl.HwI_OImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.impl.HwDevicePackageImpl#getHwI_O() + * @generated + */ + EClass HW_IO = eINSTANCE.getHwI_O(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.impl.HwSupportImpl Hw Support}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.impl.HwSupportImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.impl.HwDevicePackageImpl#getHwSupport() + * @generated + */ + EClass HW_SUPPORT = eINSTANCE.getHwSupport(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.impl.HWActuatorImpl HW Actuator}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.impl.HWActuatorImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.impl.HwDevicePackageImpl#getHWActuator() + * @generated + */ + EClass HW_ACTUATOR = eINSTANCE.getHWActuator(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.impl.HWSensorImpl HW Sensor}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.impl.HWSensorImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.impl.HwDevicePackageImpl#getHWSensor() + * @generated + */ + EClass HW_SENSOR = eINSTANCE.getHWSensor(); + + } + +} //HwDevicePackage diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/HwI_O.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/HwI_O.java new file mode 100644 index 00000000000..02a25c63715 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/HwI_O.java @@ -0,0 +1,28 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwDevice; + + +/** + * + * A representation of the model object 'Hw IO'. + * + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.HwDevicePackage#getHwI_O() + * @model + * @generated + */ +public interface HwI_O extends HwDevice { +} // HwI_O diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/HwSupport.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/HwSupport.java new file mode 100644 index 00000000000..94d0c42f5c2 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/HwSupport.java @@ -0,0 +1,28 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwDevice; + + +/** + * + * A representation of the model object 'Hw Support'. + * + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.HwDevicePackage#getHwSupport() + * @model + * @generated + */ +public interface HwSupport extends HwDevice { +} // HwSupport diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/impl/HWActuatorImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/impl/HWActuatorImpl.java new file mode 100644 index 00000000000..8b72d995745 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/impl/HWActuatorImpl.java @@ -0,0 +1,50 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwDevice.impl; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.HWActuator; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.HwDevicePackage; + +/** + * + * An implementation of the model object 'HW Actuator'. + * + *

+ *

+ * + * @generated + */ +public class HWActuatorImpl extends HwI_OImpl implements HWActuator { + /** + * + * + * @generated + */ + protected HWActuatorImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return HwDevicePackage.Literals.HW_ACTUATOR; + } + +} //HWActuatorImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/impl/HWSensorImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/impl/HWSensorImpl.java new file mode 100644 index 00000000000..0ac111f66c4 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/impl/HWSensorImpl.java @@ -0,0 +1,50 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwDevice.impl; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.HWSensor; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.HwDevicePackage; + +/** + * + * An implementation of the model object 'HW Sensor'. + * + *

+ *

+ * + * @generated + */ +public class HWSensorImpl extends HwI_OImpl implements HWSensor { + /** + * + * + * @generated + */ + protected HWSensorImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return HwDevicePackage.Literals.HW_SENSOR; + } + +} //HWSensorImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/impl/HwDeviceFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/impl/HwDeviceFactoryImpl.java new file mode 100644 index 00000000000..3bc8277366a --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/impl/HwDeviceFactoryImpl.java @@ -0,0 +1,150 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwDevice.impl; + +import org.eclipse.emf.ecore.EClass; +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.MARTE_DesignModel.HRM.HwLogical.HwDevice.*; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class HwDeviceFactoryImpl extends EFactoryImpl implements HwDeviceFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static HwDeviceFactory init() { + try { + HwDeviceFactory theHwDeviceFactory = (HwDeviceFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/HwDevice/1"); + if (theHwDeviceFactory != null) { + return theHwDeviceFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new HwDeviceFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public HwDeviceFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case HwDevicePackage.HW_DEVICE: return createHwDevice(); + case HwDevicePackage.HW_IO: return createHwI_O(); + case HwDevicePackage.HW_SUPPORT: return createHwSupport(); + case HwDevicePackage.HW_ACTUATOR: return createHWActuator(); + case HwDevicePackage.HW_SENSOR: return createHWSensor(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public HwDevice createHwDevice() { + HwDeviceImpl hwDevice = new HwDeviceImpl(); + return hwDevice; + } + + /** + * + * + * @generated + */ + public HwI_O createHwI_O() { + HwI_OImpl hwI_O = new HwI_OImpl(); + return hwI_O; + } + + /** + * + * + * @generated + */ + public HwSupport createHwSupport() { + HwSupportImpl hwSupport = new HwSupportImpl(); + return hwSupport; + } + + /** + * + * + * @generated + */ + public HWActuator createHWActuator() { + HWActuatorImpl hwActuator = new HWActuatorImpl(); + return hwActuator; + } + + /** + * + * + * @generated + */ + public HWSensor createHWSensor() { + HWSensorImpl hwSensor = new HWSensorImpl(); + return hwSensor; + } + + /** + * + * + * @generated + */ + public HwDevicePackage getHwDevicePackage() { + return (HwDevicePackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static HwDevicePackage getPackage() { + return HwDevicePackage.eINSTANCE; + } + +} //HwDeviceFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/impl/HwDeviceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/impl/HwDeviceImpl.java new file mode 100644 index 00000000000..37ec5661ba7 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/impl/HwDeviceImpl.java @@ -0,0 +1,285 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwDevice.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.impl.HwResourceImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.HwDevice; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.HwDevicePackage; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.DeviceResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ProcessingResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler; + +/** + * + * An implementation of the model object 'Hw Device'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.impl.HwDeviceImpl#getSpeedFactor Speed Factor}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.impl.HwDeviceImpl#getMainScheduler Main Scheduler}
  • + *
+ *

+ * + * @generated + */ +public class HwDeviceImpl extends HwResourceImpl implements HwDevice { + /** + * The default value of the '{@link #getSpeedFactor() Speed Factor}' attribute. + * + * + * @see #getSpeedFactor() + * @generated + * @ordered + */ + protected static final String SPEED_FACTOR_EDEFAULT = "1.0"; + + /** + * The cached value of the '{@link #getSpeedFactor() Speed Factor}' attribute. + * + * + * @see #getSpeedFactor() + * @generated + * @ordered + */ + protected String speedFactor = SPEED_FACTOR_EDEFAULT; + + /** + * The cached value of the '{@link #getMainScheduler() Main Scheduler}' reference. + * + * + * @see #getMainScheduler() + * @generated + * @ordered + */ + protected Scheduler mainScheduler; + + /** + * + * + * @generated + */ + protected HwDeviceImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return HwDevicePackage.Literals.HW_DEVICE; + } + + /** + * + * + * @generated + */ + public String getSpeedFactor() { + return speedFactor; + } + + /** + * + * + * @generated + */ + public void setSpeedFactor(String newSpeedFactor) { + String oldSpeedFactor = speedFactor; + speedFactor = newSpeedFactor; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwDevicePackage.HW_DEVICE__SPEED_FACTOR, oldSpeedFactor, speedFactor)); + } + + /** + * + * + * @generated + */ + public Scheduler getMainScheduler() { + if (mainScheduler != null && mainScheduler.eIsProxy()) { + InternalEObject oldMainScheduler = (InternalEObject)mainScheduler; + mainScheduler = (Scheduler)eResolveProxy(oldMainScheduler); + if (mainScheduler != oldMainScheduler) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, HwDevicePackage.HW_DEVICE__MAIN_SCHEDULER, oldMainScheduler, mainScheduler)); + } + } + return mainScheduler; + } + + /** + * + * + * @generated + */ + public Scheduler basicGetMainScheduler() { + return mainScheduler; + } + + /** + * + * + * @generated + */ + public void setMainScheduler(Scheduler newMainScheduler) { + Scheduler oldMainScheduler = mainScheduler; + mainScheduler = newMainScheduler; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwDevicePackage.HW_DEVICE__MAIN_SCHEDULER, oldMainScheduler, mainScheduler)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case HwDevicePackage.HW_DEVICE__SPEED_FACTOR: + return getSpeedFactor(); + case HwDevicePackage.HW_DEVICE__MAIN_SCHEDULER: + if (resolve) return getMainScheduler(); + return basicGetMainScheduler(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case HwDevicePackage.HW_DEVICE__SPEED_FACTOR: + setSpeedFactor((String)newValue); + return; + case HwDevicePackage.HW_DEVICE__MAIN_SCHEDULER: + setMainScheduler((Scheduler)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case HwDevicePackage.HW_DEVICE__SPEED_FACTOR: + setSpeedFactor(SPEED_FACTOR_EDEFAULT); + return; + case HwDevicePackage.HW_DEVICE__MAIN_SCHEDULER: + setMainScheduler((Scheduler)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case HwDevicePackage.HW_DEVICE__SPEED_FACTOR: + return SPEED_FACTOR_EDEFAULT == null ? speedFactor != null : !SPEED_FACTOR_EDEFAULT.equals(speedFactor); + case HwDevicePackage.HW_DEVICE__MAIN_SCHEDULER: + return mainScheduler != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) { + if (baseClass == ProcessingResource.class) { + switch (derivedFeatureID) { + case HwDevicePackage.HW_DEVICE__SPEED_FACTOR: return GRMPackage.PROCESSING_RESOURCE__SPEED_FACTOR; + case HwDevicePackage.HW_DEVICE__MAIN_SCHEDULER: return GRMPackage.PROCESSING_RESOURCE__MAIN_SCHEDULER; + default: return -1; + } + } + if (baseClass == DeviceResource.class) { + switch (derivedFeatureID) { + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) { + if (baseClass == ProcessingResource.class) { + switch (baseFeatureID) { + case GRMPackage.PROCESSING_RESOURCE__SPEED_FACTOR: return HwDevicePackage.HW_DEVICE__SPEED_FACTOR; + case GRMPackage.PROCESSING_RESOURCE__MAIN_SCHEDULER: return HwDevicePackage.HW_DEVICE__MAIN_SCHEDULER; + default: return -1; + } + } + if (baseClass == DeviceResource.class) { + switch (baseFeatureID) { + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (speedFactor: "); + result.append(speedFactor); + result.append(')'); + return result.toString(); + } + +} //HwDeviceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/impl/HwDevicePackageImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/impl/HwDevicePackageImpl.java new file mode 100644 index 00000000000..a88432d7103 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/impl/HwDevicePackageImpl.java @@ -0,0 +1,517 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwDevice.impl; + +import org.eclipse.emf.ecore.EClass; +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.HWActuator; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.HWSensor; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.HwDevice; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.HwDeviceFactory; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.HwDevicePackage; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.HwI_O; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.HwSupport; + +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.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 HwDevicePackageImpl extends EPackageImpl implements HwDevicePackage { + /** + * + * + * @generated + */ + private EClass hwDeviceEClass = null; + + /** + * + * + * @generated + */ + private EClass hwI_OEClass = null; + + /** + * + * + * @generated + */ + private EClass hwSupportEClass = null; + + /** + * + * + * @generated + */ + private EClass hwActuatorEClass = null; + + /** + * + * + * @generated + */ + private EClass hwSensorEClass = 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.MARTE_DesignModel.HRM.HwLogical.HwDevice.HwDevicePackage#eNS_URI + * @see #init() + * @generated + */ + private HwDevicePackageImpl() { + super(eNS_URI, HwDeviceFactory.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 HwDevicePackage#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 HwDevicePackage init() { + if (isInited) return (HwDevicePackage)EPackage.Registry.INSTANCE.getEPackage(HwDevicePackage.eNS_URI); + + // Obtain or create and register package + HwDevicePackageImpl theHwDevicePackage = (HwDevicePackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof HwDevicePackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new HwDevicePackageImpl()); + + 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); + 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); + 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 + theHwDevicePackage.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(); + 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(); + theMARTE_PrimitivesTypesPackage.createPackageContents(); + + // Initialize created meta-data + theHwDevicePackage.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(); + 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(); + theMARTE_PrimitivesTypesPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theHwDevicePackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(HwDevicePackage.eNS_URI, theHwDevicePackage); + return theHwDevicePackage; + } + + /** + * + * + * @generated + */ + public EClass getHwDevice() { + return hwDeviceEClass; + } + + /** + * + * + * @generated + */ + public EClass getHwI_O() { + return hwI_OEClass; + } + + /** + * + * + * @generated + */ + public EClass getHwSupport() { + return hwSupportEClass; + } + + /** + * + * + * @generated + */ + public EClass getHWActuator() { + return hwActuatorEClass; + } + + /** + * + * + * @generated + */ + public EClass getHWSensor() { + return hwSensorEClass; + } + + /** + * + * + * @generated + */ + public HwDeviceFactory getHwDeviceFactory() { + return (HwDeviceFactory)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 + hwDeviceEClass = createEClass(HW_DEVICE); + + hwI_OEClass = createEClass(HW_IO); + + hwSupportEClass = createEClass(HW_SUPPORT); + + hwActuatorEClass = createEClass(HW_ACTUATOR); + + hwSensorEClass = createEClass(HW_SENSOR); + } + + /** + * + * + * @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 + HwGeneralPackage theHwGeneralPackage = (HwGeneralPackage)EPackage.Registry.INSTANCE.getEPackage(HwGeneralPackage.eNS_URI); + GRMPackage theGRMPackage = (GRMPackage)EPackage.Registry.INSTANCE.getEPackage(GRMPackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + hwDeviceEClass.getESuperTypes().add(theHwGeneralPackage.getHwResource()); + hwDeviceEClass.getESuperTypes().add(theGRMPackage.getDeviceResource()); + hwI_OEClass.getESuperTypes().add(this.getHwDevice()); + hwSupportEClass.getESuperTypes().add(this.getHwDevice()); + hwActuatorEClass.getESuperTypes().add(this.getHwI_O()); + hwSensorEClass.getESuperTypes().add(this.getHwI_O()); + + // Initialize classes and features; add operations and parameters + initEClass(hwDeviceEClass, HwDevice.class, "HwDevice", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(hwI_OEClass, HwI_O.class, "HwI_O", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(hwSupportEClass, HwSupport.class, "HwSupport", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(hwActuatorEClass, HWActuator.class, "HWActuator", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(hwSensorEClass, HWSensor.class, "HWSensor", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + } + +} //HwDevicePackageImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/impl/HwI_OImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/impl/HwI_OImpl.java new file mode 100644 index 00000000000..3b18f89079d --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/impl/HwI_OImpl.java @@ -0,0 +1,50 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwDevice.impl; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.HwDevicePackage; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.HwI_O; + +/** + * + * An implementation of the model object 'Hw IO'. + * + *

+ *

+ * + * @generated + */ +public class HwI_OImpl extends HwDeviceImpl implements HwI_O { + /** + * + * + * @generated + */ + protected HwI_OImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return HwDevicePackage.Literals.HW_IO; + } + +} //HwI_OImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/impl/HwSupportImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/impl/HwSupportImpl.java new file mode 100644 index 00000000000..7faf529f3b6 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/impl/HwSupportImpl.java @@ -0,0 +1,50 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwDevice.impl; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.HwDevicePackage; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.HwSupport; + +/** + * + * An implementation of the model object 'Hw Support'. + * + *

+ *

+ * + * @generated + */ +public class HwSupportImpl extends HwDeviceImpl implements HwSupport { + /** + * + * + * @generated + */ + protected HwSupportImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return HwDevicePackage.Literals.HW_SUPPORT; + } + +} //HwSupportImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/util/HwDeviceAdapterFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/util/HwDeviceAdapterFactory.java new file mode 100644 index 00000000000..0b210061cb0 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/util/HwDeviceAdapterFactory.java @@ -0,0 +1,281 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwDevice.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.MARTE_DesignModel.HRM.HwGeneral.HwResource; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.*; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.DeviceResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ProcessingResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.HwDevicePackage + * @generated + */ +public class HwDeviceAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * @generated + */ + protected static HwDevicePackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public HwDeviceAdapterFactory() { + if (modelPackage == null) { + modelPackage = HwDevicePackage.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 HwDeviceSwitch modelSwitch = + new HwDeviceSwitch() { + @Override + public Adapter caseHwDevice(HwDevice object) { + return createHwDeviceAdapter(); + } + @Override + public Adapter caseHwI_O(HwI_O object) { + return createHwI_OAdapter(); + } + @Override + public Adapter caseHwSupport(HwSupport object) { + return createHwSupportAdapter(); + } + @Override + public Adapter caseHWActuator(HWActuator object) { + return createHWActuatorAdapter(); + } + @Override + public Adapter caseHWSensor(HWSensor object) { + return createHWSensorAdapter(); + } + @Override + public Adapter caseResource(Resource object) { + return createResourceAdapter(); + } + @Override + public Adapter caseHwResource(HwResource object) { + return createHwResourceAdapter(); + } + @Override + public Adapter caseProcessingResource(ProcessingResource object) { + return createProcessingResourceAdapter(); + } + @Override + public Adapter caseDeviceResource(DeviceResource object) { + return createDeviceResourceAdapter(); + } + @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.MARTE_DesignModel.HRM.HwLogical.HwDevice.HwDevice Hw Device}'. + * + * 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.MARTE_DesignModel.HRM.HwLogical.HwDevice.HwDevice + * @generated + */ + public Adapter createHwDeviceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.HwI_O Hw IO}'. + * + * 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.MARTE_DesignModel.HRM.HwLogical.HwDevice.HwI_O + * @generated + */ + public Adapter createHwI_OAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.HwSupport Hw Support}'. + * + * 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.MARTE_DesignModel.HRM.HwLogical.HwDevice.HwSupport + * @generated + */ + public Adapter createHwSupportAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.HWActuator HW Actuator}'. + * + * 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.MARTE_DesignModel.HRM.HwLogical.HwDevice.HWActuator + * @generated + */ + public Adapter createHWActuatorAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.HWSensor HW Sensor}'. + * + * 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.MARTE_DesignModel.HRM.HwLogical.HwDevice.HWSensor + * @generated + */ + public Adapter createHWSensorAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource Resource}'. + * + * 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.MARTE_Foundations.GRM.Resource + * @generated + */ + public Adapter createResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource Hw Resource}'. + * + * 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.MARTE_DesignModel.HRM.HwGeneral.HwResource + * @generated + */ + public Adapter createHwResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ProcessingResource Processing Resource}'. + * + * 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.MARTE_Foundations.GRM.ProcessingResource + * @generated + */ + public Adapter createProcessingResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.DeviceResource Device Resource}'. + * + * 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.MARTE_Foundations.GRM.DeviceResource + * @generated + */ + public Adapter createDeviceResourceAdapter() { + 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; + } + +} //HwDeviceAdapterFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/util/HwDeviceResourceFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/util/HwDeviceResourceFactoryImpl.java new file mode 100644 index 00000000000..d263715e5c9 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/util/HwDeviceResourceFactoryImpl.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.MARTE_DesignModel.HRM.HwLogical.HwDevice.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; + +import org.eclipse.emf.ecore.xmi.XMLResource; + +/** + * + * The Resource Factory associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.util.HwDeviceResourceImpl + * @generated + */ +public class HwDeviceResourceFactoryImpl extends ResourceFactoryImpl { + /** + * Creates an instance of the resource factory. + * + * + * @generated + */ + public HwDeviceResourceFactoryImpl() { + super(); + } + + /** + * Creates an instance of the resource. + * + * + * @generated + */ + @Override + public Resource createResource(URI uri) { + XMLResource result = new HwDeviceResourceImpl(uri); + result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + + result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); + return result; + } + +} //HwDeviceResourceFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/util/HwDeviceResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/util/HwDeviceResourceImpl.java new file mode 100644 index 00000000000..aecd9bf354d --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/util/HwDeviceResourceImpl.java @@ -0,0 +1,39 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwDevice.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; + +/** + * + * The Resource associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.util.HwDeviceResourceFactoryImpl + * @generated + */ +public class HwDeviceResourceImpl extends XMLResourceImpl { + /** + * Creates an instance of the resource. + * + * + * @param uri the URI of the new resource. + * @generated + */ + public HwDeviceResourceImpl(URI uri) { + super(uri); + } + +} //HwDeviceResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/util/HwDeviceSwitch.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/util/HwDeviceSwitch.java new file mode 100644 index 00000000000..cfbafc78dd6 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/util/HwDeviceSwitch.java @@ -0,0 +1,313 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwDevice.util; + +import java.util.List; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.*; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.DeviceResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ProcessingResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource; + +/** + * + * 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.MARTE_DesignModel.HRM.HwLogical.HwDevice.HwDevicePackage + * @generated + */ +public class HwDeviceSwitch { + /** + * The cached model package + * + * + * @generated + */ + protected static HwDevicePackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public HwDeviceSwitch() { + if (modelPackage == null) { + modelPackage = HwDevicePackage.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 HwDevicePackage.HW_DEVICE: { + HwDevice hwDevice = (HwDevice)theEObject; + T result = caseHwDevice(hwDevice); + if (result == null) result = caseHwResource(hwDevice); + if (result == null) result = caseDeviceResource(hwDevice); + if (result == null) result = caseProcessingResource(hwDevice); + if (result == null) result = caseResource(hwDevice); + if (result == null) result = defaultCase(theEObject); + return result; + } + case HwDevicePackage.HW_IO: { + HwI_O hwI_O = (HwI_O)theEObject; + T result = caseHwI_O(hwI_O); + if (result == null) result = caseHwDevice(hwI_O); + if (result == null) result = caseHwResource(hwI_O); + if (result == null) result = caseDeviceResource(hwI_O); + if (result == null) result = caseProcessingResource(hwI_O); + if (result == null) result = caseResource(hwI_O); + if (result == null) result = defaultCase(theEObject); + return result; + } + case HwDevicePackage.HW_SUPPORT: { + HwSupport hwSupport = (HwSupport)theEObject; + T result = caseHwSupport(hwSupport); + if (result == null) result = caseHwDevice(hwSupport); + if (result == null) result = caseHwResource(hwSupport); + if (result == null) result = caseDeviceResource(hwSupport); + if (result == null) result = caseProcessingResource(hwSupport); + if (result == null) result = caseResource(hwSupport); + if (result == null) result = defaultCase(theEObject); + return result; + } + case HwDevicePackage.HW_ACTUATOR: { + HWActuator hwActuator = (HWActuator)theEObject; + T result = caseHWActuator(hwActuator); + if (result == null) result = caseHwI_O(hwActuator); + if (result == null) result = caseHwDevice(hwActuator); + if (result == null) result = caseHwResource(hwActuator); + if (result == null) result = caseDeviceResource(hwActuator); + if (result == null) result = caseProcessingResource(hwActuator); + if (result == null) result = caseResource(hwActuator); + if (result == null) result = defaultCase(theEObject); + return result; + } + case HwDevicePackage.HW_SENSOR: { + HWSensor hwSensor = (HWSensor)theEObject; + T result = caseHWSensor(hwSensor); + if (result == null) result = caseHwI_O(hwSensor); + if (result == null) result = caseHwDevice(hwSensor); + if (result == null) result = caseHwResource(hwSensor); + if (result == null) result = caseDeviceResource(hwSensor); + if (result == null) result = caseProcessingResource(hwSensor); + if (result == null) result = caseResource(hwSensor); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Hw Device'. + * + * 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 'Hw Device'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHwDevice(HwDevice object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Hw IO'. + * + * 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 'Hw IO'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHwI_O(HwI_O object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Hw Support'. + * + * 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 'Hw Support'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHwSupport(HwSupport object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'HW Actuator'. + * + * 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 'HW Actuator'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHWActuator(HWActuator object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'HW Sensor'. + * + * 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 'HW Sensor'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHWSensor(HWSensor object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Resource'. + * + * 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 'Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseResource(Resource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Hw Resource'. + * + * 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 'Hw Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHwResource(HwResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Processing Resource'. + * + * 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 'Processing Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseProcessingResource(ProcessingResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Device Resource'. + * + * 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 'Device Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDeviceResource(DeviceResource 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; + } + +} //HwDeviceSwitch diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/util/HwDeviceXMLProcessor.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/util/HwDeviceXMLProcessor.java new file mode 100644 index 00000000000..e551058285a --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwDevice/util/HwDeviceXMLProcessor.java @@ -0,0 +1,61 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwDevice.util; + +import java.util.Map; + +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.xmi.util.XMLProcessor; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwDevice.HwDevicePackage; + +/** + * This class contains helper methods to serialize and deserialize XML documents + * + * + * @generated + */ +public class HwDeviceXMLProcessor extends XMLProcessor { + + /** + * Public constructor to instantiate the helper. + * + * + * @generated + */ + public HwDeviceXMLProcessor() { + super((EPackage.Registry.INSTANCE)); + HwDevicePackage.eINSTANCE.eClass(); + } + + /** + * Register for "*" and "xml" file extensions the HwDeviceResourceFactoryImpl factory. + * + * + * @generated + */ + @Override + protected Map getRegistrations() { + if (registrations == null) { + super.getRegistrations(); + registrations.put(XML_EXTENSION, new HwDeviceResourceFactoryImpl()); + registrations.put(STAR_EXTENSION, new HwDeviceResourceFactoryImpl()); + } + return registrations; + } + +} //HwDeviceXMLProcessor diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/CacheType.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/CacheType.java new file mode 100644 index 00000000000..82bec9f37f4 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/CacheType.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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory; + +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 'Cache Type', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemoryPackage#getCacheType() + * @model + * @generated + */ +public enum CacheType implements Enumerator { + /** + * The 'Data' literal object. + * + * + * @see #DATA_VALUE + * @generated + * @ordered + */ + DATA(0, "data", "data"), + + /** + * The 'Instruction' literal object. + * + * + * @see #INSTRUCTION_VALUE + * @generated + * @ordered + */ + INSTRUCTION(1, "instruction", "instruction"), + + /** + * The 'Unified' literal object. + * + * + * @see #UNIFIED_VALUE + * @generated + * @ordered + */ + UNIFIED(2, "unified", "unified"), + + /** + * The 'Other' literal object. + * + * + * @see #OTHER_VALUE + * @generated + * @ordered + */ + OTHER(3, "other", "other"), + + /** + * The 'Undef' literal object. + * + * + * @see #UNDEF_VALUE + * @generated + * @ordered + */ + UNDEF(4, "undef", "undef"); + + /** + * The 'Data' literal value. + * + *

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

+ * + * @see #DATA + * @model name="data" + * @generated + * @ordered + */ + public static final int DATA_VALUE = 0; + + /** + * The 'Instruction' literal value. + * + *

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

+ * + * @see #INSTRUCTION + * @model name="instruction" + * @generated + * @ordered + */ + public static final int INSTRUCTION_VALUE = 1; + + /** + * The 'Unified' literal value. + * + *

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

+ * + * @see #UNIFIED + * @model name="unified" + * @generated + * @ordered + */ + public static final int UNIFIED_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; + + /** + * 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 = 4; + + /** + * An array of all the 'Cache Type' enumerators. + * + * + * @generated + */ + private static final CacheType[] VALUES_ARRAY = + new CacheType[] { + DATA, + INSTRUCTION, + UNIFIED, + OTHER, + UNDEF, + }; + + /** + * A public read-only list of all the 'Cache Type' enumerators. + * + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Cache Type' literal with the specified literal value. + * + * + * @generated + */ + public static CacheType get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + CacheType result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Cache Type' literal with the specified name. + * + * + * @generated + */ + public static CacheType getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + CacheType result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Cache Type' literal with the specified integer value. + * + * + * @generated + */ + public static CacheType get(int value) { + switch (value) { + case DATA_VALUE: return DATA; + case INSTRUCTION_VALUE: return INSTRUCTION; + case UNIFIED_VALUE: return UNIFIED; + case OTHER_VALUE: return OTHER; + case UNDEF_VALUE: return UNDEF; + } + 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 CacheType(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; + } + +} //CacheType diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/HwCache.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/HwCache.java new file mode 100644 index 00000000000..de5edb00479 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/HwCache.java @@ -0,0 +1,177 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory; + + +/** + * + * A representation of the model object 'Hw Cache'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwCache#getLevel Level}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwCache#getType Type}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwCache#getStructure Structure}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwCache#getRepl_Policy Repl Policy}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwCache#getWritePolicy Write Policy}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemoryPackage#getHwCache() + * @model + * @generated + */ +public interface HwCache extends HwMemory { + /** + * Returns the value of the 'Level' attribute. + * + *

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

+ * + * @return the value of the 'Level' attribute. + * @see #setLevel(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemoryPackage#getHwCache_Level() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Natural" ordered="false" + * @generated + */ + String getLevel(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwCache#getLevel Level}' attribute. + * + * + * @param value the new value of the 'Level' attribute. + * @see #getLevel() + * @generated + */ + void setLevel(String value); + + /** + * Returns the value of the 'Type' attribute. + * The literals are from the enumeration {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.CacheType}. + * + *

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

+ * + * @return the value of the 'Type' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.CacheType + * @see #setType(CacheType) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemoryPackage#getHwCache_Type() + * @model unique="false" ordered="false" + * @generated + */ + CacheType getType(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwCache#getType Type}' attribute. + * + * + * @param value the new value of the 'Type' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.CacheType + * @see #getType() + * @generated + */ + void setType(CacheType value); + + /** + * Returns the value of the 'Structure' attribute. + * + *

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

+ * + * @return the value of the 'Structure' attribute. + * @see #setStructure(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemoryPackage#getHwCache_Structure() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.CacheStructure" ordered="false" + * @generated + */ + String getStructure(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwCache#getStructure Structure}' attribute. + * + * + * @param value the new value of the 'Structure' attribute. + * @see #getStructure() + * @generated + */ + void setStructure(String value); + + /** + * Returns the value of the 'Repl Policy' attribute. + * The literals are from the enumeration {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.Repl_Policy}. + * + *

+ * If the meaning of the 'Repl Policy' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Repl Policy' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.Repl_Policy + * @see #setRepl_Policy(Repl_Policy) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemoryPackage#getHwCache_Repl_Policy() + * @model unique="false" ordered="false" + * @generated + */ + Repl_Policy getRepl_Policy(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwCache#getRepl_Policy Repl Policy}' attribute. + * + * + * @param value the new value of the 'Repl Policy' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.Repl_Policy + * @see #getRepl_Policy() + * @generated + */ + void setRepl_Policy(Repl_Policy value); + + /** + * Returns the value of the 'Write Policy' attribute. + * The literals are from the enumeration {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.WritePolicy}. + * + *

+ * If the meaning of the 'Write Policy' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Write Policy' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.WritePolicy + * @see #setWritePolicy(WritePolicy) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemoryPackage#getHwCache_WritePolicy() + * @model unique="false" ordered="false" + * @generated + */ + WritePolicy getWritePolicy(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwCache#getWritePolicy Write Policy}' attribute. + * + * + * @param value the new value of the 'Write Policy' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.WritePolicy + * @see #getWritePolicy() + * @generated + */ + void setWritePolicy(WritePolicy value); + +} // HwCache diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/HwDrive.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/HwDrive.java new file mode 100644 index 00000000000..ad57e93de3c --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/HwDrive.java @@ -0,0 +1,87 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory; + + +/** + * + * A representation of the model object 'Hw Drive'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwDrive#getSectorSize Sector Size}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwDrive#getBuffer Buffer}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemoryPackage#getHwDrive() + * @model + * @generated + */ +public interface HwDrive extends HwMemory { + /** + * Returns the value of the 'Sector Size' attribute. + * + *

+ * If the meaning of the 'Sector Size' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Sector Size' attribute. + * @see #setSectorSize(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemoryPackage#getHwDrive_SectorSize() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_DataSize" ordered="false" + * @generated + */ + String getSectorSize(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwDrive#getSectorSize Sector Size}' attribute. + * + * + * @param value the new value of the 'Sector Size' attribute. + * @see #getSectorSize() + * @generated + */ + void setSectorSize(String value); + + /** + * Returns the value of the 'Buffer' reference. + * + *

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

+ * + * @return the value of the 'Buffer' reference. + * @see #setBuffer(HwRAM) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemoryPackage#getHwDrive_Buffer() + * @model ordered="false" + * @generated + */ + HwRAM getBuffer(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwDrive#getBuffer Buffer}' reference. + * + * + * @param value the new value of the 'Buffer' reference. + * @see #getBuffer() + * @generated + */ + void setBuffer(HwRAM value); + +} // HwDrive diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/HwMemory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/HwMemory.java new file mode 100644 index 00000000000..0060eded90d --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/HwMemory.java @@ -0,0 +1,136 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.StorageResource; + +/** + * + * A representation of the model object 'Hw Memory'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemory#getMemorySize Memory Size}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemory#getAdressSize Adress Size}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemory#getTimings Timings}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemory#getThroughput Throughput}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemoryPackage#getHwMemory() + * @model + * @generated + */ +public interface HwMemory extends HwResource, StorageResource { + /** + * Returns the value of the 'Memory Size' attribute. + * + *

+ * If the meaning of the 'Memory Size' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Memory Size' attribute. + * @see #setMemorySize(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemoryPackage#getHwMemory_MemorySize() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_DataSize" ordered="false" + * @generated + */ + String getMemorySize(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemory#getMemorySize Memory Size}' attribute. + * + * + * @param value the new value of the 'Memory Size' attribute. + * @see #getMemorySize() + * @generated + */ + void setMemorySize(String value); + + /** + * Returns the value of the 'Adress Size' attribute. + * + *

+ * If the meaning of the 'Adress Size' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Adress Size' attribute. + * @see #setAdressSize(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemoryPackage#getHwMemory_AdressSize() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_DataSize" ordered="false" + * @generated + */ + String getAdressSize(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemory#getAdressSize Adress Size}' attribute. + * + * + * @param value the new value of the 'Adress Size' attribute. + * @see #getAdressSize() + * @generated + */ + void setAdressSize(String value); + + /** + * Returns the value of the 'Timings' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Timings' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Timings' attribute list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemoryPackage#getHwMemory_Timings() + * @model dataType="org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.Timing" ordered="false" + * @generated + */ + EList getTimings(); + + /** + * Returns the value of the 'Throughput' attribute. + * + *

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

+ * + * @return the value of the 'Throughput' attribute. + * @see #setThroughput(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemoryPackage#getHwMemory_Throughput() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_DataTxRate" ordered="false" + * @generated + */ + String getThroughput(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemory#getThroughput Throughput}' attribute. + * + * + * @param value the new value of the 'Throughput' attribute. + * @see #getThroughput() + * @generated + */ + void setThroughput(String value); + +} // HwMemory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/HwMemoryFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/HwMemoryFactory.java new file mode 100644 index 00000000000..d1c18047849 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/HwMemoryFactory.java @@ -0,0 +1,89 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory; + +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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemoryPackage + * @generated + */ +public interface HwMemoryFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + HwMemoryFactory eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwMemoryFactoryImpl.init(); + + /** + * Returns a new object of class 'Hw Memory'. + * + * + * @return a new object of class 'Hw Memory'. + * @generated + */ + HwMemory createHwMemory(); + + /** + * Returns a new object of class 'Hw RAM'. + * + * + * @return a new object of class 'Hw RAM'. + * @generated + */ + HwRAM createHwRAM(); + + /** + * Returns a new object of class 'Hw ROM'. + * + * + * @return a new object of class 'Hw ROM'. + * @generated + */ + HwROM createHwROM(); + + /** + * Returns a new object of class 'Hw Drive'. + * + * + * @return a new object of class 'Hw Drive'. + * @generated + */ + HwDrive createHwDrive(); + + /** + * Returns a new object of class 'Hw Cache'. + * + * + * @return a new object of class 'Hw Cache'. + * @generated + */ + HwCache createHwCache(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + HwMemoryPackage getHwMemoryPackage(); + +} //HwMemoryFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/HwMemoryPackage.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/HwMemoryPackage.java new file mode 100644 index 00000000000..f9913550530 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/HwMemoryPackage.java @@ -0,0 +1,1857 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory; + +import org.eclipse.emf.ecore.EAttribute; +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.EReference; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwGeneralPackage; + +/** + * + * 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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemoryFactory + * @model kind="package" + * @generated + */ +public interface HwMemoryPackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "HwMemory"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "http://www.eclipse.org/papyrus/HwMemory/1"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "HwMemory"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + HwMemoryPackage eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwMemoryPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwMemoryImpl Hw Memory}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwMemoryImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwMemoryPackageImpl#getHwMemory() + * @generated + */ + int HW_MEMORY = 0; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int HW_MEMORY__RES_MULT = HwGeneralPackage.HW_RESOURCE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int HW_MEMORY__IS_PROTECTED = HwGeneralPackage.HW_RESOURCE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int HW_MEMORY__IS_ACTIVE = HwGeneralPackage.HW_RESOURCE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int HW_MEMORY__BASE_PROPERTY = HwGeneralPackage.HW_RESOURCE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int HW_MEMORY__BASE_INSTANCE_SPECIFICATION = HwGeneralPackage.HW_RESOURCE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int HW_MEMORY__BASE_CLASSIFIER = HwGeneralPackage.HW_RESOURCE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int HW_MEMORY__BASE_LIFELINE = HwGeneralPackage.HW_RESOURCE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int HW_MEMORY__BASE_CONNECTABLE_ELEMENT = HwGeneralPackage.HW_RESOURCE__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int HW_MEMORY__DESCRIPTION = HwGeneralPackage.HW_RESOURCE__DESCRIPTION; + + /** + * The feature id for the 'PHW Services' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_MEMORY__PHW_SERVICES = HwGeneralPackage.HW_RESOURCE__PHW_SERVICES; + + /** + * The feature id for the 'RHW Services' reference list. + * + * + * @generated + * @ordered + */ + int HW_MEMORY__RHW_SERVICES = HwGeneralPackage.HW_RESOURCE__RHW_SERVICES; + + /** + * The feature id for the 'Owned HW' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_MEMORY__OWNED_HW = HwGeneralPackage.HW_RESOURCE__OWNED_HW; + + /** + * The feature id for the 'End Points' reference list. + * + * + * @generated + * @ordered + */ + int HW_MEMORY__END_POINTS = HwGeneralPackage.HW_RESOURCE__END_POINTS; + + /** + * The feature id for the 'Frequency' attribute. + * + * + * @generated + * @ordered + */ + int HW_MEMORY__FREQUENCY = HwGeneralPackage.HW_RESOURCE__FREQUENCY; + + /** + * The feature id for the 'Element Size' attribute. + * + * + * @generated + * @ordered + */ + int HW_MEMORY__ELEMENT_SIZE = HwGeneralPackage.HW_RESOURCE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Memory Size' attribute. + * + * + * @generated + * @ordered + */ + int HW_MEMORY__MEMORY_SIZE = HwGeneralPackage.HW_RESOURCE_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Adress Size' attribute. + * + * + * @generated + * @ordered + */ + int HW_MEMORY__ADRESS_SIZE = HwGeneralPackage.HW_RESOURCE_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Timings' attribute list. + * + * + * @generated + * @ordered + */ + int HW_MEMORY__TIMINGS = HwGeneralPackage.HW_RESOURCE_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Throughput' attribute. + * + * + * @generated + * @ordered + */ + int HW_MEMORY__THROUGHPUT = HwGeneralPackage.HW_RESOURCE_FEATURE_COUNT + 4; + + /** + * The number of structural features of the 'Hw Memory' class. + * + * + * @generated + * @ordered + */ + int HW_MEMORY_FEATURE_COUNT = HwGeneralPackage.HW_RESOURCE_FEATURE_COUNT + 5; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwRAMImpl Hw RAM}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwRAMImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwMemoryPackageImpl#getHwRAM() + * @generated + */ + int HW_RAM = 1; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int HW_RAM__RES_MULT = HW_MEMORY__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int HW_RAM__IS_PROTECTED = HW_MEMORY__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int HW_RAM__IS_ACTIVE = HW_MEMORY__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int HW_RAM__BASE_PROPERTY = HW_MEMORY__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int HW_RAM__BASE_INSTANCE_SPECIFICATION = HW_MEMORY__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int HW_RAM__BASE_CLASSIFIER = HW_MEMORY__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int HW_RAM__BASE_LIFELINE = HW_MEMORY__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int HW_RAM__BASE_CONNECTABLE_ELEMENT = HW_MEMORY__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int HW_RAM__DESCRIPTION = HW_MEMORY__DESCRIPTION; + + /** + * The feature id for the 'PHW Services' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_RAM__PHW_SERVICES = HW_MEMORY__PHW_SERVICES; + + /** + * The feature id for the 'RHW Services' reference list. + * + * + * @generated + * @ordered + */ + int HW_RAM__RHW_SERVICES = HW_MEMORY__RHW_SERVICES; + + /** + * The feature id for the 'Owned HW' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_RAM__OWNED_HW = HW_MEMORY__OWNED_HW; + + /** + * The feature id for the 'End Points' reference list. + * + * + * @generated + * @ordered + */ + int HW_RAM__END_POINTS = HW_MEMORY__END_POINTS; + + /** + * The feature id for the 'Frequency' attribute. + * + * + * @generated + * @ordered + */ + int HW_RAM__FREQUENCY = HW_MEMORY__FREQUENCY; + + /** + * The feature id for the 'Element Size' attribute. + * + * + * @generated + * @ordered + */ + int HW_RAM__ELEMENT_SIZE = HW_MEMORY__ELEMENT_SIZE; + + /** + * The feature id for the 'Memory Size' attribute. + * + * + * @generated + * @ordered + */ + int HW_RAM__MEMORY_SIZE = HW_MEMORY__MEMORY_SIZE; + + /** + * The feature id for the 'Adress Size' attribute. + * + * + * @generated + * @ordered + */ + int HW_RAM__ADRESS_SIZE = HW_MEMORY__ADRESS_SIZE; + + /** + * The feature id for the 'Timings' attribute list. + * + * + * @generated + * @ordered + */ + int HW_RAM__TIMINGS = HW_MEMORY__TIMINGS; + + /** + * The feature id for the 'Throughput' attribute. + * + * + * @generated + * @ordered + */ + int HW_RAM__THROUGHPUT = HW_MEMORY__THROUGHPUT; + + /** + * The feature id for the 'Organization' attribute. + * + * + * @generated + * @ordered + */ + int HW_RAM__ORGANIZATION = HW_MEMORY_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Is Synchronous' attribute. + * + * + * @generated + * @ordered + */ + int HW_RAM__IS_SYNCHRONOUS = HW_MEMORY_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Is Static' attribute. + * + * + * @generated + * @ordered + */ + int HW_RAM__IS_STATIC = HW_MEMORY_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Is Non Volatile' attribute. + * + * + * @generated + * @ordered + */ + int HW_RAM__IS_NON_VOLATILE = HW_MEMORY_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Repl Policy' attribute. + * + * + * @generated + * @ordered + */ + int HW_RAM__REPL_POLICY = HW_MEMORY_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Write Policy' attribute. + * + * + * @generated + * @ordered + */ + int HW_RAM__WRITE_POLICY = HW_MEMORY_FEATURE_COUNT + 5; + + /** + * The number of structural features of the 'Hw RAM' class. + * + * + * @generated + * @ordered + */ + int HW_RAM_FEATURE_COUNT = HW_MEMORY_FEATURE_COUNT + 6; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwROMImpl Hw ROM}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwROMImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwMemoryPackageImpl#getHwROM() + * @generated + */ + int HW_ROM = 2; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int HW_ROM__RES_MULT = HW_MEMORY__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int HW_ROM__IS_PROTECTED = HW_MEMORY__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int HW_ROM__IS_ACTIVE = HW_MEMORY__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int HW_ROM__BASE_PROPERTY = HW_MEMORY__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int HW_ROM__BASE_INSTANCE_SPECIFICATION = HW_MEMORY__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int HW_ROM__BASE_CLASSIFIER = HW_MEMORY__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int HW_ROM__BASE_LIFELINE = HW_MEMORY__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int HW_ROM__BASE_CONNECTABLE_ELEMENT = HW_MEMORY__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int HW_ROM__DESCRIPTION = HW_MEMORY__DESCRIPTION; + + /** + * The feature id for the 'PHW Services' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_ROM__PHW_SERVICES = HW_MEMORY__PHW_SERVICES; + + /** + * The feature id for the 'RHW Services' reference list. + * + * + * @generated + * @ordered + */ + int HW_ROM__RHW_SERVICES = HW_MEMORY__RHW_SERVICES; + + /** + * The feature id for the 'Owned HW' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_ROM__OWNED_HW = HW_MEMORY__OWNED_HW; + + /** + * The feature id for the 'End Points' reference list. + * + * + * @generated + * @ordered + */ + int HW_ROM__END_POINTS = HW_MEMORY__END_POINTS; + + /** + * The feature id for the 'Frequency' attribute. + * + * + * @generated + * @ordered + */ + int HW_ROM__FREQUENCY = HW_MEMORY__FREQUENCY; + + /** + * The feature id for the 'Element Size' attribute. + * + * + * @generated + * @ordered + */ + int HW_ROM__ELEMENT_SIZE = HW_MEMORY__ELEMENT_SIZE; + + /** + * The feature id for the 'Memory Size' attribute. + * + * + * @generated + * @ordered + */ + int HW_ROM__MEMORY_SIZE = HW_MEMORY__MEMORY_SIZE; + + /** + * The feature id for the 'Adress Size' attribute. + * + * + * @generated + * @ordered + */ + int HW_ROM__ADRESS_SIZE = HW_MEMORY__ADRESS_SIZE; + + /** + * The feature id for the 'Timings' attribute list. + * + * + * @generated + * @ordered + */ + int HW_ROM__TIMINGS = HW_MEMORY__TIMINGS; + + /** + * The feature id for the 'Throughput' attribute. + * + * + * @generated + * @ordered + */ + int HW_ROM__THROUGHPUT = HW_MEMORY__THROUGHPUT; + + /** + * The feature id for the 'Type' attribute. + * + * + * @generated + * @ordered + */ + int HW_ROM__TYPE = HW_MEMORY_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Organization' attribute. + * + * + * @generated + * @ordered + */ + int HW_ROM__ORGANIZATION = HW_MEMORY_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Hw ROM' class. + * + * + * @generated + * @ordered + */ + int HW_ROM_FEATURE_COUNT = HW_MEMORY_FEATURE_COUNT + 2; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwDriveImpl Hw Drive}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwDriveImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwMemoryPackageImpl#getHwDrive() + * @generated + */ + int HW_DRIVE = 3; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int HW_DRIVE__RES_MULT = HW_MEMORY__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int HW_DRIVE__IS_PROTECTED = HW_MEMORY__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int HW_DRIVE__IS_ACTIVE = HW_MEMORY__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int HW_DRIVE__BASE_PROPERTY = HW_MEMORY__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int HW_DRIVE__BASE_INSTANCE_SPECIFICATION = HW_MEMORY__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int HW_DRIVE__BASE_CLASSIFIER = HW_MEMORY__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int HW_DRIVE__BASE_LIFELINE = HW_MEMORY__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int HW_DRIVE__BASE_CONNECTABLE_ELEMENT = HW_MEMORY__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int HW_DRIVE__DESCRIPTION = HW_MEMORY__DESCRIPTION; + + /** + * The feature id for the 'PHW Services' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_DRIVE__PHW_SERVICES = HW_MEMORY__PHW_SERVICES; + + /** + * The feature id for the 'RHW Services' reference list. + * + * + * @generated + * @ordered + */ + int HW_DRIVE__RHW_SERVICES = HW_MEMORY__RHW_SERVICES; + + /** + * The feature id for the 'Owned HW' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_DRIVE__OWNED_HW = HW_MEMORY__OWNED_HW; + + /** + * The feature id for the 'End Points' reference list. + * + * + * @generated + * @ordered + */ + int HW_DRIVE__END_POINTS = HW_MEMORY__END_POINTS; + + /** + * The feature id for the 'Frequency' attribute. + * + * + * @generated + * @ordered + */ + int HW_DRIVE__FREQUENCY = HW_MEMORY__FREQUENCY; + + /** + * The feature id for the 'Element Size' attribute. + * + * + * @generated + * @ordered + */ + int HW_DRIVE__ELEMENT_SIZE = HW_MEMORY__ELEMENT_SIZE; + + /** + * The feature id for the 'Memory Size' attribute. + * + * + * @generated + * @ordered + */ + int HW_DRIVE__MEMORY_SIZE = HW_MEMORY__MEMORY_SIZE; + + /** + * The feature id for the 'Adress Size' attribute. + * + * + * @generated + * @ordered + */ + int HW_DRIVE__ADRESS_SIZE = HW_MEMORY__ADRESS_SIZE; + + /** + * The feature id for the 'Timings' attribute list. + * + * + * @generated + * @ordered + */ + int HW_DRIVE__TIMINGS = HW_MEMORY__TIMINGS; + + /** + * The feature id for the 'Throughput' attribute. + * + * + * @generated + * @ordered + */ + int HW_DRIVE__THROUGHPUT = HW_MEMORY__THROUGHPUT; + + /** + * The feature id for the 'Sector Size' attribute. + * + * + * @generated + * @ordered + */ + int HW_DRIVE__SECTOR_SIZE = HW_MEMORY_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Buffer' reference. + * + * + * @generated + * @ordered + */ + int HW_DRIVE__BUFFER = HW_MEMORY_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Hw Drive' class. + * + * + * @generated + * @ordered + */ + int HW_DRIVE_FEATURE_COUNT = HW_MEMORY_FEATURE_COUNT + 2; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwCacheImpl Hw Cache}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwCacheImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwMemoryPackageImpl#getHwCache() + * @generated + */ + int HW_CACHE = 4; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int HW_CACHE__RES_MULT = HW_MEMORY__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int HW_CACHE__IS_PROTECTED = HW_MEMORY__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int HW_CACHE__IS_ACTIVE = HW_MEMORY__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int HW_CACHE__BASE_PROPERTY = HW_MEMORY__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int HW_CACHE__BASE_INSTANCE_SPECIFICATION = HW_MEMORY__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int HW_CACHE__BASE_CLASSIFIER = HW_MEMORY__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int HW_CACHE__BASE_LIFELINE = HW_MEMORY__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int HW_CACHE__BASE_CONNECTABLE_ELEMENT = HW_MEMORY__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int HW_CACHE__DESCRIPTION = HW_MEMORY__DESCRIPTION; + + /** + * The feature id for the 'PHW Services' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_CACHE__PHW_SERVICES = HW_MEMORY__PHW_SERVICES; + + /** + * The feature id for the 'RHW Services' reference list. + * + * + * @generated + * @ordered + */ + int HW_CACHE__RHW_SERVICES = HW_MEMORY__RHW_SERVICES; + + /** + * The feature id for the 'Owned HW' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_CACHE__OWNED_HW = HW_MEMORY__OWNED_HW; + + /** + * The feature id for the 'End Points' reference list. + * + * + * @generated + * @ordered + */ + int HW_CACHE__END_POINTS = HW_MEMORY__END_POINTS; + + /** + * The feature id for the 'Frequency' attribute. + * + * + * @generated + * @ordered + */ + int HW_CACHE__FREQUENCY = HW_MEMORY__FREQUENCY; + + /** + * The feature id for the 'Element Size' attribute. + * + * + * @generated + * @ordered + */ + int HW_CACHE__ELEMENT_SIZE = HW_MEMORY__ELEMENT_SIZE; + + /** + * The feature id for the 'Memory Size' attribute. + * + * + * @generated + * @ordered + */ + int HW_CACHE__MEMORY_SIZE = HW_MEMORY__MEMORY_SIZE; + + /** + * The feature id for the 'Adress Size' attribute. + * + * + * @generated + * @ordered + */ + int HW_CACHE__ADRESS_SIZE = HW_MEMORY__ADRESS_SIZE; + + /** + * The feature id for the 'Timings' attribute list. + * + * + * @generated + * @ordered + */ + int HW_CACHE__TIMINGS = HW_MEMORY__TIMINGS; + + /** + * The feature id for the 'Throughput' attribute. + * + * + * @generated + * @ordered + */ + int HW_CACHE__THROUGHPUT = HW_MEMORY__THROUGHPUT; + + /** + * The feature id for the 'Level' attribute. + * + * + * @generated + * @ordered + */ + int HW_CACHE__LEVEL = HW_MEMORY_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Type' attribute. + * + * + * @generated + * @ordered + */ + int HW_CACHE__TYPE = HW_MEMORY_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Structure' attribute. + * + * + * @generated + * @ordered + */ + int HW_CACHE__STRUCTURE = HW_MEMORY_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Repl Policy' attribute. + * + * + * @generated + * @ordered + */ + int HW_CACHE__REPL_POLICY = HW_MEMORY_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Write Policy' attribute. + * + * + * @generated + * @ordered + */ + int HW_CACHE__WRITE_POLICY = HW_MEMORY_FEATURE_COUNT + 4; + + /** + * The number of structural features of the 'Hw Cache' class. + * + * + * @generated + * @ordered + */ + int HW_CACHE_FEATURE_COUNT = HW_MEMORY_FEATURE_COUNT + 5; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.Repl_Policy Repl Policy}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.Repl_Policy + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwMemoryPackageImpl#getRepl_Policy() + * @generated + */ + int REPL_POLICY = 5; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.WritePolicy Write Policy}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.WritePolicy + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwMemoryPackageImpl#getWritePolicy() + * @generated + */ + int WRITE_POLICY = 6; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.CacheType Cache Type}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.CacheType + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwMemoryPackageImpl#getCacheType() + * @generated + */ + int CACHE_TYPE = 7; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.ROM_Type ROM Type}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.ROM_Type + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwMemoryPackageImpl#getROM_Type() + * @generated + */ + int ROM_TYPE = 8; + + /** + * The meta object id for the 'Timing' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwMemoryPackageImpl#getTiming() + * @generated + */ + int TIMING = 9; + + /** + * The meta object id for the 'Cache Structure' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwMemoryPackageImpl#getCacheStructure() + * @generated + */ + int CACHE_STRUCTURE = 10; + + /** + * The meta object id for the 'Memory Organization' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwMemoryPackageImpl#getMemoryOrganization() + * @generated + */ + int MEMORY_ORGANIZATION = 11; + + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemory Hw Memory}'. + * + * + * @return the meta object for class 'Hw Memory'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemory + * @generated + */ + EClass getHwMemory(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemory#getMemorySize Memory Size}'. + * + * + * @return the meta object for the attribute 'Memory Size'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemory#getMemorySize() + * @see #getHwMemory() + * @generated + */ + EAttribute getHwMemory_MemorySize(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemory#getAdressSize Adress Size}'. + * + * + * @return the meta object for the attribute 'Adress Size'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemory#getAdressSize() + * @see #getHwMemory() + * @generated + */ + EAttribute getHwMemory_AdressSize(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemory#getTimings Timings}'. + * + * + * @return the meta object for the attribute list 'Timings'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemory#getTimings() + * @see #getHwMemory() + * @generated + */ + EAttribute getHwMemory_Timings(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemory#getThroughput Throughput}'. + * + * + * @return the meta object for the attribute 'Throughput'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemory#getThroughput() + * @see #getHwMemory() + * @generated + */ + EAttribute getHwMemory_Throughput(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwRAM Hw RAM}'. + * + * + * @return the meta object for class 'Hw RAM'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwRAM + * @generated + */ + EClass getHwRAM(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwRAM#getOrganization Organization}'. + * + * + * @return the meta object for the attribute 'Organization'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwRAM#getOrganization() + * @see #getHwRAM() + * @generated + */ + EAttribute getHwRAM_Organization(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwRAM#getIsSynchronous Is Synchronous}'. + * + * + * @return the meta object for the attribute 'Is Synchronous'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwRAM#getIsSynchronous() + * @see #getHwRAM() + * @generated + */ + EAttribute getHwRAM_IsSynchronous(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwRAM#getIsStatic Is Static}'. + * + * + * @return the meta object for the attribute 'Is Static'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwRAM#getIsStatic() + * @see #getHwRAM() + * @generated + */ + EAttribute getHwRAM_IsStatic(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwRAM#getIsNonVolatile Is Non Volatile}'. + * + * + * @return the meta object for the attribute 'Is Non Volatile'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwRAM#getIsNonVolatile() + * @see #getHwRAM() + * @generated + */ + EAttribute getHwRAM_IsNonVolatile(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwRAM#getRepl_Policy Repl Policy}'. + * + * + * @return the meta object for the attribute 'Repl Policy'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwRAM#getRepl_Policy() + * @see #getHwRAM() + * @generated + */ + EAttribute getHwRAM_Repl_Policy(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwRAM#getWritePolicy Write Policy}'. + * + * + * @return the meta object for the attribute 'Write Policy'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwRAM#getWritePolicy() + * @see #getHwRAM() + * @generated + */ + EAttribute getHwRAM_WritePolicy(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwROM Hw ROM}'. + * + * + * @return the meta object for class 'Hw ROM'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwROM + * @generated + */ + EClass getHwROM(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwROM#getType Type}'. + * + * + * @return the meta object for the attribute 'Type'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwROM#getType() + * @see #getHwROM() + * @generated + */ + EAttribute getHwROM_Type(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwROM#getOrganization Organization}'. + * + * + * @return the meta object for the attribute 'Organization'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwROM#getOrganization() + * @see #getHwROM() + * @generated + */ + EAttribute getHwROM_Organization(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwDrive Hw Drive}'. + * + * + * @return the meta object for class 'Hw Drive'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwDrive + * @generated + */ + EClass getHwDrive(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwDrive#getSectorSize Sector Size}'. + * + * + * @return the meta object for the attribute 'Sector Size'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwDrive#getSectorSize() + * @see #getHwDrive() + * @generated + */ + EAttribute getHwDrive_SectorSize(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwDrive#getBuffer Buffer}'. + * + * + * @return the meta object for the reference 'Buffer'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwDrive#getBuffer() + * @see #getHwDrive() + * @generated + */ + EReference getHwDrive_Buffer(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwCache Hw Cache}'. + * + * + * @return the meta object for class 'Hw Cache'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwCache + * @generated + */ + EClass getHwCache(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwCache#getLevel Level}'. + * + * + * @return the meta object for the attribute 'Level'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwCache#getLevel() + * @see #getHwCache() + * @generated + */ + EAttribute getHwCache_Level(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwCache#getType Type}'. + * + * + * @return the meta object for the attribute 'Type'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwCache#getType() + * @see #getHwCache() + * @generated + */ + EAttribute getHwCache_Type(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwCache#getStructure Structure}'. + * + * + * @return the meta object for the attribute 'Structure'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwCache#getStructure() + * @see #getHwCache() + * @generated + */ + EAttribute getHwCache_Structure(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwCache#getRepl_Policy Repl Policy}'. + * + * + * @return the meta object for the attribute 'Repl Policy'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwCache#getRepl_Policy() + * @see #getHwCache() + * @generated + */ + EAttribute getHwCache_Repl_Policy(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwCache#getWritePolicy Write Policy}'. + * + * + * @return the meta object for the attribute 'Write Policy'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwCache#getWritePolicy() + * @see #getHwCache() + * @generated + */ + EAttribute getHwCache_WritePolicy(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.Repl_Policy Repl Policy}'. + * + * + * @return the meta object for enum 'Repl Policy'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.Repl_Policy + * @generated + */ + EEnum getRepl_Policy(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.WritePolicy Write Policy}'. + * + * + * @return the meta object for enum 'Write Policy'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.WritePolicy + * @generated + */ + EEnum getWritePolicy(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.CacheType Cache Type}'. + * + * + * @return the meta object for enum 'Cache Type'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.CacheType + * @generated + */ + EEnum getCacheType(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.ROM_Type ROM Type}'. + * + * + * @return the meta object for enum 'ROM Type'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.ROM_Type + * @generated + */ + EEnum getROM_Type(); + + /** + * Returns the meta object for data type '{@link java.lang.String Timing}'. + * + * + * @return the meta object for data type 'Timing'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getTiming(); + + /** + * Returns the meta object for data type '{@link java.lang.String Cache Structure}'. + * + * + * @return the meta object for data type 'Cache Structure'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getCacheStructure(); + + /** + * Returns the meta object for data type '{@link java.lang.String Memory Organization}'. + * + * + * @return the meta object for data type 'Memory Organization'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getMemoryOrganization(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + HwMemoryFactory getHwMemoryFactory(); + + /** + * + * 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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwMemoryImpl Hw Memory}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwMemoryImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwMemoryPackageImpl#getHwMemory() + * @generated + */ + EClass HW_MEMORY = eINSTANCE.getHwMemory(); + + /** + * The meta object literal for the 'Memory Size' attribute feature. + * + * + * @generated + */ + EAttribute HW_MEMORY__MEMORY_SIZE = eINSTANCE.getHwMemory_MemorySize(); + + /** + * The meta object literal for the 'Adress Size' attribute feature. + * + * + * @generated + */ + EAttribute HW_MEMORY__ADRESS_SIZE = eINSTANCE.getHwMemory_AdressSize(); + + /** + * The meta object literal for the 'Timings' attribute list feature. + * + * + * @generated + */ + EAttribute HW_MEMORY__TIMINGS = eINSTANCE.getHwMemory_Timings(); + + /** + * The meta object literal for the 'Throughput' attribute feature. + * + * + * @generated + */ + EAttribute HW_MEMORY__THROUGHPUT = eINSTANCE.getHwMemory_Throughput(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwRAMImpl Hw RAM}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwRAMImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwMemoryPackageImpl#getHwRAM() + * @generated + */ + EClass HW_RAM = eINSTANCE.getHwRAM(); + + /** + * The meta object literal for the 'Organization' attribute feature. + * + * + * @generated + */ + EAttribute HW_RAM__ORGANIZATION = eINSTANCE.getHwRAM_Organization(); + + /** + * The meta object literal for the 'Is Synchronous' attribute feature. + * + * + * @generated + */ + EAttribute HW_RAM__IS_SYNCHRONOUS = eINSTANCE.getHwRAM_IsSynchronous(); + + /** + * The meta object literal for the 'Is Static' attribute feature. + * + * + * @generated + */ + EAttribute HW_RAM__IS_STATIC = eINSTANCE.getHwRAM_IsStatic(); + + /** + * The meta object literal for the 'Is Non Volatile' attribute feature. + * + * + * @generated + */ + EAttribute HW_RAM__IS_NON_VOLATILE = eINSTANCE.getHwRAM_IsNonVolatile(); + + /** + * The meta object literal for the 'Repl Policy' attribute feature. + * + * + * @generated + */ + EAttribute HW_RAM__REPL_POLICY = eINSTANCE.getHwRAM_Repl_Policy(); + + /** + * The meta object literal for the 'Write Policy' attribute feature. + * + * + * @generated + */ + EAttribute HW_RAM__WRITE_POLICY = eINSTANCE.getHwRAM_WritePolicy(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwROMImpl Hw ROM}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwROMImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwMemoryPackageImpl#getHwROM() + * @generated + */ + EClass HW_ROM = eINSTANCE.getHwROM(); + + /** + * The meta object literal for the 'Type' attribute feature. + * + * + * @generated + */ + EAttribute HW_ROM__TYPE = eINSTANCE.getHwROM_Type(); + + /** + * The meta object literal for the 'Organization' attribute feature. + * + * + * @generated + */ + EAttribute HW_ROM__ORGANIZATION = eINSTANCE.getHwROM_Organization(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwDriveImpl Hw Drive}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwDriveImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwMemoryPackageImpl#getHwDrive() + * @generated + */ + EClass HW_DRIVE = eINSTANCE.getHwDrive(); + + /** + * The meta object literal for the 'Sector Size' attribute feature. + * + * + * @generated + */ + EAttribute HW_DRIVE__SECTOR_SIZE = eINSTANCE.getHwDrive_SectorSize(); + + /** + * The meta object literal for the 'Buffer' reference feature. + * + * + * @generated + */ + EReference HW_DRIVE__BUFFER = eINSTANCE.getHwDrive_Buffer(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwCacheImpl Hw Cache}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwCacheImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwMemoryPackageImpl#getHwCache() + * @generated + */ + EClass HW_CACHE = eINSTANCE.getHwCache(); + + /** + * The meta object literal for the 'Level' attribute feature. + * + * + * @generated + */ + EAttribute HW_CACHE__LEVEL = eINSTANCE.getHwCache_Level(); + + /** + * The meta object literal for the 'Type' attribute feature. + * + * + * @generated + */ + EAttribute HW_CACHE__TYPE = eINSTANCE.getHwCache_Type(); + + /** + * The meta object literal for the 'Structure' attribute feature. + * + * + * @generated + */ + EAttribute HW_CACHE__STRUCTURE = eINSTANCE.getHwCache_Structure(); + + /** + * The meta object literal for the 'Repl Policy' attribute feature. + * + * + * @generated + */ + EAttribute HW_CACHE__REPL_POLICY = eINSTANCE.getHwCache_Repl_Policy(); + + /** + * The meta object literal for the 'Write Policy' attribute feature. + * + * + * @generated + */ + EAttribute HW_CACHE__WRITE_POLICY = eINSTANCE.getHwCache_WritePolicy(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.Repl_Policy Repl Policy}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.Repl_Policy + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwMemoryPackageImpl#getRepl_Policy() + * @generated + */ + EEnum REPL_POLICY = eINSTANCE.getRepl_Policy(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.WritePolicy Write Policy}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.WritePolicy + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwMemoryPackageImpl#getWritePolicy() + * @generated + */ + EEnum WRITE_POLICY = eINSTANCE.getWritePolicy(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.CacheType Cache Type}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.CacheType + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwMemoryPackageImpl#getCacheType() + * @generated + */ + EEnum CACHE_TYPE = eINSTANCE.getCacheType(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.ROM_Type ROM Type}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.ROM_Type + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwMemoryPackageImpl#getROM_Type() + * @generated + */ + EEnum ROM_TYPE = eINSTANCE.getROM_Type(); + + /** + * The meta object literal for the 'Timing' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwMemoryPackageImpl#getTiming() + * @generated + */ + EDataType TIMING = eINSTANCE.getTiming(); + + /** + * The meta object literal for the 'Cache Structure' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwMemoryPackageImpl#getCacheStructure() + * @generated + */ + EDataType CACHE_STRUCTURE = eINSTANCE.getCacheStructure(); + + /** + * The meta object literal for the 'Memory Organization' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwMemoryPackageImpl#getMemoryOrganization() + * @generated + */ + EDataType MEMORY_ORGANIZATION = eINSTANCE.getMemoryOrganization(); + + } + +} //HwMemoryPackage diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/HwRAM.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/HwRAM.java new file mode 100644 index 00000000000..80c456c036a --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/HwRAM.java @@ -0,0 +1,201 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory; + + +/** + * + * A representation of the model object 'Hw RAM'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwRAM#getOrganization Organization}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwRAM#getIsSynchronous Is Synchronous}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwRAM#getIsStatic Is Static}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwRAM#getIsNonVolatile Is Non Volatile}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwRAM#getRepl_Policy Repl Policy}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwRAM#getWritePolicy Write Policy}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemoryPackage#getHwRAM() + * @model + * @generated + */ +public interface HwRAM extends HwMemory { + /** + * Returns the value of the 'Organization' attribute. + * + *

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

+ * + * @return the value of the 'Organization' attribute. + * @see #setOrganization(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemoryPackage#getHwRAM_Organization() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.MemoryOrganization" ordered="false" + * @generated + */ + String getOrganization(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwRAM#getOrganization Organization}' attribute. + * + * + * @param value the new value of the 'Organization' attribute. + * @see #getOrganization() + * @generated + */ + void setOrganization(String value); + + /** + * Returns the value of the 'Is Synchronous' attribute. + * + *

+ * If the meaning of the 'Is Synchronous' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Is Synchronous' attribute. + * @see #setIsSynchronous(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemoryPackage#getHwRAM_IsSynchronous() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Boolean" ordered="false" + * @generated + */ + String getIsSynchronous(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwRAM#getIsSynchronous Is Synchronous}' attribute. + * + * + * @param value the new value of the 'Is Synchronous' attribute. + * @see #getIsSynchronous() + * @generated + */ + void setIsSynchronous(String value); + + /** + * Returns the value of the 'Is Static' attribute. + * + *

+ * If the meaning of the 'Is Static' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Is Static' attribute. + * @see #setIsStatic(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemoryPackage#getHwRAM_IsStatic() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Boolean" ordered="false" + * @generated + */ + String getIsStatic(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwRAM#getIsStatic Is Static}' attribute. + * + * + * @param value the new value of the 'Is Static' attribute. + * @see #getIsStatic() + * @generated + */ + void setIsStatic(String value); + + /** + * Returns the value of the 'Is Non Volatile' attribute. + * + *

+ * If the meaning of the 'Is Non Volatile' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Is Non Volatile' attribute. + * @see #setIsNonVolatile(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemoryPackage#getHwRAM_IsNonVolatile() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Boolean" ordered="false" + * @generated + */ + String getIsNonVolatile(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwRAM#getIsNonVolatile Is Non Volatile}' attribute. + * + * + * @param value the new value of the 'Is Non Volatile' attribute. + * @see #getIsNonVolatile() + * @generated + */ + void setIsNonVolatile(String value); + + /** + * Returns the value of the 'Repl Policy' attribute. + * The literals are from the enumeration {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.Repl_Policy}. + * + *

+ * If the meaning of the 'Repl Policy' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Repl Policy' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.Repl_Policy + * @see #setRepl_Policy(Repl_Policy) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemoryPackage#getHwRAM_Repl_Policy() + * @model unique="false" ordered="false" + * @generated + */ + Repl_Policy getRepl_Policy(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwRAM#getRepl_Policy Repl Policy}' attribute. + * + * + * @param value the new value of the 'Repl Policy' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.Repl_Policy + * @see #getRepl_Policy() + * @generated + */ + void setRepl_Policy(Repl_Policy value); + + /** + * Returns the value of the 'Write Policy' attribute. + * The literals are from the enumeration {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.WritePolicy}. + * + *

+ * If the meaning of the 'Write Policy' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Write Policy' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.WritePolicy + * @see #setWritePolicy(WritePolicy) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemoryPackage#getHwRAM_WritePolicy() + * @model unique="false" ordered="false" + * @generated + */ + WritePolicy getWritePolicy(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwRAM#getWritePolicy Write Policy}' attribute. + * + * + * @param value the new value of the 'Write Policy' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.WritePolicy + * @see #getWritePolicy() + * @generated + */ + void setWritePolicy(WritePolicy value); + +} // HwRAM diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/HwROM.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/HwROM.java new file mode 100644 index 00000000000..c0668bfb829 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/HwROM.java @@ -0,0 +1,90 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory; + + +/** + * + * A representation of the model object 'Hw ROM'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwROM#getType Type}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwROM#getOrganization Organization}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemoryPackage#getHwROM() + * @model + * @generated + */ +public interface HwROM extends HwMemory { + /** + * Returns the value of the 'Type' attribute. + * The literals are from the enumeration {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.ROM_Type}. + * + *

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

+ * + * @return the value of the 'Type' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.ROM_Type + * @see #setType(ROM_Type) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemoryPackage#getHwROM_Type() + * @model unique="false" ordered="false" + * @generated + */ + ROM_Type getType(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwROM#getType Type}' attribute. + * + * + * @param value the new value of the 'Type' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.ROM_Type + * @see #getType() + * @generated + */ + void setType(ROM_Type value); + + /** + * Returns the value of the 'Organization' attribute. + * + *

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

+ * + * @return the value of the 'Organization' attribute. + * @see #setOrganization(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemoryPackage#getHwROM_Organization() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.MemoryOrganization" ordered="false" + * @generated + */ + String getOrganization(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwROM#getOrganization Organization}' attribute. + * + * + * @param value the new value of the 'Organization' attribute. + * @see #getOrganization() + * @generated + */ + void setOrganization(String value); + +} // HwROM diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/ROM_Type.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/ROM_Type.java new file mode 100644 index 00000000000..db83986a1ad --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/ROM_Type.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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory; + +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 'ROM Type', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemoryPackage#getROM_Type() + * @model + * @generated + */ +public enum ROM_Type implements Enumerator { + /** + * The 'Masked ROM' literal object. + * + * + * @see #MASKED_ROM_VALUE + * @generated + * @ordered + */ + MASKED_ROM(0, "maskedROM", "maskedROM"), + + /** + * The 'EPROM' literal object. + * + * + * @see #EPROM_VALUE + * @generated + * @ordered + */ + EPROM(1, "EPROM", "EPROM"), + + /** + * The 'OTP EPROM' literal object. + * + * + * @see #OTP_EPROM_VALUE + * @generated + * @ordered + */ + OTP_EPROM(2, "OTP_EPROM", "OTP_EPROM"), + + /** + * The 'EEPROM' literal object. + * + * + * @see #EEPROM_VALUE + * @generated + * @ordered + */ + EEPROM(3, "EEPROM", "EEPROM"), + + /** + * The 'Flash' literal object. + * + * + * @see #FLASH_VALUE + * @generated + * @ordered + */ + FLASH(4, "Flash", "Flash"), + + /** + * The 'Other' literal object. + * + * + * @see #OTHER_VALUE + * @generated + * @ordered + */ + OTHER(5, "other", "other"), + + /** + * The 'Undef' literal object. + * + * + * @see #UNDEF_VALUE + * @generated + * @ordered + */ + UNDEF(6, "undef", "undef"); + + /** + * The 'Masked ROM' literal value. + * + *

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

+ * + * @see #MASKED_ROM + * @model name="maskedROM" + * @generated + * @ordered + */ + public static final int MASKED_ROM_VALUE = 0; + + /** + * The 'EPROM' literal value. + * + *

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

+ * + * @see #EPROM + * @model + * @generated + * @ordered + */ + public static final int EPROM_VALUE = 1; + + /** + * The 'OTP EPROM' literal value. + * + *

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

+ * + * @see #OTP_EPROM + * @model + * @generated + * @ordered + */ + public static final int OTP_EPROM_VALUE = 2; + + /** + * The 'EEPROM' literal value. + * + *

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

+ * + * @see #EEPROM + * @model + * @generated + * @ordered + */ + public static final int EEPROM_VALUE = 3; + + /** + * The 'Flash' literal value. + * + *

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

+ * + * @see #FLASH + * @model name="Flash" + * @generated + * @ordered + */ + public static final int FLASH_VALUE = 4; + + /** + * 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 = 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; + + /** + * An array of all the 'ROM Type' enumerators. + * + * + * @generated + */ + private static final ROM_Type[] VALUES_ARRAY = + new ROM_Type[] { + MASKED_ROM, + EPROM, + OTP_EPROM, + EEPROM, + FLASH, + OTHER, + UNDEF, + }; + + /** + * A public read-only list of all the 'ROM Type' enumerators. + * + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'ROM Type' literal with the specified literal value. + * + * + * @generated + */ + public static ROM_Type get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + ROM_Type result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'ROM Type' literal with the specified name. + * + * + * @generated + */ + public static ROM_Type getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + ROM_Type result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'ROM Type' literal with the specified integer value. + * + * + * @generated + */ + public static ROM_Type get(int value) { + switch (value) { + case MASKED_ROM_VALUE: return MASKED_ROM; + case EPROM_VALUE: return EPROM; + case OTP_EPROM_VALUE: return OTP_EPROM; + case EEPROM_VALUE: return EEPROM; + case FLASH_VALUE: return FLASH; + case OTHER_VALUE: return OTHER; + case UNDEF_VALUE: return UNDEF; + } + 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 ROM_Type(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; + } + +} //ROM_Type diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/Repl_Policy.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/Repl_Policy.java new file mode 100644 index 00000000000..e675ceedfab --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/Repl_Policy.java @@ -0,0 +1,327 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory; + +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 'Repl Policy', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemoryPackage#getRepl_Policy() + * @model + * @generated + */ +public enum Repl_Policy implements Enumerator { + /** + * The 'LRU' literal object. + * + * + * @see #LRU_VALUE + * @generated + * @ordered + */ + LRU(0, "LRU", "LRU"), + + /** + * The 'NFU' literal object. + * + * + * @see #NFU_VALUE + * @generated + * @ordered + */ + NFU(1, "NFU", "NFU"), + + /** + * The 'FIFO' literal object. + * + * + * @see #FIFO_VALUE + * @generated + * @ordered + */ + FIFO(2, "FIFO", "FIFO"), + + /** + * The 'Random' literal object. + * + * + * @see #RANDOM_VALUE + * @generated + * @ordered + */ + RANDOM(3, "random", "random"), + + /** + * The 'Other' literal object. + * + * + * @see #OTHER_VALUE + * @generated + * @ordered + */ + OTHER(4, "other", "other"), + + /** + * The 'Undef' literal object. + * + * + * @see #UNDEF_VALUE + * @generated + * @ordered + */ + UNDEF(5, "undef", "undef"); + + /** + * The 'LRU' literal value. + * + *

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

+ * + * @see #LRU + * @model + * @generated + * @ordered + */ + public static final int LRU_VALUE = 0; + + /** + * The 'NFU' literal value. + * + *

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

+ * + * @see #NFU + * @model + * @generated + * @ordered + */ + public static final int NFU_VALUE = 1; + + /** + * 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 = 2; + + /** + * The 'Random' literal value. + * + *

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

+ * + * @see #RANDOM + * @model name="random" + * @generated + * @ordered + */ + public static final int RANDOM_VALUE = 3; + + /** + * 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 = 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; + + /** + * An array of all the 'Repl Policy' enumerators. + * + * + * @generated + */ + private static final Repl_Policy[] VALUES_ARRAY = + new Repl_Policy[] { + LRU, + NFU, + FIFO, + RANDOM, + OTHER, + UNDEF, + }; + + /** + * A public read-only list of all the 'Repl Policy' enumerators. + * + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Repl Policy' literal with the specified literal value. + * + * + * @generated + */ + public static Repl_Policy get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + Repl_Policy result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Repl Policy' literal with the specified name. + * + * + * @generated + */ + public static Repl_Policy getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + Repl_Policy result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Repl Policy' literal with the specified integer value. + * + * + * @generated + */ + public static Repl_Policy get(int value) { + switch (value) { + case LRU_VALUE: return LRU; + case NFU_VALUE: return NFU; + case FIFO_VALUE: return FIFO; + case RANDOM_VALUE: return RANDOM; + case OTHER_VALUE: return OTHER; + case UNDEF_VALUE: return UNDEF; + } + 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 Repl_Policy(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; + } + +} //Repl_Policy diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/WritePolicy.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/WritePolicy.java new file mode 100644 index 00000000000..456736f2eeb --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/WritePolicy.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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory; + +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 'Write Policy', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemoryPackage#getWritePolicy() + * @model + * @generated + */ +public enum WritePolicy implements Enumerator { + /** + * The 'Write Back' literal object. + * + * + * @see #WRITE_BACK_VALUE + * @generated + * @ordered + */ + WRITE_BACK(0, "writeBack", "writeBack"), + + /** + * The 'Write Through' literal object. + * + * + * @see #WRITE_THROUGH_VALUE + * @generated + * @ordered + */ + WRITE_THROUGH(1, "writeThrough", "writeThrough"), + + /** + * The 'Other' literal object. + * + * + * @see #OTHER_VALUE + * @generated + * @ordered + */ + OTHER(2, "other", "other"), + + /** + * The 'Undef' literal object. + * + * + * @see #UNDEF_VALUE + * @generated + * @ordered + */ + UNDEF(3, "undef", "undef"); + + /** + * The 'Write Back' literal value. + * + *

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

+ * + * @see #WRITE_BACK + * @model name="writeBack" + * @generated + * @ordered + */ + public static final int WRITE_BACK_VALUE = 0; + + /** + * The 'Write Through' literal value. + * + *

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

+ * + * @see #WRITE_THROUGH + * @model name="writeThrough" + * @generated + * @ordered + */ + public static final int WRITE_THROUGH_VALUE = 1; + + /** + * 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 = 2; + + /** + * 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 = 3; + + /** + * An array of all the 'Write Policy' enumerators. + * + * + * @generated + */ + private static final WritePolicy[] VALUES_ARRAY = + new WritePolicy[] { + WRITE_BACK, + WRITE_THROUGH, + OTHER, + UNDEF, + }; + + /** + * A public read-only list of all the 'Write Policy' enumerators. + * + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Write Policy' literal with the specified literal value. + * + * + * @generated + */ + public static WritePolicy get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + WritePolicy result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Write Policy' literal with the specified name. + * + * + * @generated + */ + public static WritePolicy getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + WritePolicy result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Write Policy' literal with the specified integer value. + * + * + * @generated + */ + public static WritePolicy get(int value) { + switch (value) { + case WRITE_BACK_VALUE: return WRITE_BACK; + case WRITE_THROUGH_VALUE: return WRITE_THROUGH; + case OTHER_VALUE: return OTHER; + case UNDEF_VALUE: return UNDEF; + } + 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 WritePolicy(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; + } + +} //WritePolicy diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/impl/HwCacheImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/impl/HwCacheImpl.java new file mode 100644 index 00000000000..07acbe87eb3 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/impl/HwCacheImpl.java @@ -0,0 +1,392 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.CacheType; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwCache; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemoryPackage; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.Repl_Policy; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.WritePolicy; + +/** + * + * An implementation of the model object 'Hw Cache'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwCacheImpl#getLevel Level}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwCacheImpl#getType Type}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwCacheImpl#getStructure Structure}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwCacheImpl#getRepl_Policy Repl Policy}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwCacheImpl#getWritePolicy Write Policy}
  • + *
+ *

+ * + * @generated + */ +public class HwCacheImpl extends HwMemoryImpl implements HwCache { + /** + * The default value of the '{@link #getLevel() Level}' attribute. + * + * + * @see #getLevel() + * @generated + * @ordered + */ + protected static final String LEVEL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getLevel() Level}' attribute. + * + * + * @see #getLevel() + * @generated + * @ordered + */ + protected String level = LEVEL_EDEFAULT; + + /** + * The default value of the '{@link #getType() Type}' attribute. + * + * + * @see #getType() + * @generated + * @ordered + */ + protected static final CacheType TYPE_EDEFAULT = CacheType.DATA; + + /** + * The cached value of the '{@link #getType() Type}' attribute. + * + * + * @see #getType() + * @generated + * @ordered + */ + protected CacheType type = TYPE_EDEFAULT; + + /** + * The default value of the '{@link #getStructure() Structure}' attribute. + * + * + * @see #getStructure() + * @generated + * @ordered + */ + protected static final String STRUCTURE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getStructure() Structure}' attribute. + * + * + * @see #getStructure() + * @generated + * @ordered + */ + protected String structure = STRUCTURE_EDEFAULT; + + /** + * The default value of the '{@link #getRepl_Policy() Repl Policy}' attribute. + * + * + * @see #getRepl_Policy() + * @generated + * @ordered + */ + protected static final Repl_Policy REPL_POLICY_EDEFAULT = Repl_Policy.LRU; + + /** + * The cached value of the '{@link #getRepl_Policy() Repl Policy}' attribute. + * + * + * @see #getRepl_Policy() + * @generated + * @ordered + */ + protected Repl_Policy repl_Policy = REPL_POLICY_EDEFAULT; + + /** + * The default value of the '{@link #getWritePolicy() Write Policy}' attribute. + * + * + * @see #getWritePolicy() + * @generated + * @ordered + */ + protected static final WritePolicy WRITE_POLICY_EDEFAULT = WritePolicy.WRITE_BACK; + + /** + * The cached value of the '{@link #getWritePolicy() Write Policy}' attribute. + * + * + * @see #getWritePolicy() + * @generated + * @ordered + */ + protected WritePolicy writePolicy = WRITE_POLICY_EDEFAULT; + + /** + * + * + * @generated + */ + protected HwCacheImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return HwMemoryPackage.Literals.HW_CACHE; + } + + /** + * + * + * @generated + */ + public String getLevel() { + return level; + } + + /** + * + * + * @generated + */ + public void setLevel(String newLevel) { + String oldLevel = level; + level = newLevel; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwMemoryPackage.HW_CACHE__LEVEL, oldLevel, level)); + } + + /** + * + * + * @generated + */ + public CacheType getType() { + return type; + } + + /** + * + * + * @generated + */ + public void setType(CacheType newType) { + CacheType oldType = type; + type = newType == null ? TYPE_EDEFAULT : newType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwMemoryPackage.HW_CACHE__TYPE, oldType, type)); + } + + /** + * + * + * @generated + */ + public String getStructure() { + return structure; + } + + /** + * + * + * @generated + */ + public void setStructure(String newStructure) { + String oldStructure = structure; + structure = newStructure; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwMemoryPackage.HW_CACHE__STRUCTURE, oldStructure, structure)); + } + + /** + * + * + * @generated + */ + public Repl_Policy getRepl_Policy() { + return repl_Policy; + } + + /** + * + * + * @generated + */ + public void setRepl_Policy(Repl_Policy newRepl_Policy) { + Repl_Policy oldRepl_Policy = repl_Policy; + repl_Policy = newRepl_Policy == null ? REPL_POLICY_EDEFAULT : newRepl_Policy; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwMemoryPackage.HW_CACHE__REPL_POLICY, oldRepl_Policy, repl_Policy)); + } + + /** + * + * + * @generated + */ + public WritePolicy getWritePolicy() { + return writePolicy; + } + + /** + * + * + * @generated + */ + public void setWritePolicy(WritePolicy newWritePolicy) { + WritePolicy oldWritePolicy = writePolicy; + writePolicy = newWritePolicy == null ? WRITE_POLICY_EDEFAULT : newWritePolicy; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwMemoryPackage.HW_CACHE__WRITE_POLICY, oldWritePolicy, writePolicy)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case HwMemoryPackage.HW_CACHE__LEVEL: + return getLevel(); + case HwMemoryPackage.HW_CACHE__TYPE: + return getType(); + case HwMemoryPackage.HW_CACHE__STRUCTURE: + return getStructure(); + case HwMemoryPackage.HW_CACHE__REPL_POLICY: + return getRepl_Policy(); + case HwMemoryPackage.HW_CACHE__WRITE_POLICY: + return getWritePolicy(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case HwMemoryPackage.HW_CACHE__LEVEL: + setLevel((String)newValue); + return; + case HwMemoryPackage.HW_CACHE__TYPE: + setType((CacheType)newValue); + return; + case HwMemoryPackage.HW_CACHE__STRUCTURE: + setStructure((String)newValue); + return; + case HwMemoryPackage.HW_CACHE__REPL_POLICY: + setRepl_Policy((Repl_Policy)newValue); + return; + case HwMemoryPackage.HW_CACHE__WRITE_POLICY: + setWritePolicy((WritePolicy)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case HwMemoryPackage.HW_CACHE__LEVEL: + setLevel(LEVEL_EDEFAULT); + return; + case HwMemoryPackage.HW_CACHE__TYPE: + setType(TYPE_EDEFAULT); + return; + case HwMemoryPackage.HW_CACHE__STRUCTURE: + setStructure(STRUCTURE_EDEFAULT); + return; + case HwMemoryPackage.HW_CACHE__REPL_POLICY: + setRepl_Policy(REPL_POLICY_EDEFAULT); + return; + case HwMemoryPackage.HW_CACHE__WRITE_POLICY: + setWritePolicy(WRITE_POLICY_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case HwMemoryPackage.HW_CACHE__LEVEL: + return LEVEL_EDEFAULT == null ? level != null : !LEVEL_EDEFAULT.equals(level); + case HwMemoryPackage.HW_CACHE__TYPE: + return type != TYPE_EDEFAULT; + case HwMemoryPackage.HW_CACHE__STRUCTURE: + return STRUCTURE_EDEFAULT == null ? structure != null : !STRUCTURE_EDEFAULT.equals(structure); + case HwMemoryPackage.HW_CACHE__REPL_POLICY: + return repl_Policy != REPL_POLICY_EDEFAULT; + case HwMemoryPackage.HW_CACHE__WRITE_POLICY: + return writePolicy != WRITE_POLICY_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (level: "); + result.append(level); + result.append(", type: "); + result.append(type); + result.append(", structure: "); + result.append(structure); + result.append(", repl_Policy: "); + result.append(repl_Policy); + result.append(", writePolicy: "); + result.append(writePolicy); + result.append(')'); + return result.toString(); + } + +} //HwCacheImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/impl/HwDriveImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/impl/HwDriveImpl.java new file mode 100644 index 00000000000..69ffc8428f2 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/impl/HwDriveImpl.java @@ -0,0 +1,235 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwDrive; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemoryPackage; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwRAM; + +/** + * + * An implementation of the model object 'Hw Drive'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwDriveImpl#getSectorSize Sector Size}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwDriveImpl#getBuffer Buffer}
  • + *
+ *

+ * + * @generated + */ +public class HwDriveImpl extends HwMemoryImpl implements HwDrive { + /** + * The default value of the '{@link #getSectorSize() Sector Size}' attribute. + * + * + * @see #getSectorSize() + * @generated + * @ordered + */ + protected static final String SECTOR_SIZE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSectorSize() Sector Size}' attribute. + * + * + * @see #getSectorSize() + * @generated + * @ordered + */ + protected String sectorSize = SECTOR_SIZE_EDEFAULT; + + /** + * The cached value of the '{@link #getBuffer() Buffer}' reference. + * + * + * @see #getBuffer() + * @generated + * @ordered + */ + protected HwRAM buffer; + + /** + * + * + * @generated + */ + protected HwDriveImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return HwMemoryPackage.Literals.HW_DRIVE; + } + + /** + * + * + * @generated + */ + public String getSectorSize() { + return sectorSize; + } + + /** + * + * + * @generated + */ + public void setSectorSize(String newSectorSize) { + String oldSectorSize = sectorSize; + sectorSize = newSectorSize; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwMemoryPackage.HW_DRIVE__SECTOR_SIZE, oldSectorSize, sectorSize)); + } + + /** + * + * + * @generated + */ + public HwRAM getBuffer() { + if (buffer != null && buffer.eIsProxy()) { + InternalEObject oldBuffer = (InternalEObject)buffer; + buffer = (HwRAM)eResolveProxy(oldBuffer); + if (buffer != oldBuffer) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, HwMemoryPackage.HW_DRIVE__BUFFER, oldBuffer, buffer)); + } + } + return buffer; + } + + /** + * + * + * @generated + */ + public HwRAM basicGetBuffer() { + return buffer; + } + + /** + * + * + * @generated + */ + public void setBuffer(HwRAM newBuffer) { + HwRAM oldBuffer = buffer; + buffer = newBuffer; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwMemoryPackage.HW_DRIVE__BUFFER, oldBuffer, buffer)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case HwMemoryPackage.HW_DRIVE__SECTOR_SIZE: + return getSectorSize(); + case HwMemoryPackage.HW_DRIVE__BUFFER: + if (resolve) return getBuffer(); + return basicGetBuffer(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case HwMemoryPackage.HW_DRIVE__SECTOR_SIZE: + setSectorSize((String)newValue); + return; + case HwMemoryPackage.HW_DRIVE__BUFFER: + setBuffer((HwRAM)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case HwMemoryPackage.HW_DRIVE__SECTOR_SIZE: + setSectorSize(SECTOR_SIZE_EDEFAULT); + return; + case HwMemoryPackage.HW_DRIVE__BUFFER: + setBuffer((HwRAM)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case HwMemoryPackage.HW_DRIVE__SECTOR_SIZE: + return SECTOR_SIZE_EDEFAULT == null ? sectorSize != null : !SECTOR_SIZE_EDEFAULT.equals(sectorSize); + case HwMemoryPackage.HW_DRIVE__BUFFER: + return buffer != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (sectorSize: "); + result.append(sectorSize); + result.append(')'); + return result.toString(); + } + +} //HwDriveImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/impl/HwMemoryFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/impl/HwMemoryFactoryImpl.java new file mode 100644 index 00000000000..f816b46cdfa --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/impl/HwMemoryFactoryImpl.java @@ -0,0 +1,339 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.*; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class HwMemoryFactoryImpl extends EFactoryImpl implements HwMemoryFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static HwMemoryFactory init() { + try { + HwMemoryFactory theHwMemoryFactory = (HwMemoryFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/HwMemory/1"); + if (theHwMemoryFactory != null) { + return theHwMemoryFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new HwMemoryFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public HwMemoryFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case HwMemoryPackage.HW_MEMORY: return createHwMemory(); + case HwMemoryPackage.HW_RAM: return createHwRAM(); + case HwMemoryPackage.HW_ROM: return createHwROM(); + case HwMemoryPackage.HW_DRIVE: return createHwDrive(); + case HwMemoryPackage.HW_CACHE: return createHwCache(); + 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 HwMemoryPackage.REPL_POLICY: + return createRepl_PolicyFromString(eDataType, initialValue); + case HwMemoryPackage.WRITE_POLICY: + return createWritePolicyFromString(eDataType, initialValue); + case HwMemoryPackage.CACHE_TYPE: + return createCacheTypeFromString(eDataType, initialValue); + case HwMemoryPackage.ROM_TYPE: + return createROM_TypeFromString(eDataType, initialValue); + case HwMemoryPackage.TIMING: + return createTimingFromString(eDataType, initialValue); + case HwMemoryPackage.CACHE_STRUCTURE: + return createCacheStructureFromString(eDataType, initialValue); + case HwMemoryPackage.MEMORY_ORGANIZATION: + return createMemoryOrganizationFromString(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 HwMemoryPackage.REPL_POLICY: + return convertRepl_PolicyToString(eDataType, instanceValue); + case HwMemoryPackage.WRITE_POLICY: + return convertWritePolicyToString(eDataType, instanceValue); + case HwMemoryPackage.CACHE_TYPE: + return convertCacheTypeToString(eDataType, instanceValue); + case HwMemoryPackage.ROM_TYPE: + return convertROM_TypeToString(eDataType, instanceValue); + case HwMemoryPackage.TIMING: + return convertTimingToString(eDataType, instanceValue); + case HwMemoryPackage.CACHE_STRUCTURE: + return convertCacheStructureToString(eDataType, instanceValue); + case HwMemoryPackage.MEMORY_ORGANIZATION: + return convertMemoryOrganizationToString(eDataType, instanceValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public HwMemory createHwMemory() { + HwMemoryImpl hwMemory = new HwMemoryImpl(); + return hwMemory; + } + + /** + * + * + * @generated + */ + public HwRAM createHwRAM() { + HwRAMImpl hwRAM = new HwRAMImpl(); + return hwRAM; + } + + /** + * + * + * @generated + */ + public HwROM createHwROM() { + HwROMImpl hwROM = new HwROMImpl(); + return hwROM; + } + + /** + * + * + * @generated + */ + public HwDrive createHwDrive() { + HwDriveImpl hwDrive = new HwDriveImpl(); + return hwDrive; + } + + /** + * + * + * @generated + */ + public HwCache createHwCache() { + HwCacheImpl hwCache = new HwCacheImpl(); + return hwCache; + } + + /** + * + * + * @generated + */ + public Repl_Policy createRepl_PolicyFromString(EDataType eDataType, String initialValue) { + Repl_Policy result = Repl_Policy.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertRepl_PolicyToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public WritePolicy createWritePolicyFromString(EDataType eDataType, String initialValue) { + WritePolicy result = WritePolicy.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertWritePolicyToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public CacheType createCacheTypeFromString(EDataType eDataType, String initialValue) { + CacheType result = CacheType.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertCacheTypeToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public ROM_Type createROM_TypeFromString(EDataType eDataType, String initialValue) { + ROM_Type result = ROM_Type.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertROM_TypeToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public String createTimingFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertTimingToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public String createCacheStructureFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertCacheStructureToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public String createMemoryOrganizationFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertMemoryOrganizationToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public HwMemoryPackage getHwMemoryPackage() { + return (HwMemoryPackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static HwMemoryPackage getPackage() { + return HwMemoryPackage.eINSTANCE; + } + +} //HwMemoryFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/impl/HwMemoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/impl/HwMemoryImpl.java new file mode 100644 index 00000000000..bc644a0be6b --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/impl/HwMemoryImpl.java @@ -0,0 +1,415 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EDataTypeUniqueEList; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.impl.HwResourceImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemory; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemoryPackage; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.StorageResource; + +/** + * + * An implementation of the model object 'Hw Memory'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwMemoryImpl#getElementSize Element Size}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwMemoryImpl#getMemorySize Memory Size}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwMemoryImpl#getAdressSize Adress Size}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwMemoryImpl#getTimings Timings}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwMemoryImpl#getThroughput Throughput}
  • + *
+ *

+ * + * @generated + */ +public class HwMemoryImpl extends HwResourceImpl implements HwMemory { + /** + * The default value of the '{@link #getElementSize() Element Size}' attribute. + * + * + * @see #getElementSize() + * @generated + * @ordered + */ + protected static final String ELEMENT_SIZE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getElementSize() Element Size}' attribute. + * + * + * @see #getElementSize() + * @generated + * @ordered + */ + protected String elementSize = ELEMENT_SIZE_EDEFAULT; + + /** + * The default value of the '{@link #getMemorySize() Memory Size}' attribute. + * + * + * @see #getMemorySize() + * @generated + * @ordered + */ + protected static final String MEMORY_SIZE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMemorySize() Memory Size}' attribute. + * + * + * @see #getMemorySize() + * @generated + * @ordered + */ + protected String memorySize = MEMORY_SIZE_EDEFAULT; + + /** + * The default value of the '{@link #getAdressSize() Adress Size}' attribute. + * + * + * @see #getAdressSize() + * @generated + * @ordered + */ + protected static final String ADRESS_SIZE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAdressSize() Adress Size}' attribute. + * + * + * @see #getAdressSize() + * @generated + * @ordered + */ + protected String adressSize = ADRESS_SIZE_EDEFAULT; + + /** + * The cached value of the '{@link #getTimings() Timings}' attribute list. + * + * + * @see #getTimings() + * @generated + * @ordered + */ + protected EList timings; + + /** + * The default value of the '{@link #getThroughput() Throughput}' attribute. + * + * + * @see #getThroughput() + * @generated + * @ordered + */ + protected static final String THROUGHPUT_EDEFAULT = null; + + /** + * The cached value of the '{@link #getThroughput() Throughput}' attribute. + * + * + * @see #getThroughput() + * @generated + * @ordered + */ + protected String throughput = THROUGHPUT_EDEFAULT; + + /** + * + * + * @generated + */ + protected HwMemoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return HwMemoryPackage.Literals.HW_MEMORY; + } + + /** + * + * + * @generated + */ + public String getElementSize() { + return elementSize; + } + + /** + * + * + * @generated + */ + public void setElementSize(String newElementSize) { + String oldElementSize = elementSize; + elementSize = newElementSize; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwMemoryPackage.HW_MEMORY__ELEMENT_SIZE, oldElementSize, elementSize)); + } + + /** + * + * + * @generated + */ + public String getMemorySize() { + return memorySize; + } + + /** + * + * + * @generated + */ + public void setMemorySize(String newMemorySize) { + String oldMemorySize = memorySize; + memorySize = newMemorySize; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwMemoryPackage.HW_MEMORY__MEMORY_SIZE, oldMemorySize, memorySize)); + } + + /** + * + * + * @generated + */ + public String getAdressSize() { + return adressSize; + } + + /** + * + * + * @generated + */ + public void setAdressSize(String newAdressSize) { + String oldAdressSize = adressSize; + adressSize = newAdressSize; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwMemoryPackage.HW_MEMORY__ADRESS_SIZE, oldAdressSize, adressSize)); + } + + /** + * + * + * @generated + */ + public EList getTimings() { + if (timings == null) { + timings = new EDataTypeUniqueEList(String.class, this, HwMemoryPackage.HW_MEMORY__TIMINGS); + } + return timings; + } + + /** + * + * + * @generated + */ + public String getThroughput() { + return throughput; + } + + /** + * + * + * @generated + */ + public void setThroughput(String newThroughput) { + String oldThroughput = throughput; + throughput = newThroughput; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwMemoryPackage.HW_MEMORY__THROUGHPUT, oldThroughput, throughput)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case HwMemoryPackage.HW_MEMORY__ELEMENT_SIZE: + return getElementSize(); + case HwMemoryPackage.HW_MEMORY__MEMORY_SIZE: + return getMemorySize(); + case HwMemoryPackage.HW_MEMORY__ADRESS_SIZE: + return getAdressSize(); + case HwMemoryPackage.HW_MEMORY__TIMINGS: + return getTimings(); + case HwMemoryPackage.HW_MEMORY__THROUGHPUT: + return getThroughput(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case HwMemoryPackage.HW_MEMORY__ELEMENT_SIZE: + setElementSize((String)newValue); + return; + case HwMemoryPackage.HW_MEMORY__MEMORY_SIZE: + setMemorySize((String)newValue); + return; + case HwMemoryPackage.HW_MEMORY__ADRESS_SIZE: + setAdressSize((String)newValue); + return; + case HwMemoryPackage.HW_MEMORY__TIMINGS: + getTimings().clear(); + getTimings().addAll((Collection)newValue); + return; + case HwMemoryPackage.HW_MEMORY__THROUGHPUT: + setThroughput((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case HwMemoryPackage.HW_MEMORY__ELEMENT_SIZE: + setElementSize(ELEMENT_SIZE_EDEFAULT); + return; + case HwMemoryPackage.HW_MEMORY__MEMORY_SIZE: + setMemorySize(MEMORY_SIZE_EDEFAULT); + return; + case HwMemoryPackage.HW_MEMORY__ADRESS_SIZE: + setAdressSize(ADRESS_SIZE_EDEFAULT); + return; + case HwMemoryPackage.HW_MEMORY__TIMINGS: + getTimings().clear(); + return; + case HwMemoryPackage.HW_MEMORY__THROUGHPUT: + setThroughput(THROUGHPUT_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case HwMemoryPackage.HW_MEMORY__ELEMENT_SIZE: + return ELEMENT_SIZE_EDEFAULT == null ? elementSize != null : !ELEMENT_SIZE_EDEFAULT.equals(elementSize); + case HwMemoryPackage.HW_MEMORY__MEMORY_SIZE: + return MEMORY_SIZE_EDEFAULT == null ? memorySize != null : !MEMORY_SIZE_EDEFAULT.equals(memorySize); + case HwMemoryPackage.HW_MEMORY__ADRESS_SIZE: + return ADRESS_SIZE_EDEFAULT == null ? adressSize != null : !ADRESS_SIZE_EDEFAULT.equals(adressSize); + case HwMemoryPackage.HW_MEMORY__TIMINGS: + return timings != null && !timings.isEmpty(); + case HwMemoryPackage.HW_MEMORY__THROUGHPUT: + return THROUGHPUT_EDEFAULT == null ? throughput != null : !THROUGHPUT_EDEFAULT.equals(throughput); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) { + if (baseClass == StorageResource.class) { + switch (derivedFeatureID) { + case HwMemoryPackage.HW_MEMORY__ELEMENT_SIZE: return GRMPackage.STORAGE_RESOURCE__ELEMENT_SIZE; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) { + if (baseClass == StorageResource.class) { + switch (baseFeatureID) { + case GRMPackage.STORAGE_RESOURCE__ELEMENT_SIZE: return HwMemoryPackage.HW_MEMORY__ELEMENT_SIZE; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (elementSize: "); + result.append(elementSize); + result.append(", memorySize: "); + result.append(memorySize); + result.append(", adressSize: "); + result.append(adressSize); + result.append(", timings: "); + result.append(timings); + result.append(", throughput: "); + result.append(throughput); + result.append(')'); + return result.toString(); + } + +} //HwMemoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/impl/HwMemoryPackageImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/impl/HwMemoryPackageImpl.java new file mode 100644 index 00000000000..1465509b934 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/impl/HwMemoryPackageImpl.java @@ -0,0 +1,918 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.EAttribute; +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.EReference; + +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.CacheType; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwCache; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwDrive; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemory; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemoryFactory; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemoryPackage; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwRAM; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwROM; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.ROM_Type; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.Repl_Policy; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.WritePolicy; + +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.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 HwMemoryPackageImpl extends EPackageImpl implements HwMemoryPackage { + /** + * + * + * @generated + */ + private EClass hwMemoryEClass = null; + + /** + * + * + * @generated + */ + private EClass hwRAMEClass = null; + + /** + * + * + * @generated + */ + private EClass hwROMEClass = null; + + /** + * + * + * @generated + */ + private EClass hwDriveEClass = null; + + /** + * + * + * @generated + */ + private EClass hwCacheEClass = null; + + /** + * + * + * @generated + */ + private EEnum repl_PolicyEEnum = null; + + /** + * + * + * @generated + */ + private EEnum writePolicyEEnum = null; + + /** + * + * + * @generated + */ + private EEnum cacheTypeEEnum = null; + + /** + * + * + * @generated + */ + private EEnum roM_TypeEEnum = null; + + /** + * + * + * @generated + */ + private EDataType timingEDataType = null; + + /** + * + * + * @generated + */ + private EDataType cacheStructureEDataType = null; + + /** + * + * + * @generated + */ + private EDataType memoryOrganizationEDataType = 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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemoryPackage#eNS_URI + * @see #init() + * @generated + */ + private HwMemoryPackageImpl() { + super(eNS_URI, HwMemoryFactory.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 HwMemoryPackage#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 HwMemoryPackage init() { + if (isInited) return (HwMemoryPackage)EPackage.Registry.INSTANCE.getEPackage(HwMemoryPackage.eNS_URI); + + // Obtain or create and register package + HwMemoryPackageImpl theHwMemoryPackage = (HwMemoryPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof HwMemoryPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new HwMemoryPackageImpl()); + + 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); + 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); + 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 + theHwMemoryPackage.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(); + 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(); + theMARTE_PrimitivesTypesPackage.createPackageContents(); + + // Initialize created meta-data + theHwMemoryPackage.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(); + 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(); + theMARTE_PrimitivesTypesPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theHwMemoryPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(HwMemoryPackage.eNS_URI, theHwMemoryPackage); + return theHwMemoryPackage; + } + + /** + * + * + * @generated + */ + public EClass getHwMemory() { + return hwMemoryEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getHwMemory_MemorySize() { + return (EAttribute)hwMemoryEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getHwMemory_AdressSize() { + return (EAttribute)hwMemoryEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getHwMemory_Timings() { + return (EAttribute)hwMemoryEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getHwMemory_Throughput() { + return (EAttribute)hwMemoryEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EClass getHwRAM() { + return hwRAMEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getHwRAM_Organization() { + return (EAttribute)hwRAMEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getHwRAM_IsSynchronous() { + return (EAttribute)hwRAMEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getHwRAM_IsStatic() { + return (EAttribute)hwRAMEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getHwRAM_IsNonVolatile() { + return (EAttribute)hwRAMEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getHwRAM_Repl_Policy() { + return (EAttribute)hwRAMEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getHwRAM_WritePolicy() { + return (EAttribute)hwRAMEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EClass getHwROM() { + return hwROMEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getHwROM_Type() { + return (EAttribute)hwROMEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getHwROM_Organization() { + return (EAttribute)hwROMEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getHwDrive() { + return hwDriveEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getHwDrive_SectorSize() { + return (EAttribute)hwDriveEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getHwDrive_Buffer() { + return (EReference)hwDriveEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getHwCache() { + return hwCacheEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getHwCache_Level() { + return (EAttribute)hwCacheEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getHwCache_Type() { + return (EAttribute)hwCacheEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getHwCache_Structure() { + return (EAttribute)hwCacheEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getHwCache_Repl_Policy() { + return (EAttribute)hwCacheEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getHwCache_WritePolicy() { + return (EAttribute)hwCacheEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EEnum getRepl_Policy() { + return repl_PolicyEEnum; + } + + /** + * + * + * @generated + */ + public EEnum getWritePolicy() { + return writePolicyEEnum; + } + + /** + * + * + * @generated + */ + public EEnum getCacheType() { + return cacheTypeEEnum; + } + + /** + * + * + * @generated + */ + public EEnum getROM_Type() { + return roM_TypeEEnum; + } + + /** + * + * + * @generated + */ + public EDataType getTiming() { + return timingEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getCacheStructure() { + return cacheStructureEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getMemoryOrganization() { + return memoryOrganizationEDataType; + } + + /** + * + * + * @generated + */ + public HwMemoryFactory getHwMemoryFactory() { + return (HwMemoryFactory)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 + hwMemoryEClass = createEClass(HW_MEMORY); + createEAttribute(hwMemoryEClass, HW_MEMORY__MEMORY_SIZE); + createEAttribute(hwMemoryEClass, HW_MEMORY__ADRESS_SIZE); + createEAttribute(hwMemoryEClass, HW_MEMORY__TIMINGS); + createEAttribute(hwMemoryEClass, HW_MEMORY__THROUGHPUT); + + hwRAMEClass = createEClass(HW_RAM); + createEAttribute(hwRAMEClass, HW_RAM__ORGANIZATION); + createEAttribute(hwRAMEClass, HW_RAM__IS_SYNCHRONOUS); + createEAttribute(hwRAMEClass, HW_RAM__IS_STATIC); + createEAttribute(hwRAMEClass, HW_RAM__IS_NON_VOLATILE); + createEAttribute(hwRAMEClass, HW_RAM__REPL_POLICY); + createEAttribute(hwRAMEClass, HW_RAM__WRITE_POLICY); + + hwROMEClass = createEClass(HW_ROM); + createEAttribute(hwROMEClass, HW_ROM__TYPE); + createEAttribute(hwROMEClass, HW_ROM__ORGANIZATION); + + hwDriveEClass = createEClass(HW_DRIVE); + createEAttribute(hwDriveEClass, HW_DRIVE__SECTOR_SIZE); + createEReference(hwDriveEClass, HW_DRIVE__BUFFER); + + hwCacheEClass = createEClass(HW_CACHE); + createEAttribute(hwCacheEClass, HW_CACHE__LEVEL); + createEAttribute(hwCacheEClass, HW_CACHE__TYPE); + createEAttribute(hwCacheEClass, HW_CACHE__STRUCTURE); + createEAttribute(hwCacheEClass, HW_CACHE__REPL_POLICY); + createEAttribute(hwCacheEClass, HW_CACHE__WRITE_POLICY); + + // Create enums + repl_PolicyEEnum = createEEnum(REPL_POLICY); + writePolicyEEnum = createEEnum(WRITE_POLICY); + cacheTypeEEnum = createEEnum(CACHE_TYPE); + roM_TypeEEnum = createEEnum(ROM_TYPE); + + // Create data types + timingEDataType = createEDataType(TIMING); + cacheStructureEDataType = createEDataType(CACHE_STRUCTURE); + memoryOrganizationEDataType = createEDataType(MEMORY_ORGANIZATION); + } + + /** + * + * + * @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 + HwGeneralPackage theHwGeneralPackage = (HwGeneralPackage)EPackage.Registry.INSTANCE.getEPackage(HwGeneralPackage.eNS_URI); + GRMPackage theGRMPackage = (GRMPackage)EPackage.Registry.INSTANCE.getEPackage(GRMPackage.eNS_URI); + BasicNFP_TypesPackage theBasicNFP_TypesPackage = (BasicNFP_TypesPackage)EPackage.Registry.INSTANCE.getEPackage(BasicNFP_TypesPackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + hwMemoryEClass.getESuperTypes().add(theHwGeneralPackage.getHwResource()); + hwMemoryEClass.getESuperTypes().add(theGRMPackage.getStorageResource()); + hwRAMEClass.getESuperTypes().add(this.getHwMemory()); + hwROMEClass.getESuperTypes().add(this.getHwMemory()); + hwDriveEClass.getESuperTypes().add(this.getHwMemory()); + hwCacheEClass.getESuperTypes().add(this.getHwMemory()); + + // Initialize classes and features; add operations and parameters + initEClass(hwMemoryEClass, HwMemory.class, "HwMemory", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getHwMemory_MemorySize(), theBasicNFP_TypesPackage.getNFP_DataSize(), "memorySize", null, 0, 1, HwMemory.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getHwMemory_AdressSize(), theBasicNFP_TypesPackage.getNFP_DataSize(), "adressSize", null, 0, 1, HwMemory.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getHwMemory_Timings(), this.getTiming(), "timings", null, 0, -1, HwMemory.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getHwMemory_Throughput(), theBasicNFP_TypesPackage.getNFP_DataTxRate(), "throughput", null, 0, 1, HwMemory.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(hwRAMEClass, HwRAM.class, "HwRAM", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getHwRAM_Organization(), this.getMemoryOrganization(), "organization", null, 0, 1, HwRAM.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getHwRAM_IsSynchronous(), theBasicNFP_TypesPackage.getNFP_Boolean(), "isSynchronous", null, 0, 1, HwRAM.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getHwRAM_IsStatic(), theBasicNFP_TypesPackage.getNFP_Boolean(), "isStatic", null, 0, 1, HwRAM.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getHwRAM_IsNonVolatile(), theBasicNFP_TypesPackage.getNFP_Boolean(), "isNonVolatile", null, 0, 1, HwRAM.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getHwRAM_Repl_Policy(), this.getRepl_Policy(), "repl_Policy", null, 0, 1, HwRAM.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getHwRAM_WritePolicy(), this.getWritePolicy(), "writePolicy", null, 0, 1, HwRAM.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(hwROMEClass, HwROM.class, "HwROM", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getHwROM_Type(), this.getROM_Type(), "type", null, 0, 1, HwROM.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getHwROM_Organization(), this.getMemoryOrganization(), "organization", null, 0, 1, HwROM.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(hwDriveEClass, HwDrive.class, "HwDrive", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getHwDrive_SectorSize(), theBasicNFP_TypesPackage.getNFP_DataSize(), "sectorSize", null, 0, 1, HwDrive.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getHwDrive_Buffer(), this.getHwRAM(), null, "buffer", null, 0, 1, HwDrive.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(hwCacheEClass, HwCache.class, "HwCache", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getHwCache_Level(), theBasicNFP_TypesPackage.getNFP_Natural(), "level", null, 0, 1, HwCache.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getHwCache_Type(), this.getCacheType(), "type", null, 0, 1, HwCache.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getHwCache_Structure(), this.getCacheStructure(), "structure", null, 0, 1, HwCache.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getHwCache_Repl_Policy(), this.getRepl_Policy(), "repl_Policy", null, 0, 1, HwCache.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getHwCache_WritePolicy(), this.getWritePolicy(), "writePolicy", null, 0, 1, HwCache.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + // Initialize enums and add enum literals + initEEnum(repl_PolicyEEnum, Repl_Policy.class, "Repl_Policy"); + addEEnumLiteral(repl_PolicyEEnum, Repl_Policy.LRU); + addEEnumLiteral(repl_PolicyEEnum, Repl_Policy.NFU); + addEEnumLiteral(repl_PolicyEEnum, Repl_Policy.FIFO); + addEEnumLiteral(repl_PolicyEEnum, Repl_Policy.RANDOM); + addEEnumLiteral(repl_PolicyEEnum, Repl_Policy.OTHER); + addEEnumLiteral(repl_PolicyEEnum, Repl_Policy.UNDEF); + + initEEnum(writePolicyEEnum, WritePolicy.class, "WritePolicy"); + addEEnumLiteral(writePolicyEEnum, WritePolicy.WRITE_BACK); + addEEnumLiteral(writePolicyEEnum, WritePolicy.WRITE_THROUGH); + addEEnumLiteral(writePolicyEEnum, WritePolicy.OTHER); + addEEnumLiteral(writePolicyEEnum, WritePolicy.UNDEF); + + initEEnum(cacheTypeEEnum, CacheType.class, "CacheType"); + addEEnumLiteral(cacheTypeEEnum, CacheType.DATA); + addEEnumLiteral(cacheTypeEEnum, CacheType.INSTRUCTION); + addEEnumLiteral(cacheTypeEEnum, CacheType.UNIFIED); + addEEnumLiteral(cacheTypeEEnum, CacheType.OTHER); + addEEnumLiteral(cacheTypeEEnum, CacheType.UNDEF); + + initEEnum(roM_TypeEEnum, ROM_Type.class, "ROM_Type"); + addEEnumLiteral(roM_TypeEEnum, ROM_Type.MASKED_ROM); + addEEnumLiteral(roM_TypeEEnum, ROM_Type.EPROM); + addEEnumLiteral(roM_TypeEEnum, ROM_Type.OTP_EPROM); + addEEnumLiteral(roM_TypeEEnum, ROM_Type.EEPROM); + addEEnumLiteral(roM_TypeEEnum, ROM_Type.FLASH); + addEEnumLiteral(roM_TypeEEnum, ROM_Type.OTHER); + addEEnumLiteral(roM_TypeEEnum, ROM_Type.UNDEF); + + // Initialize data types + initEDataType(timingEDataType, String.class, "Timing", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(cacheStructureEDataType, String.class, "CacheStructure", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(memoryOrganizationEDataType, String.class, "MemoryOrganization", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + + // Create annotations + // subsets + createSubsetsAnnotations(); + } + + /** + * Initializes the annotations for subsets. + * + * + * @generated + */ + protected void createSubsetsAnnotations() { + String source = "subsets"; + addAnnotation + (getHwDrive_Buffer(), + source, + new String[] { + }, + new URI[] { + URI.createURI(MARTEPackage.eNS_URI).appendFragment("//MARTE_DesignModel/HRM/HwGeneral/HwResource/ownedHW") + }); + } + +} //HwMemoryPackageImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/impl/HwRAMImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/impl/HwRAMImpl.java new file mode 100644 index 00000000000..ef5836c761e --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/impl/HwRAMImpl.java @@ -0,0 +1,445 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemoryPackage; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwRAM; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.Repl_Policy; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.WritePolicy; + +/** + * + * An implementation of the model object 'Hw RAM'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwRAMImpl#getOrganization Organization}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwRAMImpl#getIsSynchronous Is Synchronous}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwRAMImpl#getIsStatic Is Static}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwRAMImpl#getIsNonVolatile Is Non Volatile}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwRAMImpl#getRepl_Policy Repl Policy}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwRAMImpl#getWritePolicy Write Policy}
  • + *
+ *

+ * + * @generated + */ +public class HwRAMImpl extends HwMemoryImpl implements HwRAM { + /** + * The default value of the '{@link #getOrganization() Organization}' attribute. + * + * + * @see #getOrganization() + * @generated + * @ordered + */ + protected static final String ORGANIZATION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getOrganization() Organization}' attribute. + * + * + * @see #getOrganization() + * @generated + * @ordered + */ + protected String organization = ORGANIZATION_EDEFAULT; + + /** + * The default value of the '{@link #getIsSynchronous() Is Synchronous}' attribute. + * + * + * @see #getIsSynchronous() + * @generated + * @ordered + */ + protected static final String IS_SYNCHRONOUS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIsSynchronous() Is Synchronous}' attribute. + * + * + * @see #getIsSynchronous() + * @generated + * @ordered + */ + protected String isSynchronous = IS_SYNCHRONOUS_EDEFAULT; + + /** + * The default value of the '{@link #getIsStatic() Is Static}' attribute. + * + * + * @see #getIsStatic() + * @generated + * @ordered + */ + protected static final String IS_STATIC_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIsStatic() Is Static}' attribute. + * + * + * @see #getIsStatic() + * @generated + * @ordered + */ + protected String isStatic = IS_STATIC_EDEFAULT; + + /** + * The default value of the '{@link #getIsNonVolatile() Is Non Volatile}' attribute. + * + * + * @see #getIsNonVolatile() + * @generated + * @ordered + */ + protected static final String IS_NON_VOLATILE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIsNonVolatile() Is Non Volatile}' attribute. + * + * + * @see #getIsNonVolatile() + * @generated + * @ordered + */ + protected String isNonVolatile = IS_NON_VOLATILE_EDEFAULT; + + /** + * The default value of the '{@link #getRepl_Policy() Repl Policy}' attribute. + * + * + * @see #getRepl_Policy() + * @generated + * @ordered + */ + protected static final Repl_Policy REPL_POLICY_EDEFAULT = Repl_Policy.LRU; + + /** + * The cached value of the '{@link #getRepl_Policy() Repl Policy}' attribute. + * + * + * @see #getRepl_Policy() + * @generated + * @ordered + */ + protected Repl_Policy repl_Policy = REPL_POLICY_EDEFAULT; + + /** + * The default value of the '{@link #getWritePolicy() Write Policy}' attribute. + * + * + * @see #getWritePolicy() + * @generated + * @ordered + */ + protected static final WritePolicy WRITE_POLICY_EDEFAULT = WritePolicy.WRITE_BACK; + + /** + * The cached value of the '{@link #getWritePolicy() Write Policy}' attribute. + * + * + * @see #getWritePolicy() + * @generated + * @ordered + */ + protected WritePolicy writePolicy = WRITE_POLICY_EDEFAULT; + + /** + * + * + * @generated + */ + protected HwRAMImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return HwMemoryPackage.Literals.HW_RAM; + } + + /** + * + * + * @generated + */ + public String getOrganization() { + return organization; + } + + /** + * + * + * @generated + */ + public void setOrganization(String newOrganization) { + String oldOrganization = organization; + organization = newOrganization; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwMemoryPackage.HW_RAM__ORGANIZATION, oldOrganization, organization)); + } + + /** + * + * + * @generated + */ + public String getIsSynchronous() { + return isSynchronous; + } + + /** + * + * + * @generated + */ + public void setIsSynchronous(String newIsSynchronous) { + String oldIsSynchronous = isSynchronous; + isSynchronous = newIsSynchronous; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwMemoryPackage.HW_RAM__IS_SYNCHRONOUS, oldIsSynchronous, isSynchronous)); + } + + /** + * + * + * @generated + */ + public String getIsStatic() { + return isStatic; + } + + /** + * + * + * @generated + */ + public void setIsStatic(String newIsStatic) { + String oldIsStatic = isStatic; + isStatic = newIsStatic; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwMemoryPackage.HW_RAM__IS_STATIC, oldIsStatic, isStatic)); + } + + /** + * + * + * @generated + */ + public String getIsNonVolatile() { + return isNonVolatile; + } + + /** + * + * + * @generated + */ + public void setIsNonVolatile(String newIsNonVolatile) { + String oldIsNonVolatile = isNonVolatile; + isNonVolatile = newIsNonVolatile; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwMemoryPackage.HW_RAM__IS_NON_VOLATILE, oldIsNonVolatile, isNonVolatile)); + } + + /** + * + * + * @generated + */ + public Repl_Policy getRepl_Policy() { + return repl_Policy; + } + + /** + * + * + * @generated + */ + public void setRepl_Policy(Repl_Policy newRepl_Policy) { + Repl_Policy oldRepl_Policy = repl_Policy; + repl_Policy = newRepl_Policy == null ? REPL_POLICY_EDEFAULT : newRepl_Policy; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwMemoryPackage.HW_RAM__REPL_POLICY, oldRepl_Policy, repl_Policy)); + } + + /** + * + * + * @generated + */ + public WritePolicy getWritePolicy() { + return writePolicy; + } + + /** + * + * + * @generated + */ + public void setWritePolicy(WritePolicy newWritePolicy) { + WritePolicy oldWritePolicy = writePolicy; + writePolicy = newWritePolicy == null ? WRITE_POLICY_EDEFAULT : newWritePolicy; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwMemoryPackage.HW_RAM__WRITE_POLICY, oldWritePolicy, writePolicy)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case HwMemoryPackage.HW_RAM__ORGANIZATION: + return getOrganization(); + case HwMemoryPackage.HW_RAM__IS_SYNCHRONOUS: + return getIsSynchronous(); + case HwMemoryPackage.HW_RAM__IS_STATIC: + return getIsStatic(); + case HwMemoryPackage.HW_RAM__IS_NON_VOLATILE: + return getIsNonVolatile(); + case HwMemoryPackage.HW_RAM__REPL_POLICY: + return getRepl_Policy(); + case HwMemoryPackage.HW_RAM__WRITE_POLICY: + return getWritePolicy(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case HwMemoryPackage.HW_RAM__ORGANIZATION: + setOrganization((String)newValue); + return; + case HwMemoryPackage.HW_RAM__IS_SYNCHRONOUS: + setIsSynchronous((String)newValue); + return; + case HwMemoryPackage.HW_RAM__IS_STATIC: + setIsStatic((String)newValue); + return; + case HwMemoryPackage.HW_RAM__IS_NON_VOLATILE: + setIsNonVolatile((String)newValue); + return; + case HwMemoryPackage.HW_RAM__REPL_POLICY: + setRepl_Policy((Repl_Policy)newValue); + return; + case HwMemoryPackage.HW_RAM__WRITE_POLICY: + setWritePolicy((WritePolicy)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case HwMemoryPackage.HW_RAM__ORGANIZATION: + setOrganization(ORGANIZATION_EDEFAULT); + return; + case HwMemoryPackage.HW_RAM__IS_SYNCHRONOUS: + setIsSynchronous(IS_SYNCHRONOUS_EDEFAULT); + return; + case HwMemoryPackage.HW_RAM__IS_STATIC: + setIsStatic(IS_STATIC_EDEFAULT); + return; + case HwMemoryPackage.HW_RAM__IS_NON_VOLATILE: + setIsNonVolatile(IS_NON_VOLATILE_EDEFAULT); + return; + case HwMemoryPackage.HW_RAM__REPL_POLICY: + setRepl_Policy(REPL_POLICY_EDEFAULT); + return; + case HwMemoryPackage.HW_RAM__WRITE_POLICY: + setWritePolicy(WRITE_POLICY_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case HwMemoryPackage.HW_RAM__ORGANIZATION: + return ORGANIZATION_EDEFAULT == null ? organization != null : !ORGANIZATION_EDEFAULT.equals(organization); + case HwMemoryPackage.HW_RAM__IS_SYNCHRONOUS: + return IS_SYNCHRONOUS_EDEFAULT == null ? isSynchronous != null : !IS_SYNCHRONOUS_EDEFAULT.equals(isSynchronous); + case HwMemoryPackage.HW_RAM__IS_STATIC: + return IS_STATIC_EDEFAULT == null ? isStatic != null : !IS_STATIC_EDEFAULT.equals(isStatic); + case HwMemoryPackage.HW_RAM__IS_NON_VOLATILE: + return IS_NON_VOLATILE_EDEFAULT == null ? isNonVolatile != null : !IS_NON_VOLATILE_EDEFAULT.equals(isNonVolatile); + case HwMemoryPackage.HW_RAM__REPL_POLICY: + return repl_Policy != REPL_POLICY_EDEFAULT; + case HwMemoryPackage.HW_RAM__WRITE_POLICY: + return writePolicy != WRITE_POLICY_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (organization: "); + result.append(organization); + result.append(", isSynchronous: "); + result.append(isSynchronous); + result.append(", isStatic: "); + result.append(isStatic); + result.append(", isNonVolatile: "); + result.append(isNonVolatile); + result.append(", repl_Policy: "); + result.append(repl_Policy); + result.append(", writePolicy: "); + result.append(writePolicy); + result.append(')'); + return result.toString(); + } + +} //HwRAMImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/impl/HwROMImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/impl/HwROMImpl.java new file mode 100644 index 00000000000..2efa6a4466d --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/impl/HwROMImpl.java @@ -0,0 +1,228 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemoryPackage; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwROM; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.ROM_Type; + +/** + * + * An implementation of the model object 'Hw ROM'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwROMImpl#getType Type}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.impl.HwROMImpl#getOrganization Organization}
  • + *
+ *

+ * + * @generated + */ +public class HwROMImpl extends HwMemoryImpl implements HwROM { + /** + * The default value of the '{@link #getType() Type}' attribute. + * + * + * @see #getType() + * @generated + * @ordered + */ + protected static final ROM_Type TYPE_EDEFAULT = ROM_Type.MASKED_ROM; + + /** + * The cached value of the '{@link #getType() Type}' attribute. + * + * + * @see #getType() + * @generated + * @ordered + */ + protected ROM_Type type = TYPE_EDEFAULT; + + /** + * The default value of the '{@link #getOrganization() Organization}' attribute. + * + * + * @see #getOrganization() + * @generated + * @ordered + */ + protected static final String ORGANIZATION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getOrganization() Organization}' attribute. + * + * + * @see #getOrganization() + * @generated + * @ordered + */ + protected String organization = ORGANIZATION_EDEFAULT; + + /** + * + * + * @generated + */ + protected HwROMImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return HwMemoryPackage.Literals.HW_ROM; + } + + /** + * + * + * @generated + */ + public ROM_Type getType() { + return type; + } + + /** + * + * + * @generated + */ + public void setType(ROM_Type newType) { + ROM_Type oldType = type; + type = newType == null ? TYPE_EDEFAULT : newType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwMemoryPackage.HW_ROM__TYPE, oldType, type)); + } + + /** + * + * + * @generated + */ + public String getOrganization() { + return organization; + } + + /** + * + * + * @generated + */ + public void setOrganization(String newOrganization) { + String oldOrganization = organization; + organization = newOrganization; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwMemoryPackage.HW_ROM__ORGANIZATION, oldOrganization, organization)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case HwMemoryPackage.HW_ROM__TYPE: + return getType(); + case HwMemoryPackage.HW_ROM__ORGANIZATION: + return getOrganization(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case HwMemoryPackage.HW_ROM__TYPE: + setType((ROM_Type)newValue); + return; + case HwMemoryPackage.HW_ROM__ORGANIZATION: + setOrganization((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case HwMemoryPackage.HW_ROM__TYPE: + setType(TYPE_EDEFAULT); + return; + case HwMemoryPackage.HW_ROM__ORGANIZATION: + setOrganization(ORGANIZATION_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case HwMemoryPackage.HW_ROM__TYPE: + return type != TYPE_EDEFAULT; + case HwMemoryPackage.HW_ROM__ORGANIZATION: + return ORGANIZATION_EDEFAULT == null ? organization != null : !ORGANIZATION_EDEFAULT.equals(organization); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (type: "); + result.append(type); + result.append(", organization: "); + result.append(organization); + result.append(')'); + return result.toString(); + } + +} //HwROMImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/util/HwMemoryAdapterFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/util/HwMemoryAdapterFactory.java new file mode 100644 index 00000000000..edcfaac7f36 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/util/HwMemoryAdapterFactory.java @@ -0,0 +1,262 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.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.MARTE_DesignModel.HRM.HwGeneral.HwResource; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.*; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.StorageResource; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemoryPackage + * @generated + */ +public class HwMemoryAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * @generated + */ + protected static HwMemoryPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public HwMemoryAdapterFactory() { + if (modelPackage == null) { + modelPackage = HwMemoryPackage.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 HwMemorySwitch modelSwitch = + new HwMemorySwitch() { + @Override + public Adapter caseHwMemory(HwMemory object) { + return createHwMemoryAdapter(); + } + @Override + public Adapter caseHwRAM(HwRAM object) { + return createHwRAMAdapter(); + } + @Override + public Adapter caseHwROM(HwROM object) { + return createHwROMAdapter(); + } + @Override + public Adapter caseHwDrive(HwDrive object) { + return createHwDriveAdapter(); + } + @Override + public Adapter caseHwCache(HwCache object) { + return createHwCacheAdapter(); + } + @Override + public Adapter caseResource(Resource object) { + return createResourceAdapter(); + } + @Override + public Adapter caseHwResource(HwResource object) { + return createHwResourceAdapter(); + } + @Override + public Adapter caseStorageResource(StorageResource object) { + return createStorageResourceAdapter(); + } + @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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemory Hw Memory}'. + * + * 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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemory + * @generated + */ + public Adapter createHwMemoryAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwRAM Hw RAM}'. + * + * 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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwRAM + * @generated + */ + public Adapter createHwRAMAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwROM Hw ROM}'. + * + * 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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwROM + * @generated + */ + public Adapter createHwROMAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwDrive Hw Drive}'. + * + * 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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwDrive + * @generated + */ + public Adapter createHwDriveAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwCache Hw Cache}'. + * + * 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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwCache + * @generated + */ + public Adapter createHwCacheAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource Resource}'. + * + * 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.MARTE_Foundations.GRM.Resource + * @generated + */ + public Adapter createResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource Hw Resource}'. + * + * 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.MARTE_DesignModel.HRM.HwGeneral.HwResource + * @generated + */ + public Adapter createHwResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.StorageResource Storage Resource}'. + * + * 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.MARTE_Foundations.GRM.StorageResource + * @generated + */ + public Adapter createStorageResourceAdapter() { + 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; + } + +} //HwMemoryAdapterFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/util/HwMemoryResourceFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/util/HwMemoryResourceFactoryImpl.java new file mode 100644 index 00000000000..24f6ec7442d --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/util/HwMemoryResourceFactoryImpl.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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; + +import org.eclipse.emf.ecore.xmi.XMLResource; + +/** + * + * The Resource Factory associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.util.HwMemoryResourceImpl + * @generated + */ +public class HwMemoryResourceFactoryImpl extends ResourceFactoryImpl { + /** + * Creates an instance of the resource factory. + * + * + * @generated + */ + public HwMemoryResourceFactoryImpl() { + super(); + } + + /** + * Creates an instance of the resource. + * + * + * @generated + */ + @Override + public Resource createResource(URI uri) { + XMLResource result = new HwMemoryResourceImpl(uri); + result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + + result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); + return result; + } + +} //HwMemoryResourceFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/util/HwMemoryResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/util/HwMemoryResourceImpl.java new file mode 100644 index 00000000000..80d6facdfef --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/util/HwMemoryResourceImpl.java @@ -0,0 +1,39 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; + +/** + * + * The Resource associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.util.HwMemoryResourceFactoryImpl + * @generated + */ +public class HwMemoryResourceImpl extends XMLResourceImpl { + /** + * Creates an instance of the resource. + * + * + * @param uri the URI of the new resource. + * @generated + */ + public HwMemoryResourceImpl(URI uri) { + super(uri); + } + +} //HwMemoryResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/util/HwMemorySwitch.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/util/HwMemorySwitch.java new file mode 100644 index 00000000000..40f0824b8db --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/util/HwMemorySwitch.java @@ -0,0 +1,290 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.util; + +import java.util.List; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.*; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.StorageResource; + +/** + * + * 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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemoryPackage + * @generated + */ +public class HwMemorySwitch { + /** + * The cached model package + * + * + * @generated + */ + protected static HwMemoryPackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public HwMemorySwitch() { + if (modelPackage == null) { + modelPackage = HwMemoryPackage.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 HwMemoryPackage.HW_MEMORY: { + HwMemory hwMemory = (HwMemory)theEObject; + T result = caseHwMemory(hwMemory); + if (result == null) result = caseHwResource(hwMemory); + if (result == null) result = caseStorageResource(hwMemory); + if (result == null) result = caseResource(hwMemory); + if (result == null) result = defaultCase(theEObject); + return result; + } + case HwMemoryPackage.HW_RAM: { + HwRAM hwRAM = (HwRAM)theEObject; + T result = caseHwRAM(hwRAM); + if (result == null) result = caseHwMemory(hwRAM); + if (result == null) result = caseHwResource(hwRAM); + if (result == null) result = caseStorageResource(hwRAM); + if (result == null) result = caseResource(hwRAM); + if (result == null) result = defaultCase(theEObject); + return result; + } + case HwMemoryPackage.HW_ROM: { + HwROM hwROM = (HwROM)theEObject; + T result = caseHwROM(hwROM); + if (result == null) result = caseHwMemory(hwROM); + if (result == null) result = caseHwResource(hwROM); + if (result == null) result = caseStorageResource(hwROM); + if (result == null) result = caseResource(hwROM); + if (result == null) result = defaultCase(theEObject); + return result; + } + case HwMemoryPackage.HW_DRIVE: { + HwDrive hwDrive = (HwDrive)theEObject; + T result = caseHwDrive(hwDrive); + if (result == null) result = caseHwMemory(hwDrive); + if (result == null) result = caseHwResource(hwDrive); + if (result == null) result = caseStorageResource(hwDrive); + if (result == null) result = caseResource(hwDrive); + if (result == null) result = defaultCase(theEObject); + return result; + } + case HwMemoryPackage.HW_CACHE: { + HwCache hwCache = (HwCache)theEObject; + T result = caseHwCache(hwCache); + if (result == null) result = caseHwMemory(hwCache); + if (result == null) result = caseHwResource(hwCache); + if (result == null) result = caseStorageResource(hwCache); + if (result == null) result = caseResource(hwCache); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Hw Memory'. + * + * 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 'Hw Memory'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHwMemory(HwMemory object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Hw RAM'. + * + * 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 'Hw RAM'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHwRAM(HwRAM object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Hw ROM'. + * + * 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 'Hw ROM'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHwROM(HwROM object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Hw Drive'. + * + * 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 'Hw Drive'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHwDrive(HwDrive object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Hw Cache'. + * + * 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 'Hw Cache'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHwCache(HwCache object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Resource'. + * + * 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 'Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseResource(Resource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Hw Resource'. + * + * 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 'Hw Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHwResource(HwResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Storage Resource'. + * + * 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 'Storage Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseStorageResource(StorageResource 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; + } + +} //HwMemorySwitch diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/util/HwMemoryXMLProcessor.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/util/HwMemoryXMLProcessor.java new file mode 100644 index 00000000000..c5e74fb2e5c --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwMemory/util/HwMemoryXMLProcessor.java @@ -0,0 +1,61 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.util; + +import java.util.Map; + +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.xmi.util.XMLProcessor; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemoryPackage; + +/** + * This class contains helper methods to serialize and deserialize XML documents + * + * + * @generated + */ +public class HwMemoryXMLProcessor extends XMLProcessor { + + /** + * Public constructor to instantiate the helper. + * + * + * @generated + */ + public HwMemoryXMLProcessor() { + super((EPackage.Registry.INSTANCE)); + HwMemoryPackage.eINSTANCE.eClass(); + } + + /** + * Register for "*" and "xml" file extensions the HwMemoryResourceFactoryImpl factory. + * + * + * @generated + */ + @Override + protected Map getRegistrations() { + if (registrations == null) { + super.getRegistrations(); + registrations.put(XML_EXTENSION, new HwMemoryResourceFactoryImpl()); + registrations.put(STAR_EXTENSION, new HwMemoryResourceFactoryImpl()); + } + return registrations; + } + +} //HwMemoryXMLProcessor diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/HwDMA.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/HwDMA.java new file mode 100644 index 00000000000..a9ef5c9507b --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/HwDMA.java @@ -0,0 +1,109 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwArbiter; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor; + +/** + * + * A representation of the model object 'Hw DMA'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwDMA#getNbChannels Nb Channels}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwDMA#getTransferWidth Transfer Width}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwDMA#getDrivenBy Driven By}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwStorageManagerPackage#getHwDMA() + * @model + * @generated + */ +public interface HwDMA extends HwStorageManager, HwArbiter { + /** + * Returns the value of the 'Nb Channels' attribute. + * + *

+ * If the meaning of the 'Nb Channels' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Nb Channels' attribute. + * @see #setNbChannels(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwStorageManagerPackage#getHwDMA_NbChannels() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Natural" ordered="false" + * @generated + */ + String getNbChannels(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwDMA#getNbChannels Nb Channels}' attribute. + * + * + * @param value the new value of the 'Nb Channels' attribute. + * @see #getNbChannels() + * @generated + */ + void setNbChannels(String value); + + /** + * Returns the value of the 'Transfer Width' attribute. + * + *

+ * If the meaning of the 'Transfer Width' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Transfer Width' attribute. + * @see #setTransferWidth(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwStorageManagerPackage#getHwDMA_TransferWidth() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_DataSize" ordered="false" + * @generated + */ + String getTransferWidth(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwDMA#getTransferWidth Transfer Width}' attribute. + * + * + * @param value the new value of the 'Transfer Width' attribute. + * @see #getTransferWidth() + * @generated + */ + void setTransferWidth(String value); + + /** + * Returns the value of the 'Driven By' reference list. + * The list contents are of type {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor}. + * + *

+ * If the meaning of the 'Driven By' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Driven By' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwStorageManagerPackage#getHwDMA_DrivenBy() + * @model ordered="false" + * @generated + */ + EList getDrivenBy(); + +} // HwDMA diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/HwMMU.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/HwMMU.java new file mode 100644 index 00000000000..71f1cf868ae --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/HwMMU.java @@ -0,0 +1,161 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwCache; + +/** + * + * A representation of the model object 'Hw MMU'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwMMU#getVirtualAddrSpace Virtual Addr Space}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwMMU#getPhysicalAddrSpace Physical Addr Space}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwMMU#getMemoryProtection Memory Protection}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwMMU#getNbEntries Nb Entries}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwMMU#getOwnedTLBs Owned TL Bs}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwStorageManagerPackage#getHwMMU() + * @model + * @generated + */ +public interface HwMMU extends HwStorageManager { + /** + * Returns the value of the 'Virtual Addr Space' attribute. + * + *

+ * If the meaning of the 'Virtual Addr Space' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Virtual Addr Space' attribute. + * @see #setVirtualAddrSpace(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwStorageManagerPackage#getHwMMU_VirtualAddrSpace() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_DataSize" ordered="false" + * @generated + */ + String getVirtualAddrSpace(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwMMU#getVirtualAddrSpace Virtual Addr Space}' attribute. + * + * + * @param value the new value of the 'Virtual Addr Space' attribute. + * @see #getVirtualAddrSpace() + * @generated + */ + void setVirtualAddrSpace(String value); + + /** + * Returns the value of the 'Physical Addr Space' attribute. + * + *

+ * If the meaning of the 'Physical Addr Space' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Physical Addr Space' attribute. + * @see #setPhysicalAddrSpace(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwStorageManagerPackage#getHwMMU_PhysicalAddrSpace() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_DataSize" ordered="false" + * @generated + */ + String getPhysicalAddrSpace(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwMMU#getPhysicalAddrSpace Physical Addr Space}' attribute. + * + * + * @param value the new value of the 'Physical Addr Space' attribute. + * @see #getPhysicalAddrSpace() + * @generated + */ + void setPhysicalAddrSpace(String value); + + /** + * Returns the value of the 'Memory Protection' attribute. + * + *

+ * If the meaning of the 'Memory Protection' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Memory Protection' attribute. + * @see #setMemoryProtection(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwStorageManagerPackage#getHwMMU_MemoryProtection() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Boolean" ordered="false" + * @generated + */ + String getMemoryProtection(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwMMU#getMemoryProtection Memory Protection}' attribute. + * + * + * @param value the new value of the 'Memory Protection' attribute. + * @see #getMemoryProtection() + * @generated + */ + void setMemoryProtection(String value); + + /** + * Returns the value of the 'Nb Entries' attribute. + * + *

+ * If the meaning of the 'Nb Entries' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Nb Entries' attribute. + * @see #setNbEntries(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwStorageManagerPackage#getHwMMU_NbEntries() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Natural" volatile="true" derived="true" ordered="false" + * @generated + */ + String getNbEntries(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwMMU#getNbEntries Nb Entries}' attribute. + * + * + * @param value the new value of the 'Nb Entries' attribute. + * @see #getNbEntries() + * @generated + */ + void setNbEntries(String value); + + /** + * Returns the value of the 'Owned TL Bs' reference list. + * The list contents are of type {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwCache}. + * + *

+ * If the meaning of the 'Owned TL Bs' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Owned TL Bs' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwStorageManagerPackage#getHwMMU_OwnedTLBs() + * @model ordered="false" + * @generated + */ + EList getOwnedTLBs(); + +} // HwMMU diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/HwStorageManager.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/HwStorageManager.java new file mode 100644 index 00000000000..5f1e8451e93 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/HwStorageManager.java @@ -0,0 +1,57 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemory; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.StorageResource; + +/** + * + * A representation of the model object 'Hw Storage Manager'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwStorageManager#getManagedMemories Managed Memories}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwStorageManagerPackage#getHwStorageManager() + * @model + * @generated + */ +public interface HwStorageManager extends HwResource, StorageResource { + /** + * Returns the value of the 'Managed Memories' reference list. + * The list contents are of type {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemory}. + * + *

+ * If the meaning of the 'Managed Memories' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Managed Memories' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwStorageManagerPackage#getHwStorageManager_ManagedMemories() + * @model ordered="false" + * @generated + */ + EList getManagedMemories(); + +} // HwStorageManager diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/HwStorageManagerFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/HwStorageManagerFactory.java new file mode 100644 index 00000000000..120985e0770 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/HwStorageManagerFactory.java @@ -0,0 +1,71 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager; + +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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwStorageManagerPackage + * @generated + */ +public interface HwStorageManagerFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + HwStorageManagerFactory eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.impl.HwStorageManagerFactoryImpl.init(); + + /** + * Returns a new object of class 'Hw Storage Manager'. + * + * + * @return a new object of class 'Hw Storage Manager'. + * @generated + */ + HwStorageManager createHwStorageManager(); + + /** + * Returns a new object of class 'Hw DMA'. + * + * + * @return a new object of class 'Hw DMA'. + * @generated + */ + HwDMA createHwDMA(); + + /** + * Returns a new object of class 'Hw MMU'. + * + * + * @return a new object of class 'Hw MMU'. + * @generated + */ + HwMMU createHwMMU(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + HwStorageManagerPackage getHwStorageManagerPackage(); + +} //HwStorageManagerFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/HwStorageManagerPackage.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/HwStorageManagerPackage.java new file mode 100644 index 00000000000..bd073064ec7 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/HwStorageManagerPackage.java @@ -0,0 +1,897 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwGeneralPackage; + +/** + * + * 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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwStorageManagerFactory + * @model kind="package" + * @generated + */ +public interface HwStorageManagerPackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "HwStorageManager"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "http://www.eclipse.org/papyrus/HwStorageManager/1"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "HwStorageManager"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + HwStorageManagerPackage eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.impl.HwStorageManagerPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.impl.HwStorageManagerImpl Hw Storage Manager}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.impl.HwStorageManagerImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.impl.HwStorageManagerPackageImpl#getHwStorageManager() + * @generated + */ + int HW_STORAGE_MANAGER = 0; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int HW_STORAGE_MANAGER__RES_MULT = HwGeneralPackage.HW_RESOURCE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int HW_STORAGE_MANAGER__IS_PROTECTED = HwGeneralPackage.HW_RESOURCE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int HW_STORAGE_MANAGER__IS_ACTIVE = HwGeneralPackage.HW_RESOURCE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int HW_STORAGE_MANAGER__BASE_PROPERTY = HwGeneralPackage.HW_RESOURCE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int HW_STORAGE_MANAGER__BASE_INSTANCE_SPECIFICATION = HwGeneralPackage.HW_RESOURCE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int HW_STORAGE_MANAGER__BASE_CLASSIFIER = HwGeneralPackage.HW_RESOURCE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int HW_STORAGE_MANAGER__BASE_LIFELINE = HwGeneralPackage.HW_RESOURCE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int HW_STORAGE_MANAGER__BASE_CONNECTABLE_ELEMENT = HwGeneralPackage.HW_RESOURCE__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int HW_STORAGE_MANAGER__DESCRIPTION = HwGeneralPackage.HW_RESOURCE__DESCRIPTION; + + /** + * The feature id for the 'PHW Services' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_STORAGE_MANAGER__PHW_SERVICES = HwGeneralPackage.HW_RESOURCE__PHW_SERVICES; + + /** + * The feature id for the 'RHW Services' reference list. + * + * + * @generated + * @ordered + */ + int HW_STORAGE_MANAGER__RHW_SERVICES = HwGeneralPackage.HW_RESOURCE__RHW_SERVICES; + + /** + * The feature id for the 'Owned HW' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_STORAGE_MANAGER__OWNED_HW = HwGeneralPackage.HW_RESOURCE__OWNED_HW; + + /** + * The feature id for the 'End Points' reference list. + * + * + * @generated + * @ordered + */ + int HW_STORAGE_MANAGER__END_POINTS = HwGeneralPackage.HW_RESOURCE__END_POINTS; + + /** + * The feature id for the 'Frequency' attribute. + * + * + * @generated + * @ordered + */ + int HW_STORAGE_MANAGER__FREQUENCY = HwGeneralPackage.HW_RESOURCE__FREQUENCY; + + /** + * The feature id for the 'Element Size' attribute. + * + * + * @generated + * @ordered + */ + int HW_STORAGE_MANAGER__ELEMENT_SIZE = HwGeneralPackage.HW_RESOURCE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Managed Memories' reference list. + * + * + * @generated + * @ordered + */ + int HW_STORAGE_MANAGER__MANAGED_MEMORIES = HwGeneralPackage.HW_RESOURCE_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Hw Storage Manager' class. + * + * + * @generated + * @ordered + */ + int HW_STORAGE_MANAGER_FEATURE_COUNT = HwGeneralPackage.HW_RESOURCE_FEATURE_COUNT + 2; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.impl.HwDMAImpl Hw DMA}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.impl.HwDMAImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.impl.HwStorageManagerPackageImpl#getHwDMA() + * @generated + */ + int HW_DMA = 1; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int HW_DMA__RES_MULT = HW_STORAGE_MANAGER__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int HW_DMA__IS_PROTECTED = HW_STORAGE_MANAGER__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int HW_DMA__IS_ACTIVE = HW_STORAGE_MANAGER__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int HW_DMA__BASE_PROPERTY = HW_STORAGE_MANAGER__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int HW_DMA__BASE_INSTANCE_SPECIFICATION = HW_STORAGE_MANAGER__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int HW_DMA__BASE_CLASSIFIER = HW_STORAGE_MANAGER__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int HW_DMA__BASE_LIFELINE = HW_STORAGE_MANAGER__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int HW_DMA__BASE_CONNECTABLE_ELEMENT = HW_STORAGE_MANAGER__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int HW_DMA__DESCRIPTION = HW_STORAGE_MANAGER__DESCRIPTION; + + /** + * The feature id for the 'PHW Services' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_DMA__PHW_SERVICES = HW_STORAGE_MANAGER__PHW_SERVICES; + + /** + * The feature id for the 'RHW Services' reference list. + * + * + * @generated + * @ordered + */ + int HW_DMA__RHW_SERVICES = HW_STORAGE_MANAGER__RHW_SERVICES; + + /** + * The feature id for the 'Owned HW' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_DMA__OWNED_HW = HW_STORAGE_MANAGER__OWNED_HW; + + /** + * The feature id for the 'End Points' reference list. + * + * + * @generated + * @ordered + */ + int HW_DMA__END_POINTS = HW_STORAGE_MANAGER__END_POINTS; + + /** + * The feature id for the 'Frequency' attribute. + * + * + * @generated + * @ordered + */ + int HW_DMA__FREQUENCY = HW_STORAGE_MANAGER__FREQUENCY; + + /** + * The feature id for the 'Element Size' attribute. + * + * + * @generated + * @ordered + */ + int HW_DMA__ELEMENT_SIZE = HW_STORAGE_MANAGER__ELEMENT_SIZE; + + /** + * The feature id for the 'Managed Memories' reference list. + * + * + * @generated + * @ordered + */ + int HW_DMA__MANAGED_MEMORIES = HW_STORAGE_MANAGER__MANAGED_MEMORIES; + + /** + * The feature id for the 'Controlled Medias' reference list. + * + * + * @generated + * @ordered + */ + int HW_DMA__CONTROLLED_MEDIAS = HW_STORAGE_MANAGER_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Nb Channels' attribute. + * + * + * @generated + * @ordered + */ + int HW_DMA__NB_CHANNELS = HW_STORAGE_MANAGER_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Transfer Width' attribute. + * + * + * @generated + * @ordered + */ + int HW_DMA__TRANSFER_WIDTH = HW_STORAGE_MANAGER_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Driven By' reference list. + * + * + * @generated + * @ordered + */ + int HW_DMA__DRIVEN_BY = HW_STORAGE_MANAGER_FEATURE_COUNT + 3; + + /** + * The number of structural features of the 'Hw DMA' class. + * + * + * @generated + * @ordered + */ + int HW_DMA_FEATURE_COUNT = HW_STORAGE_MANAGER_FEATURE_COUNT + 4; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.impl.HwMMUImpl Hw MMU}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.impl.HwMMUImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.impl.HwStorageManagerPackageImpl#getHwMMU() + * @generated + */ + int HW_MMU = 2; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int HW_MMU__RES_MULT = HW_STORAGE_MANAGER__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int HW_MMU__IS_PROTECTED = HW_STORAGE_MANAGER__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int HW_MMU__IS_ACTIVE = HW_STORAGE_MANAGER__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int HW_MMU__BASE_PROPERTY = HW_STORAGE_MANAGER__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int HW_MMU__BASE_INSTANCE_SPECIFICATION = HW_STORAGE_MANAGER__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int HW_MMU__BASE_CLASSIFIER = HW_STORAGE_MANAGER__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int HW_MMU__BASE_LIFELINE = HW_STORAGE_MANAGER__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int HW_MMU__BASE_CONNECTABLE_ELEMENT = HW_STORAGE_MANAGER__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int HW_MMU__DESCRIPTION = HW_STORAGE_MANAGER__DESCRIPTION; + + /** + * The feature id for the 'PHW Services' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_MMU__PHW_SERVICES = HW_STORAGE_MANAGER__PHW_SERVICES; + + /** + * The feature id for the 'RHW Services' reference list. + * + * + * @generated + * @ordered + */ + int HW_MMU__RHW_SERVICES = HW_STORAGE_MANAGER__RHW_SERVICES; + + /** + * The feature id for the 'Owned HW' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_MMU__OWNED_HW = HW_STORAGE_MANAGER__OWNED_HW; + + /** + * The feature id for the 'End Points' reference list. + * + * + * @generated + * @ordered + */ + int HW_MMU__END_POINTS = HW_STORAGE_MANAGER__END_POINTS; + + /** + * The feature id for the 'Frequency' attribute. + * + * + * @generated + * @ordered + */ + int HW_MMU__FREQUENCY = HW_STORAGE_MANAGER__FREQUENCY; + + /** + * The feature id for the 'Element Size' attribute. + * + * + * @generated + * @ordered + */ + int HW_MMU__ELEMENT_SIZE = HW_STORAGE_MANAGER__ELEMENT_SIZE; + + /** + * The feature id for the 'Managed Memories' reference list. + * + * + * @generated + * @ordered + */ + int HW_MMU__MANAGED_MEMORIES = HW_STORAGE_MANAGER__MANAGED_MEMORIES; + + /** + * The feature id for the 'Virtual Addr Space' attribute. + * + * + * @generated + * @ordered + */ + int HW_MMU__VIRTUAL_ADDR_SPACE = HW_STORAGE_MANAGER_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Physical Addr Space' attribute. + * + * + * @generated + * @ordered + */ + int HW_MMU__PHYSICAL_ADDR_SPACE = HW_STORAGE_MANAGER_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Memory Protection' attribute. + * + * + * @generated + * @ordered + */ + int HW_MMU__MEMORY_PROTECTION = HW_STORAGE_MANAGER_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Nb Entries' attribute. + * + * + * @generated + * @ordered + */ + int HW_MMU__NB_ENTRIES = HW_STORAGE_MANAGER_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Owned TL Bs' reference list. + * + * + * @generated + * @ordered + */ + int HW_MMU__OWNED_TL_BS = HW_STORAGE_MANAGER_FEATURE_COUNT + 4; + + /** + * The number of structural features of the 'Hw MMU' class. + * + * + * @generated + * @ordered + */ + int HW_MMU_FEATURE_COUNT = HW_STORAGE_MANAGER_FEATURE_COUNT + 5; + + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwStorageManager Hw Storage Manager}'. + * + * + * @return the meta object for class 'Hw Storage Manager'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwStorageManager + * @generated + */ + EClass getHwStorageManager(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwStorageManager#getManagedMemories Managed Memories}'. + * + * + * @return the meta object for the reference list 'Managed Memories'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwStorageManager#getManagedMemories() + * @see #getHwStorageManager() + * @generated + */ + EReference getHwStorageManager_ManagedMemories(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwDMA Hw DMA}'. + * + * + * @return the meta object for class 'Hw DMA'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwDMA + * @generated + */ + EClass getHwDMA(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwDMA#getNbChannels Nb Channels}'. + * + * + * @return the meta object for the attribute 'Nb Channels'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwDMA#getNbChannels() + * @see #getHwDMA() + * @generated + */ + EAttribute getHwDMA_NbChannels(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwDMA#getTransferWidth Transfer Width}'. + * + * + * @return the meta object for the attribute 'Transfer Width'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwDMA#getTransferWidth() + * @see #getHwDMA() + * @generated + */ + EAttribute getHwDMA_TransferWidth(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwDMA#getDrivenBy Driven By}'. + * + * + * @return the meta object for the reference list 'Driven By'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwDMA#getDrivenBy() + * @see #getHwDMA() + * @generated + */ + EReference getHwDMA_DrivenBy(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwMMU Hw MMU}'. + * + * + * @return the meta object for class 'Hw MMU'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwMMU + * @generated + */ + EClass getHwMMU(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwMMU#getVirtualAddrSpace Virtual Addr Space}'. + * + * + * @return the meta object for the attribute 'Virtual Addr Space'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwMMU#getVirtualAddrSpace() + * @see #getHwMMU() + * @generated + */ + EAttribute getHwMMU_VirtualAddrSpace(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwMMU#getPhysicalAddrSpace Physical Addr Space}'. + * + * + * @return the meta object for the attribute 'Physical Addr Space'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwMMU#getPhysicalAddrSpace() + * @see #getHwMMU() + * @generated + */ + EAttribute getHwMMU_PhysicalAddrSpace(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwMMU#getMemoryProtection Memory Protection}'. + * + * + * @return the meta object for the attribute 'Memory Protection'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwMMU#getMemoryProtection() + * @see #getHwMMU() + * @generated + */ + EAttribute getHwMMU_MemoryProtection(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwMMU#getNbEntries Nb Entries}'. + * + * + * @return the meta object for the attribute 'Nb Entries'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwMMU#getNbEntries() + * @see #getHwMMU() + * @generated + */ + EAttribute getHwMMU_NbEntries(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwMMU#getOwnedTLBs Owned TL Bs}'. + * + * + * @return the meta object for the reference list 'Owned TL Bs'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwMMU#getOwnedTLBs() + * @see #getHwMMU() + * @generated + */ + EReference getHwMMU_OwnedTLBs(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + HwStorageManagerFactory getHwStorageManagerFactory(); + + /** + * + * 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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.impl.HwStorageManagerImpl Hw Storage Manager}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.impl.HwStorageManagerImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.impl.HwStorageManagerPackageImpl#getHwStorageManager() + * @generated + */ + EClass HW_STORAGE_MANAGER = eINSTANCE.getHwStorageManager(); + + /** + * The meta object literal for the 'Managed Memories' reference list feature. + * + * + * @generated + */ + EReference HW_STORAGE_MANAGER__MANAGED_MEMORIES = eINSTANCE.getHwStorageManager_ManagedMemories(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.impl.HwDMAImpl Hw DMA}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.impl.HwDMAImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.impl.HwStorageManagerPackageImpl#getHwDMA() + * @generated + */ + EClass HW_DMA = eINSTANCE.getHwDMA(); + + /** + * The meta object literal for the 'Nb Channels' attribute feature. + * + * + * @generated + */ + EAttribute HW_DMA__NB_CHANNELS = eINSTANCE.getHwDMA_NbChannels(); + + /** + * The meta object literal for the 'Transfer Width' attribute feature. + * + * + * @generated + */ + EAttribute HW_DMA__TRANSFER_WIDTH = eINSTANCE.getHwDMA_TransferWidth(); + + /** + * The meta object literal for the 'Driven By' reference list feature. + * + * + * @generated + */ + EReference HW_DMA__DRIVEN_BY = eINSTANCE.getHwDMA_DrivenBy(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.impl.HwMMUImpl Hw MMU}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.impl.HwMMUImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.impl.HwStorageManagerPackageImpl#getHwMMU() + * @generated + */ + EClass HW_MMU = eINSTANCE.getHwMMU(); + + /** + * The meta object literal for the 'Virtual Addr Space' attribute feature. + * + * + * @generated + */ + EAttribute HW_MMU__VIRTUAL_ADDR_SPACE = eINSTANCE.getHwMMU_VirtualAddrSpace(); + + /** + * The meta object literal for the 'Physical Addr Space' attribute feature. + * + * + * @generated + */ + EAttribute HW_MMU__PHYSICAL_ADDR_SPACE = eINSTANCE.getHwMMU_PhysicalAddrSpace(); + + /** + * The meta object literal for the 'Memory Protection' attribute feature. + * + * + * @generated + */ + EAttribute HW_MMU__MEMORY_PROTECTION = eINSTANCE.getHwMMU_MemoryProtection(); + + /** + * The meta object literal for the 'Nb Entries' attribute feature. + * + * + * @generated + */ + EAttribute HW_MMU__NB_ENTRIES = eINSTANCE.getHwMMU_NbEntries(); + + /** + * The meta object literal for the 'Owned TL Bs' reference list feature. + * + * + * @generated + */ + EReference HW_MMU__OWNED_TL_BS = eINSTANCE.getHwMMU_OwnedTLBs(); + + } + +} //HwStorageManagerPackage diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/impl/HwDMAImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/impl/HwDMAImpl.java new file mode 100644 index 00000000000..b3f9242e5f9 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/impl/HwDMAImpl.java @@ -0,0 +1,384 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EObjectResolvingEList; +import org.eclipse.emf.ecore.util.EObjectWithInverseResolvingEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwArbiter; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwCommunicationPackage; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwCommunicationResource; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwMedia; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwComputing.HwProcessor; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwDMA; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwStorageManagerPackage; + +/** + * + * An implementation of the model object 'Hw DMA'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.impl.HwDMAImpl#getControlledMedias Controlled Medias}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.impl.HwDMAImpl#getNbChannels Nb Channels}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.impl.HwDMAImpl#getTransferWidth Transfer Width}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.impl.HwDMAImpl#getDrivenBy Driven By}
  • + *
+ *

+ * + * @generated + */ +public class HwDMAImpl extends HwStorageManagerImpl implements HwDMA { + /** + * The cached value of the '{@link #getControlledMedias() Controlled Medias}' reference list. + * + * + * @see #getControlledMedias() + * @generated + * @ordered + */ + protected EList controlledMedias; + + /** + * The default value of the '{@link #getNbChannels() Nb Channels}' attribute. + * + * + * @see #getNbChannels() + * @generated + * @ordered + */ + protected static final String NB_CHANNELS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getNbChannels() Nb Channels}' attribute. + * + * + * @see #getNbChannels() + * @generated + * @ordered + */ + protected String nbChannels = NB_CHANNELS_EDEFAULT; + + /** + * The default value of the '{@link #getTransferWidth() Transfer Width}' attribute. + * + * + * @see #getTransferWidth() + * @generated + * @ordered + */ + protected static final String TRANSFER_WIDTH_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTransferWidth() Transfer Width}' attribute. + * + * + * @see #getTransferWidth() + * @generated + * @ordered + */ + protected String transferWidth = TRANSFER_WIDTH_EDEFAULT; + + /** + * The cached value of the '{@link #getDrivenBy() Driven By}' reference list. + * + * + * @see #getDrivenBy() + * @generated + * @ordered + */ + protected EList drivenBy; + + /** + * + * + * @generated + */ + protected HwDMAImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return HwStorageManagerPackage.Literals.HW_DMA; + } + + /** + * + * + * @generated + */ + public EList getControlledMedias() { + if (controlledMedias == null) { + controlledMedias = new EObjectWithInverseResolvingEList.ManyInverse(HwMedia.class, this, HwStorageManagerPackage.HW_DMA__CONTROLLED_MEDIAS, HwCommunicationPackage.HW_MEDIA__ARBITERS); + } + return controlledMedias; + } + + /** + * + * + * @generated + */ + public String getNbChannels() { + return nbChannels; + } + + /** + * + * + * @generated + */ + public void setNbChannels(String newNbChannels) { + String oldNbChannels = nbChannels; + nbChannels = newNbChannels; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwStorageManagerPackage.HW_DMA__NB_CHANNELS, oldNbChannels, nbChannels)); + } + + /** + * + * + * @generated + */ + public String getTransferWidth() { + return transferWidth; + } + + /** + * + * + * @generated + */ + public void setTransferWidth(String newTransferWidth) { + String oldTransferWidth = transferWidth; + transferWidth = newTransferWidth; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwStorageManagerPackage.HW_DMA__TRANSFER_WIDTH, oldTransferWidth, transferWidth)); + } + + /** + * + * + * @generated + */ + public EList getDrivenBy() { + if (drivenBy == null) { + drivenBy = new EObjectResolvingEList(HwProcessor.class, this, HwStorageManagerPackage.HW_DMA__DRIVEN_BY); + } + return drivenBy; + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case HwStorageManagerPackage.HW_DMA__CONTROLLED_MEDIAS: + return ((InternalEList)(InternalEList)getControlledMedias()).basicAdd(otherEnd, msgs); + } + return super.eInverseAdd(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case HwStorageManagerPackage.HW_DMA__CONTROLLED_MEDIAS: + return ((InternalEList)getControlledMedias()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case HwStorageManagerPackage.HW_DMA__CONTROLLED_MEDIAS: + return getControlledMedias(); + case HwStorageManagerPackage.HW_DMA__NB_CHANNELS: + return getNbChannels(); + case HwStorageManagerPackage.HW_DMA__TRANSFER_WIDTH: + return getTransferWidth(); + case HwStorageManagerPackage.HW_DMA__DRIVEN_BY: + return getDrivenBy(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case HwStorageManagerPackage.HW_DMA__CONTROLLED_MEDIAS: + getControlledMedias().clear(); + getControlledMedias().addAll((Collection)newValue); + return; + case HwStorageManagerPackage.HW_DMA__NB_CHANNELS: + setNbChannels((String)newValue); + return; + case HwStorageManagerPackage.HW_DMA__TRANSFER_WIDTH: + setTransferWidth((String)newValue); + return; + case HwStorageManagerPackage.HW_DMA__DRIVEN_BY: + getDrivenBy().clear(); + getDrivenBy().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case HwStorageManagerPackage.HW_DMA__CONTROLLED_MEDIAS: + getControlledMedias().clear(); + return; + case HwStorageManagerPackage.HW_DMA__NB_CHANNELS: + setNbChannels(NB_CHANNELS_EDEFAULT); + return; + case HwStorageManagerPackage.HW_DMA__TRANSFER_WIDTH: + setTransferWidth(TRANSFER_WIDTH_EDEFAULT); + return; + case HwStorageManagerPackage.HW_DMA__DRIVEN_BY: + getDrivenBy().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case HwStorageManagerPackage.HW_DMA__CONTROLLED_MEDIAS: + return controlledMedias != null && !controlledMedias.isEmpty(); + case HwStorageManagerPackage.HW_DMA__NB_CHANNELS: + return NB_CHANNELS_EDEFAULT == null ? nbChannels != null : !NB_CHANNELS_EDEFAULT.equals(nbChannels); + case HwStorageManagerPackage.HW_DMA__TRANSFER_WIDTH: + return TRANSFER_WIDTH_EDEFAULT == null ? transferWidth != null : !TRANSFER_WIDTH_EDEFAULT.equals(transferWidth); + case HwStorageManagerPackage.HW_DMA__DRIVEN_BY: + return drivenBy != null && !drivenBy.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) { + if (baseClass == HwCommunicationResource.class) { + switch (derivedFeatureID) { + default: return -1; + } + } + if (baseClass == HwArbiter.class) { + switch (derivedFeatureID) { + case HwStorageManagerPackage.HW_DMA__CONTROLLED_MEDIAS: return HwCommunicationPackage.HW_ARBITER__CONTROLLED_MEDIAS; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) { + if (baseClass == HwCommunicationResource.class) { + switch (baseFeatureID) { + default: return -1; + } + } + if (baseClass == HwArbiter.class) { + switch (baseFeatureID) { + case HwCommunicationPackage.HW_ARBITER__CONTROLLED_MEDIAS: return HwStorageManagerPackage.HW_DMA__CONTROLLED_MEDIAS; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (nbChannels: "); + result.append(nbChannels); + result.append(", transferWidth: "); + result.append(transferWidth); + result.append(')'); + return result.toString(); + } + +} //HwDMAImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/impl/HwMMUImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/impl/HwMMUImpl.java new file mode 100644 index 00000000000..80edfeb707c --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/impl/HwMMUImpl.java @@ -0,0 +1,369 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EObjectResolvingEList; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwCache; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwMMU; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwStorageManagerPackage; + +/** + * + * An implementation of the model object 'Hw MMU'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.impl.HwMMUImpl#getVirtualAddrSpace Virtual Addr Space}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.impl.HwMMUImpl#getPhysicalAddrSpace Physical Addr Space}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.impl.HwMMUImpl#getMemoryProtection Memory Protection}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.impl.HwMMUImpl#getNbEntries Nb Entries}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.impl.HwMMUImpl#getOwnedTLBs Owned TL Bs}
  • + *
+ *

+ * + * @generated + */ +public class HwMMUImpl extends HwStorageManagerImpl implements HwMMU { + /** + * The default value of the '{@link #getVirtualAddrSpace() Virtual Addr Space}' attribute. + * + * + * @see #getVirtualAddrSpace() + * @generated + * @ordered + */ + protected static final String VIRTUAL_ADDR_SPACE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getVirtualAddrSpace() Virtual Addr Space}' attribute. + * + * + * @see #getVirtualAddrSpace() + * @generated + * @ordered + */ + protected String virtualAddrSpace = VIRTUAL_ADDR_SPACE_EDEFAULT; + + /** + * The default value of the '{@link #getPhysicalAddrSpace() Physical Addr Space}' attribute. + * + * + * @see #getPhysicalAddrSpace() + * @generated + * @ordered + */ + protected static final String PHYSICAL_ADDR_SPACE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPhysicalAddrSpace() Physical Addr Space}' attribute. + * + * + * @see #getPhysicalAddrSpace() + * @generated + * @ordered + */ + protected String physicalAddrSpace = PHYSICAL_ADDR_SPACE_EDEFAULT; + + /** + * The default value of the '{@link #getMemoryProtection() Memory Protection}' attribute. + * + * + * @see #getMemoryProtection() + * @generated + * @ordered + */ + protected static final String MEMORY_PROTECTION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMemoryProtection() Memory Protection}' attribute. + * + * + * @see #getMemoryProtection() + * @generated + * @ordered + */ + protected String memoryProtection = MEMORY_PROTECTION_EDEFAULT; + + /** + * The default value of the '{@link #getNbEntries() Nb Entries}' attribute. + * + * + * @see #getNbEntries() + * @generated + * @ordered + */ + protected static final String NB_ENTRIES_EDEFAULT = null; + + /** + * The cached value of the '{@link #getOwnedTLBs() Owned TL Bs}' reference list. + * + * + * @see #getOwnedTLBs() + * @generated + * @ordered + */ + protected EList ownedTLBs; + + /** + * + * + * @generated + */ + protected HwMMUImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return HwStorageManagerPackage.Literals.HW_MMU; + } + + /** + * + * + * @generated + */ + public String getVirtualAddrSpace() { + return virtualAddrSpace; + } + + /** + * + * + * @generated + */ + public void setVirtualAddrSpace(String newVirtualAddrSpace) { + String oldVirtualAddrSpace = virtualAddrSpace; + virtualAddrSpace = newVirtualAddrSpace; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwStorageManagerPackage.HW_MMU__VIRTUAL_ADDR_SPACE, oldVirtualAddrSpace, virtualAddrSpace)); + } + + /** + * + * + * @generated + */ + public String getPhysicalAddrSpace() { + return physicalAddrSpace; + } + + /** + * + * + * @generated + */ + public void setPhysicalAddrSpace(String newPhysicalAddrSpace) { + String oldPhysicalAddrSpace = physicalAddrSpace; + physicalAddrSpace = newPhysicalAddrSpace; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwStorageManagerPackage.HW_MMU__PHYSICAL_ADDR_SPACE, oldPhysicalAddrSpace, physicalAddrSpace)); + } + + /** + * + * + * @generated + */ + public String getMemoryProtection() { + return memoryProtection; + } + + /** + * + * + * @generated + */ + public void setMemoryProtection(String newMemoryProtection) { + String oldMemoryProtection = memoryProtection; + memoryProtection = newMemoryProtection; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwStorageManagerPackage.HW_MMU__MEMORY_PROTECTION, oldMemoryProtection, memoryProtection)); + } + + /** + * + * + * @generated NOT + */ + public String getNbEntries() { + // TODO: implement this method to return the 'Nb Entries' attribute + // Ensure that you remove @generated or mark it @generated NOT + // throw new UnsupportedOperationException(); + + return String.valueOf(getOwnedTLBs().size()); + } + + /** + * + * + * @generated + */ + public void setNbEntries(String newNbEntries) { + // TODO: implement this method to set the 'Nb Entries' attribute + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public EList getOwnedTLBs() { + if (ownedTLBs == null) { + ownedTLBs = new EObjectResolvingEList(HwCache.class, this, HwStorageManagerPackage.HW_MMU__OWNED_TL_BS); + } + return ownedTLBs; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case HwStorageManagerPackage.HW_MMU__VIRTUAL_ADDR_SPACE: + return getVirtualAddrSpace(); + case HwStorageManagerPackage.HW_MMU__PHYSICAL_ADDR_SPACE: + return getPhysicalAddrSpace(); + case HwStorageManagerPackage.HW_MMU__MEMORY_PROTECTION: + return getMemoryProtection(); + case HwStorageManagerPackage.HW_MMU__NB_ENTRIES: + return getNbEntries(); + case HwStorageManagerPackage.HW_MMU__OWNED_TL_BS: + return getOwnedTLBs(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case HwStorageManagerPackage.HW_MMU__VIRTUAL_ADDR_SPACE: + setVirtualAddrSpace((String)newValue); + return; + case HwStorageManagerPackage.HW_MMU__PHYSICAL_ADDR_SPACE: + setPhysicalAddrSpace((String)newValue); + return; + case HwStorageManagerPackage.HW_MMU__MEMORY_PROTECTION: + setMemoryProtection((String)newValue); + return; + case HwStorageManagerPackage.HW_MMU__NB_ENTRIES: + setNbEntries((String)newValue); + return; + case HwStorageManagerPackage.HW_MMU__OWNED_TL_BS: + getOwnedTLBs().clear(); + getOwnedTLBs().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case HwStorageManagerPackage.HW_MMU__VIRTUAL_ADDR_SPACE: + setVirtualAddrSpace(VIRTUAL_ADDR_SPACE_EDEFAULT); + return; + case HwStorageManagerPackage.HW_MMU__PHYSICAL_ADDR_SPACE: + setPhysicalAddrSpace(PHYSICAL_ADDR_SPACE_EDEFAULT); + return; + case HwStorageManagerPackage.HW_MMU__MEMORY_PROTECTION: + setMemoryProtection(MEMORY_PROTECTION_EDEFAULT); + return; + case HwStorageManagerPackage.HW_MMU__NB_ENTRIES: + setNbEntries(NB_ENTRIES_EDEFAULT); + return; + case HwStorageManagerPackage.HW_MMU__OWNED_TL_BS: + getOwnedTLBs().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case HwStorageManagerPackage.HW_MMU__VIRTUAL_ADDR_SPACE: + return VIRTUAL_ADDR_SPACE_EDEFAULT == null ? virtualAddrSpace != null : !VIRTUAL_ADDR_SPACE_EDEFAULT.equals(virtualAddrSpace); + case HwStorageManagerPackage.HW_MMU__PHYSICAL_ADDR_SPACE: + return PHYSICAL_ADDR_SPACE_EDEFAULT == null ? physicalAddrSpace != null : !PHYSICAL_ADDR_SPACE_EDEFAULT.equals(physicalAddrSpace); + case HwStorageManagerPackage.HW_MMU__MEMORY_PROTECTION: + return MEMORY_PROTECTION_EDEFAULT == null ? memoryProtection != null : !MEMORY_PROTECTION_EDEFAULT.equals(memoryProtection); + case HwStorageManagerPackage.HW_MMU__NB_ENTRIES: + return NB_ENTRIES_EDEFAULT == null ? getNbEntries() != null : !NB_ENTRIES_EDEFAULT.equals(getNbEntries()); + case HwStorageManagerPackage.HW_MMU__OWNED_TL_BS: + return ownedTLBs != null && !ownedTLBs.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (virtualAddrSpace: "); + result.append(virtualAddrSpace); + result.append(", physicalAddrSpace: "); + result.append(physicalAddrSpace); + result.append(", memoryProtection: "); + result.append(memoryProtection); + result.append(')'); + return result.toString(); + } + +} //HwMMUImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/impl/HwStorageManagerFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/impl/HwStorageManagerFactoryImpl.java new file mode 100644 index 00000000000..b86a3e17332 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/impl/HwStorageManagerFactoryImpl.java @@ -0,0 +1,128 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.impl; + +import org.eclipse.emf.ecore.EClass; +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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.*; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class HwStorageManagerFactoryImpl extends EFactoryImpl implements HwStorageManagerFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static HwStorageManagerFactory init() { + try { + HwStorageManagerFactory theHwStorageManagerFactory = (HwStorageManagerFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/HwStorageManager/1"); + if (theHwStorageManagerFactory != null) { + return theHwStorageManagerFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new HwStorageManagerFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public HwStorageManagerFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case HwStorageManagerPackage.HW_STORAGE_MANAGER: return createHwStorageManager(); + case HwStorageManagerPackage.HW_DMA: return createHwDMA(); + case HwStorageManagerPackage.HW_MMU: return createHwMMU(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public HwStorageManager createHwStorageManager() { + HwStorageManagerImpl hwStorageManager = new HwStorageManagerImpl(); + return hwStorageManager; + } + + /** + * + * + * @generated + */ + public HwDMA createHwDMA() { + HwDMAImpl hwDMA = new HwDMAImpl(); + return hwDMA; + } + + /** + * + * + * @generated + */ + public HwMMU createHwMMU() { + HwMMUImpl hwMMU = new HwMMUImpl(); + return hwMMU; + } + + /** + * + * + * @generated + */ + public HwStorageManagerPackage getHwStorageManagerPackage() { + return (HwStorageManagerPackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static HwStorageManagerPackage getPackage() { + return HwStorageManagerPackage.eINSTANCE; + } + +} //HwStorageManagerFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/impl/HwStorageManagerImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/impl/HwStorageManagerImpl.java new file mode 100644 index 00000000000..35a1a65a4fd --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/impl/HwStorageManagerImpl.java @@ -0,0 +1,253 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EObjectResolvingEList; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.impl.HwResourceImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwMemory.HwMemory; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwStorageManager; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwStorageManagerPackage; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.StorageResource; + +/** + * + * An implementation of the model object 'Hw Storage Manager'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.impl.HwStorageManagerImpl#getElementSize Element Size}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.impl.HwStorageManagerImpl#getManagedMemories Managed Memories}
  • + *
+ *

+ * + * @generated + */ +public class HwStorageManagerImpl extends HwResourceImpl implements HwStorageManager { + /** + * The default value of the '{@link #getElementSize() Element Size}' attribute. + * + * + * @see #getElementSize() + * @generated + * @ordered + */ + protected static final String ELEMENT_SIZE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getElementSize() Element Size}' attribute. + * + * + * @see #getElementSize() + * @generated + * @ordered + */ + protected String elementSize = ELEMENT_SIZE_EDEFAULT; + + /** + * The cached value of the '{@link #getManagedMemories() Managed Memories}' reference list. + * + * + * @see #getManagedMemories() + * @generated + * @ordered + */ + protected EList managedMemories; + + /** + * + * + * @generated + */ + protected HwStorageManagerImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return HwStorageManagerPackage.Literals.HW_STORAGE_MANAGER; + } + + /** + * + * + * @generated + */ + public String getElementSize() { + return elementSize; + } + + /** + * + * + * @generated + */ + public void setElementSize(String newElementSize) { + String oldElementSize = elementSize; + elementSize = newElementSize; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwStorageManagerPackage.HW_STORAGE_MANAGER__ELEMENT_SIZE, oldElementSize, elementSize)); + } + + /** + * + * + * @generated + */ + public EList getManagedMemories() { + if (managedMemories == null) { + managedMemories = new EObjectResolvingEList(HwMemory.class, this, HwStorageManagerPackage.HW_STORAGE_MANAGER__MANAGED_MEMORIES); + } + return managedMemories; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case HwStorageManagerPackage.HW_STORAGE_MANAGER__ELEMENT_SIZE: + return getElementSize(); + case HwStorageManagerPackage.HW_STORAGE_MANAGER__MANAGED_MEMORIES: + return getManagedMemories(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case HwStorageManagerPackage.HW_STORAGE_MANAGER__ELEMENT_SIZE: + setElementSize((String)newValue); + return; + case HwStorageManagerPackage.HW_STORAGE_MANAGER__MANAGED_MEMORIES: + getManagedMemories().clear(); + getManagedMemories().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case HwStorageManagerPackage.HW_STORAGE_MANAGER__ELEMENT_SIZE: + setElementSize(ELEMENT_SIZE_EDEFAULT); + return; + case HwStorageManagerPackage.HW_STORAGE_MANAGER__MANAGED_MEMORIES: + getManagedMemories().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case HwStorageManagerPackage.HW_STORAGE_MANAGER__ELEMENT_SIZE: + return ELEMENT_SIZE_EDEFAULT == null ? elementSize != null : !ELEMENT_SIZE_EDEFAULT.equals(elementSize); + case HwStorageManagerPackage.HW_STORAGE_MANAGER__MANAGED_MEMORIES: + return managedMemories != null && !managedMemories.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) { + if (baseClass == StorageResource.class) { + switch (derivedFeatureID) { + case HwStorageManagerPackage.HW_STORAGE_MANAGER__ELEMENT_SIZE: return GRMPackage.STORAGE_RESOURCE__ELEMENT_SIZE; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) { + if (baseClass == StorageResource.class) { + switch (baseFeatureID) { + case GRMPackage.STORAGE_RESOURCE__ELEMENT_SIZE: return HwStorageManagerPackage.HW_STORAGE_MANAGER__ELEMENT_SIZE; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (elementSize: "); + result.append(elementSize); + result.append(')'); + return result.toString(); + } + +} //HwStorageManagerImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/impl/HwStorageManagerPackageImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/impl/HwStorageManagerPackageImpl.java new file mode 100644 index 00000000000..a9484bb5f6d --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/impl/HwStorageManagerPackageImpl.java @@ -0,0 +1,603 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.impl; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +import org.eclipse.emf.ecore.impl.EPackageImpl; + +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.HwDMA; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwMMU; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwStorageManager; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwStorageManagerFactory; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwStorageManagerPackage; + +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.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 HwStorageManagerPackageImpl extends EPackageImpl implements HwStorageManagerPackage { + /** + * + * + * @generated + */ + private EClass hwStorageManagerEClass = null; + + /** + * + * + * @generated + */ + private EClass hwDMAEClass = null; + + /** + * + * + * @generated + */ + private EClass hwMMUEClass = 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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwStorageManagerPackage#eNS_URI + * @see #init() + * @generated + */ + private HwStorageManagerPackageImpl() { + super(eNS_URI, HwStorageManagerFactory.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 HwStorageManagerPackage#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 HwStorageManagerPackage init() { + if (isInited) return (HwStorageManagerPackage)EPackage.Registry.INSTANCE.getEPackage(HwStorageManagerPackage.eNS_URI); + + // Obtain or create and register package + HwStorageManagerPackageImpl theHwStorageManagerPackage = (HwStorageManagerPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof HwStorageManagerPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new HwStorageManagerPackageImpl()); + + 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); + 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); + 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 + theHwStorageManagerPackage.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(); + 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(); + theMARTE_PrimitivesTypesPackage.createPackageContents(); + + // Initialize created meta-data + theHwStorageManagerPackage.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(); + 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(); + theMARTE_PrimitivesTypesPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theHwStorageManagerPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(HwStorageManagerPackage.eNS_URI, theHwStorageManagerPackage); + return theHwStorageManagerPackage; + } + + /** + * + * + * @generated + */ + public EClass getHwStorageManager() { + return hwStorageManagerEClass; + } + + /** + * + * + * @generated + */ + public EReference getHwStorageManager_ManagedMemories() { + return (EReference)hwStorageManagerEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getHwDMA() { + return hwDMAEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getHwDMA_NbChannels() { + return (EAttribute)hwDMAEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getHwDMA_TransferWidth() { + return (EAttribute)hwDMAEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getHwDMA_DrivenBy() { + return (EReference)hwDMAEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getHwMMU() { + return hwMMUEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getHwMMU_VirtualAddrSpace() { + return (EAttribute)hwMMUEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getHwMMU_PhysicalAddrSpace() { + return (EAttribute)hwMMUEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getHwMMU_MemoryProtection() { + return (EAttribute)hwMMUEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getHwMMU_NbEntries() { + return (EAttribute)hwMMUEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EReference getHwMMU_OwnedTLBs() { + return (EReference)hwMMUEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public HwStorageManagerFactory getHwStorageManagerFactory() { + return (HwStorageManagerFactory)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 + hwStorageManagerEClass = createEClass(HW_STORAGE_MANAGER); + createEReference(hwStorageManagerEClass, HW_STORAGE_MANAGER__MANAGED_MEMORIES); + + hwDMAEClass = createEClass(HW_DMA); + createEAttribute(hwDMAEClass, HW_DMA__NB_CHANNELS); + createEAttribute(hwDMAEClass, HW_DMA__TRANSFER_WIDTH); + createEReference(hwDMAEClass, HW_DMA__DRIVEN_BY); + + hwMMUEClass = createEClass(HW_MMU); + createEAttribute(hwMMUEClass, HW_MMU__VIRTUAL_ADDR_SPACE); + createEAttribute(hwMMUEClass, HW_MMU__PHYSICAL_ADDR_SPACE); + createEAttribute(hwMMUEClass, HW_MMU__MEMORY_PROTECTION); + createEAttribute(hwMMUEClass, HW_MMU__NB_ENTRIES); + createEReference(hwMMUEClass, HW_MMU__OWNED_TL_BS); + } + + /** + * + * + * @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 + HwGeneralPackage theHwGeneralPackage = (HwGeneralPackage)EPackage.Registry.INSTANCE.getEPackage(HwGeneralPackage.eNS_URI); + GRMPackage theGRMPackage = (GRMPackage)EPackage.Registry.INSTANCE.getEPackage(GRMPackage.eNS_URI); + HwMemoryPackage theHwMemoryPackage = (HwMemoryPackage)EPackage.Registry.INSTANCE.getEPackage(HwMemoryPackage.eNS_URI); + HwCommunicationPackage theHwCommunicationPackage = (HwCommunicationPackage)EPackage.Registry.INSTANCE.getEPackage(HwCommunicationPackage.eNS_URI); + BasicNFP_TypesPackage theBasicNFP_TypesPackage = (BasicNFP_TypesPackage)EPackage.Registry.INSTANCE.getEPackage(BasicNFP_TypesPackage.eNS_URI); + HwComputingPackage theHwComputingPackage = (HwComputingPackage)EPackage.Registry.INSTANCE.getEPackage(HwComputingPackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + hwStorageManagerEClass.getESuperTypes().add(theHwGeneralPackage.getHwResource()); + hwStorageManagerEClass.getESuperTypes().add(theGRMPackage.getStorageResource()); + hwDMAEClass.getESuperTypes().add(this.getHwStorageManager()); + hwDMAEClass.getESuperTypes().add(theHwCommunicationPackage.getHwArbiter()); + hwMMUEClass.getESuperTypes().add(this.getHwStorageManager()); + + // Initialize classes and features; add operations and parameters + initEClass(hwStorageManagerEClass, HwStorageManager.class, "HwStorageManager", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getHwStorageManager_ManagedMemories(), theHwMemoryPackage.getHwMemory(), null, "managedMemories", null, 0, -1, HwStorageManager.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(hwDMAEClass, HwDMA.class, "HwDMA", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getHwDMA_NbChannels(), theBasicNFP_TypesPackage.getNFP_Natural(), "nbChannels", null, 0, 1, HwDMA.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getHwDMA_TransferWidth(), theBasicNFP_TypesPackage.getNFP_DataSize(), "transferWidth", null, 0, 1, HwDMA.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getHwDMA_DrivenBy(), theHwComputingPackage.getHwProcessor(), null, "drivenBy", null, 0, -1, HwDMA.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(hwMMUEClass, HwMMU.class, "HwMMU", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getHwMMU_VirtualAddrSpace(), theBasicNFP_TypesPackage.getNFP_DataSize(), "virtualAddrSpace", null, 0, 1, HwMMU.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getHwMMU_PhysicalAddrSpace(), theBasicNFP_TypesPackage.getNFP_DataSize(), "physicalAddrSpace", null, 0, 1, HwMMU.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getHwMMU_MemoryProtection(), theBasicNFP_TypesPackage.getNFP_Boolean(), "memoryProtection", null, 0, 1, HwMMU.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getHwMMU_NbEntries(), theBasicNFP_TypesPackage.getNFP_Natural(), "nbEntries", null, 0, 1, HwMMU.class, !IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, IS_DERIVED, !IS_ORDERED); + initEReference(getHwMMU_OwnedTLBs(), theHwMemoryPackage.getHwCache(), null, "ownedTLBs", null, 0, -1, HwMMU.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + // Create annotations + // subsets + createSubsetsAnnotations(); + } + + /** + * Initializes the annotations for subsets. + * + * + * @generated + */ + protected void createSubsetsAnnotations() { + String source = "subsets"; + addAnnotation + (getHwMMU_OwnedTLBs(), + source, + new String[] { + }, + new URI[] { + URI.createURI(MARTEPackage.eNS_URI).appendFragment("//MARTE_DesignModel/HRM/HwGeneral/HwResource/ownedHW") + }); + } + +} //HwStorageManagerPackageImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/util/HwStorageManagerAdapterFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/util/HwStorageManagerAdapterFactory.java new file mode 100644 index 00000000000..14ccf5fe581 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/util/HwStorageManagerAdapterFactory.java @@ -0,0 +1,265 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.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.MARTE_DesignModel.HRM.HwGeneral.HwResource; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwArbiter; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwCommunicationResource; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.*; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.StorageResource; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwStorageManagerPackage + * @generated + */ +public class HwStorageManagerAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * @generated + */ + protected static HwStorageManagerPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public HwStorageManagerAdapterFactory() { + if (modelPackage == null) { + modelPackage = HwStorageManagerPackage.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 HwStorageManagerSwitch modelSwitch = + new HwStorageManagerSwitch() { + @Override + public Adapter caseHwStorageManager(HwStorageManager object) { + return createHwStorageManagerAdapter(); + } + @Override + public Adapter caseHwDMA(HwDMA object) { + return createHwDMAAdapter(); + } + @Override + public Adapter caseHwMMU(HwMMU object) { + return createHwMMUAdapter(); + } + @Override + public Adapter caseResource(Resource object) { + return createResourceAdapter(); + } + @Override + public Adapter caseHwResource(HwResource object) { + return createHwResourceAdapter(); + } + @Override + public Adapter caseStorageResource(StorageResource object) { + return createStorageResourceAdapter(); + } + @Override + public Adapter caseHwCommunicationResource(HwCommunicationResource object) { + return createHwCommunicationResourceAdapter(); + } + @Override + public Adapter caseHwArbiter(HwArbiter object) { + return createHwArbiterAdapter(); + } + @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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwStorageManager Hw Storage Manager}'. + * + * 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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwStorageManager + * @generated + */ + public Adapter createHwStorageManagerAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwDMA Hw DMA}'. + * + * 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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwDMA + * @generated + */ + public Adapter createHwDMAAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwMMU Hw MMU}'. + * + * 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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwMMU + * @generated + */ + public Adapter createHwMMUAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource Resource}'. + * + * 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.MARTE_Foundations.GRM.Resource + * @generated + */ + public Adapter createResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource Hw Resource}'. + * + * 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.MARTE_DesignModel.HRM.HwGeneral.HwResource + * @generated + */ + public Adapter createHwResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.StorageResource Storage Resource}'. + * + * 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.MARTE_Foundations.GRM.StorageResource + * @generated + */ + public Adapter createStorageResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwCommunicationResource Resource}'. + * + * 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.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwCommunicationResource + * @generated + */ + public Adapter createHwCommunicationResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwArbiter Hw Arbiter}'. + * + * 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.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwArbiter + * @generated + */ + public Adapter createHwArbiterAdapter() { + 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; + } + +} //HwStorageManagerAdapterFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/util/HwStorageManagerResourceFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/util/HwStorageManagerResourceFactoryImpl.java new file mode 100644 index 00000000000..29683dcef63 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/util/HwStorageManagerResourceFactoryImpl.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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; + +import org.eclipse.emf.ecore.xmi.XMLResource; + +/** + * + * The Resource Factory associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.util.HwStorageManagerResourceImpl + * @generated + */ +public class HwStorageManagerResourceFactoryImpl extends ResourceFactoryImpl { + /** + * Creates an instance of the resource factory. + * + * + * @generated + */ + public HwStorageManagerResourceFactoryImpl() { + super(); + } + + /** + * Creates an instance of the resource. + * + * + * @generated + */ + @Override + public Resource createResource(URI uri) { + XMLResource result = new HwStorageManagerResourceImpl(uri); + result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + + result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); + return result; + } + +} //HwStorageManagerResourceFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/util/HwStorageManagerResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/util/HwStorageManagerResourceImpl.java new file mode 100644 index 00000000000..ca143c3ed58 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/util/HwStorageManagerResourceImpl.java @@ -0,0 +1,39 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; + +/** + * + * The Resource associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.util.HwStorageManagerResourceFactoryImpl + * @generated + */ +public class HwStorageManagerResourceImpl extends XMLResourceImpl { + /** + * Creates an instance of the resource. + * + * + * @param uri the URI of the new resource. + * @generated + */ + public HwStorageManagerResourceImpl(URI uri) { + super(uri); + } + +} //HwStorageManagerResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/util/HwStorageManagerSwitch.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/util/HwStorageManagerSwitch.java new file mode 100644 index 00000000000..252d8f5c54e --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/util/HwStorageManagerSwitch.java @@ -0,0 +1,275 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.util; + +import java.util.List; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwArbiter; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwCommunication.HwCommunicationResource; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.*; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.StorageResource; + +/** + * + * 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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwStorageManagerPackage + * @generated + */ +public class HwStorageManagerSwitch { + /** + * The cached model package + * + * + * @generated + */ + protected static HwStorageManagerPackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public HwStorageManagerSwitch() { + if (modelPackage == null) { + modelPackage = HwStorageManagerPackage.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 HwStorageManagerPackage.HW_STORAGE_MANAGER: { + HwStorageManager hwStorageManager = (HwStorageManager)theEObject; + T result = caseHwStorageManager(hwStorageManager); + if (result == null) result = caseHwResource(hwStorageManager); + if (result == null) result = caseStorageResource(hwStorageManager); + if (result == null) result = caseResource(hwStorageManager); + if (result == null) result = defaultCase(theEObject); + return result; + } + case HwStorageManagerPackage.HW_DMA: { + HwDMA hwDMA = (HwDMA)theEObject; + T result = caseHwDMA(hwDMA); + if (result == null) result = caseHwStorageManager(hwDMA); + if (result == null) result = caseHwArbiter(hwDMA); + if (result == null) result = caseStorageResource(hwDMA); + if (result == null) result = caseHwCommunicationResource(hwDMA); + if (result == null) result = caseHwResource(hwDMA); + if (result == null) result = caseResource(hwDMA); + if (result == null) result = defaultCase(theEObject); + return result; + } + case HwStorageManagerPackage.HW_MMU: { + HwMMU hwMMU = (HwMMU)theEObject; + T result = caseHwMMU(hwMMU); + if (result == null) result = caseHwStorageManager(hwMMU); + if (result == null) result = caseHwResource(hwMMU); + if (result == null) result = caseStorageResource(hwMMU); + if (result == null) result = caseResource(hwMMU); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Hw Storage Manager'. + * + * 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 'Hw Storage Manager'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHwStorageManager(HwStorageManager object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Hw DMA'. + * + * 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 'Hw DMA'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHwDMA(HwDMA object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Hw MMU'. + * + * 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 'Hw MMU'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHwMMU(HwMMU object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Resource'. + * + * 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 'Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseResource(Resource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Hw Resource'. + * + * 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 'Hw Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHwResource(HwResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Storage Resource'. + * + * 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 'Storage Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseStorageResource(StorageResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Resource'. + * + * 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 'Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHwCommunicationResource(HwCommunicationResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Hw Arbiter'. + * + * 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 'Hw Arbiter'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHwArbiter(HwArbiter 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; + } + +} //HwStorageManagerSwitch diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/util/HwStorageManagerXMLProcessor.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/util/HwStorageManagerXMLProcessor.java new file mode 100644 index 00000000000..19f798278fe --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwStorage/HwStorageManager/util/HwStorageManagerXMLProcessor.java @@ -0,0 +1,61 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.util; + +import java.util.Map; + +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.xmi.util.XMLProcessor; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwStorage.HwStorageManager.HwStorageManagerPackage; + +/** + * This class contains helper methods to serialize and deserialize XML documents + * + * + * @generated + */ +public class HwStorageManagerXMLProcessor extends XMLProcessor { + + /** + * Public constructor to instantiate the helper. + * + * + * @generated + */ + public HwStorageManagerXMLProcessor() { + super((EPackage.Registry.INSTANCE)); + HwStorageManagerPackage.eINSTANCE.eClass(); + } + + /** + * Register for "*" and "xml" file extensions the HwStorageManagerResourceFactoryImpl factory. + * + * + * @generated + */ + @Override + protected Map getRegistrations() { + if (registrations == null) { + super.getRegistrations(); + registrations.put(XML_EXTENSION, new HwStorageManagerResourceFactoryImpl()); + registrations.put(STAR_EXTENSION, new HwStorageManagerResourceFactoryImpl()); + } + return registrations; + } + +} //HwStorageManagerXMLProcessor diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/HwClock.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/HwClock.java new file mode 100644 index 00000000000..40e8aebddbe --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/HwClock.java @@ -0,0 +1,28 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwTiming; + + +/** + * + * A representation of the model object 'Hw Clock'. + * + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.HwTimingPackage#getHwClock() + * @model + * @generated + */ +public interface HwClock extends HwTimingResource { +} // HwClock diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/HwTimer.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/HwTimer.java new file mode 100644 index 00000000000..11d6e098c1a --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/HwTimer.java @@ -0,0 +1,114 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwTiming; + + +/** + * + * A representation of the model object 'Hw Timer'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.HwTimer#getNbCounters Nb Counters}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.HwTimer#getCounterWidth Counter Width}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.HwTimer#getInputClock Input Clock}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.HwTimingPackage#getHwTimer() + * @model + * @generated + */ +public interface HwTimer extends HwTimingResource { + /** + * Returns the value of the 'Nb Counters' attribute. + * + *

+ * If the meaning of the 'Nb Counters' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Nb Counters' attribute. + * @see #setNbCounters(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.HwTimingPackage#getHwTimer_NbCounters() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Natural" ordered="false" + * @generated + */ + String getNbCounters(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.HwTimer#getNbCounters Nb Counters}' attribute. + * + * + * @param value the new value of the 'Nb Counters' attribute. + * @see #getNbCounters() + * @generated + */ + void setNbCounters(String value); + + /** + * Returns the value of the 'Counter Width' attribute. + * + *

+ * If the meaning of the 'Counter Width' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Counter Width' attribute. + * @see #setCounterWidth(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.HwTimingPackage#getHwTimer_CounterWidth() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_DataSize" ordered="false" + * @generated + */ + String getCounterWidth(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.HwTimer#getCounterWidth Counter Width}' attribute. + * + * + * @param value the new value of the 'Counter Width' attribute. + * @see #getCounterWidth() + * @generated + */ + void setCounterWidth(String value); + + /** + * Returns the value of the 'Input Clock' reference. + * + *

+ * If the meaning of the 'Input Clock' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Input Clock' reference. + * @see #setInputClock(HwClock) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.HwTimingPackage#getHwTimer_InputClock() + * @model ordered="false" + * @generated + */ + HwClock getInputClock(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.HwTimer#getInputClock Input Clock}' reference. + * + * + * @param value the new value of the 'Input Clock' reference. + * @see #getInputClock() + * @generated + */ + void setInputClock(HwClock value); + +} // HwTimer diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/HwTimingFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/HwTimingFactory.java new file mode 100644 index 00000000000..606b5d9260b --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/HwTimingFactory.java @@ -0,0 +1,71 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwTiming; + +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.MARTE_DesignModel.HRM.HwLogical.HwTiming.HwTimingPackage + * @generated + */ +public interface HwTimingFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + HwTimingFactory eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.impl.HwTimingFactoryImpl.init(); + + /** + * Returns a new object of class 'Resource'. + * + * + * @return a new object of class 'Resource'. + * @generated + */ + HwTimingResource createHwTimingResource(); + + /** + * Returns a new object of class 'Hw Clock'. + * + * + * @return a new object of class 'Hw Clock'. + * @generated + */ + HwClock createHwClock(); + + /** + * Returns a new object of class 'Hw Timer'. + * + * + * @return a new object of class 'Hw Timer'. + * @generated + */ + HwTimer createHwTimer(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + HwTimingPackage getHwTimingPackage(); + +} //HwTimingFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/HwTimingPackage.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/HwTimingPackage.java new file mode 100644 index 00000000000..91f87650af2 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/HwTimingPackage.java @@ -0,0 +1,675 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwTiming; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwGeneralPackage; + +/** + * + * 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.MARTE_DesignModel.HRM.HwLogical.HwTiming.HwTimingFactory + * @model kind="package" + * @generated + */ +public interface HwTimingPackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "HwTiming"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "http://www.eclipse.org/papyrus/HwTiming/1"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "HwTiming"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + HwTimingPackage eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.impl.HwTimingPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.impl.HwTimingResourceImpl Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.impl.HwTimingResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.impl.HwTimingPackageImpl#getHwTimingResource() + * @generated + */ + int HW_TIMING_RESOURCE = 0; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int HW_TIMING_RESOURCE__RES_MULT = HwGeneralPackage.HW_RESOURCE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int HW_TIMING_RESOURCE__IS_PROTECTED = HwGeneralPackage.HW_RESOURCE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int HW_TIMING_RESOURCE__IS_ACTIVE = HwGeneralPackage.HW_RESOURCE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int HW_TIMING_RESOURCE__BASE_PROPERTY = HwGeneralPackage.HW_RESOURCE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int HW_TIMING_RESOURCE__BASE_INSTANCE_SPECIFICATION = HwGeneralPackage.HW_RESOURCE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int HW_TIMING_RESOURCE__BASE_CLASSIFIER = HwGeneralPackage.HW_RESOURCE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int HW_TIMING_RESOURCE__BASE_LIFELINE = HwGeneralPackage.HW_RESOURCE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int HW_TIMING_RESOURCE__BASE_CONNECTABLE_ELEMENT = HwGeneralPackage.HW_RESOURCE__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int HW_TIMING_RESOURCE__DESCRIPTION = HwGeneralPackage.HW_RESOURCE__DESCRIPTION; + + /** + * The feature id for the 'PHW Services' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_TIMING_RESOURCE__PHW_SERVICES = HwGeneralPackage.HW_RESOURCE__PHW_SERVICES; + + /** + * The feature id for the 'RHW Services' reference list. + * + * + * @generated + * @ordered + */ + int HW_TIMING_RESOURCE__RHW_SERVICES = HwGeneralPackage.HW_RESOURCE__RHW_SERVICES; + + /** + * The feature id for the 'Owned HW' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_TIMING_RESOURCE__OWNED_HW = HwGeneralPackage.HW_RESOURCE__OWNED_HW; + + /** + * The feature id for the 'End Points' reference list. + * + * + * @generated + * @ordered + */ + int HW_TIMING_RESOURCE__END_POINTS = HwGeneralPackage.HW_RESOURCE__END_POINTS; + + /** + * The feature id for the 'Frequency' attribute. + * + * + * @generated + * @ordered + */ + int HW_TIMING_RESOURCE__FREQUENCY = HwGeneralPackage.HW_RESOURCE__FREQUENCY; + + /** + * The number of structural features of the 'Resource' class. + * + * + * @generated + * @ordered + */ + int HW_TIMING_RESOURCE_FEATURE_COUNT = HwGeneralPackage.HW_RESOURCE_FEATURE_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.impl.HwClockImpl Hw Clock}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.impl.HwClockImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.impl.HwTimingPackageImpl#getHwClock() + * @generated + */ + int HW_CLOCK = 1; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int HW_CLOCK__RES_MULT = HW_TIMING_RESOURCE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int HW_CLOCK__IS_PROTECTED = HW_TIMING_RESOURCE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int HW_CLOCK__IS_ACTIVE = HW_TIMING_RESOURCE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int HW_CLOCK__BASE_PROPERTY = HW_TIMING_RESOURCE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int HW_CLOCK__BASE_INSTANCE_SPECIFICATION = HW_TIMING_RESOURCE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int HW_CLOCK__BASE_CLASSIFIER = HW_TIMING_RESOURCE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int HW_CLOCK__BASE_LIFELINE = HW_TIMING_RESOURCE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int HW_CLOCK__BASE_CONNECTABLE_ELEMENT = HW_TIMING_RESOURCE__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int HW_CLOCK__DESCRIPTION = HW_TIMING_RESOURCE__DESCRIPTION; + + /** + * The feature id for the 'PHW Services' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_CLOCK__PHW_SERVICES = HW_TIMING_RESOURCE__PHW_SERVICES; + + /** + * The feature id for the 'RHW Services' reference list. + * + * + * @generated + * @ordered + */ + int HW_CLOCK__RHW_SERVICES = HW_TIMING_RESOURCE__RHW_SERVICES; + + /** + * The feature id for the 'Owned HW' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_CLOCK__OWNED_HW = HW_TIMING_RESOURCE__OWNED_HW; + + /** + * The feature id for the 'End Points' reference list. + * + * + * @generated + * @ordered + */ + int HW_CLOCK__END_POINTS = HW_TIMING_RESOURCE__END_POINTS; + + /** + * The feature id for the 'Frequency' attribute. + * + * + * @generated + * @ordered + */ + int HW_CLOCK__FREQUENCY = HW_TIMING_RESOURCE__FREQUENCY; + + /** + * The number of structural features of the 'Hw Clock' class. + * + * + * @generated + * @ordered + */ + int HW_CLOCK_FEATURE_COUNT = HW_TIMING_RESOURCE_FEATURE_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.impl.HwTimerImpl Hw Timer}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.impl.HwTimerImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.impl.HwTimingPackageImpl#getHwTimer() + * @generated + */ + int HW_TIMER = 2; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int HW_TIMER__RES_MULT = HW_TIMING_RESOURCE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int HW_TIMER__IS_PROTECTED = HW_TIMING_RESOURCE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int HW_TIMER__IS_ACTIVE = HW_TIMING_RESOURCE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int HW_TIMER__BASE_PROPERTY = HW_TIMING_RESOURCE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int HW_TIMER__BASE_INSTANCE_SPECIFICATION = HW_TIMING_RESOURCE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int HW_TIMER__BASE_CLASSIFIER = HW_TIMING_RESOURCE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int HW_TIMER__BASE_LIFELINE = HW_TIMING_RESOURCE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int HW_TIMER__BASE_CONNECTABLE_ELEMENT = HW_TIMING_RESOURCE__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int HW_TIMER__DESCRIPTION = HW_TIMING_RESOURCE__DESCRIPTION; + + /** + * The feature id for the 'PHW Services' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_TIMER__PHW_SERVICES = HW_TIMING_RESOURCE__PHW_SERVICES; + + /** + * The feature id for the 'RHW Services' reference list. + * + * + * @generated + * @ordered + */ + int HW_TIMER__RHW_SERVICES = HW_TIMING_RESOURCE__RHW_SERVICES; + + /** + * The feature id for the 'Owned HW' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_TIMER__OWNED_HW = HW_TIMING_RESOURCE__OWNED_HW; + + /** + * The feature id for the 'End Points' reference list. + * + * + * @generated + * @ordered + */ + int HW_TIMER__END_POINTS = HW_TIMING_RESOURCE__END_POINTS; + + /** + * The feature id for the 'Frequency' attribute. + * + * + * @generated + * @ordered + */ + int HW_TIMER__FREQUENCY = HW_TIMING_RESOURCE__FREQUENCY; + + /** + * The feature id for the 'Nb Counters' attribute. + * + * + * @generated + * @ordered + */ + int HW_TIMER__NB_COUNTERS = HW_TIMING_RESOURCE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Counter Width' attribute. + * + * + * @generated + * @ordered + */ + int HW_TIMER__COUNTER_WIDTH = HW_TIMING_RESOURCE_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Input Clock' reference. + * + * + * @generated + * @ordered + */ + int HW_TIMER__INPUT_CLOCK = HW_TIMING_RESOURCE_FEATURE_COUNT + 2; + + /** + * The number of structural features of the 'Hw Timer' class. + * + * + * @generated + * @ordered + */ + int HW_TIMER_FEATURE_COUNT = HW_TIMING_RESOURCE_FEATURE_COUNT + 3; + + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.HwTimingResource Resource}'. + * + * + * @return the meta object for class 'Resource'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.HwTimingResource + * @generated + */ + EClass getHwTimingResource(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.HwClock Hw Clock}'. + * + * + * @return the meta object for class 'Hw Clock'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.HwClock + * @generated + */ + EClass getHwClock(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.HwTimer Hw Timer}'. + * + * + * @return the meta object for class 'Hw Timer'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.HwTimer + * @generated + */ + EClass getHwTimer(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.HwTimer#getNbCounters Nb Counters}'. + * + * + * @return the meta object for the attribute 'Nb Counters'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.HwTimer#getNbCounters() + * @see #getHwTimer() + * @generated + */ + EAttribute getHwTimer_NbCounters(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.HwTimer#getCounterWidth Counter Width}'. + * + * + * @return the meta object for the attribute 'Counter Width'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.HwTimer#getCounterWidth() + * @see #getHwTimer() + * @generated + */ + EAttribute getHwTimer_CounterWidth(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.HwTimer#getInputClock Input Clock}'. + * + * + * @return the meta object for the reference 'Input Clock'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.HwTimer#getInputClock() + * @see #getHwTimer() + * @generated + */ + EReference getHwTimer_InputClock(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + HwTimingFactory getHwTimingFactory(); + + /** + * + * 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.MARTE_DesignModel.HRM.HwLogical.HwTiming.impl.HwTimingResourceImpl Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.impl.HwTimingResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.impl.HwTimingPackageImpl#getHwTimingResource() + * @generated + */ + EClass HW_TIMING_RESOURCE = eINSTANCE.getHwTimingResource(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.impl.HwClockImpl Hw Clock}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.impl.HwClockImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.impl.HwTimingPackageImpl#getHwClock() + * @generated + */ + EClass HW_CLOCK = eINSTANCE.getHwClock(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.impl.HwTimerImpl Hw Timer}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.impl.HwTimerImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.impl.HwTimingPackageImpl#getHwTimer() + * @generated + */ + EClass HW_TIMER = eINSTANCE.getHwTimer(); + + /** + * The meta object literal for the 'Nb Counters' attribute feature. + * + * + * @generated + */ + EAttribute HW_TIMER__NB_COUNTERS = eINSTANCE.getHwTimer_NbCounters(); + + /** + * The meta object literal for the 'Counter Width' attribute feature. + * + * + * @generated + */ + EAttribute HW_TIMER__COUNTER_WIDTH = eINSTANCE.getHwTimer_CounterWidth(); + + /** + * The meta object literal for the 'Input Clock' reference feature. + * + * + * @generated + */ + EReference HW_TIMER__INPUT_CLOCK = eINSTANCE.getHwTimer_InputClock(); + + } + +} //HwTimingPackage diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/HwTimingResource.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/HwTimingResource.java new file mode 100644 index 00000000000..dec476270f8 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/HwTimingResource.java @@ -0,0 +1,31 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwTiming; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.TimingResource; + +/** + * + * A representation of the model object 'Resource'. + * + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.HwTimingPackage#getHwTimingResource() + * @model + * @generated + */ +public interface HwTimingResource extends HwResource, TimingResource { +} // HwTimingResource diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/impl/HwClockImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/impl/HwClockImpl.java new file mode 100644 index 00000000000..b38b9014c92 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/impl/HwClockImpl.java @@ -0,0 +1,50 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwTiming.impl; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.HwClock; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.HwTimingPackage; + +/** + * + * An implementation of the model object 'Hw Clock'. + * + *

+ *

+ * + * @generated + */ +public class HwClockImpl extends HwTimingResourceImpl implements HwClock { + /** + * + * + * @generated + */ + protected HwClockImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return HwTimingPackage.Literals.HW_CLOCK; + } + +} //HwClockImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/impl/HwTimerImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/impl/HwTimerImpl.java new file mode 100644 index 00000000000..6adbfb08693 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/impl/HwTimerImpl.java @@ -0,0 +1,289 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwTiming.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.HwClock; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.HwTimer; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.HwTimingPackage; + +/** + * + * An implementation of the model object 'Hw Timer'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.impl.HwTimerImpl#getNbCounters Nb Counters}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.impl.HwTimerImpl#getCounterWidth Counter Width}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.impl.HwTimerImpl#getInputClock Input Clock}
  • + *
+ *

+ * + * @generated + */ +public class HwTimerImpl extends HwTimingResourceImpl implements HwTimer { + /** + * The default value of the '{@link #getNbCounters() Nb Counters}' attribute. + * + * + * @see #getNbCounters() + * @generated + * @ordered + */ + protected static final String NB_COUNTERS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getNbCounters() Nb Counters}' attribute. + * + * + * @see #getNbCounters() + * @generated + * @ordered + */ + protected String nbCounters = NB_COUNTERS_EDEFAULT; + + /** + * The default value of the '{@link #getCounterWidth() Counter Width}' attribute. + * + * + * @see #getCounterWidth() + * @generated + * @ordered + */ + protected static final String COUNTER_WIDTH_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCounterWidth() Counter Width}' attribute. + * + * + * @see #getCounterWidth() + * @generated + * @ordered + */ + protected String counterWidth = COUNTER_WIDTH_EDEFAULT; + + /** + * The cached value of the '{@link #getInputClock() Input Clock}' reference. + * + * + * @see #getInputClock() + * @generated + * @ordered + */ + protected HwClock inputClock; + + /** + * + * + * @generated + */ + protected HwTimerImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return HwTimingPackage.Literals.HW_TIMER; + } + + /** + * + * + * @generated + */ + public String getNbCounters() { + return nbCounters; + } + + /** + * + * + * @generated + */ + public void setNbCounters(String newNbCounters) { + String oldNbCounters = nbCounters; + nbCounters = newNbCounters; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwTimingPackage.HW_TIMER__NB_COUNTERS, oldNbCounters, nbCounters)); + } + + /** + * + * + * @generated + */ + public String getCounterWidth() { + return counterWidth; + } + + /** + * + * + * @generated + */ + public void setCounterWidth(String newCounterWidth) { + String oldCounterWidth = counterWidth; + counterWidth = newCounterWidth; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwTimingPackage.HW_TIMER__COUNTER_WIDTH, oldCounterWidth, counterWidth)); + } + + /** + * + * + * @generated + */ + public HwClock getInputClock() { + if (inputClock != null && inputClock.eIsProxy()) { + InternalEObject oldInputClock = (InternalEObject)inputClock; + inputClock = (HwClock)eResolveProxy(oldInputClock); + if (inputClock != oldInputClock) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, HwTimingPackage.HW_TIMER__INPUT_CLOCK, oldInputClock, inputClock)); + } + } + return inputClock; + } + + /** + * + * + * @generated + */ + public HwClock basicGetInputClock() { + return inputClock; + } + + /** + * + * + * @generated + */ + public void setInputClock(HwClock newInputClock) { + HwClock oldInputClock = inputClock; + inputClock = newInputClock; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwTimingPackage.HW_TIMER__INPUT_CLOCK, oldInputClock, inputClock)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case HwTimingPackage.HW_TIMER__NB_COUNTERS: + return getNbCounters(); + case HwTimingPackage.HW_TIMER__COUNTER_WIDTH: + return getCounterWidth(); + case HwTimingPackage.HW_TIMER__INPUT_CLOCK: + if (resolve) return getInputClock(); + return basicGetInputClock(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case HwTimingPackage.HW_TIMER__NB_COUNTERS: + setNbCounters((String)newValue); + return; + case HwTimingPackage.HW_TIMER__COUNTER_WIDTH: + setCounterWidth((String)newValue); + return; + case HwTimingPackage.HW_TIMER__INPUT_CLOCK: + setInputClock((HwClock)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case HwTimingPackage.HW_TIMER__NB_COUNTERS: + setNbCounters(NB_COUNTERS_EDEFAULT); + return; + case HwTimingPackage.HW_TIMER__COUNTER_WIDTH: + setCounterWidth(COUNTER_WIDTH_EDEFAULT); + return; + case HwTimingPackage.HW_TIMER__INPUT_CLOCK: + setInputClock((HwClock)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case HwTimingPackage.HW_TIMER__NB_COUNTERS: + return NB_COUNTERS_EDEFAULT == null ? nbCounters != null : !NB_COUNTERS_EDEFAULT.equals(nbCounters); + case HwTimingPackage.HW_TIMER__COUNTER_WIDTH: + return COUNTER_WIDTH_EDEFAULT == null ? counterWidth != null : !COUNTER_WIDTH_EDEFAULT.equals(counterWidth); + case HwTimingPackage.HW_TIMER__INPUT_CLOCK: + return inputClock != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (nbCounters: "); + result.append(nbCounters); + result.append(", counterWidth: "); + result.append(counterWidth); + result.append(')'); + return result.toString(); + } + +} //HwTimerImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/impl/HwTimingFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/impl/HwTimingFactoryImpl.java new file mode 100644 index 00000000000..83dec86785e --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/impl/HwTimingFactoryImpl.java @@ -0,0 +1,128 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwTiming.impl; + +import org.eclipse.emf.ecore.EClass; +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.MARTE_DesignModel.HRM.HwLogical.HwTiming.*; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class HwTimingFactoryImpl extends EFactoryImpl implements HwTimingFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static HwTimingFactory init() { + try { + HwTimingFactory theHwTimingFactory = (HwTimingFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/HwTiming/1"); + if (theHwTimingFactory != null) { + return theHwTimingFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new HwTimingFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public HwTimingFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case HwTimingPackage.HW_TIMING_RESOURCE: return createHwTimingResource(); + case HwTimingPackage.HW_CLOCK: return createHwClock(); + case HwTimingPackage.HW_TIMER: return createHwTimer(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public HwTimingResource createHwTimingResource() { + HwTimingResourceImpl hwTimingResource = new HwTimingResourceImpl(); + return hwTimingResource; + } + + /** + * + * + * @generated + */ + public HwClock createHwClock() { + HwClockImpl hwClock = new HwClockImpl(); + return hwClock; + } + + /** + * + * + * @generated + */ + public HwTimer createHwTimer() { + HwTimerImpl hwTimer = new HwTimerImpl(); + return hwTimer; + } + + /** + * + * + * @generated + */ + public HwTimingPackage getHwTimingPackage() { + return (HwTimingPackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static HwTimingPackage getPackage() { + return HwTimingPackage.eINSTANCE; + } + +} //HwTimingFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/impl/HwTimingPackageImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/impl/HwTimingPackageImpl.java new file mode 100644 index 00000000000..30df6c4fdac --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/impl/HwTimingPackageImpl.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.MARTE_DesignModel.HRM.HwLogical.HwTiming.impl; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +import org.eclipse.emf.ecore.impl.EPackageImpl; + +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.HwClock; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.HwTimer; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.HwTimingFactory; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.HwTimingPackage; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.HwTimingResource; + +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.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 HwTimingPackageImpl extends EPackageImpl implements HwTimingPackage { + /** + * + * + * @generated + */ + private EClass hwTimingResourceEClass = null; + + /** + * + * + * @generated + */ + private EClass hwClockEClass = null; + + /** + * + * + * @generated + */ + private EClass hwTimerEClass = 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.MARTE_DesignModel.HRM.HwLogical.HwTiming.HwTimingPackage#eNS_URI + * @see #init() + * @generated + */ + private HwTimingPackageImpl() { + super(eNS_URI, HwTimingFactory.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 HwTimingPackage#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 HwTimingPackage init() { + if (isInited) return (HwTimingPackage)EPackage.Registry.INSTANCE.getEPackage(HwTimingPackage.eNS_URI); + + // Obtain or create and register package + HwTimingPackageImpl theHwTimingPackage = (HwTimingPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof HwTimingPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new HwTimingPackageImpl()); + + 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); + 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); + 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 + theHwTimingPackage.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(); + 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(); + theMARTE_PrimitivesTypesPackage.createPackageContents(); + + // Initialize created meta-data + theHwTimingPackage.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(); + 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(); + theMARTE_PrimitivesTypesPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theHwTimingPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(HwTimingPackage.eNS_URI, theHwTimingPackage); + return theHwTimingPackage; + } + + /** + * + * + * @generated + */ + public EClass getHwTimingResource() { + return hwTimingResourceEClass; + } + + /** + * + * + * @generated + */ + public EClass getHwClock() { + return hwClockEClass; + } + + /** + * + * + * @generated + */ + public EClass getHwTimer() { + return hwTimerEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getHwTimer_NbCounters() { + return (EAttribute)hwTimerEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getHwTimer_CounterWidth() { + return (EAttribute)hwTimerEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getHwTimer_InputClock() { + return (EReference)hwTimerEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public HwTimingFactory getHwTimingFactory() { + return (HwTimingFactory)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 + hwTimingResourceEClass = createEClass(HW_TIMING_RESOURCE); + + hwClockEClass = createEClass(HW_CLOCK); + + hwTimerEClass = createEClass(HW_TIMER); + createEAttribute(hwTimerEClass, HW_TIMER__NB_COUNTERS); + createEAttribute(hwTimerEClass, HW_TIMER__COUNTER_WIDTH); + createEReference(hwTimerEClass, HW_TIMER__INPUT_CLOCK); + } + + /** + * + * + * @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 + HwGeneralPackage theHwGeneralPackage = (HwGeneralPackage)EPackage.Registry.INSTANCE.getEPackage(HwGeneralPackage.eNS_URI); + GRMPackage theGRMPackage = (GRMPackage)EPackage.Registry.INSTANCE.getEPackage(GRMPackage.eNS_URI); + BasicNFP_TypesPackage theBasicNFP_TypesPackage = (BasicNFP_TypesPackage)EPackage.Registry.INSTANCE.getEPackage(BasicNFP_TypesPackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + hwTimingResourceEClass.getESuperTypes().add(theHwGeneralPackage.getHwResource()); + hwTimingResourceEClass.getESuperTypes().add(theGRMPackage.getTimingResource()); + hwClockEClass.getESuperTypes().add(this.getHwTimingResource()); + hwTimerEClass.getESuperTypes().add(this.getHwTimingResource()); + + // Initialize classes and features; add operations and parameters + initEClass(hwTimingResourceEClass, HwTimingResource.class, "HwTimingResource", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(hwClockEClass, HwClock.class, "HwClock", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(hwTimerEClass, HwTimer.class, "HwTimer", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getHwTimer_NbCounters(), theBasicNFP_TypesPackage.getNFP_Natural(), "nbCounters", null, 0, 1, HwTimer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getHwTimer_CounterWidth(), theBasicNFP_TypesPackage.getNFP_DataSize(), "counterWidth", null, 0, 1, HwTimer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getHwTimer_InputClock(), this.getHwClock(), null, "inputClock", null, 0, 1, HwTimer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + } + +} //HwTimingPackageImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/impl/HwTimingResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/impl/HwTimingResourceImpl.java new file mode 100644 index 00000000000..78378ea8773 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/impl/HwTimingResourceImpl.java @@ -0,0 +1,52 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwTiming.impl; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.impl.HwResourceImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.HwTimingPackage; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.HwTimingResource; + +/** + * + * An implementation of the model object 'Resource'. + * + *

+ *

+ * + * @generated + */ +public class HwTimingResourceImpl extends HwResourceImpl implements HwTimingResource { + /** + * + * + * @generated + */ + protected HwTimingResourceImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return HwTimingPackage.Literals.HW_TIMING_RESOURCE; + } + +} //HwTimingResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/util/HwTimingAdapterFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/util/HwTimingAdapterFactory.java new file mode 100644 index 00000000000..7c413527eab --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/util/HwTimingAdapterFactory.java @@ -0,0 +1,226 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwTiming.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.MARTE_DesignModel.HRM.HwGeneral.HwResource; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.*; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.TimingResource; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.HwTimingPackage + * @generated + */ +public class HwTimingAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * @generated + */ + protected static HwTimingPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public HwTimingAdapterFactory() { + if (modelPackage == null) { + modelPackage = HwTimingPackage.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 HwTimingSwitch modelSwitch = + new HwTimingSwitch() { + @Override + public Adapter caseHwTimingResource(HwTimingResource object) { + return createHwTimingResourceAdapter(); + } + @Override + public Adapter caseHwClock(HwClock object) { + return createHwClockAdapter(); + } + @Override + public Adapter caseHwTimer(HwTimer object) { + return createHwTimerAdapter(); + } + @Override + public Adapter caseResource(Resource object) { + return createResourceAdapter(); + } + @Override + public Adapter caseHwResource(HwResource object) { + return createHwResourceAdapter(); + } + @Override + public Adapter caseTimingResource(TimingResource object) { + return createTimingResourceAdapter(); + } + @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.MARTE_DesignModel.HRM.HwLogical.HwTiming.HwTimingResource Resource}'. + * + * 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.MARTE_DesignModel.HRM.HwLogical.HwTiming.HwTimingResource + * @generated + */ + public Adapter createHwTimingResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.HwClock Hw 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.MARTE_DesignModel.HRM.HwLogical.HwTiming.HwClock + * @generated + */ + public Adapter createHwClockAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.HwTimer Hw Timer}'. + * + * 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.MARTE_DesignModel.HRM.HwLogical.HwTiming.HwTimer + * @generated + */ + public Adapter createHwTimerAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource Resource}'. + * + * 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.MARTE_Foundations.GRM.Resource + * @generated + */ + public Adapter createResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource Hw Resource}'. + * + * 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.MARTE_DesignModel.HRM.HwGeneral.HwResource + * @generated + */ + public Adapter createHwResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.TimingResource Timing Resource}'. + * + * 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.MARTE_Foundations.GRM.TimingResource + * @generated + */ + public Adapter createTimingResourceAdapter() { + 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; + } + +} //HwTimingAdapterFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/util/HwTimingResourceFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/util/HwTimingResourceFactoryImpl.java new file mode 100644 index 00000000000..383464a0e19 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/util/HwTimingResourceFactoryImpl.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.MARTE_DesignModel.HRM.HwLogical.HwTiming.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; + +import org.eclipse.emf.ecore.xmi.XMLResource; + +/** + * + * The Resource Factory associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.util.HwTimingResourceImpl + * @generated + */ +public class HwTimingResourceFactoryImpl extends ResourceFactoryImpl { + /** + * Creates an instance of the resource factory. + * + * + * @generated + */ + public HwTimingResourceFactoryImpl() { + super(); + } + + /** + * Creates an instance of the resource. + * + * + * @generated + */ + @Override + public Resource createResource(URI uri) { + XMLResource result = new HwTimingResourceImpl(uri); + result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + + result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); + return result; + } + +} //HwTimingResourceFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/util/HwTimingResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/util/HwTimingResourceImpl.java new file mode 100644 index 00000000000..36bba91a0a0 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/util/HwTimingResourceImpl.java @@ -0,0 +1,39 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwTiming.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; + +/** + * + * The Resource associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.util.HwTimingResourceFactoryImpl + * @generated + */ +public class HwTimingResourceImpl extends XMLResourceImpl { + /** + * Creates an instance of the resource. + * + * + * @param uri the URI of the new resource. + * @generated + */ + public HwTimingResourceImpl(URI uri) { + super(uri); + } + +} //HwTimingResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/util/HwTimingSwitch.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/util/HwTimingSwitch.java new file mode 100644 index 00000000000..80ce7b6c333 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/util/HwTimingSwitch.java @@ -0,0 +1,240 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwTiming.util; + +import java.util.List; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.*; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.TimingResource; + +/** + * + * 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.MARTE_DesignModel.HRM.HwLogical.HwTiming.HwTimingPackage + * @generated + */ +public class HwTimingSwitch { + /** + * The cached model package + * + * + * @generated + */ + protected static HwTimingPackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public HwTimingSwitch() { + if (modelPackage == null) { + modelPackage = HwTimingPackage.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 HwTimingPackage.HW_TIMING_RESOURCE: { + HwTimingResource hwTimingResource = (HwTimingResource)theEObject; + T result = caseHwTimingResource(hwTimingResource); + if (result == null) result = caseHwResource(hwTimingResource); + if (result == null) result = caseTimingResource(hwTimingResource); + if (result == null) result = caseResource(hwTimingResource); + if (result == null) result = defaultCase(theEObject); + return result; + } + case HwTimingPackage.HW_CLOCK: { + HwClock hwClock = (HwClock)theEObject; + T result = caseHwClock(hwClock); + if (result == null) result = caseHwTimingResource(hwClock); + if (result == null) result = caseHwResource(hwClock); + if (result == null) result = caseTimingResource(hwClock); + if (result == null) result = caseResource(hwClock); + if (result == null) result = defaultCase(theEObject); + return result; + } + case HwTimingPackage.HW_TIMER: { + HwTimer hwTimer = (HwTimer)theEObject; + T result = caseHwTimer(hwTimer); + if (result == null) result = caseHwTimingResource(hwTimer); + if (result == null) result = caseHwResource(hwTimer); + if (result == null) result = caseTimingResource(hwTimer); + if (result == null) result = caseResource(hwTimer); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Resource'. + * + * 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 'Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHwTimingResource(HwTimingResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Hw 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 'Hw Clock'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHwClock(HwClock object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Hw Timer'. + * + * 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 'Hw Timer'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHwTimer(HwTimer object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Resource'. + * + * 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 'Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseResource(Resource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Hw Resource'. + * + * 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 'Hw Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHwResource(HwResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Timing Resource'. + * + * 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 'Timing Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseTimingResource(TimingResource 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; + } + +} //HwTimingSwitch diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/util/HwTimingXMLProcessor.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/util/HwTimingXMLProcessor.java new file mode 100644 index 00000000000..bf12d838f03 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwLogical/HwTiming/util/HwTimingXMLProcessor.java @@ -0,0 +1,61 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwLogical.HwTiming.util; + +import java.util.Map; + +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.xmi.util.XMLProcessor; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwLogical.HwTiming.HwTimingPackage; + +/** + * This class contains helper methods to serialize and deserialize XML documents + * + * + * @generated + */ +public class HwTimingXMLProcessor extends XMLProcessor { + + /** + * Public constructor to instantiate the helper. + * + * + * @generated + */ + public HwTimingXMLProcessor() { + super((EPackage.Registry.INSTANCE)); + HwTimingPackage.eINSTANCE.eClass(); + } + + /** + * Register for "*" and "xml" file extensions the HwTimingResourceFactoryImpl factory. + * + * + * @generated + */ + @Override + protected Map getRegistrations() { + if (registrations == null) { + super.getRegistrations(); + registrations.put(XML_EXTENSION, new HwTimingResourceFactoryImpl()); + registrations.put(STAR_EXTENSION, new HwTimingResourceFactoryImpl()); + } + return registrations; + } + +} //HwTimingXMLProcessor diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/ComponentKind.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/ComponentKind.java new file mode 100644 index 00000000000..e3e9b61e950 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/ComponentKind.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.MARTE_DesignModel.HRM.HwPhysical.HwLayout; + +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 'Component Kind', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwLayoutPackage#getComponentKind() + * @model + * @generated + */ +public enum ComponentKind implements Enumerator { + /** + * The 'Card' literal object. + * + * + * @see #CARD_VALUE + * @generated + * @ordered + */ + CARD(0, "card", "card"), + + /** + * The 'Channel' literal object. + * + * + * @see #CHANNEL_VALUE + * @generated + * @ordered + */ + CHANNEL(1, "channel", "channel"), + + /** + * The 'Chip' literal object. + * + * + * @see #CHIP_VALUE + * @generated + * @ordered + */ + CHIP(2, "chip", "chip"), + + /** + * The 'Port' literal object. + * + * + * @see #PORT_VALUE + * @generated + * @ordered + */ + PORT(3, "port", "port"), + + /** + * The 'Unit' literal object. + * + * + * @see #UNIT_VALUE + * @generated + * @ordered + */ + UNIT(4, "unit", "unit"), + + /** + * The 'Other' literal object. + * + * + * @see #OTHER_VALUE + * @generated + * @ordered + */ + OTHER(5, "other", "other"), + + /** + * The 'Undef' literal object. + * + * + * @see #UNDEF_VALUE + * @generated + * @ordered + */ + UNDEF(6, "undef", "undef"); + + /** + * The 'Card' literal value. + * + *

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

+ * + * @see #CARD + * @model name="card" + * @generated + * @ordered + */ + public static final int CARD_VALUE = 0; + + /** + * The 'Channel' literal value. + * + *

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

+ * + * @see #CHANNEL + * @model name="channel" + * @generated + * @ordered + */ + public static final int CHANNEL_VALUE = 1; + + /** + * The 'Chip' literal value. + * + *

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

+ * + * @see #CHIP + * @model name="chip" + * @generated + * @ordered + */ + public static final int CHIP_VALUE = 2; + + /** + * The 'Port' literal value. + * + *

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

+ * + * @see #PORT + * @model name="port" + * @generated + * @ordered + */ + public static final int PORT_VALUE = 3; + + /** + * The 'Unit' literal value. + * + *

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

+ * + * @see #UNIT + * @model name="unit" + * @generated + * @ordered + */ + public static final int UNIT_VALUE = 4; + + /** + * 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 = 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; + + /** + * An array of all the 'Component Kind' enumerators. + * + * + * @generated + */ + private static final ComponentKind[] VALUES_ARRAY = + new ComponentKind[] { + CARD, + CHANNEL, + CHIP, + PORT, + UNIT, + OTHER, + UNDEF, + }; + + /** + * A public read-only list of all the 'Component Kind' enumerators. + * + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Component Kind' literal with the specified literal value. + * + * + * @generated + */ + public static ComponentKind get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + ComponentKind result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Component Kind' literal with the specified name. + * + * + * @generated + */ + public static ComponentKind getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + ComponentKind result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Component Kind' literal with the specified integer value. + * + * + * @generated + */ + public static ComponentKind get(int value) { + switch (value) { + case CARD_VALUE: return CARD; + case CHANNEL_VALUE: return CHANNEL; + case CHIP_VALUE: return CHIP; + case PORT_VALUE: return PORT; + case UNIT_VALUE: return UNIT; + case OTHER_VALUE: return OTHER; + case UNDEF_VALUE: return UNDEF; + } + 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 ComponentKind(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; + } + +} //ComponentKind diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/ComponentState.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/ComponentState.java new file mode 100644 index 00000000000..b7417329352 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/ComponentState.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.MARTE_DesignModel.HRM.HwPhysical.HwLayout; + +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 'Component State', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwLayoutPackage#getComponentState() + * @model + * @generated + */ +public enum ComponentState implements Enumerator { + /** + * The 'Operating' literal object. + * + * + * @see #OPERATING_VALUE + * @generated + * @ordered + */ + OPERATING(0, "operating", "operating"), + + /** + * The 'Storage' literal object. + * + * + * @see #STORAGE_VALUE + * @generated + * @ordered + */ + STORAGE(1, "storage", "storage"), + + /** + * The 'Other' literal object. + * + * + * @see #OTHER_VALUE + * @generated + * @ordered + */ + OTHER(2, "other", "other"), + + /** + * The 'Undef' literal object. + * + * + * @see #UNDEF_VALUE + * @generated + * @ordered + */ + UNDEF(3, "undef", "undef"); + + /** + * The 'Operating' literal value. + * + *

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

+ * + * @see #OPERATING + * @model name="operating" + * @generated + * @ordered + */ + public static final int OPERATING_VALUE = 0; + + /** + * The 'Storage' literal value. + * + *

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

+ * + * @see #STORAGE + * @model name="storage" + * @generated + * @ordered + */ + public static final int STORAGE_VALUE = 1; + + /** + * 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 = 2; + + /** + * 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 = 3; + + /** + * An array of all the 'Component State' enumerators. + * + * + * @generated + */ + private static final ComponentState[] VALUES_ARRAY = + new ComponentState[] { + OPERATING, + STORAGE, + OTHER, + UNDEF, + }; + + /** + * A public read-only list of all the 'Component State' enumerators. + * + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Component State' literal with the specified literal value. + * + * + * @generated + */ + public static ComponentState get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + ComponentState result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Component State' literal with the specified name. + * + * + * @generated + */ + public static ComponentState getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + ComponentState result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Component State' literal with the specified integer value. + * + * + * @generated + */ + public static ComponentState get(int value) { + switch (value) { + case OPERATING_VALUE: return OPERATING; + case STORAGE_VALUE: return STORAGE; + case OTHER_VALUE: return OTHER; + case UNDEF_VALUE: return UNDEF; + } + 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 ComponentState(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; + } + +} //ComponentState diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/ConditionType.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/ConditionType.java new file mode 100644 index 00000000000..c0c5eb7197e --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/ConditionType.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.MARTE_DesignModel.HRM.HwPhysical.HwLayout; + +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 'Condition Type', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwLayoutPackage#getConditionType() + * @model + * @generated + */ +public enum ConditionType implements Enumerator { + /** + * The 'Temperature' literal object. + * + * + * @see #TEMPERATURE_VALUE + * @generated + * @ordered + */ + TEMPERATURE(0, "temperature", "temperature"), + + /** + * The 'Humidity' literal object. + * + * + * @see #HUMIDITY_VALUE + * @generated + * @ordered + */ + HUMIDITY(1, "humidity", "humidity"), + + /** + * The 'Altitude' literal object. + * + * + * @see #ALTITUDE_VALUE + * @generated + * @ordered + */ + ALTITUDE(2, "altitude", "altitude"), + + /** + * The 'Vibration' literal object. + * + * + * @see #VIBRATION_VALUE + * @generated + * @ordered + */ + VIBRATION(3, "vibration", "vibration"), + + /** + * The 'Shock' literal object. + * + * + * @see #SHOCK_VALUE + * @generated + * @ordered + */ + SHOCK(4, "shock", "shock"), + + /** + * The 'Other' literal object. + * + * + * @see #OTHER_VALUE + * @generated + * @ordered + */ + OTHER(5, "other", "other"), + + /** + * The 'Undef' literal object. + * + * + * @see #UNDEF_VALUE + * @generated + * @ordered + */ + UNDEF(6, "undef", "undef"); + + /** + * The 'Temperature' literal value. + * + *

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

+ * + * @see #TEMPERATURE + * @model name="temperature" + * @generated + * @ordered + */ + public static final int TEMPERATURE_VALUE = 0; + + /** + * The 'Humidity' literal value. + * + *

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

+ * + * @see #HUMIDITY + * @model name="humidity" + * @generated + * @ordered + */ + public static final int HUMIDITY_VALUE = 1; + + /** + * The 'Altitude' literal value. + * + *

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

+ * + * @see #ALTITUDE + * @model name="altitude" + * @generated + * @ordered + */ + public static final int ALTITUDE_VALUE = 2; + + /** + * The 'Vibration' literal value. + * + *

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

+ * + * @see #VIBRATION + * @model name="vibration" + * @generated + * @ordered + */ + public static final int VIBRATION_VALUE = 3; + + /** + * The 'Shock' literal value. + * + *

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

+ * + * @see #SHOCK + * @model name="shock" + * @generated + * @ordered + */ + public static final int SHOCK_VALUE = 4; + + /** + * 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 = 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; + + /** + * An array of all the 'Condition Type' enumerators. + * + * + * @generated + */ + private static final ConditionType[] VALUES_ARRAY = + new ConditionType[] { + TEMPERATURE, + HUMIDITY, + ALTITUDE, + VIBRATION, + SHOCK, + OTHER, + UNDEF, + }; + + /** + * A public read-only list of all the 'Condition Type' enumerators. + * + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Condition Type' literal with the specified literal value. + * + * + * @generated + */ + public static ConditionType get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + ConditionType result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Condition Type' literal with the specified name. + * + * + * @generated + */ + public static ConditionType getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + ConditionType result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Condition Type' literal with the specified integer value. + * + * + * @generated + */ + public static ConditionType get(int value) { + switch (value) { + case TEMPERATURE_VALUE: return TEMPERATURE; + case HUMIDITY_VALUE: return HUMIDITY; + case ALTITUDE_VALUE: return ALTITUDE; + case VIBRATION_VALUE: return VIBRATION; + case SHOCK_VALUE: return SHOCK; + case OTHER_VALUE: return OTHER; + case UNDEF_VALUE: return UNDEF; + } + 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 ConditionType(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; + } + +} //ConditionType diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/HwComponent.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/HwComponent.java new file mode 100644 index 00000000000..b6207b4f669 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/HwComponent.java @@ -0,0 +1,331 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwPhysical.HwLayout; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResourceService; + +/** + * + * A representation of the model object 'Hw Component'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent#getKind Kind}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent#getDimensions Dimensions}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent#getArea Area}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent#getPosition Position}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent#getGrid Grid}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent#getNbPins Nb Pins}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent#getWeight Weight}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent#getPrice Price}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent#getR_Conditions RConditions}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent#getPoweredServices Powered Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent#getStaticConsumption Static Consumption}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent#getStaticDissipation Static Dissipation}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent#getSubComponents Sub Components}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwLayoutPackage#getHwComponent() + * @model + * @generated + */ +public interface HwComponent extends HwResource { + /** + * Returns the value of the 'Kind' attribute. + * The literals are from the enumeration {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.ComponentKind}. + * + *

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

+ * + * @return the value of the 'Kind' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.ComponentKind + * @see #setKind(ComponentKind) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwLayoutPackage#getHwComponent_Kind() + * @model unique="false" ordered="false" + * @generated + */ + ComponentKind getKind(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent#getKind Kind}' attribute. + * + * + * @param value the new value of the 'Kind' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.ComponentKind + * @see #getKind() + * @generated + */ + void setKind(ComponentKind value); + + /** + * Returns the value of the 'Dimensions' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Dimensions' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Dimensions' attribute list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwLayoutPackage#getHwComponent_Dimensions() + * @model dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Length" upper="3" ordered="false" + * @generated + */ + EList getDimensions(); + + /** + * Returns the value of the 'Area' attribute. + * + *

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

+ * + * @return the value of the 'Area' attribute. + * @see #setArea(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwLayoutPackage#getHwComponent_Area() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Area" volatile="true" derived="true" ordered="false" + * @generated + */ + String getArea(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent#getArea Area}' attribute. + * + * + * @param value the new value of the 'Area' attribute. + * @see #getArea() + * @generated + */ + void setArea(String value); + + /** + * Returns the value of the 'Position' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Position' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Position' attribute list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwLayoutPackage#getHwComponent_Position() + * @model dataType="org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.NFP_NaturalInterval" upper="2" ordered="false" + * @generated + */ + EList getPosition(); + + /** + * Returns the value of the 'Grid' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Grid' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Grid' attribute list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwLayoutPackage#getHwComponent_Grid() + * @model dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Natural" upper="2" ordered="false" + * @generated + */ + EList getGrid(); + + /** + * Returns the value of the 'Nb Pins' attribute. + * + *

+ * If the meaning of the 'Nb Pins' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Nb Pins' attribute. + * @see #setNbPins(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwLayoutPackage#getHwComponent_NbPins() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Natural" ordered="false" + * @generated + */ + String getNbPins(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent#getNbPins Nb Pins}' attribute. + * + * + * @param value the new value of the 'Nb Pins' attribute. + * @see #getNbPins() + * @generated + */ + void setNbPins(String value); + + /** + * Returns the value of the 'Weight' attribute. + * + *

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

+ * + * @return the value of the 'Weight' attribute. + * @see #setWeight(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwLayoutPackage#getHwComponent_Weight() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Real" ordered="false" + * @generated + */ + String getWeight(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent#getWeight Weight}' attribute. + * + * + * @param value the new value of the 'Weight' attribute. + * @see #getWeight() + * @generated + */ + void setWeight(String value); + + /** + * Returns the value of the 'Price' attribute. + * + *

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

+ * + * @return the value of the 'Price' attribute. + * @see #setPrice(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwLayoutPackage#getHwComponent_Price() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Price" ordered="false" + * @generated + */ + String getPrice(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent#getPrice Price}' attribute. + * + * + * @param value the new value of the 'Price' attribute. + * @see #getPrice() + * @generated + */ + void setPrice(String value); + + /** + * Returns the value of the 'RConditions' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'RConditions' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'RConditions' attribute list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwLayoutPackage#getHwComponent_R_Conditions() + * @model dataType="org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.Env_Condition" ordered="false" + * @generated + */ + EList getR_Conditions(); + + /** + * Returns the value of the 'Powered Services' containment reference list. + * The list contents are of type {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResourceService}. + * + *

+ * If the meaning of the 'Powered Services' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Powered Services' containment reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwLayoutPackage#getHwComponent_PoweredServices() + * @model containment="true" ordered="false" + * @generated + */ + EList getPoweredServices(); + + /** + * Returns the value of the 'Static Consumption' attribute. + * + *

+ * If the meaning of the 'Static Consumption' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Static Consumption' attribute. + * @see #setStaticConsumption(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwLayoutPackage#getHwComponent_StaticConsumption() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Power" ordered="false" + * @generated + */ + String getStaticConsumption(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent#getStaticConsumption Static Consumption}' attribute. + * + * + * @param value the new value of the 'Static Consumption' attribute. + * @see #getStaticConsumption() + * @generated + */ + void setStaticConsumption(String value); + + /** + * Returns the value of the 'Static Dissipation' attribute. + * + *

+ * If the meaning of the 'Static Dissipation' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Static Dissipation' attribute. + * @see #setStaticDissipation(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwLayoutPackage#getHwComponent_StaticDissipation() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Power" ordered="false" + * @generated + */ + String getStaticDissipation(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent#getStaticDissipation Static Dissipation}' attribute. + * + * + * @param value the new value of the 'Static Dissipation' attribute. + * @see #getStaticDissipation() + * @generated + */ + void setStaticDissipation(String value); + + /** + * Returns the value of the 'Sub Components' reference list. + * The list contents are of type {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent}. + * + *

+ * If the meaning of the 'Sub Components' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Sub Components' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwLayoutPackage#getHwComponent_SubComponents() + * @model ordered="false" + * @generated + */ + EList getSubComponents(); + +} // HwComponent diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/HwLayoutFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/HwLayoutFactory.java new file mode 100644 index 00000000000..e0c6990bd94 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/HwLayoutFactory.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.MARTE_DesignModel.HRM.HwPhysical.HwLayout; + +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.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwLayoutPackage + * @generated + */ +public interface HwLayoutFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + HwLayoutFactory eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.impl.HwLayoutFactoryImpl.init(); + + /** + * Returns a new object of class 'Hw Component'. + * + * + * @return a new object of class 'Hw Component'. + * @generated + */ + HwComponent createHwComponent(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + HwLayoutPackage getHwLayoutPackage(); + +} //HwLayoutFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/HwLayoutPackage.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/HwLayoutPackage.java new file mode 100644 index 00000000000..a498d6d2150 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/HwLayoutPackage.java @@ -0,0 +1,748 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwPhysical.HwLayout; + +import org.eclipse.emf.ecore.EAttribute; +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.EReference; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwGeneralPackage; + +/** + * + * 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.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwLayoutFactory + * @model kind="package" + * @generated + */ +public interface HwLayoutPackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "HwLayout"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "http://www.eclipse.org/papyrus/HwLayout/1"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "HwLayout"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + HwLayoutPackage eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.impl.HwLayoutPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.impl.HwComponentImpl Hw Component}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.impl.HwComponentImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.impl.HwLayoutPackageImpl#getHwComponent() + * @generated + */ + int HW_COMPONENT = 0; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int HW_COMPONENT__RES_MULT = HwGeneralPackage.HW_RESOURCE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int HW_COMPONENT__IS_PROTECTED = HwGeneralPackage.HW_RESOURCE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int HW_COMPONENT__IS_ACTIVE = HwGeneralPackage.HW_RESOURCE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int HW_COMPONENT__BASE_PROPERTY = HwGeneralPackage.HW_RESOURCE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int HW_COMPONENT__BASE_INSTANCE_SPECIFICATION = HwGeneralPackage.HW_RESOURCE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int HW_COMPONENT__BASE_CLASSIFIER = HwGeneralPackage.HW_RESOURCE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int HW_COMPONENT__BASE_LIFELINE = HwGeneralPackage.HW_RESOURCE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int HW_COMPONENT__BASE_CONNECTABLE_ELEMENT = HwGeneralPackage.HW_RESOURCE__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int HW_COMPONENT__DESCRIPTION = HwGeneralPackage.HW_RESOURCE__DESCRIPTION; + + /** + * The feature id for the 'PHW Services' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_COMPONENT__PHW_SERVICES = HwGeneralPackage.HW_RESOURCE__PHW_SERVICES; + + /** + * The feature id for the 'RHW Services' reference list. + * + * + * @generated + * @ordered + */ + int HW_COMPONENT__RHW_SERVICES = HwGeneralPackage.HW_RESOURCE__RHW_SERVICES; + + /** + * The feature id for the 'Owned HW' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_COMPONENT__OWNED_HW = HwGeneralPackage.HW_RESOURCE__OWNED_HW; + + /** + * The feature id for the 'End Points' reference list. + * + * + * @generated + * @ordered + */ + int HW_COMPONENT__END_POINTS = HwGeneralPackage.HW_RESOURCE__END_POINTS; + + /** + * The feature id for the 'Frequency' attribute. + * + * + * @generated + * @ordered + */ + int HW_COMPONENT__FREQUENCY = HwGeneralPackage.HW_RESOURCE__FREQUENCY; + + /** + * The feature id for the 'Kind' attribute. + * + * + * @generated + * @ordered + */ + int HW_COMPONENT__KIND = HwGeneralPackage.HW_RESOURCE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Dimensions' attribute list. + * + * + * @generated + * @ordered + */ + int HW_COMPONENT__DIMENSIONS = HwGeneralPackage.HW_RESOURCE_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Area' attribute. + * + * + * @generated + * @ordered + */ + int HW_COMPONENT__AREA = HwGeneralPackage.HW_RESOURCE_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Position' attribute list. + * + * + * @generated + * @ordered + */ + int HW_COMPONENT__POSITION = HwGeneralPackage.HW_RESOURCE_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Grid' attribute list. + * + * + * @generated + * @ordered + */ + int HW_COMPONENT__GRID = HwGeneralPackage.HW_RESOURCE_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Nb Pins' attribute. + * + * + * @generated + * @ordered + */ + int HW_COMPONENT__NB_PINS = HwGeneralPackage.HW_RESOURCE_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Weight' attribute. + * + * + * @generated + * @ordered + */ + int HW_COMPONENT__WEIGHT = HwGeneralPackage.HW_RESOURCE_FEATURE_COUNT + 6; + + /** + * The feature id for the 'Price' attribute. + * + * + * @generated + * @ordered + */ + int HW_COMPONENT__PRICE = HwGeneralPackage.HW_RESOURCE_FEATURE_COUNT + 7; + + /** + * The feature id for the 'RConditions' attribute list. + * + * + * @generated + * @ordered + */ + int HW_COMPONENT__RCONDITIONS = HwGeneralPackage.HW_RESOURCE_FEATURE_COUNT + 8; + + /** + * The feature id for the 'Powered Services' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_COMPONENT__POWERED_SERVICES = HwGeneralPackage.HW_RESOURCE_FEATURE_COUNT + 9; + + /** + * The feature id for the 'Static Consumption' attribute. + * + * + * @generated + * @ordered + */ + int HW_COMPONENT__STATIC_CONSUMPTION = HwGeneralPackage.HW_RESOURCE_FEATURE_COUNT + 10; + + /** + * The feature id for the 'Static Dissipation' attribute. + * + * + * @generated + * @ordered + */ + int HW_COMPONENT__STATIC_DISSIPATION = HwGeneralPackage.HW_RESOURCE_FEATURE_COUNT + 11; + + /** + * The feature id for the 'Sub Components' reference list. + * + * + * @generated + * @ordered + */ + int HW_COMPONENT__SUB_COMPONENTS = HwGeneralPackage.HW_RESOURCE_FEATURE_COUNT + 12; + + /** + * The number of structural features of the 'Hw Component' class. + * + * + * @generated + * @ordered + */ + int HW_COMPONENT_FEATURE_COUNT = HwGeneralPackage.HW_RESOURCE_FEATURE_COUNT + 13; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.ComponentKind Component Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.ComponentKind + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.impl.HwLayoutPackageImpl#getComponentKind() + * @generated + */ + int COMPONENT_KIND = 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.ConditionType Condition Type}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.ConditionType + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.impl.HwLayoutPackageImpl#getConditionType() + * @generated + */ + int CONDITION_TYPE = 2; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.ComponentState Component State}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.ComponentState + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.impl.HwLayoutPackageImpl#getComponentState() + * @generated + */ + int COMPONENT_STATE = 3; + + /** + * The meta object id for the 'Env Condition' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.impl.HwLayoutPackageImpl#getEnv_Condition() + * @generated + */ + int ENV_CONDITION = 4; + + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent Hw Component}'. + * + * + * @return the meta object for class 'Hw Component'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent + * @generated + */ + EClass getHwComponent(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent#getKind Kind}'. + * + * + * @return the meta object for the attribute 'Kind'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent#getKind() + * @see #getHwComponent() + * @generated + */ + EAttribute getHwComponent_Kind(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent#getDimensions Dimensions}'. + * + * + * @return the meta object for the attribute list 'Dimensions'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent#getDimensions() + * @see #getHwComponent() + * @generated + */ + EAttribute getHwComponent_Dimensions(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent#getArea Area}'. + * + * + * @return the meta object for the attribute 'Area'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent#getArea() + * @see #getHwComponent() + * @generated + */ + EAttribute getHwComponent_Area(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent#getPosition Position}'. + * + * + * @return the meta object for the attribute list 'Position'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent#getPosition() + * @see #getHwComponent() + * @generated + */ + EAttribute getHwComponent_Position(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent#getGrid Grid}'. + * + * + * @return the meta object for the attribute list 'Grid'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent#getGrid() + * @see #getHwComponent() + * @generated + */ + EAttribute getHwComponent_Grid(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent#getNbPins Nb Pins}'. + * + * + * @return the meta object for the attribute 'Nb Pins'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent#getNbPins() + * @see #getHwComponent() + * @generated + */ + EAttribute getHwComponent_NbPins(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent#getWeight Weight}'. + * + * + * @return the meta object for the attribute 'Weight'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent#getWeight() + * @see #getHwComponent() + * @generated + */ + EAttribute getHwComponent_Weight(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent#getPrice Price}'. + * + * + * @return the meta object for the attribute 'Price'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent#getPrice() + * @see #getHwComponent() + * @generated + */ + EAttribute getHwComponent_Price(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent#getR_Conditions RConditions}'. + * + * + * @return the meta object for the attribute list 'RConditions'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent#getR_Conditions() + * @see #getHwComponent() + * @generated + */ + EAttribute getHwComponent_R_Conditions(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent#getPoweredServices Powered Services}'. + * + * + * @return the meta object for the containment reference list 'Powered Services'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent#getPoweredServices() + * @see #getHwComponent() + * @generated + */ + EReference getHwComponent_PoweredServices(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent#getStaticConsumption Static Consumption}'. + * + * + * @return the meta object for the attribute 'Static Consumption'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent#getStaticConsumption() + * @see #getHwComponent() + * @generated + */ + EAttribute getHwComponent_StaticConsumption(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent#getStaticDissipation Static Dissipation}'. + * + * + * @return the meta object for the attribute 'Static Dissipation'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent#getStaticDissipation() + * @see #getHwComponent() + * @generated + */ + EAttribute getHwComponent_StaticDissipation(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent#getSubComponents Sub Components}'. + * + * + * @return the meta object for the reference list 'Sub Components'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent#getSubComponents() + * @see #getHwComponent() + * @generated + */ + EReference getHwComponent_SubComponents(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.ComponentKind Component Kind}'. + * + * + * @return the meta object for enum 'Component Kind'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.ComponentKind + * @generated + */ + EEnum getComponentKind(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.ConditionType Condition Type}'. + * + * + * @return the meta object for enum 'Condition Type'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.ConditionType + * @generated + */ + EEnum getConditionType(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.ComponentState Component State}'. + * + * + * @return the meta object for enum 'Component State'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.ComponentState + * @generated + */ + EEnum getComponentState(); + + /** + * Returns the meta object for data type '{@link java.lang.String Env Condition}'. + * + * + * @return the meta object for data type 'Env Condition'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getEnv_Condition(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + HwLayoutFactory getHwLayoutFactory(); + + /** + * + * 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.MARTE_DesignModel.HRM.HwPhysical.HwLayout.impl.HwComponentImpl Hw Component}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.impl.HwComponentImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.impl.HwLayoutPackageImpl#getHwComponent() + * @generated + */ + EClass HW_COMPONENT = eINSTANCE.getHwComponent(); + + /** + * The meta object literal for the 'Kind' attribute feature. + * + * + * @generated + */ + EAttribute HW_COMPONENT__KIND = eINSTANCE.getHwComponent_Kind(); + + /** + * The meta object literal for the 'Dimensions' attribute list feature. + * + * + * @generated + */ + EAttribute HW_COMPONENT__DIMENSIONS = eINSTANCE.getHwComponent_Dimensions(); + + /** + * The meta object literal for the 'Area' attribute feature. + * + * + * @generated + */ + EAttribute HW_COMPONENT__AREA = eINSTANCE.getHwComponent_Area(); + + /** + * The meta object literal for the 'Position' attribute list feature. + * + * + * @generated + */ + EAttribute HW_COMPONENT__POSITION = eINSTANCE.getHwComponent_Position(); + + /** + * The meta object literal for the 'Grid' attribute list feature. + * + * + * @generated + */ + EAttribute HW_COMPONENT__GRID = eINSTANCE.getHwComponent_Grid(); + + /** + * The meta object literal for the 'Nb Pins' attribute feature. + * + * + * @generated + */ + EAttribute HW_COMPONENT__NB_PINS = eINSTANCE.getHwComponent_NbPins(); + + /** + * The meta object literal for the 'Weight' attribute feature. + * + * + * @generated + */ + EAttribute HW_COMPONENT__WEIGHT = eINSTANCE.getHwComponent_Weight(); + + /** + * The meta object literal for the 'Price' attribute feature. + * + * + * @generated + */ + EAttribute HW_COMPONENT__PRICE = eINSTANCE.getHwComponent_Price(); + + /** + * The meta object literal for the 'RConditions' attribute list feature. + * + * + * @generated + */ + EAttribute HW_COMPONENT__RCONDITIONS = eINSTANCE.getHwComponent_R_Conditions(); + + /** + * The meta object literal for the 'Powered Services' containment reference list feature. + * + * + * @generated + */ + EReference HW_COMPONENT__POWERED_SERVICES = eINSTANCE.getHwComponent_PoweredServices(); + + /** + * The meta object literal for the 'Static Consumption' attribute feature. + * + * + * @generated + */ + EAttribute HW_COMPONENT__STATIC_CONSUMPTION = eINSTANCE.getHwComponent_StaticConsumption(); + + /** + * The meta object literal for the 'Static Dissipation' attribute feature. + * + * + * @generated + */ + EAttribute HW_COMPONENT__STATIC_DISSIPATION = eINSTANCE.getHwComponent_StaticDissipation(); + + /** + * The meta object literal for the 'Sub Components' reference list feature. + * + * + * @generated + */ + EReference HW_COMPONENT__SUB_COMPONENTS = eINSTANCE.getHwComponent_SubComponents(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.ComponentKind Component Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.ComponentKind + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.impl.HwLayoutPackageImpl#getComponentKind() + * @generated + */ + EEnum COMPONENT_KIND = eINSTANCE.getComponentKind(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.ConditionType Condition Type}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.ConditionType + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.impl.HwLayoutPackageImpl#getConditionType() + * @generated + */ + EEnum CONDITION_TYPE = eINSTANCE.getConditionType(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.ComponentState Component State}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.ComponentState + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.impl.HwLayoutPackageImpl#getComponentState() + * @generated + */ + EEnum COMPONENT_STATE = eINSTANCE.getComponentState(); + + /** + * The meta object literal for the 'Env Condition' data type. + * + * + * @see java.lang.String + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.impl.HwLayoutPackageImpl#getEnv_Condition() + * @generated + */ + EDataType ENV_CONDITION = eINSTANCE.getEnv_Condition(); + + } + +} //HwLayoutPackage diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/impl/HwComponentImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/impl/HwComponentImpl.java new file mode 100644 index 00000000000..002a477bdc0 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/impl/HwComponentImpl.java @@ -0,0 +1,776 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwPhysical.HwLayout.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EDataTypeUniqueEList; +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.EObjectResolvingEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResourceService; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.impl.HwResourceImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.ComponentKind; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwLayoutPackage; +import org.eclipse.papyrus.MARTE.utils.MarteUtils; + +/** + * + * An implementation of the model object 'Hw Component'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.impl.HwComponentImpl#getKind Kind}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.impl.HwComponentImpl#getDimensions Dimensions}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.impl.HwComponentImpl#getArea Area}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.impl.HwComponentImpl#getPosition Position}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.impl.HwComponentImpl#getGrid Grid}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.impl.HwComponentImpl#getNbPins Nb Pins}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.impl.HwComponentImpl#getWeight Weight}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.impl.HwComponentImpl#getPrice Price}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.impl.HwComponentImpl#getR_Conditions RConditions}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.impl.HwComponentImpl#getPoweredServices Powered Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.impl.HwComponentImpl#getStaticConsumption Static Consumption}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.impl.HwComponentImpl#getStaticDissipation Static Dissipation}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.impl.HwComponentImpl#getSubComponents Sub Components}
  • + *
+ *

+ * + * @generated + */ +public class HwComponentImpl extends HwResourceImpl implements HwComponent { + /** + * The default value of the '{@link #getKind() Kind}' attribute. + * + * + * @see #getKind() + * @generated + * @ordered + */ + protected static final ComponentKind KIND_EDEFAULT = ComponentKind.CARD; + + /** + * The cached value of the '{@link #getKind() Kind}' attribute. + * + * + * @see #getKind() + * @generated + * @ordered + */ + protected ComponentKind kind = KIND_EDEFAULT; + + /** + * The cached value of the '{@link #getDimensions() Dimensions}' attribute list. + * + * + * @see #getDimensions() + * @generated + * @ordered + */ + protected EList dimensions; + + /** + * The default value of the '{@link #getArea() Area}' attribute. + * + * + * @see #getArea() + * @generated + * @ordered + */ + protected static final String AREA_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPosition() Position}' attribute list. + * + * + * @see #getPosition() + * @generated + * @ordered + */ + protected EList position; + + /** + * The cached value of the '{@link #getGrid() Grid}' attribute list. + * + * + * @see #getGrid() + * @generated + * @ordered + */ + protected EList grid; + + /** + * The default value of the '{@link #getNbPins() Nb Pins}' attribute. + * + * + * @see #getNbPins() + * @generated + * @ordered + */ + protected static final String NB_PINS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getNbPins() Nb Pins}' attribute. + * + * + * @see #getNbPins() + * @generated + * @ordered + */ + protected String nbPins = NB_PINS_EDEFAULT; + + /** + * The default value of the '{@link #getWeight() Weight}' attribute. + * + * + * @see #getWeight() + * @generated + * @ordered + */ + protected static final String WEIGHT_EDEFAULT = null; + + /** + * The cached value of the '{@link #getWeight() Weight}' attribute. + * + * + * @see #getWeight() + * @generated + * @ordered + */ + protected String weight = WEIGHT_EDEFAULT; + + /** + * The default value of the '{@link #getPrice() Price}' attribute. + * + * + * @see #getPrice() + * @generated + * @ordered + */ + protected static final String PRICE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPrice() Price}' attribute. + * + * + * @see #getPrice() + * @generated + * @ordered + */ + protected String price = PRICE_EDEFAULT; + + /** + * The cached value of the '{@link #getR_Conditions() RConditions}' attribute list. + * + * + * @see #getR_Conditions() + * @generated + * @ordered + */ + protected EList r_Conditions; + + /** + * The cached value of the '{@link #getPoweredServices() Powered Services}' containment reference list. + * + * + * @see #getPoweredServices() + * @generated + * @ordered + */ + protected EList poweredServices; + + /** + * The default value of the '{@link #getStaticConsumption() Static Consumption}' attribute. + * + * + * @see #getStaticConsumption() + * @generated + * @ordered + */ + protected static final String STATIC_CONSUMPTION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getStaticConsumption() Static Consumption}' attribute. + * + * + * @see #getStaticConsumption() + * @generated + * @ordered + */ + protected String staticConsumption = STATIC_CONSUMPTION_EDEFAULT; + + /** + * The default value of the '{@link #getStaticDissipation() Static Dissipation}' attribute. + * + * + * @see #getStaticDissipation() + * @generated + * @ordered + */ + protected static final String STATIC_DISSIPATION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getStaticDissipation() Static Dissipation}' attribute. + * + * + * @see #getStaticDissipation() + * @generated + * @ordered + */ + protected String staticDissipation = STATIC_DISSIPATION_EDEFAULT; + + /** + * The cached value of the '{@link #getSubComponents() Sub Components}' reference list. + * + * + * @see #getSubComponents() + * @generated + * @ordered + */ + protected EList subComponents; + + /** + * + * + * @generated + */ + protected HwComponentImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return HwLayoutPackage.Literals.HW_COMPONENT; + } + + /** + * + * + * @generated + */ + public ComponentKind getKind() { + return kind; + } + + /** + * + * + * @generated + */ + public void setKind(ComponentKind newKind) { + ComponentKind oldKind = kind; + kind = newKind == null ? KIND_EDEFAULT : newKind; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwLayoutPackage.HW_COMPONENT__KIND, oldKind, kind)); + } + + /** + * + * + * @generated + */ + public EList getDimensions() { + if (dimensions == null) { + dimensions = new EDataTypeUniqueEList(String.class, this, HwLayoutPackage.HW_COMPONENT__DIMENSIONS); + } + return dimensions; + } + + /** + * + * + * @generated NOT + */ + public String getArea() { + // TODO: implement this method to return the 'Area' attribute + // Ensure that you remove @generated or mark it @generated NOT + // throw new UnsupportedOperationException(); + + float area = 0; + int dimSize = getDimensions().size(); + if(dimSize >= 2) { + float dim1Value = Float.valueOf(MarteUtils.getValueFromTuple(getDimensions().get(0), "value")); + String dim1Unit = MarteUtils.getValueFromTuple(getDimensions().get(0), "unit"); + float dim2Value = Float.valueOf(MarteUtils.getValueFromTuple(getDimensions().get(1), "value")); + String dim2Unit = MarteUtils.getValueFromTuple(getDimensions().get(1), "unit"); + + if(dimSize == 2) { + if(dim1Unit.equals(dim2Unit)) { + return "{unit="+dim1Unit+"2,value="+String.valueOf(dim1Value*dim2Value)+"}"; + } + + else { + return "{unit="+dim1Unit+"2,value="+String.valueOf(dim1Value*dim2Value*10)+"}"; + } + } + + else { + float dim3Value = Float.valueOf(MarteUtils.getValueFromTuple(getDimensions().get(2), "value")); + String dim3Unit = MarteUtils.getValueFromTuple(getDimensions().get(2), "unit"); + + if(dim1Unit.equals(dim2Unit) && dim1Unit.equals(dim3Unit)) { + return "{unit="+dim1Unit+"2,value="+String.valueOf(2*dim1Value*dim2Value+2*dim1Value*dim3Value+2*dim2Value*dim3Value)+"}"; + } + + else if(dim1Unit.equals(dim2Unit) && !dim1Unit.equals(dim3Unit) && dim1Unit.equals("mm")) { + return "{unit="+dim1Unit+"2,value="+String.valueOf(2*dim1Value*dim2Value+2*dim1Value*dim3Value*10+2*dim2Value*dim3Value*10)+"}"; + } + + else if(dim1Unit.equals(dim2Unit) && !dim1Unit.equals(dim3Unit) && dim1Unit.equals("cm")){ + return "{unit="+dim3Unit+"2,value="+String.valueOf(2*dim1Value*dim2Value*100+2*dim1Value*dim3Value*10+2*dim2Value*dim3Value*10)+"}"; + } + + else if(dim1Unit.equals(dim3Unit) && !dim1Unit.equals(dim2Unit) && dim1Unit.equals("mm")) { + return "{unit="+dim1Unit+"2,value="+String.valueOf(2*dim1Value*dim2Value*10+2*dim1Value*dim3Value+2*dim2Value*dim3Value*10)+"}"; + } + + else if(dim1Unit.equals(dim3Unit) && !dim1Unit.equals(dim2Unit) && dim1Unit.equals("cm")) { + return "{unit="+dim3Unit+"2,value="+String.valueOf(2*dim1Value*dim2Value*10+2*dim1Value*dim3Value*100+2*dim2Value*dim3Value*10)+"}"; + } + } + } + return String.valueOf(area); + + } + + /** + * + * + * @generated + */ + public void setArea(String newArea) { + // TODO: implement this method to set the 'Area' attribute + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public EList getPosition() { + if (position == null) { + position = new EDataTypeUniqueEList(String.class, this, HwLayoutPackage.HW_COMPONENT__POSITION); + } + return position; + } + + /** + * + * + * @generated + */ + public EList getGrid() { + if (grid == null) { + grid = new EDataTypeUniqueEList(String.class, this, HwLayoutPackage.HW_COMPONENT__GRID); + } + return grid; + } + + /** + * + * + * @generated + */ + public String getNbPins() { + return nbPins; + } + + /** + * + * + * @generated + */ + public void setNbPins(String newNbPins) { + String oldNbPins = nbPins; + nbPins = newNbPins; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwLayoutPackage.HW_COMPONENT__NB_PINS, oldNbPins, nbPins)); + } + + /** + * + * + * @generated + */ + public String getWeight() { + return weight; + } + + /** + * + * + * @generated + */ + public void setWeight(String newWeight) { + String oldWeight = weight; + weight = newWeight; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwLayoutPackage.HW_COMPONENT__WEIGHT, oldWeight, weight)); + } + + /** + * + * + * @generated + */ + public String getPrice() { + return price; + } + + /** + * + * + * @generated + */ + public void setPrice(String newPrice) { + String oldPrice = price; + price = newPrice; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwLayoutPackage.HW_COMPONENT__PRICE, oldPrice, price)); + } + + /** + * + * + * @generated + */ + public EList getR_Conditions() { + if (r_Conditions == null) { + r_Conditions = new EDataTypeUniqueEList(String.class, this, HwLayoutPackage.HW_COMPONENT__RCONDITIONS); + } + return r_Conditions; + } + + /** + * + * + * @generated + */ + public EList getPoweredServices() { + if (poweredServices == null) { + poweredServices = new EObjectContainmentEList(HwResourceService.class, this, HwLayoutPackage.HW_COMPONENT__POWERED_SERVICES); + } + return poweredServices; + } + + /** + * + * + * @generated + */ + public String getStaticConsumption() { + return staticConsumption; + } + + /** + * + * + * @generated + */ + public void setStaticConsumption(String newStaticConsumption) { + String oldStaticConsumption = staticConsumption; + staticConsumption = newStaticConsumption; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwLayoutPackage.HW_COMPONENT__STATIC_CONSUMPTION, oldStaticConsumption, staticConsumption)); + } + + /** + * + * + * @generated + */ + public String getStaticDissipation() { + return staticDissipation; + } + + /** + * + * + * @generated + */ + public void setStaticDissipation(String newStaticDissipation) { + String oldStaticDissipation = staticDissipation; + staticDissipation = newStaticDissipation; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwLayoutPackage.HW_COMPONENT__STATIC_DISSIPATION, oldStaticDissipation, staticDissipation)); + } + + /** + * + * + * @generated + */ + public EList getSubComponents() { + if (subComponents == null) { + subComponents = new EObjectResolvingEList(HwComponent.class, this, HwLayoutPackage.HW_COMPONENT__SUB_COMPONENTS); + } + return subComponents; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case HwLayoutPackage.HW_COMPONENT__POWERED_SERVICES: + return ((InternalEList)getPoweredServices()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case HwLayoutPackage.HW_COMPONENT__KIND: + return getKind(); + case HwLayoutPackage.HW_COMPONENT__DIMENSIONS: + return getDimensions(); + case HwLayoutPackage.HW_COMPONENT__AREA: + return getArea(); + case HwLayoutPackage.HW_COMPONENT__POSITION: + return getPosition(); + case HwLayoutPackage.HW_COMPONENT__GRID: + return getGrid(); + case HwLayoutPackage.HW_COMPONENT__NB_PINS: + return getNbPins(); + case HwLayoutPackage.HW_COMPONENT__WEIGHT: + return getWeight(); + case HwLayoutPackage.HW_COMPONENT__PRICE: + return getPrice(); + case HwLayoutPackage.HW_COMPONENT__RCONDITIONS: + return getR_Conditions(); + case HwLayoutPackage.HW_COMPONENT__POWERED_SERVICES: + return getPoweredServices(); + case HwLayoutPackage.HW_COMPONENT__STATIC_CONSUMPTION: + return getStaticConsumption(); + case HwLayoutPackage.HW_COMPONENT__STATIC_DISSIPATION: + return getStaticDissipation(); + case HwLayoutPackage.HW_COMPONENT__SUB_COMPONENTS: + return getSubComponents(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case HwLayoutPackage.HW_COMPONENT__KIND: + setKind((ComponentKind)newValue); + return; + case HwLayoutPackage.HW_COMPONENT__DIMENSIONS: + getDimensions().clear(); + getDimensions().addAll((Collection)newValue); + return; + case HwLayoutPackage.HW_COMPONENT__AREA: + setArea((String)newValue); + return; + case HwLayoutPackage.HW_COMPONENT__POSITION: + getPosition().clear(); + getPosition().addAll((Collection)newValue); + return; + case HwLayoutPackage.HW_COMPONENT__GRID: + getGrid().clear(); + getGrid().addAll((Collection)newValue); + return; + case HwLayoutPackage.HW_COMPONENT__NB_PINS: + setNbPins((String)newValue); + return; + case HwLayoutPackage.HW_COMPONENT__WEIGHT: + setWeight((String)newValue); + return; + case HwLayoutPackage.HW_COMPONENT__PRICE: + setPrice((String)newValue); + return; + case HwLayoutPackage.HW_COMPONENT__RCONDITIONS: + getR_Conditions().clear(); + getR_Conditions().addAll((Collection)newValue); + return; + case HwLayoutPackage.HW_COMPONENT__POWERED_SERVICES: + getPoweredServices().clear(); + getPoweredServices().addAll((Collection)newValue); + return; + case HwLayoutPackage.HW_COMPONENT__STATIC_CONSUMPTION: + setStaticConsumption((String)newValue); + return; + case HwLayoutPackage.HW_COMPONENT__STATIC_DISSIPATION: + setStaticDissipation((String)newValue); + return; + case HwLayoutPackage.HW_COMPONENT__SUB_COMPONENTS: + getSubComponents().clear(); + getSubComponents().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case HwLayoutPackage.HW_COMPONENT__KIND: + setKind(KIND_EDEFAULT); + return; + case HwLayoutPackage.HW_COMPONENT__DIMENSIONS: + getDimensions().clear(); + return; + case HwLayoutPackage.HW_COMPONENT__AREA: + setArea(AREA_EDEFAULT); + return; + case HwLayoutPackage.HW_COMPONENT__POSITION: + getPosition().clear(); + return; + case HwLayoutPackage.HW_COMPONENT__GRID: + getGrid().clear(); + return; + case HwLayoutPackage.HW_COMPONENT__NB_PINS: + setNbPins(NB_PINS_EDEFAULT); + return; + case HwLayoutPackage.HW_COMPONENT__WEIGHT: + setWeight(WEIGHT_EDEFAULT); + return; + case HwLayoutPackage.HW_COMPONENT__PRICE: + setPrice(PRICE_EDEFAULT); + return; + case HwLayoutPackage.HW_COMPONENT__RCONDITIONS: + getR_Conditions().clear(); + return; + case HwLayoutPackage.HW_COMPONENT__POWERED_SERVICES: + getPoweredServices().clear(); + return; + case HwLayoutPackage.HW_COMPONENT__STATIC_CONSUMPTION: + setStaticConsumption(STATIC_CONSUMPTION_EDEFAULT); + return; + case HwLayoutPackage.HW_COMPONENT__STATIC_DISSIPATION: + setStaticDissipation(STATIC_DISSIPATION_EDEFAULT); + return; + case HwLayoutPackage.HW_COMPONENT__SUB_COMPONENTS: + getSubComponents().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case HwLayoutPackage.HW_COMPONENT__KIND: + return kind != KIND_EDEFAULT; + case HwLayoutPackage.HW_COMPONENT__DIMENSIONS: + return dimensions != null && !dimensions.isEmpty(); + case HwLayoutPackage.HW_COMPONENT__AREA: + return AREA_EDEFAULT == null ? getArea() != null : !AREA_EDEFAULT.equals(getArea()); + case HwLayoutPackage.HW_COMPONENT__POSITION: + return position != null && !position.isEmpty(); + case HwLayoutPackage.HW_COMPONENT__GRID: + return grid != null && !grid.isEmpty(); + case HwLayoutPackage.HW_COMPONENT__NB_PINS: + return NB_PINS_EDEFAULT == null ? nbPins != null : !NB_PINS_EDEFAULT.equals(nbPins); + case HwLayoutPackage.HW_COMPONENT__WEIGHT: + return WEIGHT_EDEFAULT == null ? weight != null : !WEIGHT_EDEFAULT.equals(weight); + case HwLayoutPackage.HW_COMPONENT__PRICE: + return PRICE_EDEFAULT == null ? price != null : !PRICE_EDEFAULT.equals(price); + case HwLayoutPackage.HW_COMPONENT__RCONDITIONS: + return r_Conditions != null && !r_Conditions.isEmpty(); + case HwLayoutPackage.HW_COMPONENT__POWERED_SERVICES: + return poweredServices != null && !poweredServices.isEmpty(); + case HwLayoutPackage.HW_COMPONENT__STATIC_CONSUMPTION: + return STATIC_CONSUMPTION_EDEFAULT == null ? staticConsumption != null : !STATIC_CONSUMPTION_EDEFAULT.equals(staticConsumption); + case HwLayoutPackage.HW_COMPONENT__STATIC_DISSIPATION: + return STATIC_DISSIPATION_EDEFAULT == null ? staticDissipation != null : !STATIC_DISSIPATION_EDEFAULT.equals(staticDissipation); + case HwLayoutPackage.HW_COMPONENT__SUB_COMPONENTS: + return subComponents != null && !subComponents.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (kind: "); + result.append(kind); + result.append(", dimensions: "); + result.append(dimensions); + result.append(", position: "); + result.append(position); + result.append(", grid: "); + result.append(grid); + result.append(", nbPins: "); + result.append(nbPins); + result.append(", weight: "); + result.append(weight); + result.append(", price: "); + result.append(price); + result.append(", r_Conditions: "); + result.append(r_Conditions); + result.append(", staticConsumption: "); + result.append(staticConsumption); + result.append(", staticDissipation: "); + result.append(staticDissipation); + result.append(')'); + return result.toString(); + } + +} //HwComponentImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/impl/HwLayoutFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/impl/HwLayoutFactoryImpl.java new file mode 100644 index 00000000000..55165af11d6 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/impl/HwLayoutFactoryImpl.java @@ -0,0 +1,227 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwPhysical.HwLayout.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.MARTE_DesignModel.HRM.HwPhysical.HwLayout.*; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class HwLayoutFactoryImpl extends EFactoryImpl implements HwLayoutFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static HwLayoutFactory init() { + try { + HwLayoutFactory theHwLayoutFactory = (HwLayoutFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/HwLayout/1"); + if (theHwLayoutFactory != null) { + return theHwLayoutFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new HwLayoutFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public HwLayoutFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case HwLayoutPackage.HW_COMPONENT: return createHwComponent(); + 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 HwLayoutPackage.COMPONENT_KIND: + return createComponentKindFromString(eDataType, initialValue); + case HwLayoutPackage.CONDITION_TYPE: + return createConditionTypeFromString(eDataType, initialValue); + case HwLayoutPackage.COMPONENT_STATE: + return createComponentStateFromString(eDataType, initialValue); + case HwLayoutPackage.ENV_CONDITION: + return createEnv_ConditionFromString(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 HwLayoutPackage.COMPONENT_KIND: + return convertComponentKindToString(eDataType, instanceValue); + case HwLayoutPackage.CONDITION_TYPE: + return convertConditionTypeToString(eDataType, instanceValue); + case HwLayoutPackage.COMPONENT_STATE: + return convertComponentStateToString(eDataType, instanceValue); + case HwLayoutPackage.ENV_CONDITION: + return convertEnv_ConditionToString(eDataType, instanceValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public HwComponent createHwComponent() { + HwComponentImpl hwComponent = new HwComponentImpl(); + return hwComponent; + } + + /** + * + * + * @generated + */ + public ComponentKind createComponentKindFromString(EDataType eDataType, String initialValue) { + ComponentKind result = ComponentKind.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertComponentKindToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public ConditionType createConditionTypeFromString(EDataType eDataType, String initialValue) { + ConditionType result = ConditionType.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertConditionTypeToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public ComponentState createComponentStateFromString(EDataType eDataType, String initialValue) { + ComponentState result = ComponentState.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertComponentStateToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public String createEnv_ConditionFromString(EDataType eDataType, String initialValue) { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertEnv_ConditionToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * + * @generated + */ + public HwLayoutPackage getHwLayoutPackage() { + return (HwLayoutPackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static HwLayoutPackage getPackage() { + return HwLayoutPackage.eINSTANCE; + } + +} //HwLayoutFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/impl/HwLayoutPackageImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/impl/HwLayoutPackageImpl.java new file mode 100644 index 00000000000..bbf1d5fbbb5 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/impl/HwLayoutPackageImpl.java @@ -0,0 +1,723 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwPhysical.HwLayout.impl; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.EAttribute; +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.EReference; + +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.ComponentKind; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.ComponentState; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.ConditionType; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwLayoutFactory; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwLayoutPackage; + +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.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 HwLayoutPackageImpl extends EPackageImpl implements HwLayoutPackage { + /** + * + * + * @generated + */ + private EClass hwComponentEClass = null; + + /** + * + * + * @generated + */ + private EEnum componentKindEEnum = null; + + /** + * + * + * @generated + */ + private EEnum conditionTypeEEnum = null; + + /** + * + * + * @generated + */ + private EEnum componentStateEEnum = null; + + /** + * + * + * @generated + */ + private EDataType env_ConditionEDataType = 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.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwLayoutPackage#eNS_URI + * @see #init() + * @generated + */ + private HwLayoutPackageImpl() { + super(eNS_URI, HwLayoutFactory.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 HwLayoutPackage#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 HwLayoutPackage init() { + if (isInited) return (HwLayoutPackage)EPackage.Registry.INSTANCE.getEPackage(HwLayoutPackage.eNS_URI); + + // Obtain or create and register package + HwLayoutPackageImpl theHwLayoutPackage = (HwLayoutPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof HwLayoutPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new HwLayoutPackageImpl()); + + 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); + 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); + 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 + theHwLayoutPackage.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(); + 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(); + theMARTE_PrimitivesTypesPackage.createPackageContents(); + + // Initialize created meta-data + theHwLayoutPackage.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(); + 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(); + theMARTE_PrimitivesTypesPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theHwLayoutPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(HwLayoutPackage.eNS_URI, theHwLayoutPackage); + return theHwLayoutPackage; + } + + /** + * + * + * @generated + */ + public EClass getHwComponent() { + return hwComponentEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getHwComponent_Kind() { + return (EAttribute)hwComponentEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getHwComponent_Dimensions() { + return (EAttribute)hwComponentEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getHwComponent_Area() { + return (EAttribute)hwComponentEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getHwComponent_Position() { + return (EAttribute)hwComponentEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getHwComponent_Grid() { + return (EAttribute)hwComponentEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getHwComponent_NbPins() { + return (EAttribute)hwComponentEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getHwComponent_Weight() { + return (EAttribute)hwComponentEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EAttribute getHwComponent_Price() { + return (EAttribute)hwComponentEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EAttribute getHwComponent_R_Conditions() { + return (EAttribute)hwComponentEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + public EReference getHwComponent_PoweredServices() { + return (EReference)hwComponentEClass.getEStructuralFeatures().get(9); + } + + /** + * + * + * @generated + */ + public EAttribute getHwComponent_StaticConsumption() { + return (EAttribute)hwComponentEClass.getEStructuralFeatures().get(10); + } + + /** + * + * + * @generated + */ + public EAttribute getHwComponent_StaticDissipation() { + return (EAttribute)hwComponentEClass.getEStructuralFeatures().get(11); + } + + /** + * + * + * @generated + */ + public EReference getHwComponent_SubComponents() { + return (EReference)hwComponentEClass.getEStructuralFeatures().get(12); + } + + /** + * + * + * @generated + */ + public EEnum getComponentKind() { + return componentKindEEnum; + } + + /** + * + * + * @generated + */ + public EEnum getConditionType() { + return conditionTypeEEnum; + } + + /** + * + * + * @generated + */ + public EEnum getComponentState() { + return componentStateEEnum; + } + + /** + * + * + * @generated + */ + public EDataType getEnv_Condition() { + return env_ConditionEDataType; + } + + /** + * + * + * @generated + */ + public HwLayoutFactory getHwLayoutFactory() { + return (HwLayoutFactory)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 + hwComponentEClass = createEClass(HW_COMPONENT); + createEAttribute(hwComponentEClass, HW_COMPONENT__KIND); + createEAttribute(hwComponentEClass, HW_COMPONENT__DIMENSIONS); + createEAttribute(hwComponentEClass, HW_COMPONENT__AREA); + createEAttribute(hwComponentEClass, HW_COMPONENT__POSITION); + createEAttribute(hwComponentEClass, HW_COMPONENT__GRID); + createEAttribute(hwComponentEClass, HW_COMPONENT__NB_PINS); + createEAttribute(hwComponentEClass, HW_COMPONENT__WEIGHT); + createEAttribute(hwComponentEClass, HW_COMPONENT__PRICE); + createEAttribute(hwComponentEClass, HW_COMPONENT__RCONDITIONS); + createEReference(hwComponentEClass, HW_COMPONENT__POWERED_SERVICES); + createEAttribute(hwComponentEClass, HW_COMPONENT__STATIC_CONSUMPTION); + createEAttribute(hwComponentEClass, HW_COMPONENT__STATIC_DISSIPATION); + createEReference(hwComponentEClass, HW_COMPONENT__SUB_COMPONENTS); + + // Create enums + componentKindEEnum = createEEnum(COMPONENT_KIND); + conditionTypeEEnum = createEEnum(CONDITION_TYPE); + componentStateEEnum = createEEnum(COMPONENT_STATE); + + // Create data types + env_ConditionEDataType = createEDataType(ENV_CONDITION); + } + + /** + * + * + * @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 + HwGeneralPackage theHwGeneralPackage = (HwGeneralPackage)EPackage.Registry.INSTANCE.getEPackage(HwGeneralPackage.eNS_URI); + BasicNFP_TypesPackage theBasicNFP_TypesPackage = (BasicNFP_TypesPackage)EPackage.Registry.INSTANCE.getEPackage(BasicNFP_TypesPackage.eNS_URI); + MARTE_DataTypesPackage theMARTE_DataTypesPackage = (MARTE_DataTypesPackage)EPackage.Registry.INSTANCE.getEPackage(MARTE_DataTypesPackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + hwComponentEClass.getESuperTypes().add(theHwGeneralPackage.getHwResource()); + + // Initialize classes and features; add operations and parameters + initEClass(hwComponentEClass, HwComponent.class, "HwComponent", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getHwComponent_Kind(), this.getComponentKind(), "kind", null, 0, 1, HwComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getHwComponent_Dimensions(), theBasicNFP_TypesPackage.getNFP_Length(), "dimensions", null, 0, 3, HwComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getHwComponent_Area(), theBasicNFP_TypesPackage.getNFP_Area(), "area", null, 0, 1, HwComponent.class, !IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, IS_DERIVED, !IS_ORDERED); + initEAttribute(getHwComponent_Position(), theMARTE_DataTypesPackage.getNFP_NaturalInterval(), "position", null, 0, 2, HwComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getHwComponent_Grid(), theBasicNFP_TypesPackage.getNFP_Natural(), "grid", null, 0, 2, HwComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getHwComponent_NbPins(), theBasicNFP_TypesPackage.getNFP_Natural(), "nbPins", null, 0, 1, HwComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getHwComponent_Weight(), theBasicNFP_TypesPackage.getNFP_Real(), "weight", null, 0, 1, HwComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getHwComponent_Price(), theBasicNFP_TypesPackage.getNFP_Price(), "price", null, 0, 1, HwComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getHwComponent_R_Conditions(), this.getEnv_Condition(), "r_Conditions", null, 0, -1, HwComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getHwComponent_PoweredServices(), theHwGeneralPackage.getHwResourceService(), null, "poweredServices", null, 0, -1, HwComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getHwComponent_StaticConsumption(), theBasicNFP_TypesPackage.getNFP_Power(), "staticConsumption", null, 0, 1, HwComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getHwComponent_StaticDissipation(), theBasicNFP_TypesPackage.getNFP_Power(), "staticDissipation", null, 0, 1, HwComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getHwComponent_SubComponents(), this.getHwComponent(), null, "subComponents", null, 0, -1, HwComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + // Initialize enums and add enum literals + initEEnum(componentKindEEnum, ComponentKind.class, "ComponentKind"); + addEEnumLiteral(componentKindEEnum, ComponentKind.CARD); + addEEnumLiteral(componentKindEEnum, ComponentKind.CHANNEL); + addEEnumLiteral(componentKindEEnum, ComponentKind.CHIP); + addEEnumLiteral(componentKindEEnum, ComponentKind.PORT); + addEEnumLiteral(componentKindEEnum, ComponentKind.UNIT); + addEEnumLiteral(componentKindEEnum, ComponentKind.OTHER); + addEEnumLiteral(componentKindEEnum, ComponentKind.UNDEF); + + initEEnum(conditionTypeEEnum, ConditionType.class, "ConditionType"); + addEEnumLiteral(conditionTypeEEnum, ConditionType.TEMPERATURE); + addEEnumLiteral(conditionTypeEEnum, ConditionType.HUMIDITY); + addEEnumLiteral(conditionTypeEEnum, ConditionType.ALTITUDE); + addEEnumLiteral(conditionTypeEEnum, ConditionType.VIBRATION); + addEEnumLiteral(conditionTypeEEnum, ConditionType.SHOCK); + addEEnumLiteral(conditionTypeEEnum, ConditionType.OTHER); + addEEnumLiteral(conditionTypeEEnum, ConditionType.UNDEF); + + initEEnum(componentStateEEnum, ComponentState.class, "ComponentState"); + addEEnumLiteral(componentStateEEnum, ComponentState.OPERATING); + addEEnumLiteral(componentStateEEnum, ComponentState.STORAGE); + addEEnumLiteral(componentStateEEnum, ComponentState.OTHER); + addEEnumLiteral(componentStateEEnum, ComponentState.UNDEF); + + // Initialize data types + initEDataType(env_ConditionEDataType, String.class, "Env_Condition", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + + // Create annotations + // redefines + createRedefinesAnnotations(); + // subsets + createSubsetsAnnotations(); + } + + /** + * Initializes the annotations for redefines. + * + * + * @generated + */ + protected void createRedefinesAnnotations() { + String source = "redefines"; + addAnnotation + (getHwComponent_PoweredServices(), + source, + new String[] { + }, + new URI[] { + URI.createURI(MARTEPackage.eNS_URI).appendFragment("//MARTE_DesignModel/HRM/HwGeneral/HwResource/p_HW_Services") + }); + } + + /** + * Initializes the annotations for subsets. + * + * + * @generated + */ + protected void createSubsetsAnnotations() { + String source = "subsets"; + addAnnotation + (getHwComponent_SubComponents(), + source, + new String[] { + }, + new URI[] { + URI.createURI(MARTEPackage.eNS_URI).appendFragment("//MARTE_DesignModel/HRM/HwGeneral/HwResource/ownedHW") + }); + } + +} //HwLayoutPackageImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/util/HwLayoutAdapterFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/util/HwLayoutAdapterFactory.java new file mode 100644 index 00000000000..2ed2262ff65 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/util/HwLayoutAdapterFactory.java @@ -0,0 +1,171 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwPhysical.HwLayout.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.MARTE_DesignModel.HRM.HwGeneral.HwResource; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.*; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwLayoutPackage + * @generated + */ +public class HwLayoutAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * @generated + */ + protected static HwLayoutPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public HwLayoutAdapterFactory() { + if (modelPackage == null) { + modelPackage = HwLayoutPackage.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 HwLayoutSwitch modelSwitch = + new HwLayoutSwitch() { + @Override + public Adapter caseHwComponent(HwComponent object) { + return createHwComponentAdapter(); + } + @Override + public Adapter caseResource(Resource object) { + return createResourceAdapter(); + } + @Override + public Adapter caseHwResource(HwResource object) { + return createHwResourceAdapter(); + } + @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.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent Hw Component}'. + * + * 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.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent + * @generated + */ + public Adapter createHwComponentAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource Resource}'. + * + * 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.MARTE_Foundations.GRM.Resource + * @generated + */ + public Adapter createResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource Hw Resource}'. + * + * 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.MARTE_DesignModel.HRM.HwGeneral.HwResource + * @generated + */ + public Adapter createHwResourceAdapter() { + 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; + } + +} //HwLayoutAdapterFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/util/HwLayoutResourceFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/util/HwLayoutResourceFactoryImpl.java new file mode 100644 index 00000000000..fd23084da15 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/util/HwLayoutResourceFactoryImpl.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.MARTE_DesignModel.HRM.HwPhysical.HwLayout.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; + +import org.eclipse.emf.ecore.xmi.XMLResource; + +/** + * + * The Resource Factory associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.util.HwLayoutResourceImpl + * @generated + */ +public class HwLayoutResourceFactoryImpl extends ResourceFactoryImpl { + /** + * Creates an instance of the resource factory. + * + * + * @generated + */ + public HwLayoutResourceFactoryImpl() { + super(); + } + + /** + * Creates an instance of the resource. + * + * + * @generated + */ + @Override + public Resource createResource(URI uri) { + XMLResource result = new HwLayoutResourceImpl(uri); + result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + + result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); + return result; + } + +} //HwLayoutResourceFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/util/HwLayoutResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/util/HwLayoutResourceImpl.java new file mode 100644 index 00000000000..f47669c1abb --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/util/HwLayoutResourceImpl.java @@ -0,0 +1,39 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwPhysical.HwLayout.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; + +/** + * + * The Resource associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.util.HwLayoutResourceFactoryImpl + * @generated + */ +public class HwLayoutResourceImpl extends XMLResourceImpl { + /** + * Creates an instance of the resource. + * + * + * @param uri the URI of the new resource. + * @generated + */ + public HwLayoutResourceImpl(URI uri) { + super(uri); + } + +} //HwLayoutResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/util/HwLayoutSwitch.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/util/HwLayoutSwitch.java new file mode 100644 index 00000000000..b0eff91eade --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/util/HwLayoutSwitch.java @@ -0,0 +1,173 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwPhysical.HwLayout.util; + +import java.util.List; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.*; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource; + +/** + * + * 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.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwLayoutPackage + * @generated + */ +public class HwLayoutSwitch { + /** + * The cached model package + * + * + * @generated + */ + protected static HwLayoutPackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public HwLayoutSwitch() { + if (modelPackage == null) { + modelPackage = HwLayoutPackage.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 HwLayoutPackage.HW_COMPONENT: { + HwComponent hwComponent = (HwComponent)theEObject; + T result = caseHwComponent(hwComponent); + if (result == null) result = caseHwResource(hwComponent); + if (result == null) result = caseResource(hwComponent); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Hw Component'. + * + * 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 'Hw Component'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHwComponent(HwComponent object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Resource'. + * + * 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 'Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseResource(Resource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Hw Resource'. + * + * 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 'Hw Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHwResource(HwResource 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; + } + +} //HwLayoutSwitch diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/util/HwLayoutXMLProcessor.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/util/HwLayoutXMLProcessor.java new file mode 100644 index 00000000000..c739e982c2b --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwLayout/util/HwLayoutXMLProcessor.java @@ -0,0 +1,61 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwPhysical.HwLayout.util; + +import java.util.Map; + +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.xmi.util.XMLProcessor; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwLayoutPackage; + +/** + * This class contains helper methods to serialize and deserialize XML documents + * + * + * @generated + */ +public class HwLayoutXMLProcessor extends XMLProcessor { + + /** + * Public constructor to instantiate the helper. + * + * + * @generated + */ + public HwLayoutXMLProcessor() { + super((EPackage.Registry.INSTANCE)); + HwLayoutPackage.eINSTANCE.eClass(); + } + + /** + * Register for "*" and "xml" file extensions the HwLayoutResourceFactoryImpl factory. + * + * + * @generated + */ + @Override + protected Map getRegistrations() { + if (registrations == null) { + super.getRegistrations(); + registrations.put(XML_EXTENSION, new HwLayoutResourceFactoryImpl()); + registrations.put(STAR_EXTENSION, new HwLayoutResourceFactoryImpl()); + } + return registrations; + } + +} //HwLayoutXMLProcessor diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/HwCoolingSupply.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/HwCoolingSupply.java new file mode 100644 index 00000000000..b400c1a3bf3 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/HwCoolingSupply.java @@ -0,0 +1,61 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwPhysical.HwPower; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent; + +/** + * + * A representation of the model object 'Hw Cooling Supply'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.HwCoolingSupply#getCoolingPower Cooling Power}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.HwPowerPackage#getHwCoolingSupply() + * @model + * @generated + */ +public interface HwCoolingSupply extends HwComponent { + /** + * Returns the value of the 'Cooling Power' attribute. + * + *

+ * If the meaning of the 'Cooling Power' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Cooling Power' attribute. + * @see #setCoolingPower(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.HwPowerPackage#getHwCoolingSupply_CoolingPower() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Power" ordered="false" + * @generated + */ + String getCoolingPower(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.HwCoolingSupply#getCoolingPower Cooling Power}' attribute. + * + * + * @param value the new value of the 'Cooling Power' attribute. + * @see #getCoolingPower() + * @generated + */ + void setCoolingPower(String value); + +} // HwCoolingSupply diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/HwPowerFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/HwPowerFactory.java new file mode 100644 index 00000000000..8385eb9f509 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/HwPowerFactory.java @@ -0,0 +1,62 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwPhysical.HwPower; + +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.MARTE_DesignModel.HRM.HwPhysical.HwPower.HwPowerPackage + * @generated + */ +public interface HwPowerFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + HwPowerFactory eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.impl.HwPowerFactoryImpl.init(); + + /** + * Returns a new object of class 'Supply'. + * + * + * @return a new object of class 'Supply'. + * @generated + */ + HwPowerSupply createHwPowerSupply(); + + /** + * Returns a new object of class 'Hw Cooling Supply'. + * + * + * @return a new object of class 'Hw Cooling Supply'. + * @generated + */ + HwCoolingSupply createHwCoolingSupply(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + HwPowerPackage getHwPowerPackage(); + +} //HwPowerFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/HwPowerPackage.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/HwPowerPackage.java new file mode 100644 index 00000000000..3ac5d7145e9 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/HwPowerPackage.java @@ -0,0 +1,743 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwPhysical.HwPower; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwLayoutPackage; + +/** + * + * 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.MARTE_DesignModel.HRM.HwPhysical.HwPower.HwPowerFactory + * @model kind="package" + * @generated + */ +public interface HwPowerPackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "HwPower"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "http://www.eclipse.org/papyrus/HwPower/1"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "HwPower"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + HwPowerPackage eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.impl.HwPowerPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.impl.HwPowerSupplyImpl Supply}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.impl.HwPowerSupplyImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.impl.HwPowerPackageImpl#getHwPowerSupply() + * @generated + */ + int HW_POWER_SUPPLY = 0; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int HW_POWER_SUPPLY__RES_MULT = HwLayoutPackage.HW_COMPONENT__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int HW_POWER_SUPPLY__IS_PROTECTED = HwLayoutPackage.HW_COMPONENT__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int HW_POWER_SUPPLY__IS_ACTIVE = HwLayoutPackage.HW_COMPONENT__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int HW_POWER_SUPPLY__BASE_PROPERTY = HwLayoutPackage.HW_COMPONENT__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int HW_POWER_SUPPLY__BASE_INSTANCE_SPECIFICATION = HwLayoutPackage.HW_COMPONENT__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int HW_POWER_SUPPLY__BASE_CLASSIFIER = HwLayoutPackage.HW_COMPONENT__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int HW_POWER_SUPPLY__BASE_LIFELINE = HwLayoutPackage.HW_COMPONENT__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int HW_POWER_SUPPLY__BASE_CONNECTABLE_ELEMENT = HwLayoutPackage.HW_COMPONENT__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int HW_POWER_SUPPLY__DESCRIPTION = HwLayoutPackage.HW_COMPONENT__DESCRIPTION; + + /** + * The feature id for the 'PHW Services' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_POWER_SUPPLY__PHW_SERVICES = HwLayoutPackage.HW_COMPONENT__PHW_SERVICES; + + /** + * The feature id for the 'RHW Services' reference list. + * + * + * @generated + * @ordered + */ + int HW_POWER_SUPPLY__RHW_SERVICES = HwLayoutPackage.HW_COMPONENT__RHW_SERVICES; + + /** + * The feature id for the 'Owned HW' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_POWER_SUPPLY__OWNED_HW = HwLayoutPackage.HW_COMPONENT__OWNED_HW; + + /** + * The feature id for the 'End Points' reference list. + * + * + * @generated + * @ordered + */ + int HW_POWER_SUPPLY__END_POINTS = HwLayoutPackage.HW_COMPONENT__END_POINTS; + + /** + * The feature id for the 'Frequency' attribute. + * + * + * @generated + * @ordered + */ + int HW_POWER_SUPPLY__FREQUENCY = HwLayoutPackage.HW_COMPONENT__FREQUENCY; + + /** + * The feature id for the 'Kind' attribute. + * + * + * @generated + * @ordered + */ + int HW_POWER_SUPPLY__KIND = HwLayoutPackage.HW_COMPONENT__KIND; + + /** + * The feature id for the 'Dimensions' attribute list. + * + * + * @generated + * @ordered + */ + int HW_POWER_SUPPLY__DIMENSIONS = HwLayoutPackage.HW_COMPONENT__DIMENSIONS; + + /** + * The feature id for the 'Area' attribute. + * + * + * @generated + * @ordered + */ + int HW_POWER_SUPPLY__AREA = HwLayoutPackage.HW_COMPONENT__AREA; + + /** + * The feature id for the 'Position' attribute list. + * + * + * @generated + * @ordered + */ + int HW_POWER_SUPPLY__POSITION = HwLayoutPackage.HW_COMPONENT__POSITION; + + /** + * The feature id for the 'Grid' attribute list. + * + * + * @generated + * @ordered + */ + int HW_POWER_SUPPLY__GRID = HwLayoutPackage.HW_COMPONENT__GRID; + + /** + * The feature id for the 'Nb Pins' attribute. + * + * + * @generated + * @ordered + */ + int HW_POWER_SUPPLY__NB_PINS = HwLayoutPackage.HW_COMPONENT__NB_PINS; + + /** + * The feature id for the 'Weight' attribute. + * + * + * @generated + * @ordered + */ + int HW_POWER_SUPPLY__WEIGHT = HwLayoutPackage.HW_COMPONENT__WEIGHT; + + /** + * The feature id for the 'Price' attribute. + * + * + * @generated + * @ordered + */ + int HW_POWER_SUPPLY__PRICE = HwLayoutPackage.HW_COMPONENT__PRICE; + + /** + * The feature id for the 'RConditions' attribute list. + * + * + * @generated + * @ordered + */ + int HW_POWER_SUPPLY__RCONDITIONS = HwLayoutPackage.HW_COMPONENT__RCONDITIONS; + + /** + * The feature id for the 'Powered Services' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_POWER_SUPPLY__POWERED_SERVICES = HwLayoutPackage.HW_COMPONENT__POWERED_SERVICES; + + /** + * The feature id for the 'Static Consumption' attribute. + * + * + * @generated + * @ordered + */ + int HW_POWER_SUPPLY__STATIC_CONSUMPTION = HwLayoutPackage.HW_COMPONENT__STATIC_CONSUMPTION; + + /** + * The feature id for the 'Static Dissipation' attribute. + * + * + * @generated + * @ordered + */ + int HW_POWER_SUPPLY__STATIC_DISSIPATION = HwLayoutPackage.HW_COMPONENT__STATIC_DISSIPATION; + + /** + * The feature id for the 'Sub Components' reference list. + * + * + * @generated + * @ordered + */ + int HW_POWER_SUPPLY__SUB_COMPONENTS = HwLayoutPackage.HW_COMPONENT__SUB_COMPONENTS; + + /** + * The feature id for the 'Supplied Power' attribute. + * + * + * @generated + * @ordered + */ + int HW_POWER_SUPPLY__SUPPLIED_POWER = HwLayoutPackage.HW_COMPONENT_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Capacity' attribute. + * + * + * @generated + * @ordered + */ + int HW_POWER_SUPPLY__CAPACITY = HwLayoutPackage.HW_COMPONENT_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Supply' class. + * + * + * @generated + * @ordered + */ + int HW_POWER_SUPPLY_FEATURE_COUNT = HwLayoutPackage.HW_COMPONENT_FEATURE_COUNT + 2; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.impl.HwCoolingSupplyImpl Hw Cooling Supply}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.impl.HwCoolingSupplyImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.impl.HwPowerPackageImpl#getHwCoolingSupply() + * @generated + */ + int HW_COOLING_SUPPLY = 1; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int HW_COOLING_SUPPLY__RES_MULT = HwLayoutPackage.HW_COMPONENT__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int HW_COOLING_SUPPLY__IS_PROTECTED = HwLayoutPackage.HW_COMPONENT__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int HW_COOLING_SUPPLY__IS_ACTIVE = HwLayoutPackage.HW_COMPONENT__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int HW_COOLING_SUPPLY__BASE_PROPERTY = HwLayoutPackage.HW_COMPONENT__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int HW_COOLING_SUPPLY__BASE_INSTANCE_SPECIFICATION = HwLayoutPackage.HW_COMPONENT__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int HW_COOLING_SUPPLY__BASE_CLASSIFIER = HwLayoutPackage.HW_COMPONENT__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int HW_COOLING_SUPPLY__BASE_LIFELINE = HwLayoutPackage.HW_COMPONENT__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int HW_COOLING_SUPPLY__BASE_CONNECTABLE_ELEMENT = HwLayoutPackage.HW_COMPONENT__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int HW_COOLING_SUPPLY__DESCRIPTION = HwLayoutPackage.HW_COMPONENT__DESCRIPTION; + + /** + * The feature id for the 'PHW Services' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_COOLING_SUPPLY__PHW_SERVICES = HwLayoutPackage.HW_COMPONENT__PHW_SERVICES; + + /** + * The feature id for the 'RHW Services' reference list. + * + * + * @generated + * @ordered + */ + int HW_COOLING_SUPPLY__RHW_SERVICES = HwLayoutPackage.HW_COMPONENT__RHW_SERVICES; + + /** + * The feature id for the 'Owned HW' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_COOLING_SUPPLY__OWNED_HW = HwLayoutPackage.HW_COMPONENT__OWNED_HW; + + /** + * The feature id for the 'End Points' reference list. + * + * + * @generated + * @ordered + */ + int HW_COOLING_SUPPLY__END_POINTS = HwLayoutPackage.HW_COMPONENT__END_POINTS; + + /** + * The feature id for the 'Frequency' attribute. + * + * + * @generated + * @ordered + */ + int HW_COOLING_SUPPLY__FREQUENCY = HwLayoutPackage.HW_COMPONENT__FREQUENCY; + + /** + * The feature id for the 'Kind' attribute. + * + * + * @generated + * @ordered + */ + int HW_COOLING_SUPPLY__KIND = HwLayoutPackage.HW_COMPONENT__KIND; + + /** + * The feature id for the 'Dimensions' attribute list. + * + * + * @generated + * @ordered + */ + int HW_COOLING_SUPPLY__DIMENSIONS = HwLayoutPackage.HW_COMPONENT__DIMENSIONS; + + /** + * The feature id for the 'Area' attribute. + * + * + * @generated + * @ordered + */ + int HW_COOLING_SUPPLY__AREA = HwLayoutPackage.HW_COMPONENT__AREA; + + /** + * The feature id for the 'Position' attribute list. + * + * + * @generated + * @ordered + */ + int HW_COOLING_SUPPLY__POSITION = HwLayoutPackage.HW_COMPONENT__POSITION; + + /** + * The feature id for the 'Grid' attribute list. + * + * + * @generated + * @ordered + */ + int HW_COOLING_SUPPLY__GRID = HwLayoutPackage.HW_COMPONENT__GRID; + + /** + * The feature id for the 'Nb Pins' attribute. + * + * + * @generated + * @ordered + */ + int HW_COOLING_SUPPLY__NB_PINS = HwLayoutPackage.HW_COMPONENT__NB_PINS; + + /** + * The feature id for the 'Weight' attribute. + * + * + * @generated + * @ordered + */ + int HW_COOLING_SUPPLY__WEIGHT = HwLayoutPackage.HW_COMPONENT__WEIGHT; + + /** + * The feature id for the 'Price' attribute. + * + * + * @generated + * @ordered + */ + int HW_COOLING_SUPPLY__PRICE = HwLayoutPackage.HW_COMPONENT__PRICE; + + /** + * The feature id for the 'RConditions' attribute list. + * + * + * @generated + * @ordered + */ + int HW_COOLING_SUPPLY__RCONDITIONS = HwLayoutPackage.HW_COMPONENT__RCONDITIONS; + + /** + * The feature id for the 'Powered Services' containment reference list. + * + * + * @generated + * @ordered + */ + int HW_COOLING_SUPPLY__POWERED_SERVICES = HwLayoutPackage.HW_COMPONENT__POWERED_SERVICES; + + /** + * The feature id for the 'Static Consumption' attribute. + * + * + * @generated + * @ordered + */ + int HW_COOLING_SUPPLY__STATIC_CONSUMPTION = HwLayoutPackage.HW_COMPONENT__STATIC_CONSUMPTION; + + /** + * The feature id for the 'Static Dissipation' attribute. + * + * + * @generated + * @ordered + */ + int HW_COOLING_SUPPLY__STATIC_DISSIPATION = HwLayoutPackage.HW_COMPONENT__STATIC_DISSIPATION; + + /** + * The feature id for the 'Sub Components' reference list. + * + * + * @generated + * @ordered + */ + int HW_COOLING_SUPPLY__SUB_COMPONENTS = HwLayoutPackage.HW_COMPONENT__SUB_COMPONENTS; + + /** + * The feature id for the 'Cooling Power' attribute. + * + * + * @generated + * @ordered + */ + int HW_COOLING_SUPPLY__COOLING_POWER = HwLayoutPackage.HW_COMPONENT_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Hw Cooling Supply' class. + * + * + * @generated + * @ordered + */ + int HW_COOLING_SUPPLY_FEATURE_COUNT = HwLayoutPackage.HW_COMPONENT_FEATURE_COUNT + 1; + + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.HwPowerSupply Supply}'. + * + * + * @return the meta object for class 'Supply'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.HwPowerSupply + * @generated + */ + EClass getHwPowerSupply(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.HwPowerSupply#getSuppliedPower Supplied Power}'. + * + * + * @return the meta object for the attribute 'Supplied Power'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.HwPowerSupply#getSuppliedPower() + * @see #getHwPowerSupply() + * @generated + */ + EAttribute getHwPowerSupply_SuppliedPower(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.HwPowerSupply#getCapacity Capacity}'. + * + * + * @return the meta object for the attribute 'Capacity'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.HwPowerSupply#getCapacity() + * @see #getHwPowerSupply() + * @generated + */ + EAttribute getHwPowerSupply_Capacity(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.HwCoolingSupply Hw Cooling Supply}'. + * + * + * @return the meta object for class 'Hw Cooling Supply'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.HwCoolingSupply + * @generated + */ + EClass getHwCoolingSupply(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.HwCoolingSupply#getCoolingPower Cooling Power}'. + * + * + * @return the meta object for the attribute 'Cooling Power'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.HwCoolingSupply#getCoolingPower() + * @see #getHwCoolingSupply() + * @generated + */ + EAttribute getHwCoolingSupply_CoolingPower(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + HwPowerFactory getHwPowerFactory(); + + /** + * + * 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.MARTE_DesignModel.HRM.HwPhysical.HwPower.impl.HwPowerSupplyImpl Supply}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.impl.HwPowerSupplyImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.impl.HwPowerPackageImpl#getHwPowerSupply() + * @generated + */ + EClass HW_POWER_SUPPLY = eINSTANCE.getHwPowerSupply(); + + /** + * The meta object literal for the 'Supplied Power' attribute feature. + * + * + * @generated + */ + EAttribute HW_POWER_SUPPLY__SUPPLIED_POWER = eINSTANCE.getHwPowerSupply_SuppliedPower(); + + /** + * The meta object literal for the 'Capacity' attribute feature. + * + * + * @generated + */ + EAttribute HW_POWER_SUPPLY__CAPACITY = eINSTANCE.getHwPowerSupply_Capacity(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.impl.HwCoolingSupplyImpl Hw Cooling Supply}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.impl.HwCoolingSupplyImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.impl.HwPowerPackageImpl#getHwCoolingSupply() + * @generated + */ + EClass HW_COOLING_SUPPLY = eINSTANCE.getHwCoolingSupply(); + + /** + * The meta object literal for the 'Cooling Power' attribute feature. + * + * + * @generated + */ + EAttribute HW_COOLING_SUPPLY__COOLING_POWER = eINSTANCE.getHwCoolingSupply_CoolingPower(); + + } + +} //HwPowerPackage diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/HwPowerSupply.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/HwPowerSupply.java new file mode 100644 index 00000000000..70344045314 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/HwPowerSupply.java @@ -0,0 +1,88 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwPhysical.HwPower; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent; + +/** + * + * A representation of the model object 'Supply'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.HwPowerSupply#getSuppliedPower Supplied Power}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.HwPowerSupply#getCapacity Capacity}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.HwPowerPackage#getHwPowerSupply() + * @model + * @generated + */ +public interface HwPowerSupply extends HwComponent { + /** + * Returns the value of the 'Supplied Power' attribute. + * + *

+ * If the meaning of the 'Supplied Power' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Supplied Power' attribute. + * @see #setSuppliedPower(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.HwPowerPackage#getHwPowerSupply_SuppliedPower() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Power" ordered="false" + * @generated + */ + String getSuppliedPower(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.HwPowerSupply#getSuppliedPower Supplied Power}' attribute. + * + * + * @param value the new value of the 'Supplied Power' attribute. + * @see #getSuppliedPower() + * @generated + */ + void setSuppliedPower(String value); + + /** + * Returns the value of the 'Capacity' attribute. + * + *

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

+ * + * @return the value of the 'Capacity' attribute. + * @see #setCapacity(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.HwPowerPackage#getHwPowerSupply_Capacity() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Energy" ordered="false" + * @generated + */ + String getCapacity(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.HwPowerSupply#getCapacity Capacity}' attribute. + * + * + * @param value the new value of the 'Capacity' attribute. + * @see #getCapacity() + * @generated + */ + void setCapacity(String value); + +} // HwPowerSupply diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/impl/HwCoolingSupplyImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/impl/HwCoolingSupplyImpl.java new file mode 100644 index 00000000000..1c24a94b166 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/impl/HwCoolingSupplyImpl.java @@ -0,0 +1,175 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwPhysical.HwPower.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.impl.HwComponentImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.HwCoolingSupply; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.HwPowerPackage; + +/** + * + * An implementation of the model object 'Hw Cooling Supply'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.impl.HwCoolingSupplyImpl#getCoolingPower Cooling Power}
  • + *
+ *

+ * + * @generated + */ +public class HwCoolingSupplyImpl extends HwComponentImpl implements HwCoolingSupply { + /** + * The default value of the '{@link #getCoolingPower() Cooling Power}' attribute. + * + * + * @see #getCoolingPower() + * @generated + * @ordered + */ + protected static final String COOLING_POWER_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCoolingPower() Cooling Power}' attribute. + * + * + * @see #getCoolingPower() + * @generated + * @ordered + */ + protected String coolingPower = COOLING_POWER_EDEFAULT; + + /** + * + * + * @generated + */ + protected HwCoolingSupplyImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return HwPowerPackage.Literals.HW_COOLING_SUPPLY; + } + + /** + * + * + * @generated + */ + public String getCoolingPower() { + return coolingPower; + } + + /** + * + * + * @generated + */ + public void setCoolingPower(String newCoolingPower) { + String oldCoolingPower = coolingPower; + coolingPower = newCoolingPower; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwPowerPackage.HW_COOLING_SUPPLY__COOLING_POWER, oldCoolingPower, coolingPower)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case HwPowerPackage.HW_COOLING_SUPPLY__COOLING_POWER: + return getCoolingPower(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case HwPowerPackage.HW_COOLING_SUPPLY__COOLING_POWER: + setCoolingPower((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case HwPowerPackage.HW_COOLING_SUPPLY__COOLING_POWER: + setCoolingPower(COOLING_POWER_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case HwPowerPackage.HW_COOLING_SUPPLY__COOLING_POWER: + return COOLING_POWER_EDEFAULT == null ? coolingPower != null : !COOLING_POWER_EDEFAULT.equals(coolingPower); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (coolingPower: "); + result.append(coolingPower); + result.append(')'); + return result.toString(); + } + +} //HwCoolingSupplyImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/impl/HwPowerFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/impl/HwPowerFactoryImpl.java new file mode 100644 index 00000000000..0f05c87e4bd --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/impl/HwPowerFactoryImpl.java @@ -0,0 +1,117 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwPhysical.HwPower.impl; + +import org.eclipse.emf.ecore.EClass; +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.MARTE_DesignModel.HRM.HwPhysical.HwPower.*; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class HwPowerFactoryImpl extends EFactoryImpl implements HwPowerFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static HwPowerFactory init() { + try { + HwPowerFactory theHwPowerFactory = (HwPowerFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/HwPower/1"); + if (theHwPowerFactory != null) { + return theHwPowerFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new HwPowerFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public HwPowerFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case HwPowerPackage.HW_POWER_SUPPLY: return createHwPowerSupply(); + case HwPowerPackage.HW_COOLING_SUPPLY: return createHwCoolingSupply(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public HwPowerSupply createHwPowerSupply() { + HwPowerSupplyImpl hwPowerSupply = new HwPowerSupplyImpl(); + return hwPowerSupply; + } + + /** + * + * + * @generated + */ + public HwCoolingSupply createHwCoolingSupply() { + HwCoolingSupplyImpl hwCoolingSupply = new HwCoolingSupplyImpl(); + return hwCoolingSupply; + } + + /** + * + * + * @generated + */ + public HwPowerPackage getHwPowerPackage() { + return (HwPowerPackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static HwPowerPackage getPackage() { + return HwPowerPackage.eINSTANCE; + } + +} //HwPowerFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/impl/HwPowerPackageImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/impl/HwPowerPackageImpl.java new file mode 100644 index 00000000000..5da7a4a96a5 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/impl/HwPowerPackageImpl.java @@ -0,0 +1,484 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwPhysical.HwPower.impl; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +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.HwCoolingSupply; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.HwPowerFactory; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.HwPowerPackage; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.HwPowerSupply; + +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.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 HwPowerPackageImpl extends EPackageImpl implements HwPowerPackage { + /** + * + * + * @generated + */ + private EClass hwPowerSupplyEClass = null; + + /** + * + * + * @generated + */ + private EClass hwCoolingSupplyEClass = 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.MARTE_DesignModel.HRM.HwPhysical.HwPower.HwPowerPackage#eNS_URI + * @see #init() + * @generated + */ + private HwPowerPackageImpl() { + super(eNS_URI, HwPowerFactory.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 HwPowerPackage#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 HwPowerPackage init() { + if (isInited) return (HwPowerPackage)EPackage.Registry.INSTANCE.getEPackage(HwPowerPackage.eNS_URI); + + // Obtain or create and register package + HwPowerPackageImpl theHwPowerPackage = (HwPowerPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof HwPowerPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new HwPowerPackageImpl()); + + 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); + 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); + 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 + theHwPowerPackage.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(); + 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(); + theMARTE_PrimitivesTypesPackage.createPackageContents(); + + // Initialize created meta-data + theHwPowerPackage.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(); + 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(); + theMARTE_PrimitivesTypesPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theHwPowerPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(HwPowerPackage.eNS_URI, theHwPowerPackage); + return theHwPowerPackage; + } + + /** + * + * + * @generated + */ + public EClass getHwPowerSupply() { + return hwPowerSupplyEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getHwPowerSupply_SuppliedPower() { + return (EAttribute)hwPowerSupplyEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getHwPowerSupply_Capacity() { + return (EAttribute)hwPowerSupplyEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getHwCoolingSupply() { + return hwCoolingSupplyEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getHwCoolingSupply_CoolingPower() { + return (EAttribute)hwCoolingSupplyEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public HwPowerFactory getHwPowerFactory() { + return (HwPowerFactory)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 + hwPowerSupplyEClass = createEClass(HW_POWER_SUPPLY); + createEAttribute(hwPowerSupplyEClass, HW_POWER_SUPPLY__SUPPLIED_POWER); + createEAttribute(hwPowerSupplyEClass, HW_POWER_SUPPLY__CAPACITY); + + hwCoolingSupplyEClass = createEClass(HW_COOLING_SUPPLY); + createEAttribute(hwCoolingSupplyEClass, HW_COOLING_SUPPLY__COOLING_POWER); + } + + /** + * + * + * @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 + HwLayoutPackage theHwLayoutPackage = (HwLayoutPackage)EPackage.Registry.INSTANCE.getEPackage(HwLayoutPackage.eNS_URI); + BasicNFP_TypesPackage theBasicNFP_TypesPackage = (BasicNFP_TypesPackage)EPackage.Registry.INSTANCE.getEPackage(BasicNFP_TypesPackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + hwPowerSupplyEClass.getESuperTypes().add(theHwLayoutPackage.getHwComponent()); + hwCoolingSupplyEClass.getESuperTypes().add(theHwLayoutPackage.getHwComponent()); + + // Initialize classes and features; add operations and parameters + initEClass(hwPowerSupplyEClass, HwPowerSupply.class, "HwPowerSupply", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getHwPowerSupply_SuppliedPower(), theBasicNFP_TypesPackage.getNFP_Power(), "suppliedPower", null, 0, 1, HwPowerSupply.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getHwPowerSupply_Capacity(), theBasicNFP_TypesPackage.getNFP_Energy(), "capacity", null, 0, 1, HwPowerSupply.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(hwCoolingSupplyEClass, HwCoolingSupply.class, "HwCoolingSupply", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getHwCoolingSupply_CoolingPower(), theBasicNFP_TypesPackage.getNFP_Power(), "coolingPower", null, 0, 1, HwCoolingSupply.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + } + +} //HwPowerPackageImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/impl/HwPowerSupplyImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/impl/HwPowerSupplyImpl.java new file mode 100644 index 00000000000..07e6556fb2a --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/impl/HwPowerSupplyImpl.java @@ -0,0 +1,229 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwPhysical.HwPower.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.impl.HwComponentImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.HwPowerPackage; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.HwPowerSupply; + +/** + * + * An implementation of the model object 'Supply'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.impl.HwPowerSupplyImpl#getSuppliedPower Supplied Power}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.impl.HwPowerSupplyImpl#getCapacity Capacity}
  • + *
+ *

+ * + * @generated + */ +public class HwPowerSupplyImpl extends HwComponentImpl implements HwPowerSupply { + /** + * The default value of the '{@link #getSuppliedPower() Supplied Power}' attribute. + * + * + * @see #getSuppliedPower() + * @generated + * @ordered + */ + protected static final String SUPPLIED_POWER_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSuppliedPower() Supplied Power}' attribute. + * + * + * @see #getSuppliedPower() + * @generated + * @ordered + */ + protected String suppliedPower = SUPPLIED_POWER_EDEFAULT; + + /** + * The default value of the '{@link #getCapacity() Capacity}' attribute. + * + * + * @see #getCapacity() + * @generated + * @ordered + */ + protected static final String CAPACITY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCapacity() Capacity}' attribute. + * + * + * @see #getCapacity() + * @generated + * @ordered + */ + protected String capacity = CAPACITY_EDEFAULT; + + /** + * + * + * @generated + */ + protected HwPowerSupplyImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return HwPowerPackage.Literals.HW_POWER_SUPPLY; + } + + /** + * + * + * @generated + */ + public String getSuppliedPower() { + return suppliedPower; + } + + /** + * + * + * @generated + */ + public void setSuppliedPower(String newSuppliedPower) { + String oldSuppliedPower = suppliedPower; + suppliedPower = newSuppliedPower; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwPowerPackage.HW_POWER_SUPPLY__SUPPLIED_POWER, oldSuppliedPower, suppliedPower)); + } + + /** + * + * + * @generated + */ + public String getCapacity() { + return capacity; + } + + /** + * + * + * @generated + */ + public void setCapacity(String newCapacity) { + String oldCapacity = capacity; + capacity = newCapacity; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, HwPowerPackage.HW_POWER_SUPPLY__CAPACITY, oldCapacity, capacity)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case HwPowerPackage.HW_POWER_SUPPLY__SUPPLIED_POWER: + return getSuppliedPower(); + case HwPowerPackage.HW_POWER_SUPPLY__CAPACITY: + return getCapacity(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case HwPowerPackage.HW_POWER_SUPPLY__SUPPLIED_POWER: + setSuppliedPower((String)newValue); + return; + case HwPowerPackage.HW_POWER_SUPPLY__CAPACITY: + setCapacity((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case HwPowerPackage.HW_POWER_SUPPLY__SUPPLIED_POWER: + setSuppliedPower(SUPPLIED_POWER_EDEFAULT); + return; + case HwPowerPackage.HW_POWER_SUPPLY__CAPACITY: + setCapacity(CAPACITY_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case HwPowerPackage.HW_POWER_SUPPLY__SUPPLIED_POWER: + return SUPPLIED_POWER_EDEFAULT == null ? suppliedPower != null : !SUPPLIED_POWER_EDEFAULT.equals(suppliedPower); + case HwPowerPackage.HW_POWER_SUPPLY__CAPACITY: + return CAPACITY_EDEFAULT == null ? capacity != null : !CAPACITY_EDEFAULT.equals(capacity); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (suppliedPower: "); + result.append(suppliedPower); + result.append(", capacity: "); + result.append(capacity); + result.append(')'); + return result.toString(); + } + +} //HwPowerSupplyImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/util/HwPowerAdapterFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/util/HwPowerAdapterFactory.java new file mode 100644 index 00000000000..bd9289d2bd5 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/util/HwPowerAdapterFactory.java @@ -0,0 +1,209 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwPhysical.HwPower.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.MARTE_DesignModel.HRM.HwGeneral.HwResource; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.*; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.HwPowerPackage + * @generated + */ +public class HwPowerAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * @generated + */ + protected static HwPowerPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public HwPowerAdapterFactory() { + if (modelPackage == null) { + modelPackage = HwPowerPackage.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 HwPowerSwitch modelSwitch = + new HwPowerSwitch() { + @Override + public Adapter caseHwPowerSupply(HwPowerSupply object) { + return createHwPowerSupplyAdapter(); + } + @Override + public Adapter caseHwCoolingSupply(HwCoolingSupply object) { + return createHwCoolingSupplyAdapter(); + } + @Override + public Adapter caseResource(Resource object) { + return createResourceAdapter(); + } + @Override + public Adapter caseHwResource(HwResource object) { + return createHwResourceAdapter(); + } + @Override + public Adapter caseHwComponent(HwComponent object) { + return createHwComponentAdapter(); + } + @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.MARTE_DesignModel.HRM.HwPhysical.HwPower.HwPowerSupply Supply}'. + * + * 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.MARTE_DesignModel.HRM.HwPhysical.HwPower.HwPowerSupply + * @generated + */ + public Adapter createHwPowerSupplyAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.HwCoolingSupply Hw Cooling Supply}'. + * + * 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.MARTE_DesignModel.HRM.HwPhysical.HwPower.HwCoolingSupply + * @generated + */ + public Adapter createHwCoolingSupplyAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource Resource}'. + * + * 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.MARTE_Foundations.GRM.Resource + * @generated + */ + public Adapter createResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource Hw Resource}'. + * + * 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.MARTE_DesignModel.HRM.HwGeneral.HwResource + * @generated + */ + public Adapter createHwResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent Hw Component}'. + * + * 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.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent + * @generated + */ + public Adapter createHwComponentAdapter() { + 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; + } + +} //HwPowerAdapterFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/util/HwPowerResourceFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/util/HwPowerResourceFactoryImpl.java new file mode 100644 index 00000000000..548fbbf7d2e --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/util/HwPowerResourceFactoryImpl.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.MARTE_DesignModel.HRM.HwPhysical.HwPower.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; + +import org.eclipse.emf.ecore.xmi.XMLResource; + +/** + * + * The Resource Factory associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.util.HwPowerResourceImpl + * @generated + */ +public class HwPowerResourceFactoryImpl extends ResourceFactoryImpl { + /** + * Creates an instance of the resource factory. + * + * + * @generated + */ + public HwPowerResourceFactoryImpl() { + super(); + } + + /** + * Creates an instance of the resource. + * + * + * @generated + */ + @Override + public Resource createResource(URI uri) { + XMLResource result = new HwPowerResourceImpl(uri); + result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + + result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); + return result; + } + +} //HwPowerResourceFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/util/HwPowerResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/util/HwPowerResourceImpl.java new file mode 100644 index 00000000000..da164ce98af --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/util/HwPowerResourceImpl.java @@ -0,0 +1,39 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwPhysical.HwPower.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; + +/** + * + * The Resource associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.util.HwPowerResourceFactoryImpl + * @generated + */ +public class HwPowerResourceImpl extends XMLResourceImpl { + /** + * Creates an instance of the resource. + * + * + * @param uri the URI of the new resource. + * @generated + */ + public HwPowerResourceImpl(URI uri) { + super(uri); + } + +} //HwPowerResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/util/HwPowerSwitch.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/util/HwPowerSwitch.java new file mode 100644 index 00000000000..293a8b65bc8 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/util/HwPowerSwitch.java @@ -0,0 +1,215 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwPhysical.HwPower.util; + +import java.util.List; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwResource; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwLayout.HwComponent; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.*; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource; + +/** + * + * 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.MARTE_DesignModel.HRM.HwPhysical.HwPower.HwPowerPackage + * @generated + */ +public class HwPowerSwitch { + /** + * The cached model package + * + * + * @generated + */ + protected static HwPowerPackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public HwPowerSwitch() { + if (modelPackage == null) { + modelPackage = HwPowerPackage.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 HwPowerPackage.HW_POWER_SUPPLY: { + HwPowerSupply hwPowerSupply = (HwPowerSupply)theEObject; + T result = caseHwPowerSupply(hwPowerSupply); + if (result == null) result = caseHwComponent(hwPowerSupply); + if (result == null) result = caseHwResource(hwPowerSupply); + if (result == null) result = caseResource(hwPowerSupply); + if (result == null) result = defaultCase(theEObject); + return result; + } + case HwPowerPackage.HW_COOLING_SUPPLY: { + HwCoolingSupply hwCoolingSupply = (HwCoolingSupply)theEObject; + T result = caseHwCoolingSupply(hwCoolingSupply); + if (result == null) result = caseHwComponent(hwCoolingSupply); + if (result == null) result = caseHwResource(hwCoolingSupply); + if (result == null) result = caseResource(hwCoolingSupply); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Supply'. + * + * 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 'Supply'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHwPowerSupply(HwPowerSupply object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Hw Cooling Supply'. + * + * 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 'Hw Cooling Supply'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHwCoolingSupply(HwCoolingSupply object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Resource'. + * + * 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 'Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseResource(Resource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Hw Resource'. + * + * 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 'Hw Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHwResource(HwResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Hw Component'. + * + * 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 'Hw Component'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHwComponent(HwComponent 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; + } + +} //HwPowerSwitch diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/util/HwPowerXMLProcessor.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/util/HwPowerXMLProcessor.java new file mode 100644 index 00000000000..5dc2b1aaa63 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/HRM/HwPhysical/HwPower/util/HwPowerXMLProcessor.java @@ -0,0 +1,61 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.HRM.HwPhysical.HwPower.util; + +import java.util.Map; + +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.xmi.util.XMLProcessor; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwPhysical.HwPower.HwPowerPackage; + +/** + * This class contains helper methods to serialize and deserialize XML documents + * + * + * @generated + */ +public class HwPowerXMLProcessor extends XMLProcessor { + + /** + * Public constructor to instantiate the helper. + * + * + * @generated + */ + public HwPowerXMLProcessor() { + super((EPackage.Registry.INSTANCE)); + HwPowerPackage.eINSTANCE.eClass(); + } + + /** + * Register for "*" and "xml" file extensions the HwPowerResourceFactoryImpl factory. + * + * + * @generated + */ + @Override + protected Map getRegistrations() { + if (registrations == null) { + super.getRegistrations(); + registrations.put(XML_EXTENSION, new HwPowerResourceFactoryImpl()); + registrations.put(STAR_EXTENSION, new HwPowerResourceFactoryImpl()); + } + return registrations; + } + +} //HwPowerXMLProcessor diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/AccessPolicyKind.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/AccessPolicyKind.java new file mode 100644 index 00000000000..c0edba99812 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/AccessPolicyKind.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.MARTE_DesignModel.SRM.SW_Brokering; + +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 'Access Policy Kind', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.SW_BrokeringPackage#getAccessPolicyKind() + * @model + * @generated + */ +public enum AccessPolicyKind implements Enumerator { + /** + * The 'Read' literal object. + * + * + * @see #READ_VALUE + * @generated + * @ordered + */ + READ(0, "Read", "Read"), + + /** + * The 'Write' literal object. + * + * + * @see #WRITE_VALUE + * @generated + * @ordered + */ + WRITE(1, "Write", "Write"), + + /** + * The 'Read Write' literal object. + * + * + * @see #READ_WRITE_VALUE + * @generated + * @ordered + */ + READ_WRITE(2, "ReadWrite", "ReadWrite"), + + /** + * The 'Undef' literal object. + * + * + * @see #UNDEF_VALUE + * @generated + * @ordered + */ + UNDEF(3, "Undef", "Undef"), + + /** + * The 'Other' literal object. + * + * + * @see #OTHER_VALUE + * @generated + * @ordered + */ + OTHER(4, "Other", "Other"); + + /** + * The 'Read' literal value. + * + *

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

+ * + * @see #READ + * @model name="Read" + * @generated + * @ordered + */ + public static final int READ_VALUE = 0; + + /** + * The 'Write' literal value. + * + *

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

+ * + * @see #WRITE + * @model name="Write" + * @generated + * @ordered + */ + public static final int WRITE_VALUE = 1; + + /** + * The 'Read Write' literal value. + * + *

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

+ * + * @see #READ_WRITE + * @model name="ReadWrite" + * @generated + * @ordered + */ + public static final int READ_WRITE_VALUE = 2; + + /** + * 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 = 3; + + /** + * 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 = 4; + + /** + * An array of all the 'Access Policy Kind' enumerators. + * + * + * @generated + */ + private static final AccessPolicyKind[] VALUES_ARRAY = + new AccessPolicyKind[] { + READ, + WRITE, + READ_WRITE, + UNDEF, + OTHER, + }; + + /** + * A public read-only list of all the 'Access Policy Kind' enumerators. + * + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Access Policy Kind' literal with the specified literal value. + * + * + * @generated + */ + public static AccessPolicyKind get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + AccessPolicyKind result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Access Policy Kind' literal with the specified name. + * + * + * @generated + */ + public static AccessPolicyKind getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + AccessPolicyKind result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Access Policy Kind' literal with the specified integer value. + * + * + * @generated + */ + public static AccessPolicyKind get(int value) { + switch (value) { + case READ_VALUE: return READ; + case WRITE_VALUE: return WRITE; + case READ_WRITE_VALUE: return READ_WRITE; + 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 AccessPolicyKind(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; + } + +} //AccessPolicyKind diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/DeviceBroker.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/DeviceBroker.java new file mode 100644 index 00000000000..beca42d7b7e --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/DeviceBroker.java @@ -0,0 +1,198 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Brokering; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SwResource; + +import org.eclipse.uml2.uml.BehavioralFeature; +import org.eclipse.uml2.uml.TypedElement; + +/** + * + * A representation of the model object 'Device Broker'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.DeviceBroker#getAccessPolicy Access Policy}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.DeviceBroker#isIsBuffered Is Buffered}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.DeviceBroker#getDevices Devices}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.DeviceBroker#getCloseServices Close Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.DeviceBroker#getControlServices Control Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.DeviceBroker#getOpenServices Open Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.DeviceBroker#getReadServices Read Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.DeviceBroker#getWriteServices Write Services}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.SW_BrokeringPackage#getDeviceBroker() + * @model + * @generated + */ +public interface DeviceBroker extends SwResource { + /** + * Returns the value of the 'Access Policy' attribute. + * The literals are from the enumeration {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.AccessPolicyKind}. + * + *

+ * If the meaning of the 'Access Policy' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Access Policy' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.AccessPolicyKind + * @see #setAccessPolicy(AccessPolicyKind) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.SW_BrokeringPackage#getDeviceBroker_AccessPolicy() + * @model unique="false" ordered="false" + * @generated + */ + AccessPolicyKind getAccessPolicy(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.DeviceBroker#getAccessPolicy Access Policy}' attribute. + * + * + * @param value the new value of the 'Access Policy' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.AccessPolicyKind + * @see #getAccessPolicy() + * @generated + */ + void setAccessPolicy(AccessPolicyKind value); + + /** + * Returns the value of the 'Is Buffered' attribute. + * + *

+ * If the meaning of the 'Is Buffered' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Is Buffered' attribute. + * @see #setIsBuffered(boolean) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.SW_BrokeringPackage#getDeviceBroker_IsBuffered() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.Boolean" ordered="false" + * @generated + */ + boolean isIsBuffered(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.DeviceBroker#isIsBuffered Is Buffered}' attribute. + * + * + * @param value the new value of the 'Is Buffered' attribute. + * @see #isIsBuffered() + * @generated + */ + void setIsBuffered(boolean value); + + /** + * Returns the value of the 'Devices' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.TypedElement}. + * + *

+ * If the meaning of the 'Devices' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Devices' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.SW_BrokeringPackage#getDeviceBroker_Devices() + * @model ordered="false" + * @generated + */ + EList getDevices(); + + /** + * Returns the value of the 'Close Services' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.BehavioralFeature}. + * + *

+ * If the meaning of the 'Close Services' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Close Services' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.SW_BrokeringPackage#getDeviceBroker_CloseServices() + * @model ordered="false" + * @generated + */ + EList getCloseServices(); + + /** + * Returns the value of the 'Control Services' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.BehavioralFeature}. + * + *

+ * If the meaning of the 'Control Services' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Control Services' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.SW_BrokeringPackage#getDeviceBroker_ControlServices() + * @model ordered="false" + * @generated + */ + EList getControlServices(); + + /** + * Returns the value of the 'Open Services' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.BehavioralFeature}. + * + *

+ * If the meaning of the 'Open Services' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Open Services' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.SW_BrokeringPackage#getDeviceBroker_OpenServices() + * @model ordered="false" + * @generated + */ + EList getOpenServices(); + + /** + * Returns the value of the 'Read Services' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.BehavioralFeature}. + * + *

+ * If the meaning of the 'Read Services' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Read Services' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.SW_BrokeringPackage#getDeviceBroker_ReadServices() + * @model ordered="false" + * @generated + */ + EList getReadServices(); + + /** + * Returns the value of the 'Write Services' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.BehavioralFeature}. + * + *

+ * If the meaning of the 'Write Services' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Write Services' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.SW_BrokeringPackage#getDeviceBroker_WriteServices() + * @model ordered="false" + * @generated + */ + EList getWriteServices(); + +} // DeviceBroker diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/MemoryBroker.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/MemoryBroker.java new file mode 100644 index 00000000000..430ed216e36 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/MemoryBroker.java @@ -0,0 +1,188 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Brokering; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SwResource; + +import org.eclipse.uml2.uml.BehavioralFeature; +import org.eclipse.uml2.uml.TypedElement; + +/** + * + * A representation of the model object 'Memory Broker'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.MemoryBroker#getAccessPolicy Access Policy}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.MemoryBroker#getMemories Memories}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.MemoryBroker#getMemoryBlockAdressElements Memory Block Adress Elements}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.MemoryBroker#getMemoryBlockSizeElements Memory Block Size Elements}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.MemoryBroker#getLockServices Lock Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.MemoryBroker#getUnlockServices Unlock Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.MemoryBroker#getMapServices Map Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.MemoryBroker#getUnMapServices Un Map Services}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.SW_BrokeringPackage#getMemoryBroker() + * @model + * @generated + */ +public interface MemoryBroker extends SwResource { + /** + * Returns the value of the 'Access Policy' attribute. + * The literals are from the enumeration {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.AccessPolicyKind}. + * + *

+ * If the meaning of the 'Access Policy' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Access Policy' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.AccessPolicyKind + * @see #setAccessPolicy(AccessPolicyKind) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.SW_BrokeringPackage#getMemoryBroker_AccessPolicy() + * @model unique="false" ordered="false" + * @generated + */ + AccessPolicyKind getAccessPolicy(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.MemoryBroker#getAccessPolicy Access Policy}' attribute. + * + * + * @param value the new value of the 'Access Policy' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.AccessPolicyKind + * @see #getAccessPolicy() + * @generated + */ + void setAccessPolicy(AccessPolicyKind value); + + /** + * Returns the value of the 'Memories' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.TypedElement}. + * + *

+ * If the meaning of the 'Memories' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Memories' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.SW_BrokeringPackage#getMemoryBroker_Memories() + * @model ordered="false" + * @generated + */ + EList getMemories(); + + /** + * Returns the value of the 'Memory Block Adress Elements' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.TypedElement}. + * + *

+ * If the meaning of the 'Memory Block Adress Elements' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Memory Block Adress Elements' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.SW_BrokeringPackage#getMemoryBroker_MemoryBlockAdressElements() + * @model ordered="false" + * @generated + */ + EList getMemoryBlockAdressElements(); + + /** + * Returns the value of the 'Memory Block Size Elements' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.TypedElement}. + * + *

+ * If the meaning of the 'Memory Block Size Elements' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Memory Block Size Elements' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.SW_BrokeringPackage#getMemoryBroker_MemoryBlockSizeElements() + * @model ordered="false" + * @generated + */ + EList getMemoryBlockSizeElements(); + + /** + * Returns the value of the 'Lock Services' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.BehavioralFeature}. + * + *

+ * If the meaning of the 'Lock Services' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Lock Services' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.SW_BrokeringPackage#getMemoryBroker_LockServices() + * @model ordered="false" + * @generated + */ + EList getLockServices(); + + /** + * Returns the value of the 'Unlock Services' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.BehavioralFeature}. + * + *

+ * If the meaning of the 'Unlock Services' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Unlock Services' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.SW_BrokeringPackage#getMemoryBroker_UnlockServices() + * @model ordered="false" + * @generated + */ + EList getUnlockServices(); + + /** + * Returns the value of the 'Map Services' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.BehavioralFeature}. + * + *

+ * If the meaning of the 'Map Services' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Map Services' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.SW_BrokeringPackage#getMemoryBroker_MapServices() + * @model ordered="false" + * @generated + */ + EList getMapServices(); + + /** + * Returns the value of the 'Un Map Services' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.BehavioralFeature}. + * + *

+ * If the meaning of the 'Un Map Services' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Un Map Services' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.SW_BrokeringPackage#getMemoryBroker_UnMapServices() + * @model ordered="false" + * @generated + */ + EList getUnMapServices(); + +} // MemoryBroker diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/SW_BrokeringFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/SW_BrokeringFactory.java new file mode 100644 index 00000000000..7d9b170b90a --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/SW_BrokeringFactory.java @@ -0,0 +1,62 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Brokering; + +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.MARTE_DesignModel.SRM.SW_Brokering.SW_BrokeringPackage + * @generated + */ +public interface SW_BrokeringFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + SW_BrokeringFactory eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.impl.SW_BrokeringFactoryImpl.init(); + + /** + * Returns a new object of class 'Device Broker'. + * + * + * @return a new object of class 'Device Broker'. + * @generated + */ + DeviceBroker createDeviceBroker(); + + /** + * Returns a new object of class 'Memory Broker'. + * + * + * @return a new object of class 'Memory Broker'. + * @generated + */ + MemoryBroker createMemoryBroker(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + SW_BrokeringPackage getSW_BrokeringPackage(); + +} //SW_BrokeringFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/SW_BrokeringPackage.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/SW_BrokeringPackage.java new file mode 100644 index 00000000000..ed0bfba7dc2 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/SW_BrokeringPackage.java @@ -0,0 +1,905 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Brokering; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SW_ResourceCorePackage; + +/** + * + * 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.MARTE_DesignModel.SRM.SW_Brokering.SW_BrokeringFactory + * @model kind="package" + * @generated + */ +public interface SW_BrokeringPackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "SW_Brokering"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "http://www.eclipse.org/papyrus/SW_Brokering/1"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "SW_Brokering"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + SW_BrokeringPackage eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.impl.SW_BrokeringPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.impl.DeviceBrokerImpl Device Broker}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.impl.DeviceBrokerImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.impl.SW_BrokeringPackageImpl#getDeviceBroker() + * @generated + */ + int DEVICE_BROKER = 0; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int DEVICE_BROKER__RES_MULT = SW_ResourceCorePackage.SW_RESOURCE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int DEVICE_BROKER__IS_PROTECTED = SW_ResourceCorePackage.SW_RESOURCE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int DEVICE_BROKER__IS_ACTIVE = SW_ResourceCorePackage.SW_RESOURCE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int DEVICE_BROKER__BASE_PROPERTY = SW_ResourceCorePackage.SW_RESOURCE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int DEVICE_BROKER__BASE_INSTANCE_SPECIFICATION = SW_ResourceCorePackage.SW_RESOURCE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int DEVICE_BROKER__BASE_CLASSIFIER = SW_ResourceCorePackage.SW_RESOURCE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int DEVICE_BROKER__BASE_LIFELINE = SW_ResourceCorePackage.SW_RESOURCE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int DEVICE_BROKER__BASE_CONNECTABLE_ELEMENT = SW_ResourceCorePackage.SW_RESOURCE__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Identifier Elements' reference list. + * + * + * @generated + * @ordered + */ + int DEVICE_BROKER__IDENTIFIER_ELEMENTS = SW_ResourceCorePackage.SW_RESOURCE__IDENTIFIER_ELEMENTS; + + /** + * The feature id for the 'State Elements' reference list. + * + * + * @generated + * @ordered + */ + int DEVICE_BROKER__STATE_ELEMENTS = SW_ResourceCorePackage.SW_RESOURCE__STATE_ELEMENTS; + + /** + * The feature id for the 'Memory Size Footprint' reference. + * + * + * @generated + * @ordered + */ + int DEVICE_BROKER__MEMORY_SIZE_FOOTPRINT = SW_ResourceCorePackage.SW_RESOURCE__MEMORY_SIZE_FOOTPRINT; + + /** + * The feature id for the 'Create Services' reference list. + * + * + * @generated + * @ordered + */ + int DEVICE_BROKER__CREATE_SERVICES = SW_ResourceCorePackage.SW_RESOURCE__CREATE_SERVICES; + + /** + * The feature id for the 'Delete Services' reference list. + * + * + * @generated + * @ordered + */ + int DEVICE_BROKER__DELETE_SERVICES = SW_ResourceCorePackage.SW_RESOURCE__DELETE_SERVICES; + + /** + * The feature id for the 'Initialize Services' reference list. + * + * + * @generated + * @ordered + */ + int DEVICE_BROKER__INITIALIZE_SERVICES = SW_ResourceCorePackage.SW_RESOURCE__INITIALIZE_SERVICES; + + /** + * The feature id for the 'Access Policy' attribute. + * + * + * @generated + * @ordered + */ + int DEVICE_BROKER__ACCESS_POLICY = SW_ResourceCorePackage.SW_RESOURCE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Is Buffered' attribute. + * + * + * @generated + * @ordered + */ + int DEVICE_BROKER__IS_BUFFERED = SW_ResourceCorePackage.SW_RESOURCE_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Devices' reference list. + * + * + * @generated + * @ordered + */ + int DEVICE_BROKER__DEVICES = SW_ResourceCorePackage.SW_RESOURCE_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Close Services' reference list. + * + * + * @generated + * @ordered + */ + int DEVICE_BROKER__CLOSE_SERVICES = SW_ResourceCorePackage.SW_RESOURCE_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Control Services' reference list. + * + * + * @generated + * @ordered + */ + int DEVICE_BROKER__CONTROL_SERVICES = SW_ResourceCorePackage.SW_RESOURCE_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Open Services' reference list. + * + * + * @generated + * @ordered + */ + int DEVICE_BROKER__OPEN_SERVICES = SW_ResourceCorePackage.SW_RESOURCE_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Read Services' reference list. + * + * + * @generated + * @ordered + */ + int DEVICE_BROKER__READ_SERVICES = SW_ResourceCorePackage.SW_RESOURCE_FEATURE_COUNT + 6; + + /** + * The feature id for the 'Write Services' reference list. + * + * + * @generated + * @ordered + */ + int DEVICE_BROKER__WRITE_SERVICES = SW_ResourceCorePackage.SW_RESOURCE_FEATURE_COUNT + 7; + + /** + * The number of structural features of the 'Device Broker' class. + * + * + * @generated + * @ordered + */ + int DEVICE_BROKER_FEATURE_COUNT = SW_ResourceCorePackage.SW_RESOURCE_FEATURE_COUNT + 8; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.impl.MemoryBrokerImpl Memory Broker}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.impl.MemoryBrokerImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.impl.SW_BrokeringPackageImpl#getMemoryBroker() + * @generated + */ + int MEMORY_BROKER = 1; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int MEMORY_BROKER__RES_MULT = SW_ResourceCorePackage.SW_RESOURCE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int MEMORY_BROKER__IS_PROTECTED = SW_ResourceCorePackage.SW_RESOURCE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int MEMORY_BROKER__IS_ACTIVE = SW_ResourceCorePackage.SW_RESOURCE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int MEMORY_BROKER__BASE_PROPERTY = SW_ResourceCorePackage.SW_RESOURCE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int MEMORY_BROKER__BASE_INSTANCE_SPECIFICATION = SW_ResourceCorePackage.SW_RESOURCE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int MEMORY_BROKER__BASE_CLASSIFIER = SW_ResourceCorePackage.SW_RESOURCE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int MEMORY_BROKER__BASE_LIFELINE = SW_ResourceCorePackage.SW_RESOURCE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int MEMORY_BROKER__BASE_CONNECTABLE_ELEMENT = SW_ResourceCorePackage.SW_RESOURCE__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Identifier Elements' reference list. + * + * + * @generated + * @ordered + */ + int MEMORY_BROKER__IDENTIFIER_ELEMENTS = SW_ResourceCorePackage.SW_RESOURCE__IDENTIFIER_ELEMENTS; + + /** + * The feature id for the 'State Elements' reference list. + * + * + * @generated + * @ordered + */ + int MEMORY_BROKER__STATE_ELEMENTS = SW_ResourceCorePackage.SW_RESOURCE__STATE_ELEMENTS; + + /** + * The feature id for the 'Memory Size Footprint' reference. + * + * + * @generated + * @ordered + */ + int MEMORY_BROKER__MEMORY_SIZE_FOOTPRINT = SW_ResourceCorePackage.SW_RESOURCE__MEMORY_SIZE_FOOTPRINT; + + /** + * The feature id for the 'Create Services' reference list. + * + * + * @generated + * @ordered + */ + int MEMORY_BROKER__CREATE_SERVICES = SW_ResourceCorePackage.SW_RESOURCE__CREATE_SERVICES; + + /** + * The feature id for the 'Delete Services' reference list. + * + * + * @generated + * @ordered + */ + int MEMORY_BROKER__DELETE_SERVICES = SW_ResourceCorePackage.SW_RESOURCE__DELETE_SERVICES; + + /** + * The feature id for the 'Initialize Services' reference list. + * + * + * @generated + * @ordered + */ + int MEMORY_BROKER__INITIALIZE_SERVICES = SW_ResourceCorePackage.SW_RESOURCE__INITIALIZE_SERVICES; + + /** + * The feature id for the 'Access Policy' attribute. + * + * + * @generated + * @ordered + */ + int MEMORY_BROKER__ACCESS_POLICY = SW_ResourceCorePackage.SW_RESOURCE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Memories' reference list. + * + * + * @generated + * @ordered + */ + int MEMORY_BROKER__MEMORIES = SW_ResourceCorePackage.SW_RESOURCE_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Memory Block Adress Elements' reference list. + * + * + * @generated + * @ordered + */ + int MEMORY_BROKER__MEMORY_BLOCK_ADRESS_ELEMENTS = SW_ResourceCorePackage.SW_RESOURCE_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Memory Block Size Elements' reference list. + * + * + * @generated + * @ordered + */ + int MEMORY_BROKER__MEMORY_BLOCK_SIZE_ELEMENTS = SW_ResourceCorePackage.SW_RESOURCE_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Lock Services' reference list. + * + * + * @generated + * @ordered + */ + int MEMORY_BROKER__LOCK_SERVICES = SW_ResourceCorePackage.SW_RESOURCE_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Unlock Services' reference list. + * + * + * @generated + * @ordered + */ + int MEMORY_BROKER__UNLOCK_SERVICES = SW_ResourceCorePackage.SW_RESOURCE_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Map Services' reference list. + * + * + * @generated + * @ordered + */ + int MEMORY_BROKER__MAP_SERVICES = SW_ResourceCorePackage.SW_RESOURCE_FEATURE_COUNT + 6; + + /** + * The feature id for the 'Un Map Services' reference list. + * + * + * @generated + * @ordered + */ + int MEMORY_BROKER__UN_MAP_SERVICES = SW_ResourceCorePackage.SW_RESOURCE_FEATURE_COUNT + 7; + + /** + * The number of structural features of the 'Memory Broker' class. + * + * + * @generated + * @ordered + */ + int MEMORY_BROKER_FEATURE_COUNT = SW_ResourceCorePackage.SW_RESOURCE_FEATURE_COUNT + 8; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.AccessPolicyKind Access Policy Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.AccessPolicyKind + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.impl.SW_BrokeringPackageImpl#getAccessPolicyKind() + * @generated + */ + int ACCESS_POLICY_KIND = 2; + + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.DeviceBroker Device Broker}'. + * + * + * @return the meta object for class 'Device Broker'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.DeviceBroker + * @generated + */ + EClass getDeviceBroker(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.DeviceBroker#getAccessPolicy Access Policy}'. + * + * + * @return the meta object for the attribute 'Access Policy'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.DeviceBroker#getAccessPolicy() + * @see #getDeviceBroker() + * @generated + */ + EAttribute getDeviceBroker_AccessPolicy(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.DeviceBroker#isIsBuffered Is Buffered}'. + * + * + * @return the meta object for the attribute 'Is Buffered'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.DeviceBroker#isIsBuffered() + * @see #getDeviceBroker() + * @generated + */ + EAttribute getDeviceBroker_IsBuffered(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.DeviceBroker#getDevices Devices}'. + * + * + * @return the meta object for the reference list 'Devices'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.DeviceBroker#getDevices() + * @see #getDeviceBroker() + * @generated + */ + EReference getDeviceBroker_Devices(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.DeviceBroker#getCloseServices Close Services}'. + * + * + * @return the meta object for the reference list 'Close Services'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.DeviceBroker#getCloseServices() + * @see #getDeviceBroker() + * @generated + */ + EReference getDeviceBroker_CloseServices(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.DeviceBroker#getControlServices Control Services}'. + * + * + * @return the meta object for the reference list 'Control Services'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.DeviceBroker#getControlServices() + * @see #getDeviceBroker() + * @generated + */ + EReference getDeviceBroker_ControlServices(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.DeviceBroker#getOpenServices Open Services}'. + * + * + * @return the meta object for the reference list 'Open Services'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.DeviceBroker#getOpenServices() + * @see #getDeviceBroker() + * @generated + */ + EReference getDeviceBroker_OpenServices(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.DeviceBroker#getReadServices Read Services}'. + * + * + * @return the meta object for the reference list 'Read Services'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.DeviceBroker#getReadServices() + * @see #getDeviceBroker() + * @generated + */ + EReference getDeviceBroker_ReadServices(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.DeviceBroker#getWriteServices Write Services}'. + * + * + * @return the meta object for the reference list 'Write Services'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.DeviceBroker#getWriteServices() + * @see #getDeviceBroker() + * @generated + */ + EReference getDeviceBroker_WriteServices(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.MemoryBroker Memory Broker}'. + * + * + * @return the meta object for class 'Memory Broker'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.MemoryBroker + * @generated + */ + EClass getMemoryBroker(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.MemoryBroker#getAccessPolicy Access Policy}'. + * + * + * @return the meta object for the attribute 'Access Policy'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.MemoryBroker#getAccessPolicy() + * @see #getMemoryBroker() + * @generated + */ + EAttribute getMemoryBroker_AccessPolicy(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.MemoryBroker#getMemories Memories}'. + * + * + * @return the meta object for the reference list 'Memories'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.MemoryBroker#getMemories() + * @see #getMemoryBroker() + * @generated + */ + EReference getMemoryBroker_Memories(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.MemoryBroker#getMemoryBlockAdressElements Memory Block Adress Elements}'. + * + * + * @return the meta object for the reference list 'Memory Block Adress Elements'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.MemoryBroker#getMemoryBlockAdressElements() + * @see #getMemoryBroker() + * @generated + */ + EReference getMemoryBroker_MemoryBlockAdressElements(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.MemoryBroker#getMemoryBlockSizeElements Memory Block Size Elements}'. + * + * + * @return the meta object for the reference list 'Memory Block Size Elements'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.MemoryBroker#getMemoryBlockSizeElements() + * @see #getMemoryBroker() + * @generated + */ + EReference getMemoryBroker_MemoryBlockSizeElements(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.MemoryBroker#getLockServices Lock Services}'. + * + * + * @return the meta object for the reference list 'Lock Services'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.MemoryBroker#getLockServices() + * @see #getMemoryBroker() + * @generated + */ + EReference getMemoryBroker_LockServices(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.MemoryBroker#getUnlockServices Unlock Services}'. + * + * + * @return the meta object for the reference list 'Unlock Services'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.MemoryBroker#getUnlockServices() + * @see #getMemoryBroker() + * @generated + */ + EReference getMemoryBroker_UnlockServices(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.MemoryBroker#getMapServices Map Services}'. + * + * + * @return the meta object for the reference list 'Map Services'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.MemoryBroker#getMapServices() + * @see #getMemoryBroker() + * @generated + */ + EReference getMemoryBroker_MapServices(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.MemoryBroker#getUnMapServices Un Map Services}'. + * + * + * @return the meta object for the reference list 'Un Map Services'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.MemoryBroker#getUnMapServices() + * @see #getMemoryBroker() + * @generated + */ + EReference getMemoryBroker_UnMapServices(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.AccessPolicyKind Access Policy Kind}'. + * + * + * @return the meta object for enum 'Access Policy Kind'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.AccessPolicyKind + * @generated + */ + EEnum getAccessPolicyKind(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + SW_BrokeringFactory getSW_BrokeringFactory(); + + /** + * + * 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.MARTE_DesignModel.SRM.SW_Brokering.impl.DeviceBrokerImpl Device Broker}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.impl.DeviceBrokerImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.impl.SW_BrokeringPackageImpl#getDeviceBroker() + * @generated + */ + EClass DEVICE_BROKER = eINSTANCE.getDeviceBroker(); + + /** + * The meta object literal for the 'Access Policy' attribute feature. + * + * + * @generated + */ + EAttribute DEVICE_BROKER__ACCESS_POLICY = eINSTANCE.getDeviceBroker_AccessPolicy(); + + /** + * The meta object literal for the 'Is Buffered' attribute feature. + * + * + * @generated + */ + EAttribute DEVICE_BROKER__IS_BUFFERED = eINSTANCE.getDeviceBroker_IsBuffered(); + + /** + * The meta object literal for the 'Devices' reference list feature. + * + * + * @generated + */ + EReference DEVICE_BROKER__DEVICES = eINSTANCE.getDeviceBroker_Devices(); + + /** + * The meta object literal for the 'Close Services' reference list feature. + * + * + * @generated + */ + EReference DEVICE_BROKER__CLOSE_SERVICES = eINSTANCE.getDeviceBroker_CloseServices(); + + /** + * The meta object literal for the 'Control Services' reference list feature. + * + * + * @generated + */ + EReference DEVICE_BROKER__CONTROL_SERVICES = eINSTANCE.getDeviceBroker_ControlServices(); + + /** + * The meta object literal for the 'Open Services' reference list feature. + * + * + * @generated + */ + EReference DEVICE_BROKER__OPEN_SERVICES = eINSTANCE.getDeviceBroker_OpenServices(); + + /** + * The meta object literal for the 'Read Services' reference list feature. + * + * + * @generated + */ + EReference DEVICE_BROKER__READ_SERVICES = eINSTANCE.getDeviceBroker_ReadServices(); + + /** + * The meta object literal for the 'Write Services' reference list feature. + * + * + * @generated + */ + EReference DEVICE_BROKER__WRITE_SERVICES = eINSTANCE.getDeviceBroker_WriteServices(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.impl.MemoryBrokerImpl Memory Broker}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.impl.MemoryBrokerImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.impl.SW_BrokeringPackageImpl#getMemoryBroker() + * @generated + */ + EClass MEMORY_BROKER = eINSTANCE.getMemoryBroker(); + + /** + * The meta object literal for the 'Access Policy' attribute feature. + * + * + * @generated + */ + EAttribute MEMORY_BROKER__ACCESS_POLICY = eINSTANCE.getMemoryBroker_AccessPolicy(); + + /** + * The meta object literal for the 'Memories' reference list feature. + * + * + * @generated + */ + EReference MEMORY_BROKER__MEMORIES = eINSTANCE.getMemoryBroker_Memories(); + + /** + * The meta object literal for the 'Memory Block Adress Elements' reference list feature. + * + * + * @generated + */ + EReference MEMORY_BROKER__MEMORY_BLOCK_ADRESS_ELEMENTS = eINSTANCE.getMemoryBroker_MemoryBlockAdressElements(); + + /** + * The meta object literal for the 'Memory Block Size Elements' reference list feature. + * + * + * @generated + */ + EReference MEMORY_BROKER__MEMORY_BLOCK_SIZE_ELEMENTS = eINSTANCE.getMemoryBroker_MemoryBlockSizeElements(); + + /** + * The meta object literal for the 'Lock Services' reference list feature. + * + * + * @generated + */ + EReference MEMORY_BROKER__LOCK_SERVICES = eINSTANCE.getMemoryBroker_LockServices(); + + /** + * The meta object literal for the 'Unlock Services' reference list feature. + * + * + * @generated + */ + EReference MEMORY_BROKER__UNLOCK_SERVICES = eINSTANCE.getMemoryBroker_UnlockServices(); + + /** + * The meta object literal for the 'Map Services' reference list feature. + * + * + * @generated + */ + EReference MEMORY_BROKER__MAP_SERVICES = eINSTANCE.getMemoryBroker_MapServices(); + + /** + * The meta object literal for the 'Un Map Services' reference list feature. + * + * + * @generated + */ + EReference MEMORY_BROKER__UN_MAP_SERVICES = eINSTANCE.getMemoryBroker_UnMapServices(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.AccessPolicyKind Access Policy Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.AccessPolicyKind + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.impl.SW_BrokeringPackageImpl#getAccessPolicyKind() + * @generated + */ + EEnum ACCESS_POLICY_KIND = eINSTANCE.getAccessPolicyKind(); + + } + +} //SW_BrokeringPackage diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/impl/DeviceBrokerImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/impl/DeviceBrokerImpl.java new file mode 100644 index 00000000000..9128f92ad10 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/impl/DeviceBrokerImpl.java @@ -0,0 +1,444 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Brokering.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EObjectResolvingEList; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.AccessPolicyKind; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.DeviceBroker; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.SW_BrokeringPackage; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.impl.SwResourceImpl; + +import org.eclipse.uml2.uml.BehavioralFeature; +import org.eclipse.uml2.uml.TypedElement; + +/** + * + * An implementation of the model object 'Device Broker'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.impl.DeviceBrokerImpl#getAccessPolicy Access Policy}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.impl.DeviceBrokerImpl#isIsBuffered Is Buffered}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.impl.DeviceBrokerImpl#getDevices Devices}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.impl.DeviceBrokerImpl#getCloseServices Close Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.impl.DeviceBrokerImpl#getControlServices Control Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.impl.DeviceBrokerImpl#getOpenServices Open Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.impl.DeviceBrokerImpl#getReadServices Read Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.impl.DeviceBrokerImpl#getWriteServices Write Services}
  • + *
+ *

+ * + * @generated + */ +public class DeviceBrokerImpl extends SwResourceImpl implements DeviceBroker { + /** + * The default value of the '{@link #getAccessPolicy() Access Policy}' attribute. + * + * + * @see #getAccessPolicy() + * @generated + * @ordered + */ + protected static final AccessPolicyKind ACCESS_POLICY_EDEFAULT = AccessPolicyKind.READ; + + /** + * The cached value of the '{@link #getAccessPolicy() Access Policy}' attribute. + * + * + * @see #getAccessPolicy() + * @generated + * @ordered + */ + protected AccessPolicyKind accessPolicy = ACCESS_POLICY_EDEFAULT; + + /** + * The default value of the '{@link #isIsBuffered() Is Buffered}' attribute. + * + * + * @see #isIsBuffered() + * @generated + * @ordered + */ + protected static final boolean IS_BUFFERED_EDEFAULT = false; + + /** + * The cached value of the '{@link #isIsBuffered() Is Buffered}' attribute. + * + * + * @see #isIsBuffered() + * @generated + * @ordered + */ + protected boolean isBuffered = IS_BUFFERED_EDEFAULT; + + /** + * The cached value of the '{@link #getDevices() Devices}' reference list. + * + * + * @see #getDevices() + * @generated + * @ordered + */ + protected EList devices; + + /** + * The cached value of the '{@link #getCloseServices() Close Services}' reference list. + * + * + * @see #getCloseServices() + * @generated + * @ordered + */ + protected EList closeServices; + + /** + * The cached value of the '{@link #getControlServices() Control Services}' reference list. + * + * + * @see #getControlServices() + * @generated + * @ordered + */ + protected EList controlServices; + + /** + * The cached value of the '{@link #getOpenServices() Open Services}' reference list. + * + * + * @see #getOpenServices() + * @generated + * @ordered + */ + protected EList openServices; + + /** + * The cached value of the '{@link #getReadServices() Read Services}' reference list. + * + * + * @see #getReadServices() + * @generated + * @ordered + */ + protected EList readServices; + + /** + * The cached value of the '{@link #getWriteServices() Write Services}' reference list. + * + * + * @see #getWriteServices() + * @generated + * @ordered + */ + protected EList writeServices; + + /** + * + * + * @generated + */ + protected DeviceBrokerImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SW_BrokeringPackage.Literals.DEVICE_BROKER; + } + + /** + * + * + * @generated + */ + public AccessPolicyKind getAccessPolicy() { + return accessPolicy; + } + + /** + * + * + * @generated + */ + public void setAccessPolicy(AccessPolicyKind newAccessPolicy) { + AccessPolicyKind oldAccessPolicy = accessPolicy; + accessPolicy = newAccessPolicy == null ? ACCESS_POLICY_EDEFAULT : newAccessPolicy; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SW_BrokeringPackage.DEVICE_BROKER__ACCESS_POLICY, oldAccessPolicy, accessPolicy)); + } + + /** + * + * + * @generated + */ + public boolean isIsBuffered() { + return isBuffered; + } + + /** + * + * + * @generated + */ + public void setIsBuffered(boolean newIsBuffered) { + boolean oldIsBuffered = isBuffered; + isBuffered = newIsBuffered; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SW_BrokeringPackage.DEVICE_BROKER__IS_BUFFERED, oldIsBuffered, isBuffered)); + } + + /** + * + * + * @generated + */ + public EList getDevices() { + if (devices == null) { + devices = new EObjectResolvingEList(TypedElement.class, this, SW_BrokeringPackage.DEVICE_BROKER__DEVICES); + } + return devices; + } + + /** + * + * + * @generated + */ + public EList getCloseServices() { + if (closeServices == null) { + closeServices = new EObjectResolvingEList(BehavioralFeature.class, this, SW_BrokeringPackage.DEVICE_BROKER__CLOSE_SERVICES); + } + return closeServices; + } + + /** + * + * + * @generated + */ + public EList getControlServices() { + if (controlServices == null) { + controlServices = new EObjectResolvingEList(BehavioralFeature.class, this, SW_BrokeringPackage.DEVICE_BROKER__CONTROL_SERVICES); + } + return controlServices; + } + + /** + * + * + * @generated + */ + public EList getOpenServices() { + if (openServices == null) { + openServices = new EObjectResolvingEList(BehavioralFeature.class, this, SW_BrokeringPackage.DEVICE_BROKER__OPEN_SERVICES); + } + return openServices; + } + + /** + * + * + * @generated + */ + public EList getReadServices() { + if (readServices == null) { + readServices = new EObjectResolvingEList(BehavioralFeature.class, this, SW_BrokeringPackage.DEVICE_BROKER__READ_SERVICES); + } + return readServices; + } + + /** + * + * + * @generated + */ + public EList getWriteServices() { + if (writeServices == null) { + writeServices = new EObjectResolvingEList(BehavioralFeature.class, this, SW_BrokeringPackage.DEVICE_BROKER__WRITE_SERVICES); + } + return writeServices; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SW_BrokeringPackage.DEVICE_BROKER__ACCESS_POLICY: + return getAccessPolicy(); + case SW_BrokeringPackage.DEVICE_BROKER__IS_BUFFERED: + return isIsBuffered(); + case SW_BrokeringPackage.DEVICE_BROKER__DEVICES: + return getDevices(); + case SW_BrokeringPackage.DEVICE_BROKER__CLOSE_SERVICES: + return getCloseServices(); + case SW_BrokeringPackage.DEVICE_BROKER__CONTROL_SERVICES: + return getControlServices(); + case SW_BrokeringPackage.DEVICE_BROKER__OPEN_SERVICES: + return getOpenServices(); + case SW_BrokeringPackage.DEVICE_BROKER__READ_SERVICES: + return getReadServices(); + case SW_BrokeringPackage.DEVICE_BROKER__WRITE_SERVICES: + return getWriteServices(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SW_BrokeringPackage.DEVICE_BROKER__ACCESS_POLICY: + setAccessPolicy((AccessPolicyKind)newValue); + return; + case SW_BrokeringPackage.DEVICE_BROKER__IS_BUFFERED: + setIsBuffered((Boolean)newValue); + return; + case SW_BrokeringPackage.DEVICE_BROKER__DEVICES: + getDevices().clear(); + getDevices().addAll((Collection)newValue); + return; + case SW_BrokeringPackage.DEVICE_BROKER__CLOSE_SERVICES: + getCloseServices().clear(); + getCloseServices().addAll((Collection)newValue); + return; + case SW_BrokeringPackage.DEVICE_BROKER__CONTROL_SERVICES: + getControlServices().clear(); + getControlServices().addAll((Collection)newValue); + return; + case SW_BrokeringPackage.DEVICE_BROKER__OPEN_SERVICES: + getOpenServices().clear(); + getOpenServices().addAll((Collection)newValue); + return; + case SW_BrokeringPackage.DEVICE_BROKER__READ_SERVICES: + getReadServices().clear(); + getReadServices().addAll((Collection)newValue); + return; + case SW_BrokeringPackage.DEVICE_BROKER__WRITE_SERVICES: + getWriteServices().clear(); + getWriteServices().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SW_BrokeringPackage.DEVICE_BROKER__ACCESS_POLICY: + setAccessPolicy(ACCESS_POLICY_EDEFAULT); + return; + case SW_BrokeringPackage.DEVICE_BROKER__IS_BUFFERED: + setIsBuffered(IS_BUFFERED_EDEFAULT); + return; + case SW_BrokeringPackage.DEVICE_BROKER__DEVICES: + getDevices().clear(); + return; + case SW_BrokeringPackage.DEVICE_BROKER__CLOSE_SERVICES: + getCloseServices().clear(); + return; + case SW_BrokeringPackage.DEVICE_BROKER__CONTROL_SERVICES: + getControlServices().clear(); + return; + case SW_BrokeringPackage.DEVICE_BROKER__OPEN_SERVICES: + getOpenServices().clear(); + return; + case SW_BrokeringPackage.DEVICE_BROKER__READ_SERVICES: + getReadServices().clear(); + return; + case SW_BrokeringPackage.DEVICE_BROKER__WRITE_SERVICES: + getWriteServices().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SW_BrokeringPackage.DEVICE_BROKER__ACCESS_POLICY: + return accessPolicy != ACCESS_POLICY_EDEFAULT; + case SW_BrokeringPackage.DEVICE_BROKER__IS_BUFFERED: + return isBuffered != IS_BUFFERED_EDEFAULT; + case SW_BrokeringPackage.DEVICE_BROKER__DEVICES: + return devices != null && !devices.isEmpty(); + case SW_BrokeringPackage.DEVICE_BROKER__CLOSE_SERVICES: + return closeServices != null && !closeServices.isEmpty(); + case SW_BrokeringPackage.DEVICE_BROKER__CONTROL_SERVICES: + return controlServices != null && !controlServices.isEmpty(); + case SW_BrokeringPackage.DEVICE_BROKER__OPEN_SERVICES: + return openServices != null && !openServices.isEmpty(); + case SW_BrokeringPackage.DEVICE_BROKER__READ_SERVICES: + return readServices != null && !readServices.isEmpty(); + case SW_BrokeringPackage.DEVICE_BROKER__WRITE_SERVICES: + return writeServices != null && !writeServices.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (accessPolicy: "); + result.append(accessPolicy); + result.append(", isBuffered: "); + result.append(isBuffered); + result.append(')'); + return result.toString(); + } + +} //DeviceBrokerImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/impl/MemoryBrokerImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/impl/MemoryBrokerImpl.java new file mode 100644 index 00000000000..c0cb07e6870 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/impl/MemoryBrokerImpl.java @@ -0,0 +1,424 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Brokering.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EObjectResolvingEList; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.AccessPolicyKind; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.MemoryBroker; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.SW_BrokeringPackage; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.impl.SwResourceImpl; + +import org.eclipse.uml2.uml.BehavioralFeature; +import org.eclipse.uml2.uml.TypedElement; + +/** + * + * An implementation of the model object 'Memory Broker'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.impl.MemoryBrokerImpl#getAccessPolicy Access Policy}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.impl.MemoryBrokerImpl#getMemories Memories}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.impl.MemoryBrokerImpl#getMemoryBlockAdressElements Memory Block Adress Elements}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.impl.MemoryBrokerImpl#getMemoryBlockSizeElements Memory Block Size Elements}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.impl.MemoryBrokerImpl#getLockServices Lock Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.impl.MemoryBrokerImpl#getUnlockServices Unlock Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.impl.MemoryBrokerImpl#getMapServices Map Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.impl.MemoryBrokerImpl#getUnMapServices Un Map Services}
  • + *
+ *

+ * + * @generated + */ +public class MemoryBrokerImpl extends SwResourceImpl implements MemoryBroker { + /** + * The default value of the '{@link #getAccessPolicy() Access Policy}' attribute. + * + * + * @see #getAccessPolicy() + * @generated + * @ordered + */ + protected static final AccessPolicyKind ACCESS_POLICY_EDEFAULT = AccessPolicyKind.READ; + + /** + * The cached value of the '{@link #getAccessPolicy() Access Policy}' attribute. + * + * + * @see #getAccessPolicy() + * @generated + * @ordered + */ + protected AccessPolicyKind accessPolicy = ACCESS_POLICY_EDEFAULT; + + /** + * The cached value of the '{@link #getMemories() Memories}' reference list. + * + * + * @see #getMemories() + * @generated + * @ordered + */ + protected EList memories; + + /** + * The cached value of the '{@link #getMemoryBlockAdressElements() Memory Block Adress Elements}' reference list. + * + * + * @see #getMemoryBlockAdressElements() + * @generated + * @ordered + */ + protected EList memoryBlockAdressElements; + + /** + * The cached value of the '{@link #getMemoryBlockSizeElements() Memory Block Size Elements}' reference list. + * + * + * @see #getMemoryBlockSizeElements() + * @generated + * @ordered + */ + protected EList memoryBlockSizeElements; + + /** + * The cached value of the '{@link #getLockServices() Lock Services}' reference list. + * + * + * @see #getLockServices() + * @generated + * @ordered + */ + protected EList lockServices; + + /** + * The cached value of the '{@link #getUnlockServices() Unlock Services}' reference list. + * + * + * @see #getUnlockServices() + * @generated + * @ordered + */ + protected EList unlockServices; + + /** + * The cached value of the '{@link #getMapServices() Map Services}' reference list. + * + * + * @see #getMapServices() + * @generated + * @ordered + */ + protected EList mapServices; + + /** + * The cached value of the '{@link #getUnMapServices() Un Map Services}' reference list. + * + * + * @see #getUnMapServices() + * @generated + * @ordered + */ + protected EList unMapServices; + + /** + * + * + * @generated + */ + protected MemoryBrokerImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SW_BrokeringPackage.Literals.MEMORY_BROKER; + } + + /** + * + * + * @generated + */ + public AccessPolicyKind getAccessPolicy() { + return accessPolicy; + } + + /** + * + * + * @generated + */ + public void setAccessPolicy(AccessPolicyKind newAccessPolicy) { + AccessPolicyKind oldAccessPolicy = accessPolicy; + accessPolicy = newAccessPolicy == null ? ACCESS_POLICY_EDEFAULT : newAccessPolicy; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SW_BrokeringPackage.MEMORY_BROKER__ACCESS_POLICY, oldAccessPolicy, accessPolicy)); + } + + /** + * + * + * @generated + */ + public EList getMemories() { + if (memories == null) { + memories = new EObjectResolvingEList(TypedElement.class, this, SW_BrokeringPackage.MEMORY_BROKER__MEMORIES); + } + return memories; + } + + /** + * + * + * @generated + */ + public EList getMemoryBlockAdressElements() { + if (memoryBlockAdressElements == null) { + memoryBlockAdressElements = new EObjectResolvingEList(TypedElement.class, this, SW_BrokeringPackage.MEMORY_BROKER__MEMORY_BLOCK_ADRESS_ELEMENTS); + } + return memoryBlockAdressElements; + } + + /** + * + * + * @generated + */ + public EList getMemoryBlockSizeElements() { + if (memoryBlockSizeElements == null) { + memoryBlockSizeElements = new EObjectResolvingEList(TypedElement.class, this, SW_BrokeringPackage.MEMORY_BROKER__MEMORY_BLOCK_SIZE_ELEMENTS); + } + return memoryBlockSizeElements; + } + + /** + * + * + * @generated + */ + public EList getLockServices() { + if (lockServices == null) { + lockServices = new EObjectResolvingEList(BehavioralFeature.class, this, SW_BrokeringPackage.MEMORY_BROKER__LOCK_SERVICES); + } + return lockServices; + } + + /** + * + * + * @generated + */ + public EList getUnlockServices() { + if (unlockServices == null) { + unlockServices = new EObjectResolvingEList(BehavioralFeature.class, this, SW_BrokeringPackage.MEMORY_BROKER__UNLOCK_SERVICES); + } + return unlockServices; + } + + /** + * + * + * @generated + */ + public EList getMapServices() { + if (mapServices == null) { + mapServices = new EObjectResolvingEList(BehavioralFeature.class, this, SW_BrokeringPackage.MEMORY_BROKER__MAP_SERVICES); + } + return mapServices; + } + + /** + * + * + * @generated + */ + public EList getUnMapServices() { + if (unMapServices == null) { + unMapServices = new EObjectResolvingEList(BehavioralFeature.class, this, SW_BrokeringPackage.MEMORY_BROKER__UN_MAP_SERVICES); + } + return unMapServices; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SW_BrokeringPackage.MEMORY_BROKER__ACCESS_POLICY: + return getAccessPolicy(); + case SW_BrokeringPackage.MEMORY_BROKER__MEMORIES: + return getMemories(); + case SW_BrokeringPackage.MEMORY_BROKER__MEMORY_BLOCK_ADRESS_ELEMENTS: + return getMemoryBlockAdressElements(); + case SW_BrokeringPackage.MEMORY_BROKER__MEMORY_BLOCK_SIZE_ELEMENTS: + return getMemoryBlockSizeElements(); + case SW_BrokeringPackage.MEMORY_BROKER__LOCK_SERVICES: + return getLockServices(); + case SW_BrokeringPackage.MEMORY_BROKER__UNLOCK_SERVICES: + return getUnlockServices(); + case SW_BrokeringPackage.MEMORY_BROKER__MAP_SERVICES: + return getMapServices(); + case SW_BrokeringPackage.MEMORY_BROKER__UN_MAP_SERVICES: + return getUnMapServices(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SW_BrokeringPackage.MEMORY_BROKER__ACCESS_POLICY: + setAccessPolicy((AccessPolicyKind)newValue); + return; + case SW_BrokeringPackage.MEMORY_BROKER__MEMORIES: + getMemories().clear(); + getMemories().addAll((Collection)newValue); + return; + case SW_BrokeringPackage.MEMORY_BROKER__MEMORY_BLOCK_ADRESS_ELEMENTS: + getMemoryBlockAdressElements().clear(); + getMemoryBlockAdressElements().addAll((Collection)newValue); + return; + case SW_BrokeringPackage.MEMORY_BROKER__MEMORY_BLOCK_SIZE_ELEMENTS: + getMemoryBlockSizeElements().clear(); + getMemoryBlockSizeElements().addAll((Collection)newValue); + return; + case SW_BrokeringPackage.MEMORY_BROKER__LOCK_SERVICES: + getLockServices().clear(); + getLockServices().addAll((Collection)newValue); + return; + case SW_BrokeringPackage.MEMORY_BROKER__UNLOCK_SERVICES: + getUnlockServices().clear(); + getUnlockServices().addAll((Collection)newValue); + return; + case SW_BrokeringPackage.MEMORY_BROKER__MAP_SERVICES: + getMapServices().clear(); + getMapServices().addAll((Collection)newValue); + return; + case SW_BrokeringPackage.MEMORY_BROKER__UN_MAP_SERVICES: + getUnMapServices().clear(); + getUnMapServices().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SW_BrokeringPackage.MEMORY_BROKER__ACCESS_POLICY: + setAccessPolicy(ACCESS_POLICY_EDEFAULT); + return; + case SW_BrokeringPackage.MEMORY_BROKER__MEMORIES: + getMemories().clear(); + return; + case SW_BrokeringPackage.MEMORY_BROKER__MEMORY_BLOCK_ADRESS_ELEMENTS: + getMemoryBlockAdressElements().clear(); + return; + case SW_BrokeringPackage.MEMORY_BROKER__MEMORY_BLOCK_SIZE_ELEMENTS: + getMemoryBlockSizeElements().clear(); + return; + case SW_BrokeringPackage.MEMORY_BROKER__LOCK_SERVICES: + getLockServices().clear(); + return; + case SW_BrokeringPackage.MEMORY_BROKER__UNLOCK_SERVICES: + getUnlockServices().clear(); + return; + case SW_BrokeringPackage.MEMORY_BROKER__MAP_SERVICES: + getMapServices().clear(); + return; + case SW_BrokeringPackage.MEMORY_BROKER__UN_MAP_SERVICES: + getUnMapServices().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SW_BrokeringPackage.MEMORY_BROKER__ACCESS_POLICY: + return accessPolicy != ACCESS_POLICY_EDEFAULT; + case SW_BrokeringPackage.MEMORY_BROKER__MEMORIES: + return memories != null && !memories.isEmpty(); + case SW_BrokeringPackage.MEMORY_BROKER__MEMORY_BLOCK_ADRESS_ELEMENTS: + return memoryBlockAdressElements != null && !memoryBlockAdressElements.isEmpty(); + case SW_BrokeringPackage.MEMORY_BROKER__MEMORY_BLOCK_SIZE_ELEMENTS: + return memoryBlockSizeElements != null && !memoryBlockSizeElements.isEmpty(); + case SW_BrokeringPackage.MEMORY_BROKER__LOCK_SERVICES: + return lockServices != null && !lockServices.isEmpty(); + case SW_BrokeringPackage.MEMORY_BROKER__UNLOCK_SERVICES: + return unlockServices != null && !unlockServices.isEmpty(); + case SW_BrokeringPackage.MEMORY_BROKER__MAP_SERVICES: + return mapServices != null && !mapServices.isEmpty(); + case SW_BrokeringPackage.MEMORY_BROKER__UN_MAP_SERVICES: + return unMapServices != null && !unMapServices.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (accessPolicy: "); + result.append(accessPolicy); + result.append(')'); + return result.toString(); + } + +} //MemoryBrokerImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/impl/SW_BrokeringFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/impl/SW_BrokeringFactoryImpl.java new file mode 100644 index 00000000000..44a525113c0 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/impl/SW_BrokeringFactoryImpl.java @@ -0,0 +1,168 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Brokering.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.MARTE_DesignModel.SRM.SW_Brokering.*; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class SW_BrokeringFactoryImpl extends EFactoryImpl implements SW_BrokeringFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static SW_BrokeringFactory init() { + try { + SW_BrokeringFactory theSW_BrokeringFactory = (SW_BrokeringFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/SW_Brokering/1"); + if (theSW_BrokeringFactory != null) { + return theSW_BrokeringFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new SW_BrokeringFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public SW_BrokeringFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case SW_BrokeringPackage.DEVICE_BROKER: return createDeviceBroker(); + case SW_BrokeringPackage.MEMORY_BROKER: return createMemoryBroker(); + 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 SW_BrokeringPackage.ACCESS_POLICY_KIND: + return createAccessPolicyKindFromString(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 SW_BrokeringPackage.ACCESS_POLICY_KIND: + return convertAccessPolicyKindToString(eDataType, instanceValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public DeviceBroker createDeviceBroker() { + DeviceBrokerImpl deviceBroker = new DeviceBrokerImpl(); + return deviceBroker; + } + + /** + * + * + * @generated + */ + public MemoryBroker createMemoryBroker() { + MemoryBrokerImpl memoryBroker = new MemoryBrokerImpl(); + return memoryBroker; + } + + /** + * + * + * @generated + */ + public AccessPolicyKind createAccessPolicyKindFromString(EDataType eDataType, String initialValue) { + AccessPolicyKind result = AccessPolicyKind.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertAccessPolicyKindToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public SW_BrokeringPackage getSW_BrokeringPackage() { + return (SW_BrokeringPackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static SW_BrokeringPackage getPackage() { + return SW_BrokeringPackage.eINSTANCE; + } + +} //SW_BrokeringFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/impl/SW_BrokeringPackageImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/impl/SW_BrokeringPackageImpl.java new file mode 100644 index 00000000000..fbaa1eafa2d --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/impl/SW_BrokeringPackageImpl.java @@ -0,0 +1,658 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Brokering.impl; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +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.AccessPolicyKind; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.DeviceBroker; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.MemoryBroker; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.SW_BrokeringFactory; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.SW_BrokeringPackage; + +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.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 SW_BrokeringPackageImpl extends EPackageImpl implements SW_BrokeringPackage { + /** + * + * + * @generated + */ + private EClass deviceBrokerEClass = null; + + /** + * + * + * @generated + */ + private EClass memoryBrokerEClass = null; + + /** + * + * + * @generated + */ + private EEnum accessPolicyKindEEnum = 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.MARTE_DesignModel.SRM.SW_Brokering.SW_BrokeringPackage#eNS_URI + * @see #init() + * @generated + */ + private SW_BrokeringPackageImpl() { + super(eNS_URI, SW_BrokeringFactory.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 SW_BrokeringPackage#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 SW_BrokeringPackage init() { + if (isInited) return (SW_BrokeringPackage)EPackage.Registry.INSTANCE.getEPackage(SW_BrokeringPackage.eNS_URI); + + // Obtain or create and register package + SW_BrokeringPackageImpl theSW_BrokeringPackage = (SW_BrokeringPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof SW_BrokeringPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new SW_BrokeringPackageImpl()); + + 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_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); + 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 + theSW_BrokeringPackage.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_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(); + theMARTE_PrimitivesTypesPackage.createPackageContents(); + + // Initialize created meta-data + theSW_BrokeringPackage.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_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(); + theMARTE_PrimitivesTypesPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theSW_BrokeringPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(SW_BrokeringPackage.eNS_URI, theSW_BrokeringPackage); + return theSW_BrokeringPackage; + } + + /** + * + * + * @generated + */ + public EClass getDeviceBroker() { + return deviceBrokerEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getDeviceBroker_AccessPolicy() { + return (EAttribute)deviceBrokerEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getDeviceBroker_IsBuffered() { + return (EAttribute)deviceBrokerEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getDeviceBroker_Devices() { + return (EReference)deviceBrokerEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getDeviceBroker_CloseServices() { + return (EReference)deviceBrokerEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EReference getDeviceBroker_ControlServices() { + return (EReference)deviceBrokerEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EReference getDeviceBroker_OpenServices() { + return (EReference)deviceBrokerEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EReference getDeviceBroker_ReadServices() { + return (EReference)deviceBrokerEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EReference getDeviceBroker_WriteServices() { + return (EReference)deviceBrokerEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EClass getMemoryBroker() { + return memoryBrokerEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getMemoryBroker_AccessPolicy() { + return (EAttribute)memoryBrokerEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getMemoryBroker_Memories() { + return (EReference)memoryBrokerEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getMemoryBroker_MemoryBlockAdressElements() { + return (EReference)memoryBrokerEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getMemoryBroker_MemoryBlockSizeElements() { + return (EReference)memoryBrokerEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EReference getMemoryBroker_LockServices() { + return (EReference)memoryBrokerEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EReference getMemoryBroker_UnlockServices() { + return (EReference)memoryBrokerEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EReference getMemoryBroker_MapServices() { + return (EReference)memoryBrokerEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EReference getMemoryBroker_UnMapServices() { + return (EReference)memoryBrokerEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EEnum getAccessPolicyKind() { + return accessPolicyKindEEnum; + } + + /** + * + * + * @generated + */ + public SW_BrokeringFactory getSW_BrokeringFactory() { + return (SW_BrokeringFactory)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 + deviceBrokerEClass = createEClass(DEVICE_BROKER); + createEAttribute(deviceBrokerEClass, DEVICE_BROKER__ACCESS_POLICY); + createEAttribute(deviceBrokerEClass, DEVICE_BROKER__IS_BUFFERED); + createEReference(deviceBrokerEClass, DEVICE_BROKER__DEVICES); + createEReference(deviceBrokerEClass, DEVICE_BROKER__CLOSE_SERVICES); + createEReference(deviceBrokerEClass, DEVICE_BROKER__CONTROL_SERVICES); + createEReference(deviceBrokerEClass, DEVICE_BROKER__OPEN_SERVICES); + createEReference(deviceBrokerEClass, DEVICE_BROKER__READ_SERVICES); + createEReference(deviceBrokerEClass, DEVICE_BROKER__WRITE_SERVICES); + + memoryBrokerEClass = createEClass(MEMORY_BROKER); + createEAttribute(memoryBrokerEClass, MEMORY_BROKER__ACCESS_POLICY); + createEReference(memoryBrokerEClass, MEMORY_BROKER__MEMORIES); + createEReference(memoryBrokerEClass, MEMORY_BROKER__MEMORY_BLOCK_ADRESS_ELEMENTS); + createEReference(memoryBrokerEClass, MEMORY_BROKER__MEMORY_BLOCK_SIZE_ELEMENTS); + createEReference(memoryBrokerEClass, MEMORY_BROKER__LOCK_SERVICES); + createEReference(memoryBrokerEClass, MEMORY_BROKER__UNLOCK_SERVICES); + createEReference(memoryBrokerEClass, MEMORY_BROKER__MAP_SERVICES); + createEReference(memoryBrokerEClass, MEMORY_BROKER__UN_MAP_SERVICES); + + // Create enums + accessPolicyKindEEnum = createEEnum(ACCESS_POLICY_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); + + // Obtain other dependent packages + SW_ResourceCorePackage theSW_ResourceCorePackage = (SW_ResourceCorePackage)EPackage.Registry.INSTANCE.getEPackage(SW_ResourceCorePackage.eNS_URI); + MARTE_PrimitivesTypesPackage theMARTE_PrimitivesTypesPackage = (MARTE_PrimitivesTypesPackage)EPackage.Registry.INSTANCE.getEPackage(MARTE_PrimitivesTypesPackage.eNS_URI); + UMLPackage theUMLPackage = (UMLPackage)EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + deviceBrokerEClass.getESuperTypes().add(theSW_ResourceCorePackage.getSwResource()); + memoryBrokerEClass.getESuperTypes().add(theSW_ResourceCorePackage.getSwResource()); + + // Initialize classes and features; add operations and parameters + initEClass(deviceBrokerEClass, DeviceBroker.class, "DeviceBroker", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getDeviceBroker_AccessPolicy(), this.getAccessPolicyKind(), "accessPolicy", null, 0, 1, DeviceBroker.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getDeviceBroker_IsBuffered(), theMARTE_PrimitivesTypesPackage.getBoolean(), "isBuffered", null, 0, 1, DeviceBroker.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getDeviceBroker_Devices(), theUMLPackage.getTypedElement(), null, "devices", null, 0, -1, DeviceBroker.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getDeviceBroker_CloseServices(), theUMLPackage.getBehavioralFeature(), null, "closeServices", null, 0, -1, DeviceBroker.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getDeviceBroker_ControlServices(), theUMLPackage.getBehavioralFeature(), null, "controlServices", null, 0, -1, DeviceBroker.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getDeviceBroker_OpenServices(), theUMLPackage.getBehavioralFeature(), null, "openServices", null, 0, -1, DeviceBroker.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getDeviceBroker_ReadServices(), theUMLPackage.getBehavioralFeature(), null, "readServices", null, 0, -1, DeviceBroker.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getDeviceBroker_WriteServices(), theUMLPackage.getBehavioralFeature(), null, "writeServices", null, 0, -1, DeviceBroker.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(memoryBrokerEClass, MemoryBroker.class, "MemoryBroker", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getMemoryBroker_AccessPolicy(), this.getAccessPolicyKind(), "accessPolicy", null, 0, 1, MemoryBroker.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getMemoryBroker_Memories(), theUMLPackage.getTypedElement(), null, "memories", null, 0, -1, MemoryBroker.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getMemoryBroker_MemoryBlockAdressElements(), theUMLPackage.getTypedElement(), null, "memoryBlockAdressElements", null, 0, -1, MemoryBroker.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getMemoryBroker_MemoryBlockSizeElements(), theUMLPackage.getTypedElement(), null, "memoryBlockSizeElements", null, 0, -1, MemoryBroker.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getMemoryBroker_LockServices(), theUMLPackage.getBehavioralFeature(), null, "lockServices", null, 0, -1, MemoryBroker.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getMemoryBroker_UnlockServices(), theUMLPackage.getBehavioralFeature(), null, "unlockServices", null, 0, -1, MemoryBroker.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getMemoryBroker_MapServices(), theUMLPackage.getBehavioralFeature(), null, "mapServices", null, 0, -1, MemoryBroker.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getMemoryBroker_UnMapServices(), theUMLPackage.getBehavioralFeature(), null, "unMapServices", null, 0, -1, MemoryBroker.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + // Initialize enums and add enum literals + initEEnum(accessPolicyKindEEnum, AccessPolicyKind.class, "AccessPolicyKind"); + addEEnumLiteral(accessPolicyKindEEnum, AccessPolicyKind.READ); + addEEnumLiteral(accessPolicyKindEEnum, AccessPolicyKind.WRITE); + addEEnumLiteral(accessPolicyKindEEnum, AccessPolicyKind.READ_WRITE); + addEEnumLiteral(accessPolicyKindEEnum, AccessPolicyKind.UNDEF); + addEEnumLiteral(accessPolicyKindEEnum, AccessPolicyKind.OTHER); + } + +} //SW_BrokeringPackageImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/util/SW_BrokeringAdapterFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/util/SW_BrokeringAdapterFactory.java new file mode 100644 index 00000000000..0bf0ff05159 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/util/SW_BrokeringAdapterFactory.java @@ -0,0 +1,189 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Brokering.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.MARTE_DesignModel.SRM.SW_Brokering.*; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SwResource; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.SW_BrokeringPackage + * @generated + */ +public class SW_BrokeringAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * @generated + */ + protected static SW_BrokeringPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public SW_BrokeringAdapterFactory() { + if (modelPackage == null) { + modelPackage = SW_BrokeringPackage.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 SW_BrokeringSwitch modelSwitch = + new SW_BrokeringSwitch() { + @Override + public Adapter caseDeviceBroker(DeviceBroker object) { + return createDeviceBrokerAdapter(); + } + @Override + public Adapter caseMemoryBroker(MemoryBroker object) { + return createMemoryBrokerAdapter(); + } + @Override + public Adapter caseResource(Resource object) { + return createResourceAdapter(); + } + @Override + public Adapter caseSwResource(SwResource object) { + return createSwResourceAdapter(); + } + @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.MARTE_DesignModel.SRM.SW_Brokering.DeviceBroker Device Broker}'. + * + * 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.MARTE_DesignModel.SRM.SW_Brokering.DeviceBroker + * @generated + */ + public Adapter createDeviceBrokerAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.MemoryBroker Memory Broker}'. + * + * 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.MARTE_DesignModel.SRM.SW_Brokering.MemoryBroker + * @generated + */ + public Adapter createMemoryBrokerAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource Resource}'. + * + * 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.MARTE_Foundations.GRM.Resource + * @generated + */ + public Adapter createResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SwResource Sw Resource}'. + * + * 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.MARTE_DesignModel.SRM.SW_ResourceCore.SwResource + * @generated + */ + public Adapter createSwResourceAdapter() { + 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; + } + +} //SW_BrokeringAdapterFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/util/SW_BrokeringResourceFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/util/SW_BrokeringResourceFactoryImpl.java new file mode 100644 index 00000000000..4a7ec47eb1d --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/util/SW_BrokeringResourceFactoryImpl.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.MARTE_DesignModel.SRM.SW_Brokering.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; + +import org.eclipse.emf.ecore.xmi.XMLResource; + +/** + * + * The Resource Factory associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.util.SW_BrokeringResourceImpl + * @generated + */ +public class SW_BrokeringResourceFactoryImpl extends ResourceFactoryImpl { + /** + * Creates an instance of the resource factory. + * + * + * @generated + */ + public SW_BrokeringResourceFactoryImpl() { + super(); + } + + /** + * Creates an instance of the resource. + * + * + * @generated + */ + @Override + public Resource createResource(URI uri) { + XMLResource result = new SW_BrokeringResourceImpl(uri); + result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + + result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); + return result; + } + +} //SW_BrokeringResourceFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/util/SW_BrokeringResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/util/SW_BrokeringResourceImpl.java new file mode 100644 index 00000000000..611b301b8c9 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/util/SW_BrokeringResourceImpl.java @@ -0,0 +1,39 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Brokering.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; + +/** + * + * The Resource associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.util.SW_BrokeringResourceFactoryImpl + * @generated + */ +public class SW_BrokeringResourceImpl extends XMLResourceImpl { + /** + * Creates an instance of the resource. + * + * + * @param uri the URI of the new resource. + * @generated + */ + public SW_BrokeringResourceImpl(URI uri) { + super(uri); + } + +} //SW_BrokeringResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/util/SW_BrokeringSwitch.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/util/SW_BrokeringSwitch.java new file mode 100644 index 00000000000..31e455df020 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/util/SW_BrokeringSwitch.java @@ -0,0 +1,196 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Brokering.util; + +import java.util.List; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.*; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SwResource; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource; + +/** + * + * 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.MARTE_DesignModel.SRM.SW_Brokering.SW_BrokeringPackage + * @generated + */ +public class SW_BrokeringSwitch { + /** + * The cached model package + * + * + * @generated + */ + protected static SW_BrokeringPackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public SW_BrokeringSwitch() { + if (modelPackage == null) { + modelPackage = SW_BrokeringPackage.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 SW_BrokeringPackage.DEVICE_BROKER: { + DeviceBroker deviceBroker = (DeviceBroker)theEObject; + T result = caseDeviceBroker(deviceBroker); + if (result == null) result = caseSwResource(deviceBroker); + if (result == null) result = caseResource(deviceBroker); + if (result == null) result = defaultCase(theEObject); + return result; + } + case SW_BrokeringPackage.MEMORY_BROKER: { + MemoryBroker memoryBroker = (MemoryBroker)theEObject; + T result = caseMemoryBroker(memoryBroker); + if (result == null) result = caseSwResource(memoryBroker); + if (result == null) result = caseResource(memoryBroker); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Device Broker'. + * + * 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 'Device Broker'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDeviceBroker(DeviceBroker object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Memory Broker'. + * + * 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 'Memory Broker'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseMemoryBroker(MemoryBroker object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Resource'. + * + * 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 'Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseResource(Resource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Sw Resource'. + * + * 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 'Sw Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSwResource(SwResource 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; + } + +} //SW_BrokeringSwitch diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/util/SW_BrokeringXMLProcessor.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/util/SW_BrokeringXMLProcessor.java new file mode 100644 index 00000000000..d60e5e6d47c --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Brokering/util/SW_BrokeringXMLProcessor.java @@ -0,0 +1,61 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Brokering.util; + +import java.util.Map; + +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.xmi.util.XMLProcessor; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Brokering.SW_BrokeringPackage; + +/** + * This class contains helper methods to serialize and deserialize XML documents + * + * + * @generated + */ +public class SW_BrokeringXMLProcessor extends XMLProcessor { + + /** + * Public constructor to instantiate the helper. + * + * + * @generated + */ + public SW_BrokeringXMLProcessor() { + super((EPackage.Registry.INSTANCE)); + SW_BrokeringPackage.eINSTANCE.eClass(); + } + + /** + * Register for "*" and "xml" file extensions the SW_BrokeringResourceFactoryImpl factory. + * + * + * @generated + */ + @Override + protected Map getRegistrations() { + if (registrations == null) { + super.getRegistrations(); + registrations.put(XML_EXTENSION, new SW_BrokeringResourceFactoryImpl()); + registrations.put(STAR_EXTENSION, new SW_BrokeringResourceFactoryImpl()); + } + return registrations; + } + +} //SW_BrokeringXMLProcessor diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/Alarm.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/Alarm.java new file mode 100644 index 00000000000..af0787e4d19 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/Alarm.java @@ -0,0 +1,80 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Concurrency; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.uml2.uml.TypedElement; + +/** + * + * A representation of the model object 'Alarm'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.Alarm#isIsWatchdog Is Watchdog}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.Alarm#getTimers Timers}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#getAlarm() + * @model + * @generated + */ +public interface Alarm extends InterruptResource { + /** + * Returns the value of the 'Is Watchdog' attribute. + * + *

+ * If the meaning of the 'Is Watchdog' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Is Watchdog' attribute. + * @see #setIsWatchdog(boolean) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#getAlarm_IsWatchdog() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.Boolean" ordered="false" + * @generated + */ + boolean isIsWatchdog(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.Alarm#isIsWatchdog Is Watchdog}' attribute. + * + * + * @param value the new value of the 'Is Watchdog' attribute. + * @see #isIsWatchdog() + * @generated + */ + void setIsWatchdog(boolean value); + + /** + * Returns the value of the 'Timers' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.TypedElement}. + * + *

+ * If the meaning of the 'Timers' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Timers' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#getAlarm_Timers() + * @model ordered="false" + * @generated + */ + EList getTimers(); + +} // Alarm diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/EntryPoint.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/EntryPoint.java new file mode 100644 index 00000000000..22f853ea11f --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/EntryPoint.java @@ -0,0 +1,90 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Concurrency; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Allocate; + +import org.eclipse.uml2.uml.BehavioralFeature; + +/** + * + * A representation of the model object 'Entry Point'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.EntryPoint#isIsReentrant Is Reentrant}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.EntryPoint#getRoutine Routine}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#getEntryPoint() + * @model + * @generated + */ +public interface EntryPoint extends Allocate { + /** + * Returns the value of the 'Is Reentrant' attribute. + * + *

+ * If the meaning of the 'Is Reentrant' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Is Reentrant' attribute. + * @see #setIsReentrant(boolean) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#getEntryPoint_IsReentrant() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.Boolean" ordered="false" + * @generated + */ + boolean isIsReentrant(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.EntryPoint#isIsReentrant Is Reentrant}' attribute. + * + * + * @param value the new value of the 'Is Reentrant' attribute. + * @see #isIsReentrant() + * @generated + */ + void setIsReentrant(boolean value); + + /** + * Returns the value of the 'Routine' reference. + * + *

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

+ * + * @return the value of the 'Routine' reference. + * @see #setRoutine(BehavioralFeature) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#getEntryPoint_Routine() + * @model required="true" ordered="false" + * @generated + */ + BehavioralFeature getRoutine(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.EntryPoint#getRoutine Routine}' reference. + * + * + * @param value the new value of the 'Routine' reference. + * @see #getRoutine() + * @generated + */ + void setRoutine(BehavioralFeature value); + +} // EntryPoint diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/InterruptKind.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/InterruptKind.java new file mode 100644 index 00000000000..7c46f7cb346 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/InterruptKind.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.MARTE_DesignModel.SRM.SW_Concurrency; + +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 'Interrupt Kind', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#getInterruptKind() + * @model + * @generated + */ +public enum InterruptKind implements Enumerator { + /** + * The 'Hardware Interruption' literal object. + * + * + * @see #HARDWARE_INTERRUPTION_VALUE + * @generated + * @ordered + */ + HARDWARE_INTERRUPTION(0, "HardwareInterruption", "HardwareInterruption"), + + /** + * The 'Processor Detected Exception' literal object. + * + * + * @see #PROCESSOR_DETECTED_EXCEPTION_VALUE + * @generated + * @ordered + */ + PROCESSOR_DETECTED_EXCEPTION(1, "ProcessorDetectedException", "ProcessorDetectedException"), + + /** + * The 'Programmed Exception' literal object. + * + * + * @see #PROGRAMMED_EXCEPTION_VALUE + * @generated + * @ordered + */ + PROGRAMMED_EXCEPTION(2, "ProgrammedException", "ProgrammedException"), + + /** + * The 'Undef' literal object. + * + * + * @see #UNDEF_VALUE + * @generated + * @ordered + */ + UNDEF(3, "Undef", "Undef"), + + /** + * The 'Other' literal object. + * + * + * @see #OTHER_VALUE + * @generated + * @ordered + */ + OTHER(4, "Other", "Other"); + + /** + * The 'Hardware Interruption' literal value. + * + *

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

+ * + * @see #HARDWARE_INTERRUPTION + * @model name="HardwareInterruption" + * @generated + * @ordered + */ + public static final int HARDWARE_INTERRUPTION_VALUE = 0; + + /** + * The 'Processor Detected Exception' literal value. + * + *

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

+ * + * @see #PROCESSOR_DETECTED_EXCEPTION + * @model name="ProcessorDetectedException" + * @generated + * @ordered + */ + public static final int PROCESSOR_DETECTED_EXCEPTION_VALUE = 1; + + /** + * The 'Programmed Exception' literal value. + * + *

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

+ * + * @see #PROGRAMMED_EXCEPTION + * @model name="ProgrammedException" + * @generated + * @ordered + */ + public static final int PROGRAMMED_EXCEPTION_VALUE = 2; + + /** + * 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 = 3; + + /** + * 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 = 4; + + /** + * An array of all the 'Interrupt Kind' enumerators. + * + * + * @generated + */ + private static final InterruptKind[] VALUES_ARRAY = + new InterruptKind[] { + HARDWARE_INTERRUPTION, + PROCESSOR_DETECTED_EXCEPTION, + PROGRAMMED_EXCEPTION, + UNDEF, + OTHER, + }; + + /** + * A public read-only list of all the 'Interrupt Kind' enumerators. + * + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Interrupt Kind' literal with the specified literal value. + * + * + * @generated + */ + public static InterruptKind get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + InterruptKind result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Interrupt Kind' literal with the specified name. + * + * + * @generated + */ + public static InterruptKind getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + InterruptKind result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Interrupt Kind' literal with the specified integer value. + * + * + * @generated + */ + public static InterruptKind get(int value) { + switch (value) { + case HARDWARE_INTERRUPTION_VALUE: return HARDWARE_INTERRUPTION; + case PROCESSOR_DETECTED_EXCEPTION_VALUE: return PROCESSOR_DETECTED_EXCEPTION; + case PROGRAMMED_EXCEPTION_VALUE: return PROGRAMMED_EXCEPTION; + 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 InterruptKind(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; + } + +} //InterruptKind diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/InterruptResource.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/InterruptResource.java new file mode 100644 index 00000000000..d3fec5f2948 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/InterruptResource.java @@ -0,0 +1,162 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Concurrency; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.uml2.uml.BehavioralFeature; +import org.eclipse.uml2.uml.TypedElement; + +/** + * + * A representation of the model object 'Interrupt Resource'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.InterruptResource#getKind Kind}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.InterruptResource#isIsMaskable Is Maskable}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.InterruptResource#getVectorElements Vector Elements}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.InterruptResource#getMaskElements Mask Elements}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.InterruptResource#getRoutineConnectServices Routine Connect Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.InterruptResource#getRoutineDisconnectServices Routine Disconnect Services}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#getInterruptResource() + * @model + * @generated + */ +public interface InterruptResource extends SwConcurrentResource { + /** + * Returns the value of the 'Kind' attribute. + * The literals are from the enumeration {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.InterruptKind}. + * + *

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

+ * + * @return the value of the 'Kind' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.InterruptKind + * @see #setKind(InterruptKind) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#getInterruptResource_Kind() + * @model unique="false" ordered="false" + * @generated + */ + InterruptKind getKind(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.InterruptResource#getKind Kind}' attribute. + * + * + * @param value the new value of the 'Kind' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.InterruptKind + * @see #getKind() + * @generated + */ + void setKind(InterruptKind value); + + /** + * Returns the value of the 'Is Maskable' attribute. + * + *

+ * If the meaning of the 'Is Maskable' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Is Maskable' attribute. + * @see #setIsMaskable(boolean) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#getInterruptResource_IsMaskable() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.Boolean" ordered="false" + * @generated + */ + boolean isIsMaskable(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.InterruptResource#isIsMaskable Is Maskable}' attribute. + * + * + * @param value the new value of the 'Is Maskable' attribute. + * @see #isIsMaskable() + * @generated + */ + void setIsMaskable(boolean value); + + /** + * Returns the value of the 'Vector Elements' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.TypedElement}. + * + *

+ * If the meaning of the 'Vector Elements' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Vector Elements' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#getInterruptResource_VectorElements() + * @model ordered="false" + * @generated + */ + EList getVectorElements(); + + /** + * Returns the value of the 'Mask Elements' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.TypedElement}. + * + *

+ * If the meaning of the 'Mask Elements' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Mask Elements' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#getInterruptResource_MaskElements() + * @model ordered="false" + * @generated + */ + EList getMaskElements(); + + /** + * Returns the value of the 'Routine Connect Services' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.BehavioralFeature}. + * + *

+ * If the meaning of the 'Routine Connect Services' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Routine Connect Services' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#getInterruptResource_RoutineConnectServices() + * @model ordered="false" + * @generated + */ + EList getRoutineConnectServices(); + + /** + * Returns the value of the 'Routine Disconnect Services' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.BehavioralFeature}. + * + *

+ * If the meaning of the 'Routine Disconnect Services' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Routine Disconnect Services' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#getInterruptResource_RoutineDisconnectServices() + * @model ordered="false" + * @generated + */ + EList getRoutineDisconnectServices(); + +} // InterruptResource diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/MemoryPartition.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/MemoryPartition.java new file mode 100644 index 00000000000..cc7e535bdce --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/MemoryPartition.java @@ -0,0 +1,135 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Concurrency; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SwResource; + +import org.eclipse.uml2.uml.BehavioralFeature; +import org.eclipse.uml2.uml.Namespace; +import org.eclipse.uml2.uml.TypedElement; + +/** + * + * A representation of the model object 'Memory Partition'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.MemoryPartition#getConcurrentResources Concurrent Resources}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.MemoryPartition#getMemorySpaces Memory Spaces}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.MemoryPartition#getFork Fork}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.MemoryPartition#getExit Exit}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.MemoryPartition#getBase_Namespace Base Namespace}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#getMemoryPartition() + * @model + * @generated + */ +public interface MemoryPartition extends SwResource { + /** + * Returns the value of the 'Concurrent Resources' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.TypedElement}. + * + *

+ * If the meaning of the 'Concurrent Resources' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Concurrent Resources' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#getMemoryPartition_ConcurrentResources() + * @model ordered="false" + * @generated + */ + EList getConcurrentResources(); + + /** + * Returns the value of the 'Memory Spaces' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.TypedElement}. + * + *

+ * If the meaning of the 'Memory Spaces' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Memory Spaces' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#getMemoryPartition_MemorySpaces() + * @model ordered="false" + * @generated + */ + EList getMemorySpaces(); + + /** + * Returns the value of the 'Fork' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.BehavioralFeature}. + * + *

+ * If the meaning of the 'Fork' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Fork' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#getMemoryPartition_Fork() + * @model ordered="false" + * @generated + */ + EList getFork(); + + /** + * Returns the value of the 'Exit' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.BehavioralFeature}. + * + *

+ * If the meaning of the 'Exit' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Exit' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#getMemoryPartition_Exit() + * @model ordered="false" + * @generated + */ + EList getExit(); + + /** + * Returns the value of the 'Base Namespace' reference. + * + *

+ * If the meaning of the 'Base Namespace' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Namespace' reference. + * @see #setBase_Namespace(Namespace) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#getMemoryPartition_Base_Namespace() + * @model required="true" ordered="false" + * @generated + */ + Namespace getBase_Namespace(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.MemoryPartition#getBase_Namespace Base Namespace}' reference. + * + * + * @param value the new value of the 'Base Namespace' reference. + * @see #getBase_Namespace() + * @generated + */ + void setBase_Namespace(Namespace value); + +} // MemoryPartition diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/SW_ConcurrencyFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/SW_ConcurrencyFactory.java new file mode 100644 index 00000000000..0680b117174 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/SW_ConcurrencyFactory.java @@ -0,0 +1,98 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Concurrency; + +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.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage + * @generated + */ +public interface SW_ConcurrencyFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + SW_ConcurrencyFactory eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SW_ConcurrencyFactoryImpl.init(); + + /** + * Returns a new object of class 'Entry Point'. + * + * + * @return a new object of class 'Entry Point'. + * @generated + */ + EntryPoint createEntryPoint(); + + /** + * Returns a new object of class 'Interrupt Resource'. + * + * + * @return a new object of class 'Interrupt Resource'. + * @generated + */ + InterruptResource createInterruptResource(); + + /** + * Returns a new object of class 'Sw Schedulable Resource'. + * + * + * @return a new object of class 'Sw Schedulable Resource'. + * @generated + */ + SwSchedulableResource createSwSchedulableResource(); + + /** + * Returns a new object of class 'Sw Timer Resource'. + * + * + * @return a new object of class 'Sw Timer Resource'. + * @generated + */ + SwTimerResource createSwTimerResource(); + + /** + * Returns a new object of class 'Memory Partition'. + * + * + * @return a new object of class 'Memory Partition'. + * @generated + */ + MemoryPartition createMemoryPartition(); + + /** + * Returns a new object of class 'Alarm'. + * + * + * @return a new object of class 'Alarm'. + * @generated + */ + Alarm createAlarm(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + SW_ConcurrencyPackage getSW_ConcurrencyPackage(); + +} //SW_ConcurrencyFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/SW_ConcurrencyPackage.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/SW_ConcurrencyPackage.java new file mode 100644 index 00000000000..a922244cc85 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/SW_ConcurrencyPackage.java @@ -0,0 +1,2931 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Concurrency; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SW_ResourceCorePackage; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocPackage; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage; + +/** + * + * 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.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyFactory + * @model kind="package" + * @generated + */ +public interface SW_ConcurrencyPackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "SW_Concurrency"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "http://www.eclipse.org/papyrus/SW_Concurrency/1"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "SW_Concurrency"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + SW_ConcurrencyPackage eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SW_ConcurrencyPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.EntryPointImpl Entry Point}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.EntryPointImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SW_ConcurrencyPackageImpl#getEntryPoint() + * @generated + */ + int ENTRY_POINT = 0; + + /** + * The feature id for the 'Kind' attribute. + * + * + * @generated + * @ordered + */ + int ENTRY_POINT__KIND = AllocPackage.ALLOCATE__KIND; + + /** + * The feature id for the 'Nature' attribute. + * + * + * @generated + * @ordered + */ + int ENTRY_POINT__NATURE = AllocPackage.ALLOCATE__NATURE; + + /** + * The feature id for the 'Base Abstraction' reference. + * + * + * @generated + * @ordered + */ + int ENTRY_POINT__BASE_ABSTRACTION = AllocPackage.ALLOCATE__BASE_ABSTRACTION; + + /** + * The feature id for the 'Implied Constraint' reference list. + * + * + * @generated + * @ordered + */ + int ENTRY_POINT__IMPLIED_CONSTRAINT = AllocPackage.ALLOCATE__IMPLIED_CONSTRAINT; + + /** + * The feature id for the 'Is Reentrant' attribute. + * + * + * @generated + * @ordered + */ + int ENTRY_POINT__IS_REENTRANT = AllocPackage.ALLOCATE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Routine' reference. + * + * + * @generated + * @ordered + */ + int ENTRY_POINT__ROUTINE = AllocPackage.ALLOCATE_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Entry Point' class. + * + * + * @generated + * @ordered + */ + int ENTRY_POINT_FEATURE_COUNT = AllocPackage.ALLOCATE_FEATURE_COUNT + 2; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SwConcurrentResourceImpl Sw Concurrent Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SwConcurrentResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SW_ConcurrencyPackageImpl#getSwConcurrentResource() + * @generated + */ + int SW_CONCURRENT_RESOURCE = 1; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int SW_CONCURRENT_RESOURCE__RES_MULT = SW_ResourceCorePackage.SW_RESOURCE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int SW_CONCURRENT_RESOURCE__IS_PROTECTED = SW_ResourceCorePackage.SW_RESOURCE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int SW_CONCURRENT_RESOURCE__IS_ACTIVE = SW_ResourceCorePackage.SW_RESOURCE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int SW_CONCURRENT_RESOURCE__BASE_PROPERTY = SW_ResourceCorePackage.SW_RESOURCE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int SW_CONCURRENT_RESOURCE__BASE_INSTANCE_SPECIFICATION = SW_ResourceCorePackage.SW_RESOURCE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int SW_CONCURRENT_RESOURCE__BASE_CLASSIFIER = SW_ResourceCorePackage.SW_RESOURCE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int SW_CONCURRENT_RESOURCE__BASE_LIFELINE = SW_ResourceCorePackage.SW_RESOURCE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int SW_CONCURRENT_RESOURCE__BASE_CONNECTABLE_ELEMENT = SW_ResourceCorePackage.SW_RESOURCE__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Identifier Elements' reference list. + * + * + * @generated + * @ordered + */ + int SW_CONCURRENT_RESOURCE__IDENTIFIER_ELEMENTS = SW_ResourceCorePackage.SW_RESOURCE__IDENTIFIER_ELEMENTS; + + /** + * The feature id for the 'State Elements' reference list. + * + * + * @generated + * @ordered + */ + int SW_CONCURRENT_RESOURCE__STATE_ELEMENTS = SW_ResourceCorePackage.SW_RESOURCE__STATE_ELEMENTS; + + /** + * The feature id for the 'Memory Size Footprint' reference. + * + * + * @generated + * @ordered + */ + int SW_CONCURRENT_RESOURCE__MEMORY_SIZE_FOOTPRINT = SW_ResourceCorePackage.SW_RESOURCE__MEMORY_SIZE_FOOTPRINT; + + /** + * The feature id for the 'Create Services' reference list. + * + * + * @generated + * @ordered + */ + int SW_CONCURRENT_RESOURCE__CREATE_SERVICES = SW_ResourceCorePackage.SW_RESOURCE__CREATE_SERVICES; + + /** + * The feature id for the 'Delete Services' reference list. + * + * + * @generated + * @ordered + */ + int SW_CONCURRENT_RESOURCE__DELETE_SERVICES = SW_ResourceCorePackage.SW_RESOURCE__DELETE_SERVICES; + + /** + * The feature id for the 'Initialize Services' reference list. + * + * + * @generated + * @ordered + */ + int SW_CONCURRENT_RESOURCE__INITIALIZE_SERVICES = SW_ResourceCorePackage.SW_RESOURCE__INITIALIZE_SERVICES; + + /** + * The feature id for the 'Type' attribute. + * + * + * @generated + * @ordered + */ + int SW_CONCURRENT_RESOURCE__TYPE = SW_ResourceCorePackage.SW_RESOURCE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Activation Capacity' attribute. + * + * + * @generated + * @ordered + */ + int SW_CONCURRENT_RESOURCE__ACTIVATION_CAPACITY = SW_ResourceCorePackage.SW_RESOURCE_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Entry Points' reference list. + * + * + * @generated + * @ordered + */ + int SW_CONCURRENT_RESOURCE__ENTRY_POINTS = SW_ResourceCorePackage.SW_RESOURCE_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Adress Space' reference list. + * + * + * @generated + * @ordered + */ + int SW_CONCURRENT_RESOURCE__ADRESS_SPACE = SW_ResourceCorePackage.SW_RESOURCE_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Period Elements' reference list. + * + * + * @generated + * @ordered + */ + int SW_CONCURRENT_RESOURCE__PERIOD_ELEMENTS = SW_ResourceCorePackage.SW_RESOURCE_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Priority Elements' reference list. + * + * + * @generated + * @ordered + */ + int SW_CONCURRENT_RESOURCE__PRIORITY_ELEMENTS = SW_ResourceCorePackage.SW_RESOURCE_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Stack Size Elements' reference list. + * + * + * @generated + * @ordered + */ + int SW_CONCURRENT_RESOURCE__STACK_SIZE_ELEMENTS = SW_ResourceCorePackage.SW_RESOURCE_FEATURE_COUNT + 6; + + /** + * The feature id for the 'Activate Services' reference list. + * + * + * @generated + * @ordered + */ + int SW_CONCURRENT_RESOURCE__ACTIVATE_SERVICES = SW_ResourceCorePackage.SW_RESOURCE_FEATURE_COUNT + 7; + + /** + * The feature id for the 'Enable Concurrency Services' reference list. + * + * + * @generated + * @ordered + */ + int SW_CONCURRENT_RESOURCE__ENABLE_CONCURRENCY_SERVICES = SW_ResourceCorePackage.SW_RESOURCE_FEATURE_COUNT + 8; + + /** + * The feature id for the 'Resume Services' reference list. + * + * + * @generated + * @ordered + */ + int SW_CONCURRENT_RESOURCE__RESUME_SERVICES = SW_ResourceCorePackage.SW_RESOURCE_FEATURE_COUNT + 9; + + /** + * The feature id for the 'Suspend Services' reference list. + * + * + * @generated + * @ordered + */ + int SW_CONCURRENT_RESOURCE__SUSPEND_SERVICES = SW_ResourceCorePackage.SW_RESOURCE_FEATURE_COUNT + 10; + + /** + * The feature id for the 'Terminate Services' reference list. + * + * + * @generated + * @ordered + */ + int SW_CONCURRENT_RESOURCE__TERMINATE_SERVICES = SW_ResourceCorePackage.SW_RESOURCE_FEATURE_COUNT + 11; + + /** + * The feature id for the 'Disable Concurrency Services' reference list. + * + * + * @generated + * @ordered + */ + int SW_CONCURRENT_RESOURCE__DISABLE_CONCURRENCY_SERVICES = SW_ResourceCorePackage.SW_RESOURCE_FEATURE_COUNT + 12; + + /** + * The feature id for the 'Share Data Resources' reference list. + * + * + * @generated + * @ordered + */ + int SW_CONCURRENT_RESOURCE__SHARE_DATA_RESOURCES = SW_ResourceCorePackage.SW_RESOURCE_FEATURE_COUNT + 13; + + /** + * The feature id for the 'Message Resources' reference list. + * + * + * @generated + * @ordered + */ + int SW_CONCURRENT_RESOURCE__MESSAGE_RESOURCES = SW_ResourceCorePackage.SW_RESOURCE_FEATURE_COUNT + 14; + + /** + * The feature id for the 'Mutual Exclusion Resources' reference list. + * + * + * @generated + * @ordered + */ + int SW_CONCURRENT_RESOURCE__MUTUAL_EXCLUSION_RESOURCES = SW_ResourceCorePackage.SW_RESOURCE_FEATURE_COUNT + 15; + + /** + * The feature id for the 'Notification Resources' reference list. + * + * + * @generated + * @ordered + */ + int SW_CONCURRENT_RESOURCE__NOTIFICATION_RESOURCES = SW_ResourceCorePackage.SW_RESOURCE_FEATURE_COUNT + 16; + + /** + * The feature id for the 'Heap Size Elements' reference list. + * + * + * @generated + * @ordered + */ + int SW_CONCURRENT_RESOURCE__HEAP_SIZE_ELEMENTS = SW_ResourceCorePackage.SW_RESOURCE_FEATURE_COUNT + 17; + + /** + * The number of structural features of the 'Sw Concurrent Resource' class. + * + * + * @generated + * @ordered + */ + int SW_CONCURRENT_RESOURCE_FEATURE_COUNT = SW_ResourceCorePackage.SW_RESOURCE_FEATURE_COUNT + 18; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.InterruptResourceImpl Interrupt Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.InterruptResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SW_ConcurrencyPackageImpl#getInterruptResource() + * @generated + */ + int INTERRUPT_RESOURCE = 2; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int INTERRUPT_RESOURCE__RES_MULT = SW_CONCURRENT_RESOURCE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int INTERRUPT_RESOURCE__IS_PROTECTED = SW_CONCURRENT_RESOURCE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int INTERRUPT_RESOURCE__IS_ACTIVE = SW_CONCURRENT_RESOURCE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int INTERRUPT_RESOURCE__BASE_PROPERTY = SW_CONCURRENT_RESOURCE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int INTERRUPT_RESOURCE__BASE_INSTANCE_SPECIFICATION = SW_CONCURRENT_RESOURCE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int INTERRUPT_RESOURCE__BASE_CLASSIFIER = SW_CONCURRENT_RESOURCE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int INTERRUPT_RESOURCE__BASE_LIFELINE = SW_CONCURRENT_RESOURCE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int INTERRUPT_RESOURCE__BASE_CONNECTABLE_ELEMENT = SW_CONCURRENT_RESOURCE__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Identifier Elements' reference list. + * + * + * @generated + * @ordered + */ + int INTERRUPT_RESOURCE__IDENTIFIER_ELEMENTS = SW_CONCURRENT_RESOURCE__IDENTIFIER_ELEMENTS; + + /** + * The feature id for the 'State Elements' reference list. + * + * + * @generated + * @ordered + */ + int INTERRUPT_RESOURCE__STATE_ELEMENTS = SW_CONCURRENT_RESOURCE__STATE_ELEMENTS; + + /** + * The feature id for the 'Memory Size Footprint' reference. + * + * + * @generated + * @ordered + */ + int INTERRUPT_RESOURCE__MEMORY_SIZE_FOOTPRINT = SW_CONCURRENT_RESOURCE__MEMORY_SIZE_FOOTPRINT; + + /** + * The feature id for the 'Create Services' reference list. + * + * + * @generated + * @ordered + */ + int INTERRUPT_RESOURCE__CREATE_SERVICES = SW_CONCURRENT_RESOURCE__CREATE_SERVICES; + + /** + * The feature id for the 'Delete Services' reference list. + * + * + * @generated + * @ordered + */ + int INTERRUPT_RESOURCE__DELETE_SERVICES = SW_CONCURRENT_RESOURCE__DELETE_SERVICES; + + /** + * The feature id for the 'Initialize Services' reference list. + * + * + * @generated + * @ordered + */ + int INTERRUPT_RESOURCE__INITIALIZE_SERVICES = SW_CONCURRENT_RESOURCE__INITIALIZE_SERVICES; + + /** + * The feature id for the 'Type' attribute. + * + * + * @generated + * @ordered + */ + int INTERRUPT_RESOURCE__TYPE = SW_CONCURRENT_RESOURCE__TYPE; + + /** + * The feature id for the 'Activation Capacity' attribute. + * + * + * @generated + * @ordered + */ + int INTERRUPT_RESOURCE__ACTIVATION_CAPACITY = SW_CONCURRENT_RESOURCE__ACTIVATION_CAPACITY; + + /** + * The feature id for the 'Entry Points' reference list. + * + * + * @generated + * @ordered + */ + int INTERRUPT_RESOURCE__ENTRY_POINTS = SW_CONCURRENT_RESOURCE__ENTRY_POINTS; + + /** + * The feature id for the 'Adress Space' reference list. + * + * + * @generated + * @ordered + */ + int INTERRUPT_RESOURCE__ADRESS_SPACE = SW_CONCURRENT_RESOURCE__ADRESS_SPACE; + + /** + * The feature id for the 'Period Elements' reference list. + * + * + * @generated + * @ordered + */ + int INTERRUPT_RESOURCE__PERIOD_ELEMENTS = SW_CONCURRENT_RESOURCE__PERIOD_ELEMENTS; + + /** + * The feature id for the 'Priority Elements' reference list. + * + * + * @generated + * @ordered + */ + int INTERRUPT_RESOURCE__PRIORITY_ELEMENTS = SW_CONCURRENT_RESOURCE__PRIORITY_ELEMENTS; + + /** + * The feature id for the 'Stack Size Elements' reference list. + * + * + * @generated + * @ordered + */ + int INTERRUPT_RESOURCE__STACK_SIZE_ELEMENTS = SW_CONCURRENT_RESOURCE__STACK_SIZE_ELEMENTS; + + /** + * The feature id for the 'Activate Services' reference list. + * + * + * @generated + * @ordered + */ + int INTERRUPT_RESOURCE__ACTIVATE_SERVICES = SW_CONCURRENT_RESOURCE__ACTIVATE_SERVICES; + + /** + * The feature id for the 'Enable Concurrency Services' reference list. + * + * + * @generated + * @ordered + */ + int INTERRUPT_RESOURCE__ENABLE_CONCURRENCY_SERVICES = SW_CONCURRENT_RESOURCE__ENABLE_CONCURRENCY_SERVICES; + + /** + * The feature id for the 'Resume Services' reference list. + * + * + * @generated + * @ordered + */ + int INTERRUPT_RESOURCE__RESUME_SERVICES = SW_CONCURRENT_RESOURCE__RESUME_SERVICES; + + /** + * The feature id for the 'Suspend Services' reference list. + * + * + * @generated + * @ordered + */ + int INTERRUPT_RESOURCE__SUSPEND_SERVICES = SW_CONCURRENT_RESOURCE__SUSPEND_SERVICES; + + /** + * The feature id for the 'Terminate Services' reference list. + * + * + * @generated + * @ordered + */ + int INTERRUPT_RESOURCE__TERMINATE_SERVICES = SW_CONCURRENT_RESOURCE__TERMINATE_SERVICES; + + /** + * The feature id for the 'Disable Concurrency Services' reference list. + * + * + * @generated + * @ordered + */ + int INTERRUPT_RESOURCE__DISABLE_CONCURRENCY_SERVICES = SW_CONCURRENT_RESOURCE__DISABLE_CONCURRENCY_SERVICES; + + /** + * The feature id for the 'Share Data Resources' reference list. + * + * + * @generated + * @ordered + */ + int INTERRUPT_RESOURCE__SHARE_DATA_RESOURCES = SW_CONCURRENT_RESOURCE__SHARE_DATA_RESOURCES; + + /** + * The feature id for the 'Message Resources' reference list. + * + * + * @generated + * @ordered + */ + int INTERRUPT_RESOURCE__MESSAGE_RESOURCES = SW_CONCURRENT_RESOURCE__MESSAGE_RESOURCES; + + /** + * The feature id for the 'Mutual Exclusion Resources' reference list. + * + * + * @generated + * @ordered + */ + int INTERRUPT_RESOURCE__MUTUAL_EXCLUSION_RESOURCES = SW_CONCURRENT_RESOURCE__MUTUAL_EXCLUSION_RESOURCES; + + /** + * The feature id for the 'Notification Resources' reference list. + * + * + * @generated + * @ordered + */ + int INTERRUPT_RESOURCE__NOTIFICATION_RESOURCES = SW_CONCURRENT_RESOURCE__NOTIFICATION_RESOURCES; + + /** + * The feature id for the 'Heap Size Elements' reference list. + * + * + * @generated + * @ordered + */ + int INTERRUPT_RESOURCE__HEAP_SIZE_ELEMENTS = SW_CONCURRENT_RESOURCE__HEAP_SIZE_ELEMENTS; + + /** + * The feature id for the 'Kind' attribute. + * + * + * @generated + * @ordered + */ + int INTERRUPT_RESOURCE__KIND = SW_CONCURRENT_RESOURCE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Is Maskable' attribute. + * + * + * @generated + * @ordered + */ + int INTERRUPT_RESOURCE__IS_MASKABLE = SW_CONCURRENT_RESOURCE_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Vector Elements' reference list. + * + * + * @generated + * @ordered + */ + int INTERRUPT_RESOURCE__VECTOR_ELEMENTS = SW_CONCURRENT_RESOURCE_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Mask Elements' reference list. + * + * + * @generated + * @ordered + */ + int INTERRUPT_RESOURCE__MASK_ELEMENTS = SW_CONCURRENT_RESOURCE_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Routine Connect Services' reference list. + * + * + * @generated + * @ordered + */ + int INTERRUPT_RESOURCE__ROUTINE_CONNECT_SERVICES = SW_CONCURRENT_RESOURCE_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Routine Disconnect Services' reference list. + * + * + * @generated + * @ordered + */ + int INTERRUPT_RESOURCE__ROUTINE_DISCONNECT_SERVICES = SW_CONCURRENT_RESOURCE_FEATURE_COUNT + 5; + + /** + * The number of structural features of the 'Interrupt Resource' class. + * + * + * @generated + * @ordered + */ + int INTERRUPT_RESOURCE_FEATURE_COUNT = SW_CONCURRENT_RESOURCE_FEATURE_COUNT + 6; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SwSchedulableResourceImpl Sw Schedulable Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SwSchedulableResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SW_ConcurrencyPackageImpl#getSwSchedulableResource() + * @generated + */ + int SW_SCHEDULABLE_RESOURCE = 3; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int SW_SCHEDULABLE_RESOURCE__RES_MULT = SW_CONCURRENT_RESOURCE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int SW_SCHEDULABLE_RESOURCE__IS_PROTECTED = SW_CONCURRENT_RESOURCE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int SW_SCHEDULABLE_RESOURCE__IS_ACTIVE = SW_CONCURRENT_RESOURCE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int SW_SCHEDULABLE_RESOURCE__BASE_PROPERTY = SW_CONCURRENT_RESOURCE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int SW_SCHEDULABLE_RESOURCE__BASE_INSTANCE_SPECIFICATION = SW_CONCURRENT_RESOURCE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int SW_SCHEDULABLE_RESOURCE__BASE_CLASSIFIER = SW_CONCURRENT_RESOURCE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int SW_SCHEDULABLE_RESOURCE__BASE_LIFELINE = SW_CONCURRENT_RESOURCE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int SW_SCHEDULABLE_RESOURCE__BASE_CONNECTABLE_ELEMENT = SW_CONCURRENT_RESOURCE__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Identifier Elements' reference list. + * + * + * @generated + * @ordered + */ + int SW_SCHEDULABLE_RESOURCE__IDENTIFIER_ELEMENTS = SW_CONCURRENT_RESOURCE__IDENTIFIER_ELEMENTS; + + /** + * The feature id for the 'State Elements' reference list. + * + * + * @generated + * @ordered + */ + int SW_SCHEDULABLE_RESOURCE__STATE_ELEMENTS = SW_CONCURRENT_RESOURCE__STATE_ELEMENTS; + + /** + * The feature id for the 'Memory Size Footprint' reference. + * + * + * @generated + * @ordered + */ + int SW_SCHEDULABLE_RESOURCE__MEMORY_SIZE_FOOTPRINT = SW_CONCURRENT_RESOURCE__MEMORY_SIZE_FOOTPRINT; + + /** + * The feature id for the 'Create Services' reference list. + * + * + * @generated + * @ordered + */ + int SW_SCHEDULABLE_RESOURCE__CREATE_SERVICES = SW_CONCURRENT_RESOURCE__CREATE_SERVICES; + + /** + * The feature id for the 'Delete Services' reference list. + * + * + * @generated + * @ordered + */ + int SW_SCHEDULABLE_RESOURCE__DELETE_SERVICES = SW_CONCURRENT_RESOURCE__DELETE_SERVICES; + + /** + * The feature id for the 'Initialize Services' reference list. + * + * + * @generated + * @ordered + */ + int SW_SCHEDULABLE_RESOURCE__INITIALIZE_SERVICES = SW_CONCURRENT_RESOURCE__INITIALIZE_SERVICES; + + /** + * The feature id for the 'Type' attribute. + * + * + * @generated + * @ordered + */ + int SW_SCHEDULABLE_RESOURCE__TYPE = SW_CONCURRENT_RESOURCE__TYPE; + + /** + * The feature id for the 'Activation Capacity' attribute. + * + * + * @generated + * @ordered + */ + int SW_SCHEDULABLE_RESOURCE__ACTIVATION_CAPACITY = SW_CONCURRENT_RESOURCE__ACTIVATION_CAPACITY; + + /** + * The feature id for the 'Entry Points' reference list. + * + * + * @generated + * @ordered + */ + int SW_SCHEDULABLE_RESOURCE__ENTRY_POINTS = SW_CONCURRENT_RESOURCE__ENTRY_POINTS; + + /** + * The feature id for the 'Adress Space' reference list. + * + * + * @generated + * @ordered + */ + int SW_SCHEDULABLE_RESOURCE__ADRESS_SPACE = SW_CONCURRENT_RESOURCE__ADRESS_SPACE; + + /** + * The feature id for the 'Period Elements' reference list. + * + * + * @generated + * @ordered + */ + int SW_SCHEDULABLE_RESOURCE__PERIOD_ELEMENTS = SW_CONCURRENT_RESOURCE__PERIOD_ELEMENTS; + + /** + * The feature id for the 'Priority Elements' reference list. + * + * + * @generated + * @ordered + */ + int SW_SCHEDULABLE_RESOURCE__PRIORITY_ELEMENTS = SW_CONCURRENT_RESOURCE__PRIORITY_ELEMENTS; + + /** + * The feature id for the 'Stack Size Elements' reference list. + * + * + * @generated + * @ordered + */ + int SW_SCHEDULABLE_RESOURCE__STACK_SIZE_ELEMENTS = SW_CONCURRENT_RESOURCE__STACK_SIZE_ELEMENTS; + + /** + * The feature id for the 'Activate Services' reference list. + * + * + * @generated + * @ordered + */ + int SW_SCHEDULABLE_RESOURCE__ACTIVATE_SERVICES = SW_CONCURRENT_RESOURCE__ACTIVATE_SERVICES; + + /** + * The feature id for the 'Enable Concurrency Services' reference list. + * + * + * @generated + * @ordered + */ + int SW_SCHEDULABLE_RESOURCE__ENABLE_CONCURRENCY_SERVICES = SW_CONCURRENT_RESOURCE__ENABLE_CONCURRENCY_SERVICES; + + /** + * The feature id for the 'Resume Services' reference list. + * + * + * @generated + * @ordered + */ + int SW_SCHEDULABLE_RESOURCE__RESUME_SERVICES = SW_CONCURRENT_RESOURCE__RESUME_SERVICES; + + /** + * The feature id for the 'Suspend Services' reference list. + * + * + * @generated + * @ordered + */ + int SW_SCHEDULABLE_RESOURCE__SUSPEND_SERVICES = SW_CONCURRENT_RESOURCE__SUSPEND_SERVICES; + + /** + * The feature id for the 'Terminate Services' reference list. + * + * + * @generated + * @ordered + */ + int SW_SCHEDULABLE_RESOURCE__TERMINATE_SERVICES = SW_CONCURRENT_RESOURCE__TERMINATE_SERVICES; + + /** + * The feature id for the 'Disable Concurrency Services' reference list. + * + * + * @generated + * @ordered + */ + int SW_SCHEDULABLE_RESOURCE__DISABLE_CONCURRENCY_SERVICES = SW_CONCURRENT_RESOURCE__DISABLE_CONCURRENCY_SERVICES; + + /** + * The feature id for the 'Share Data Resources' reference list. + * + * + * @generated + * @ordered + */ + int SW_SCHEDULABLE_RESOURCE__SHARE_DATA_RESOURCES = SW_CONCURRENT_RESOURCE__SHARE_DATA_RESOURCES; + + /** + * The feature id for the 'Message Resources' reference list. + * + * + * @generated + * @ordered + */ + int SW_SCHEDULABLE_RESOURCE__MESSAGE_RESOURCES = SW_CONCURRENT_RESOURCE__MESSAGE_RESOURCES; + + /** + * The feature id for the 'Mutual Exclusion Resources' reference list. + * + * + * @generated + * @ordered + */ + int SW_SCHEDULABLE_RESOURCE__MUTUAL_EXCLUSION_RESOURCES = SW_CONCURRENT_RESOURCE__MUTUAL_EXCLUSION_RESOURCES; + + /** + * The feature id for the 'Notification Resources' reference list. + * + * + * @generated + * @ordered + */ + int SW_SCHEDULABLE_RESOURCE__NOTIFICATION_RESOURCES = SW_CONCURRENT_RESOURCE__NOTIFICATION_RESOURCES; + + /** + * The feature id for the 'Heap Size Elements' reference list. + * + * + * @generated + * @ordered + */ + int SW_SCHEDULABLE_RESOURCE__HEAP_SIZE_ELEMENTS = SW_CONCURRENT_RESOURCE__HEAP_SIZE_ELEMENTS; + + /** + * The feature id for the 'Sched Params' attribute list. + * + * + * @generated + * @ordered + */ + int SW_SCHEDULABLE_RESOURCE__SCHED_PARAMS = SW_CONCURRENT_RESOURCE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Dependent Scheduler' reference. + * + * + * @generated + * @ordered + */ + int SW_SCHEDULABLE_RESOURCE__DEPENDENT_SCHEDULER = SW_CONCURRENT_RESOURCE_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Host' reference. + * + * + * @generated + * @ordered + */ + int SW_SCHEDULABLE_RESOURCE__HOST = SW_CONCURRENT_RESOURCE_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Is Static Scheduling Feature' attribute. + * + * + * @generated + * @ordered + */ + int SW_SCHEDULABLE_RESOURCE__IS_STATIC_SCHEDULING_FEATURE = SW_CONCURRENT_RESOURCE_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Is Preemptable' attribute. + * + * + * @generated + * @ordered + */ + int SW_SCHEDULABLE_RESOURCE__IS_PREEMPTABLE = SW_CONCURRENT_RESOURCE_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Schedulers' reference. + * + * + * @generated + * @ordered + */ + int SW_SCHEDULABLE_RESOURCE__SCHEDULERS = SW_CONCURRENT_RESOURCE_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Deadline Elements' reference list. + * + * + * @generated + * @ordered + */ + int SW_SCHEDULABLE_RESOURCE__DEADLINE_ELEMENTS = SW_CONCURRENT_RESOURCE_FEATURE_COUNT + 6; + + /** + * The feature id for the 'Deadline Type Elements' reference list. + * + * + * @generated + * @ordered + */ + int SW_SCHEDULABLE_RESOURCE__DEADLINE_TYPE_ELEMENTS = SW_CONCURRENT_RESOURCE_FEATURE_COUNT + 7; + + /** + * The feature id for the 'Time Slice Elements' reference list. + * + * + * @generated + * @ordered + */ + int SW_SCHEDULABLE_RESOURCE__TIME_SLICE_ELEMENTS = SW_CONCURRENT_RESOURCE_FEATURE_COUNT + 8; + + /** + * The feature id for the 'Delay Services' reference list. + * + * + * @generated + * @ordered + */ + int SW_SCHEDULABLE_RESOURCE__DELAY_SERVICES = SW_CONCURRENT_RESOURCE_FEATURE_COUNT + 9; + + /** + * The feature id for the 'Join Services' reference list. + * + * + * @generated + * @ordered + */ + int SW_SCHEDULABLE_RESOURCE__JOIN_SERVICES = SW_CONCURRENT_RESOURCE_FEATURE_COUNT + 10; + + /** + * The feature id for the 'Yield Services' reference list. + * + * + * @generated + * @ordered + */ + int SW_SCHEDULABLE_RESOURCE__YIELD_SERVICES = SW_CONCURRENT_RESOURCE_FEATURE_COUNT + 11; + + /** + * The number of structural features of the 'Sw Schedulable Resource' class. + * + * + * @generated + * @ordered + */ + int SW_SCHEDULABLE_RESOURCE_FEATURE_COUNT = SW_CONCURRENT_RESOURCE_FEATURE_COUNT + 12; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SwTimerResourceImpl Sw Timer Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SwTimerResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SW_ConcurrencyPackageImpl#getSwTimerResource() + * @generated + */ + int SW_TIMER_RESOURCE = 4; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int SW_TIMER_RESOURCE__RES_MULT = GRMPackage.TIMER_RESOURCE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int SW_TIMER_RESOURCE__IS_PROTECTED = GRMPackage.TIMER_RESOURCE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int SW_TIMER_RESOURCE__IS_ACTIVE = GRMPackage.TIMER_RESOURCE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int SW_TIMER_RESOURCE__BASE_PROPERTY = GRMPackage.TIMER_RESOURCE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int SW_TIMER_RESOURCE__BASE_INSTANCE_SPECIFICATION = GRMPackage.TIMER_RESOURCE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int SW_TIMER_RESOURCE__BASE_CLASSIFIER = GRMPackage.TIMER_RESOURCE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int SW_TIMER_RESOURCE__BASE_LIFELINE = GRMPackage.TIMER_RESOURCE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int SW_TIMER_RESOURCE__BASE_CONNECTABLE_ELEMENT = GRMPackage.TIMER_RESOURCE__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Duration' attribute. + * + * + * @generated + * @ordered + */ + int SW_TIMER_RESOURCE__DURATION = GRMPackage.TIMER_RESOURCE__DURATION; + + /** + * The feature id for the 'Is Periodic' attribute. + * + * + * @generated + * @ordered + */ + int SW_TIMER_RESOURCE__IS_PERIODIC = GRMPackage.TIMER_RESOURCE__IS_PERIODIC; + + /** + * The feature id for the 'Duration Elements' reference. + * + * + * @generated + * @ordered + */ + int SW_TIMER_RESOURCE__DURATION_ELEMENTS = GRMPackage.TIMER_RESOURCE_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Sw Timer Resource' class. + * + * + * @generated + * @ordered + */ + int SW_TIMER_RESOURCE_FEATURE_COUNT = GRMPackage.TIMER_RESOURCE_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.MemoryPartitionImpl Memory Partition}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.MemoryPartitionImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SW_ConcurrencyPackageImpl#getMemoryPartition() + * @generated + */ + int MEMORY_PARTITION = 5; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int MEMORY_PARTITION__RES_MULT = SW_ResourceCorePackage.SW_RESOURCE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int MEMORY_PARTITION__IS_PROTECTED = SW_ResourceCorePackage.SW_RESOURCE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int MEMORY_PARTITION__IS_ACTIVE = SW_ResourceCorePackage.SW_RESOURCE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int MEMORY_PARTITION__BASE_PROPERTY = SW_ResourceCorePackage.SW_RESOURCE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int MEMORY_PARTITION__BASE_INSTANCE_SPECIFICATION = SW_ResourceCorePackage.SW_RESOURCE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int MEMORY_PARTITION__BASE_CLASSIFIER = SW_ResourceCorePackage.SW_RESOURCE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int MEMORY_PARTITION__BASE_LIFELINE = SW_ResourceCorePackage.SW_RESOURCE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int MEMORY_PARTITION__BASE_CONNECTABLE_ELEMENT = SW_ResourceCorePackage.SW_RESOURCE__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Identifier Elements' reference list. + * + * + * @generated + * @ordered + */ + int MEMORY_PARTITION__IDENTIFIER_ELEMENTS = SW_ResourceCorePackage.SW_RESOURCE__IDENTIFIER_ELEMENTS; + + /** + * The feature id for the 'State Elements' reference list. + * + * + * @generated + * @ordered + */ + int MEMORY_PARTITION__STATE_ELEMENTS = SW_ResourceCorePackage.SW_RESOURCE__STATE_ELEMENTS; + + /** + * The feature id for the 'Memory Size Footprint' reference. + * + * + * @generated + * @ordered + */ + int MEMORY_PARTITION__MEMORY_SIZE_FOOTPRINT = SW_ResourceCorePackage.SW_RESOURCE__MEMORY_SIZE_FOOTPRINT; + + /** + * The feature id for the 'Create Services' reference list. + * + * + * @generated + * @ordered + */ + int MEMORY_PARTITION__CREATE_SERVICES = SW_ResourceCorePackage.SW_RESOURCE__CREATE_SERVICES; + + /** + * The feature id for the 'Delete Services' reference list. + * + * + * @generated + * @ordered + */ + int MEMORY_PARTITION__DELETE_SERVICES = SW_ResourceCorePackage.SW_RESOURCE__DELETE_SERVICES; + + /** + * The feature id for the 'Initialize Services' reference list. + * + * + * @generated + * @ordered + */ + int MEMORY_PARTITION__INITIALIZE_SERVICES = SW_ResourceCorePackage.SW_RESOURCE__INITIALIZE_SERVICES; + + /** + * The feature id for the 'Concurrent Resources' reference list. + * + * + * @generated + * @ordered + */ + int MEMORY_PARTITION__CONCURRENT_RESOURCES = SW_ResourceCorePackage.SW_RESOURCE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Memory Spaces' reference list. + * + * + * @generated + * @ordered + */ + int MEMORY_PARTITION__MEMORY_SPACES = SW_ResourceCorePackage.SW_RESOURCE_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Fork' reference list. + * + * + * @generated + * @ordered + */ + int MEMORY_PARTITION__FORK = SW_ResourceCorePackage.SW_RESOURCE_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Exit' reference list. + * + * + * @generated + * @ordered + */ + int MEMORY_PARTITION__EXIT = SW_ResourceCorePackage.SW_RESOURCE_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Base Namespace' reference. + * + * + * @generated + * @ordered + */ + int MEMORY_PARTITION__BASE_NAMESPACE = SW_ResourceCorePackage.SW_RESOURCE_FEATURE_COUNT + 4; + + /** + * The number of structural features of the 'Memory Partition' class. + * + * + * @generated + * @ordered + */ + int MEMORY_PARTITION_FEATURE_COUNT = SW_ResourceCorePackage.SW_RESOURCE_FEATURE_COUNT + 5; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.AlarmImpl Alarm}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.AlarmImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SW_ConcurrencyPackageImpl#getAlarm() + * @generated + */ + int ALARM = 6; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int ALARM__RES_MULT = INTERRUPT_RESOURCE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int ALARM__IS_PROTECTED = INTERRUPT_RESOURCE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int ALARM__IS_ACTIVE = INTERRUPT_RESOURCE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int ALARM__BASE_PROPERTY = INTERRUPT_RESOURCE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int ALARM__BASE_INSTANCE_SPECIFICATION = INTERRUPT_RESOURCE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int ALARM__BASE_CLASSIFIER = INTERRUPT_RESOURCE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int ALARM__BASE_LIFELINE = INTERRUPT_RESOURCE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int ALARM__BASE_CONNECTABLE_ELEMENT = INTERRUPT_RESOURCE__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Identifier Elements' reference list. + * + * + * @generated + * @ordered + */ + int ALARM__IDENTIFIER_ELEMENTS = INTERRUPT_RESOURCE__IDENTIFIER_ELEMENTS; + + /** + * The feature id for the 'State Elements' reference list. + * + * + * @generated + * @ordered + */ + int ALARM__STATE_ELEMENTS = INTERRUPT_RESOURCE__STATE_ELEMENTS; + + /** + * The feature id for the 'Memory Size Footprint' reference. + * + * + * @generated + * @ordered + */ + int ALARM__MEMORY_SIZE_FOOTPRINT = INTERRUPT_RESOURCE__MEMORY_SIZE_FOOTPRINT; + + /** + * The feature id for the 'Create Services' reference list. + * + * + * @generated + * @ordered + */ + int ALARM__CREATE_SERVICES = INTERRUPT_RESOURCE__CREATE_SERVICES; + + /** + * The feature id for the 'Delete Services' reference list. + * + * + * @generated + * @ordered + */ + int ALARM__DELETE_SERVICES = INTERRUPT_RESOURCE__DELETE_SERVICES; + + /** + * The feature id for the 'Initialize Services' reference list. + * + * + * @generated + * @ordered + */ + int ALARM__INITIALIZE_SERVICES = INTERRUPT_RESOURCE__INITIALIZE_SERVICES; + + /** + * The feature id for the 'Type' attribute. + * + * + * @generated + * @ordered + */ + int ALARM__TYPE = INTERRUPT_RESOURCE__TYPE; + + /** + * The feature id for the 'Activation Capacity' attribute. + * + * + * @generated + * @ordered + */ + int ALARM__ACTIVATION_CAPACITY = INTERRUPT_RESOURCE__ACTIVATION_CAPACITY; + + /** + * The feature id for the 'Entry Points' reference list. + * + * + * @generated + * @ordered + */ + int ALARM__ENTRY_POINTS = INTERRUPT_RESOURCE__ENTRY_POINTS; + + /** + * The feature id for the 'Adress Space' reference list. + * + * + * @generated + * @ordered + */ + int ALARM__ADRESS_SPACE = INTERRUPT_RESOURCE__ADRESS_SPACE; + + /** + * The feature id for the 'Period Elements' reference list. + * + * + * @generated + * @ordered + */ + int ALARM__PERIOD_ELEMENTS = INTERRUPT_RESOURCE__PERIOD_ELEMENTS; + + /** + * The feature id for the 'Priority Elements' reference list. + * + * + * @generated + * @ordered + */ + int ALARM__PRIORITY_ELEMENTS = INTERRUPT_RESOURCE__PRIORITY_ELEMENTS; + + /** + * The feature id for the 'Stack Size Elements' reference list. + * + * + * @generated + * @ordered + */ + int ALARM__STACK_SIZE_ELEMENTS = INTERRUPT_RESOURCE__STACK_SIZE_ELEMENTS; + + /** + * The feature id for the 'Activate Services' reference list. + * + * + * @generated + * @ordered + */ + int ALARM__ACTIVATE_SERVICES = INTERRUPT_RESOURCE__ACTIVATE_SERVICES; + + /** + * The feature id for the 'Enable Concurrency Services' reference list. + * + * + * @generated + * @ordered + */ + int ALARM__ENABLE_CONCURRENCY_SERVICES = INTERRUPT_RESOURCE__ENABLE_CONCURRENCY_SERVICES; + + /** + * The feature id for the 'Resume Services' reference list. + * + * + * @generated + * @ordered + */ + int ALARM__RESUME_SERVICES = INTERRUPT_RESOURCE__RESUME_SERVICES; + + /** + * The feature id for the 'Suspend Services' reference list. + * + * + * @generated + * @ordered + */ + int ALARM__SUSPEND_SERVICES = INTERRUPT_RESOURCE__SUSPEND_SERVICES; + + /** + * The feature id for the 'Terminate Services' reference list. + * + * + * @generated + * @ordered + */ + int ALARM__TERMINATE_SERVICES = INTERRUPT_RESOURCE__TERMINATE_SERVICES; + + /** + * The feature id for the 'Disable Concurrency Services' reference list. + * + * + * @generated + * @ordered + */ + int ALARM__DISABLE_CONCURRENCY_SERVICES = INTERRUPT_RESOURCE__DISABLE_CONCURRENCY_SERVICES; + + /** + * The feature id for the 'Share Data Resources' reference list. + * + * + * @generated + * @ordered + */ + int ALARM__SHARE_DATA_RESOURCES = INTERRUPT_RESOURCE__SHARE_DATA_RESOURCES; + + /** + * The feature id for the 'Message Resources' reference list. + * + * + * @generated + * @ordered + */ + int ALARM__MESSAGE_RESOURCES = INTERRUPT_RESOURCE__MESSAGE_RESOURCES; + + /** + * The feature id for the 'Mutual Exclusion Resources' reference list. + * + * + * @generated + * @ordered + */ + int ALARM__MUTUAL_EXCLUSION_RESOURCES = INTERRUPT_RESOURCE__MUTUAL_EXCLUSION_RESOURCES; + + /** + * The feature id for the 'Notification Resources' reference list. + * + * + * @generated + * @ordered + */ + int ALARM__NOTIFICATION_RESOURCES = INTERRUPT_RESOURCE__NOTIFICATION_RESOURCES; + + /** + * The feature id for the 'Heap Size Elements' reference list. + * + * + * @generated + * @ordered + */ + int ALARM__HEAP_SIZE_ELEMENTS = INTERRUPT_RESOURCE__HEAP_SIZE_ELEMENTS; + + /** + * The feature id for the 'Kind' attribute. + * + * + * @generated + * @ordered + */ + int ALARM__KIND = INTERRUPT_RESOURCE__KIND; + + /** + * The feature id for the 'Is Maskable' attribute. + * + * + * @generated + * @ordered + */ + int ALARM__IS_MASKABLE = INTERRUPT_RESOURCE__IS_MASKABLE; + + /** + * The feature id for the 'Vector Elements' reference list. + * + * + * @generated + * @ordered + */ + int ALARM__VECTOR_ELEMENTS = INTERRUPT_RESOURCE__VECTOR_ELEMENTS; + + /** + * The feature id for the 'Mask Elements' reference list. + * + * + * @generated + * @ordered + */ + int ALARM__MASK_ELEMENTS = INTERRUPT_RESOURCE__MASK_ELEMENTS; + + /** + * The feature id for the 'Routine Connect Services' reference list. + * + * + * @generated + * @ordered + */ + int ALARM__ROUTINE_CONNECT_SERVICES = INTERRUPT_RESOURCE__ROUTINE_CONNECT_SERVICES; + + /** + * The feature id for the 'Routine Disconnect Services' reference list. + * + * + * @generated + * @ordered + */ + int ALARM__ROUTINE_DISCONNECT_SERVICES = INTERRUPT_RESOURCE__ROUTINE_DISCONNECT_SERVICES; + + /** + * The feature id for the 'Is Watchdog' attribute. + * + * + * @generated + * @ordered + */ + int ALARM__IS_WATCHDOG = INTERRUPT_RESOURCE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Timers' reference list. + * + * + * @generated + * @ordered + */ + int ALARM__TIMERS = INTERRUPT_RESOURCE_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Alarm' class. + * + * + * @generated + * @ordered + */ + int ALARM_FEATURE_COUNT = INTERRUPT_RESOURCE_FEATURE_COUNT + 2; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.InterruptKind Interrupt Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.InterruptKind + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SW_ConcurrencyPackageImpl#getInterruptKind() + * @generated + */ + int INTERRUPT_KIND = 7; + + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.EntryPoint Entry Point}'. + * + * + * @return the meta object for class 'Entry Point'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.EntryPoint + * @generated + */ + EClass getEntryPoint(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.EntryPoint#isIsReentrant Is Reentrant}'. + * + * + * @return the meta object for the attribute 'Is Reentrant'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.EntryPoint#isIsReentrant() + * @see #getEntryPoint() + * @generated + */ + EAttribute getEntryPoint_IsReentrant(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.EntryPoint#getRoutine Routine}'. + * + * + * @return the meta object for the reference 'Routine'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.EntryPoint#getRoutine() + * @see #getEntryPoint() + * @generated + */ + EReference getEntryPoint_Routine(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource Sw Concurrent Resource}'. + * + * + * @return the meta object for class 'Sw Concurrent Resource'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource + * @generated + */ + EClass getSwConcurrentResource(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getType Type}'. + * + * + * @return the meta object for the attribute 'Type'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getType() + * @see #getSwConcurrentResource() + * @generated + */ + EAttribute getSwConcurrentResource_Type(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getActivationCapacity Activation Capacity}'. + * + * + * @return the meta object for the attribute 'Activation Capacity'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getActivationCapacity() + * @see #getSwConcurrentResource() + * @generated + */ + EAttribute getSwConcurrentResource_ActivationCapacity(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getEntryPoints Entry Points}'. + * + * + * @return the meta object for the reference list 'Entry Points'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getEntryPoints() + * @see #getSwConcurrentResource() + * @generated + */ + EReference getSwConcurrentResource_EntryPoints(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getAdressSpace Adress Space}'. + * + * + * @return the meta object for the reference list 'Adress Space'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getAdressSpace() + * @see #getSwConcurrentResource() + * @generated + */ + EReference getSwConcurrentResource_AdressSpace(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getPeriodElements Period Elements}'. + * + * + * @return the meta object for the reference list 'Period Elements'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getPeriodElements() + * @see #getSwConcurrentResource() + * @generated + */ + EReference getSwConcurrentResource_PeriodElements(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getPriorityElements Priority Elements}'. + * + * + * @return the meta object for the reference list 'Priority Elements'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getPriorityElements() + * @see #getSwConcurrentResource() + * @generated + */ + EReference getSwConcurrentResource_PriorityElements(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getStackSizeElements Stack Size Elements}'. + * + * + * @return the meta object for the reference list 'Stack Size Elements'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getStackSizeElements() + * @see #getSwConcurrentResource() + * @generated + */ + EReference getSwConcurrentResource_StackSizeElements(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getActivateServices Activate Services}'. + * + * + * @return the meta object for the reference list 'Activate Services'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getActivateServices() + * @see #getSwConcurrentResource() + * @generated + */ + EReference getSwConcurrentResource_ActivateServices(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getEnableConcurrencyServices Enable Concurrency Services}'. + * + * + * @return the meta object for the reference list 'Enable Concurrency Services'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getEnableConcurrencyServices() + * @see #getSwConcurrentResource() + * @generated + */ + EReference getSwConcurrentResource_EnableConcurrencyServices(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getResumeServices Resume Services}'. + * + * + * @return the meta object for the reference list 'Resume Services'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getResumeServices() + * @see #getSwConcurrentResource() + * @generated + */ + EReference getSwConcurrentResource_ResumeServices(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getSuspendServices Suspend Services}'. + * + * + * @return the meta object for the reference list 'Suspend Services'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getSuspendServices() + * @see #getSwConcurrentResource() + * @generated + */ + EReference getSwConcurrentResource_SuspendServices(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getTerminateServices Terminate Services}'. + * + * + * @return the meta object for the reference list 'Terminate Services'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getTerminateServices() + * @see #getSwConcurrentResource() + * @generated + */ + EReference getSwConcurrentResource_TerminateServices(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getDisableConcurrencyServices Disable Concurrency Services}'. + * + * + * @return the meta object for the reference list 'Disable Concurrency Services'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getDisableConcurrencyServices() + * @see #getSwConcurrentResource() + * @generated + */ + EReference getSwConcurrentResource_DisableConcurrencyServices(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getShareDataResources Share Data Resources}'. + * + * + * @return the meta object for the reference list 'Share Data Resources'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getShareDataResources() + * @see #getSwConcurrentResource() + * @generated + */ + EReference getSwConcurrentResource_ShareDataResources(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getMessageResources Message Resources}'. + * + * + * @return the meta object for the reference list 'Message Resources'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getMessageResources() + * @see #getSwConcurrentResource() + * @generated + */ + EReference getSwConcurrentResource_MessageResources(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getMutualExclusionResources Mutual Exclusion Resources}'. + * + * + * @return the meta object for the reference list 'Mutual Exclusion Resources'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getMutualExclusionResources() + * @see #getSwConcurrentResource() + * @generated + */ + EReference getSwConcurrentResource_MutualExclusionResources(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getNotificationResources Notification Resources}'. + * + * + * @return the meta object for the reference list 'Notification Resources'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getNotificationResources() + * @see #getSwConcurrentResource() + * @generated + */ + EReference getSwConcurrentResource_NotificationResources(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getHeapSizeElements Heap Size Elements}'. + * + * + * @return the meta object for the reference list 'Heap Size Elements'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getHeapSizeElements() + * @see #getSwConcurrentResource() + * @generated + */ + EReference getSwConcurrentResource_HeapSizeElements(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.InterruptResource Interrupt Resource}'. + * + * + * @return the meta object for class 'Interrupt Resource'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.InterruptResource + * @generated + */ + EClass getInterruptResource(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.InterruptResource#getKind Kind}'. + * + * + * @return the meta object for the attribute 'Kind'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.InterruptResource#getKind() + * @see #getInterruptResource() + * @generated + */ + EAttribute getInterruptResource_Kind(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.InterruptResource#isIsMaskable Is Maskable}'. + * + * + * @return the meta object for the attribute 'Is Maskable'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.InterruptResource#isIsMaskable() + * @see #getInterruptResource() + * @generated + */ + EAttribute getInterruptResource_IsMaskable(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.InterruptResource#getVectorElements Vector Elements}'. + * + * + * @return the meta object for the reference list 'Vector Elements'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.InterruptResource#getVectorElements() + * @see #getInterruptResource() + * @generated + */ + EReference getInterruptResource_VectorElements(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.InterruptResource#getMaskElements Mask Elements}'. + * + * + * @return the meta object for the reference list 'Mask Elements'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.InterruptResource#getMaskElements() + * @see #getInterruptResource() + * @generated + */ + EReference getInterruptResource_MaskElements(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.InterruptResource#getRoutineConnectServices Routine Connect Services}'. + * + * + * @return the meta object for the reference list 'Routine Connect Services'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.InterruptResource#getRoutineConnectServices() + * @see #getInterruptResource() + * @generated + */ + EReference getInterruptResource_RoutineConnectServices(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.InterruptResource#getRoutineDisconnectServices Routine Disconnect Services}'. + * + * + * @return the meta object for the reference list 'Routine Disconnect Services'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.InterruptResource#getRoutineDisconnectServices() + * @see #getInterruptResource() + * @generated + */ + EReference getInterruptResource_RoutineDisconnectServices(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwSchedulableResource Sw Schedulable Resource}'. + * + * + * @return the meta object for class 'Sw Schedulable Resource'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwSchedulableResource + * @generated + */ + EClass getSwSchedulableResource(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwSchedulableResource#isIsStaticSchedulingFeature Is Static Scheduling Feature}'. + * + * + * @return the meta object for the attribute 'Is Static Scheduling Feature'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwSchedulableResource#isIsStaticSchedulingFeature() + * @see #getSwSchedulableResource() + * @generated + */ + EAttribute getSwSchedulableResource_IsStaticSchedulingFeature(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwSchedulableResource#isIsPreemptable Is Preemptable}'. + * + * + * @return the meta object for the attribute 'Is Preemptable'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwSchedulableResource#isIsPreemptable() + * @see #getSwSchedulableResource() + * @generated + */ + EAttribute getSwSchedulableResource_IsPreemptable(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwSchedulableResource#getSchedulers Schedulers}'. + * + * + * @return the meta object for the reference 'Schedulers'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwSchedulableResource#getSchedulers() + * @see #getSwSchedulableResource() + * @generated + */ + EReference getSwSchedulableResource_Schedulers(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwSchedulableResource#getDeadlineElements Deadline Elements}'. + * + * + * @return the meta object for the reference list 'Deadline Elements'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwSchedulableResource#getDeadlineElements() + * @see #getSwSchedulableResource() + * @generated + */ + EReference getSwSchedulableResource_DeadlineElements(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwSchedulableResource#getDeadlineTypeElements Deadline Type Elements}'. + * + * + * @return the meta object for the reference list 'Deadline Type Elements'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwSchedulableResource#getDeadlineTypeElements() + * @see #getSwSchedulableResource() + * @generated + */ + EReference getSwSchedulableResource_DeadlineTypeElements(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwSchedulableResource#getTimeSliceElements Time Slice Elements}'. + * + * + * @return the meta object for the reference list 'Time Slice Elements'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwSchedulableResource#getTimeSliceElements() + * @see #getSwSchedulableResource() + * @generated + */ + EReference getSwSchedulableResource_TimeSliceElements(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwSchedulableResource#getDelayServices Delay Services}'. + * + * + * @return the meta object for the reference list 'Delay Services'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwSchedulableResource#getDelayServices() + * @see #getSwSchedulableResource() + * @generated + */ + EReference getSwSchedulableResource_DelayServices(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwSchedulableResource#getJoinServices Join Services}'. + * + * + * @return the meta object for the reference list 'Join Services'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwSchedulableResource#getJoinServices() + * @see #getSwSchedulableResource() + * @generated + */ + EReference getSwSchedulableResource_JoinServices(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwSchedulableResource#getYieldServices Yield Services}'. + * + * + * @return the meta object for the reference list 'Yield Services'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwSchedulableResource#getYieldServices() + * @see #getSwSchedulableResource() + * @generated + */ + EReference getSwSchedulableResource_YieldServices(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwTimerResource Sw Timer Resource}'. + * + * + * @return the meta object for class 'Sw Timer Resource'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwTimerResource + * @generated + */ + EClass getSwTimerResource(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwTimerResource#getDurationElements Duration Elements}'. + * + * + * @return the meta object for the reference 'Duration Elements'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwTimerResource#getDurationElements() + * @see #getSwTimerResource() + * @generated + */ + EReference getSwTimerResource_DurationElements(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.MemoryPartition Memory Partition}'. + * + * + * @return the meta object for class 'Memory Partition'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.MemoryPartition + * @generated + */ + EClass getMemoryPartition(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.MemoryPartition#getConcurrentResources Concurrent Resources}'. + * + * + * @return the meta object for the reference list 'Concurrent Resources'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.MemoryPartition#getConcurrentResources() + * @see #getMemoryPartition() + * @generated + */ + EReference getMemoryPartition_ConcurrentResources(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.MemoryPartition#getMemorySpaces Memory Spaces}'. + * + * + * @return the meta object for the reference list 'Memory Spaces'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.MemoryPartition#getMemorySpaces() + * @see #getMemoryPartition() + * @generated + */ + EReference getMemoryPartition_MemorySpaces(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.MemoryPartition#getFork Fork}'. + * + * + * @return the meta object for the reference list 'Fork'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.MemoryPartition#getFork() + * @see #getMemoryPartition() + * @generated + */ + EReference getMemoryPartition_Fork(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.MemoryPartition#getExit Exit}'. + * + * + * @return the meta object for the reference list 'Exit'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.MemoryPartition#getExit() + * @see #getMemoryPartition() + * @generated + */ + EReference getMemoryPartition_Exit(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.MemoryPartition#getBase_Namespace Base Namespace}'. + * + * + * @return the meta object for the reference 'Base Namespace'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.MemoryPartition#getBase_Namespace() + * @see #getMemoryPartition() + * @generated + */ + EReference getMemoryPartition_Base_Namespace(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.Alarm Alarm}'. + * + * + * @return the meta object for class 'Alarm'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.Alarm + * @generated + */ + EClass getAlarm(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.Alarm#isIsWatchdog Is Watchdog}'. + * + * + * @return the meta object for the attribute 'Is Watchdog'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.Alarm#isIsWatchdog() + * @see #getAlarm() + * @generated + */ + EAttribute getAlarm_IsWatchdog(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.Alarm#getTimers Timers}'. + * + * + * @return the meta object for the reference list 'Timers'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.Alarm#getTimers() + * @see #getAlarm() + * @generated + */ + EReference getAlarm_Timers(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.InterruptKind Interrupt Kind}'. + * + * + * @return the meta object for enum 'Interrupt Kind'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.InterruptKind + * @generated + */ + EEnum getInterruptKind(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + SW_ConcurrencyFactory getSW_ConcurrencyFactory(); + + /** + * + * 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.MARTE_DesignModel.SRM.SW_Concurrency.impl.EntryPointImpl Entry Point}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.EntryPointImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SW_ConcurrencyPackageImpl#getEntryPoint() + * @generated + */ + EClass ENTRY_POINT = eINSTANCE.getEntryPoint(); + + /** + * The meta object literal for the 'Is Reentrant' attribute feature. + * + * + * @generated + */ + EAttribute ENTRY_POINT__IS_REENTRANT = eINSTANCE.getEntryPoint_IsReentrant(); + + /** + * The meta object literal for the 'Routine' reference feature. + * + * + * @generated + */ + EReference ENTRY_POINT__ROUTINE = eINSTANCE.getEntryPoint_Routine(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SwConcurrentResourceImpl Sw Concurrent Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SwConcurrentResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SW_ConcurrencyPackageImpl#getSwConcurrentResource() + * @generated + */ + EClass SW_CONCURRENT_RESOURCE = eINSTANCE.getSwConcurrentResource(); + + /** + * The meta object literal for the 'Type' attribute feature. + * + * + * @generated + */ + EAttribute SW_CONCURRENT_RESOURCE__TYPE = eINSTANCE.getSwConcurrentResource_Type(); + + /** + * The meta object literal for the 'Activation Capacity' attribute feature. + * + * + * @generated + */ + EAttribute SW_CONCURRENT_RESOURCE__ACTIVATION_CAPACITY = eINSTANCE.getSwConcurrentResource_ActivationCapacity(); + + /** + * The meta object literal for the 'Entry Points' reference list feature. + * + * + * @generated + */ + EReference SW_CONCURRENT_RESOURCE__ENTRY_POINTS = eINSTANCE.getSwConcurrentResource_EntryPoints(); + + /** + * The meta object literal for the 'Adress Space' reference list feature. + * + * + * @generated + */ + EReference SW_CONCURRENT_RESOURCE__ADRESS_SPACE = eINSTANCE.getSwConcurrentResource_AdressSpace(); + + /** + * The meta object literal for the 'Period Elements' reference list feature. + * + * + * @generated + */ + EReference SW_CONCURRENT_RESOURCE__PERIOD_ELEMENTS = eINSTANCE.getSwConcurrentResource_PeriodElements(); + + /** + * The meta object literal for the 'Priority Elements' reference list feature. + * + * + * @generated + */ + EReference SW_CONCURRENT_RESOURCE__PRIORITY_ELEMENTS = eINSTANCE.getSwConcurrentResource_PriorityElements(); + + /** + * The meta object literal for the 'Stack Size Elements' reference list feature. + * + * + * @generated + */ + EReference SW_CONCURRENT_RESOURCE__STACK_SIZE_ELEMENTS = eINSTANCE.getSwConcurrentResource_StackSizeElements(); + + /** + * The meta object literal for the 'Activate Services' reference list feature. + * + * + * @generated + */ + EReference SW_CONCURRENT_RESOURCE__ACTIVATE_SERVICES = eINSTANCE.getSwConcurrentResource_ActivateServices(); + + /** + * The meta object literal for the 'Enable Concurrency Services' reference list feature. + * + * + * @generated + */ + EReference SW_CONCURRENT_RESOURCE__ENABLE_CONCURRENCY_SERVICES = eINSTANCE.getSwConcurrentResource_EnableConcurrencyServices(); + + /** + * The meta object literal for the 'Resume Services' reference list feature. + * + * + * @generated + */ + EReference SW_CONCURRENT_RESOURCE__RESUME_SERVICES = eINSTANCE.getSwConcurrentResource_ResumeServices(); + + /** + * The meta object literal for the 'Suspend Services' reference list feature. + * + * + * @generated + */ + EReference SW_CONCURRENT_RESOURCE__SUSPEND_SERVICES = eINSTANCE.getSwConcurrentResource_SuspendServices(); + + /** + * The meta object literal for the 'Terminate Services' reference list feature. + * + * + * @generated + */ + EReference SW_CONCURRENT_RESOURCE__TERMINATE_SERVICES = eINSTANCE.getSwConcurrentResource_TerminateServices(); + + /** + * The meta object literal for the 'Disable Concurrency Services' reference list feature. + * + * + * @generated + */ + EReference SW_CONCURRENT_RESOURCE__DISABLE_CONCURRENCY_SERVICES = eINSTANCE.getSwConcurrentResource_DisableConcurrencyServices(); + + /** + * The meta object literal for the 'Share Data Resources' reference list feature. + * + * + * @generated + */ + EReference SW_CONCURRENT_RESOURCE__SHARE_DATA_RESOURCES = eINSTANCE.getSwConcurrentResource_ShareDataResources(); + + /** + * The meta object literal for the 'Message Resources' reference list feature. + * + * + * @generated + */ + EReference SW_CONCURRENT_RESOURCE__MESSAGE_RESOURCES = eINSTANCE.getSwConcurrentResource_MessageResources(); + + /** + * The meta object literal for the 'Mutual Exclusion Resources' reference list feature. + * + * + * @generated + */ + EReference SW_CONCURRENT_RESOURCE__MUTUAL_EXCLUSION_RESOURCES = eINSTANCE.getSwConcurrentResource_MutualExclusionResources(); + + /** + * The meta object literal for the 'Notification Resources' reference list feature. + * + * + * @generated + */ + EReference SW_CONCURRENT_RESOURCE__NOTIFICATION_RESOURCES = eINSTANCE.getSwConcurrentResource_NotificationResources(); + + /** + * The meta object literal for the 'Heap Size Elements' reference list feature. + * + * + * @generated + */ + EReference SW_CONCURRENT_RESOURCE__HEAP_SIZE_ELEMENTS = eINSTANCE.getSwConcurrentResource_HeapSizeElements(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.InterruptResourceImpl Interrupt Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.InterruptResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SW_ConcurrencyPackageImpl#getInterruptResource() + * @generated + */ + EClass INTERRUPT_RESOURCE = eINSTANCE.getInterruptResource(); + + /** + * The meta object literal for the 'Kind' attribute feature. + * + * + * @generated + */ + EAttribute INTERRUPT_RESOURCE__KIND = eINSTANCE.getInterruptResource_Kind(); + + /** + * The meta object literal for the 'Is Maskable' attribute feature. + * + * + * @generated + */ + EAttribute INTERRUPT_RESOURCE__IS_MASKABLE = eINSTANCE.getInterruptResource_IsMaskable(); + + /** + * The meta object literal for the 'Vector Elements' reference list feature. + * + * + * @generated + */ + EReference INTERRUPT_RESOURCE__VECTOR_ELEMENTS = eINSTANCE.getInterruptResource_VectorElements(); + + /** + * The meta object literal for the 'Mask Elements' reference list feature. + * + * + * @generated + */ + EReference INTERRUPT_RESOURCE__MASK_ELEMENTS = eINSTANCE.getInterruptResource_MaskElements(); + + /** + * The meta object literal for the 'Routine Connect Services' reference list feature. + * + * + * @generated + */ + EReference INTERRUPT_RESOURCE__ROUTINE_CONNECT_SERVICES = eINSTANCE.getInterruptResource_RoutineConnectServices(); + + /** + * The meta object literal for the 'Routine Disconnect Services' reference list feature. + * + * + * @generated + */ + EReference INTERRUPT_RESOURCE__ROUTINE_DISCONNECT_SERVICES = eINSTANCE.getInterruptResource_RoutineDisconnectServices(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SwSchedulableResourceImpl Sw Schedulable Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SwSchedulableResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SW_ConcurrencyPackageImpl#getSwSchedulableResource() + * @generated + */ + EClass SW_SCHEDULABLE_RESOURCE = eINSTANCE.getSwSchedulableResource(); + + /** + * The meta object literal for the 'Is Static Scheduling Feature' attribute feature. + * + * + * @generated + */ + EAttribute SW_SCHEDULABLE_RESOURCE__IS_STATIC_SCHEDULING_FEATURE = eINSTANCE.getSwSchedulableResource_IsStaticSchedulingFeature(); + + /** + * The meta object literal for the 'Is Preemptable' attribute feature. + * + * + * @generated + */ + EAttribute SW_SCHEDULABLE_RESOURCE__IS_PREEMPTABLE = eINSTANCE.getSwSchedulableResource_IsPreemptable(); + + /** + * The meta object literal for the 'Schedulers' reference feature. + * + * + * @generated + */ + EReference SW_SCHEDULABLE_RESOURCE__SCHEDULERS = eINSTANCE.getSwSchedulableResource_Schedulers(); + + /** + * The meta object literal for the 'Deadline Elements' reference list feature. + * + * + * @generated + */ + EReference SW_SCHEDULABLE_RESOURCE__DEADLINE_ELEMENTS = eINSTANCE.getSwSchedulableResource_DeadlineElements(); + + /** + * The meta object literal for the 'Deadline Type Elements' reference list feature. + * + * + * @generated + */ + EReference SW_SCHEDULABLE_RESOURCE__DEADLINE_TYPE_ELEMENTS = eINSTANCE.getSwSchedulableResource_DeadlineTypeElements(); + + /** + * The meta object literal for the 'Time Slice Elements' reference list feature. + * + * + * @generated + */ + EReference SW_SCHEDULABLE_RESOURCE__TIME_SLICE_ELEMENTS = eINSTANCE.getSwSchedulableResource_TimeSliceElements(); + + /** + * The meta object literal for the 'Delay Services' reference list feature. + * + * + * @generated + */ + EReference SW_SCHEDULABLE_RESOURCE__DELAY_SERVICES = eINSTANCE.getSwSchedulableResource_DelayServices(); + + /** + * The meta object literal for the 'Join Services' reference list feature. + * + * + * @generated + */ + EReference SW_SCHEDULABLE_RESOURCE__JOIN_SERVICES = eINSTANCE.getSwSchedulableResource_JoinServices(); + + /** + * The meta object literal for the 'Yield Services' reference list feature. + * + * + * @generated + */ + EReference SW_SCHEDULABLE_RESOURCE__YIELD_SERVICES = eINSTANCE.getSwSchedulableResource_YieldServices(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SwTimerResourceImpl Sw Timer Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SwTimerResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SW_ConcurrencyPackageImpl#getSwTimerResource() + * @generated + */ + EClass SW_TIMER_RESOURCE = eINSTANCE.getSwTimerResource(); + + /** + * The meta object literal for the 'Duration Elements' reference feature. + * + * + * @generated + */ + EReference SW_TIMER_RESOURCE__DURATION_ELEMENTS = eINSTANCE.getSwTimerResource_DurationElements(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.MemoryPartitionImpl Memory Partition}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.MemoryPartitionImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SW_ConcurrencyPackageImpl#getMemoryPartition() + * @generated + */ + EClass MEMORY_PARTITION = eINSTANCE.getMemoryPartition(); + + /** + * The meta object literal for the 'Concurrent Resources' reference list feature. + * + * + * @generated + */ + EReference MEMORY_PARTITION__CONCURRENT_RESOURCES = eINSTANCE.getMemoryPartition_ConcurrentResources(); + + /** + * The meta object literal for the 'Memory Spaces' reference list feature. + * + * + * @generated + */ + EReference MEMORY_PARTITION__MEMORY_SPACES = eINSTANCE.getMemoryPartition_MemorySpaces(); + + /** + * The meta object literal for the 'Fork' reference list feature. + * + * + * @generated + */ + EReference MEMORY_PARTITION__FORK = eINSTANCE.getMemoryPartition_Fork(); + + /** + * The meta object literal for the 'Exit' reference list feature. + * + * + * @generated + */ + EReference MEMORY_PARTITION__EXIT = eINSTANCE.getMemoryPartition_Exit(); + + /** + * The meta object literal for the 'Base Namespace' reference feature. + * + * + * @generated + */ + EReference MEMORY_PARTITION__BASE_NAMESPACE = eINSTANCE.getMemoryPartition_Base_Namespace(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.AlarmImpl Alarm}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.AlarmImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SW_ConcurrencyPackageImpl#getAlarm() + * @generated + */ + EClass ALARM = eINSTANCE.getAlarm(); + + /** + * The meta object literal for the 'Is Watchdog' attribute feature. + * + * + * @generated + */ + EAttribute ALARM__IS_WATCHDOG = eINSTANCE.getAlarm_IsWatchdog(); + + /** + * The meta object literal for the 'Timers' reference list feature. + * + * + * @generated + */ + EReference ALARM__TIMERS = eINSTANCE.getAlarm_Timers(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.InterruptKind Interrupt Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.InterruptKind + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SW_ConcurrencyPackageImpl#getInterruptKind() + * @generated + */ + EEnum INTERRUPT_KIND = eINSTANCE.getInterruptKind(); + + } + +} //SW_ConcurrencyPackage diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/SwConcurrentResource.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/SwConcurrentResource.java new file mode 100644 index 00000000000..2edc971ad49 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/SwConcurrentResource.java @@ -0,0 +1,366 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Concurrency; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SwResource; + +import org.eclipse.uml2.uml.BehavioralFeature; +import org.eclipse.uml2.uml.Element; +import org.eclipse.uml2.uml.TypedElement; + +/** + * + * A representation of the model object 'Sw Concurrent Resource'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getType Type}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getActivationCapacity Activation Capacity}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getEntryPoints Entry Points}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getAdressSpace Adress Space}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getPeriodElements Period Elements}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getPriorityElements Priority Elements}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getStackSizeElements Stack Size Elements}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getActivateServices Activate Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getEnableConcurrencyServices Enable Concurrency Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getResumeServices Resume Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getSuspendServices Suspend Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getTerminateServices Terminate Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getDisableConcurrencyServices Disable Concurrency Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getShareDataResources Share Data Resources}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getMessageResources Message Resources}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getMutualExclusionResources Mutual Exclusion Resources}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getNotificationResources Notification Resources}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getHeapSizeElements Heap Size Elements}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#getSwConcurrentResource() + * @model abstract="true" + * @generated + */ +public interface SwConcurrentResource extends SwResource { + /** + * Returns the value of the 'Type' attribute. + * + *

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

+ * + * @return the value of the 'Type' attribute. + * @see #setType(String) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#getSwConcurrentResource_Type() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.ArrivalPattern" ordered="false" + * @generated + */ + String getType(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getType Type}' attribute. + * + * + * @param value the new value of the 'Type' attribute. + * @see #getType() + * @generated + */ + void setType(String value); + + /** + * Returns the value of the 'Activation Capacity' attribute. + * + *

+ * If the meaning of the 'Activation Capacity' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Activation Capacity' attribute. + * @see #setActivationCapacity(int) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#getSwConcurrentResource_ActivationCapacity() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.Integer" ordered="false" + * @generated + */ + int getActivationCapacity(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource#getActivationCapacity Activation Capacity}' attribute. + * + * + * @param value the new value of the 'Activation Capacity' attribute. + * @see #getActivationCapacity() + * @generated + */ + void setActivationCapacity(int value); + + /** + * Returns the value of the 'Entry Points' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.Element}. + * + *

+ * If the meaning of the 'Entry Points' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Entry Points' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#getSwConcurrentResource_EntryPoints() + * @model ordered="false" + * @generated + */ + EList getEntryPoints(); + + /** + * Returns the value of the 'Adress Space' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.TypedElement}. + * + *

+ * If the meaning of the 'Adress Space' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Adress Space' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#getSwConcurrentResource_AdressSpace() + * @model ordered="false" + * @generated + */ + EList getAdressSpace(); + + /** + * Returns the value of the 'Period Elements' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.TypedElement}. + * + *

+ * If the meaning of the 'Period Elements' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Period Elements' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#getSwConcurrentResource_PeriodElements() + * @model ordered="false" + * @generated + */ + EList getPeriodElements(); + + /** + * Returns the value of the 'Priority Elements' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.TypedElement}. + * + *

+ * If the meaning of the 'Priority Elements' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Priority Elements' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#getSwConcurrentResource_PriorityElements() + * @model ordered="false" + * @generated + */ + EList getPriorityElements(); + + /** + * Returns the value of the 'Stack Size Elements' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.TypedElement}. + * + *

+ * If the meaning of the 'Stack Size Elements' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Stack Size Elements' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#getSwConcurrentResource_StackSizeElements() + * @model ordered="false" + * @generated + */ + EList getStackSizeElements(); + + /** + * Returns the value of the 'Activate Services' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.BehavioralFeature}. + * + *

+ * If the meaning of the 'Activate Services' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Activate Services' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#getSwConcurrentResource_ActivateServices() + * @model ordered="false" + * @generated + */ + EList getActivateServices(); + + /** + * Returns the value of the 'Enable Concurrency Services' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.BehavioralFeature}. + * + *

+ * If the meaning of the 'Enable Concurrency Services' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Enable Concurrency Services' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#getSwConcurrentResource_EnableConcurrencyServices() + * @model ordered="false" + * @generated + */ + EList getEnableConcurrencyServices(); + + /** + * Returns the value of the 'Resume Services' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.BehavioralFeature}. + * + *

+ * If the meaning of the 'Resume Services' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Resume Services' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#getSwConcurrentResource_ResumeServices() + * @model ordered="false" + * @generated + */ + EList getResumeServices(); + + /** + * Returns the value of the 'Suspend Services' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.BehavioralFeature}. + * + *

+ * If the meaning of the 'Suspend Services' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Suspend Services' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#getSwConcurrentResource_SuspendServices() + * @model ordered="false" + * @generated + */ + EList getSuspendServices(); + + /** + * Returns the value of the 'Terminate Services' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.BehavioralFeature}. + * + *

+ * If the meaning of the 'Terminate Services' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Terminate Services' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#getSwConcurrentResource_TerminateServices() + * @model ordered="false" + * @generated + */ + EList getTerminateServices(); + + /** + * Returns the value of the 'Disable Concurrency Services' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.BehavioralFeature}. + * + *

+ * If the meaning of the 'Disable Concurrency Services' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Disable Concurrency Services' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#getSwConcurrentResource_DisableConcurrencyServices() + * @model ordered="false" + * @generated + */ + EList getDisableConcurrencyServices(); + + /** + * Returns the value of the 'Share Data Resources' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.TypedElement}. + * + *

+ * If the meaning of the 'Share Data Resources' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Share Data Resources' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#getSwConcurrentResource_ShareDataResources() + * @model ordered="false" + * @generated + */ + EList getShareDataResources(); + + /** + * Returns the value of the 'Message Resources' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.TypedElement}. + * + *

+ * If the meaning of the 'Message Resources' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Message Resources' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#getSwConcurrentResource_MessageResources() + * @model ordered="false" + * @generated + */ + EList getMessageResources(); + + /** + * Returns the value of the 'Mutual Exclusion Resources' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.TypedElement}. + * + *

+ * If the meaning of the 'Mutual Exclusion Resources' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Mutual Exclusion Resources' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#getSwConcurrentResource_MutualExclusionResources() + * @model ordered="false" + * @generated + */ + EList getMutualExclusionResources(); + + /** + * Returns the value of the 'Notification Resources' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.TypedElement}. + * + *

+ * If the meaning of the 'Notification Resources' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Notification Resources' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#getSwConcurrentResource_NotificationResources() + * @model ordered="false" + * @generated + */ + EList getNotificationResources(); + + /** + * Returns the value of the 'Heap Size Elements' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.TypedElement}. + * + *

+ * If the meaning of the 'Heap Size Elements' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Heap Size Elements' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#getSwConcurrentResource_HeapSizeElements() + * @model ordered="false" + * @generated + */ + EList getHeapSizeElements(); + +} // SwConcurrentResource diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/SwSchedulableResource.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/SwSchedulableResource.java new file mode 100644 index 00000000000..a478b8b6e8c --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/SwSchedulableResource.java @@ -0,0 +1,223 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Concurrency; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SchedulableResource; + +import org.eclipse.uml2.uml.BehavioralFeature; +import org.eclipse.uml2.uml.NamedElement; +import org.eclipse.uml2.uml.TypedElement; + +/** + * + * A representation of the model object 'Sw Schedulable Resource'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwSchedulableResource#isIsStaticSchedulingFeature Is Static Scheduling Feature}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwSchedulableResource#isIsPreemptable Is Preemptable}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwSchedulableResource#getSchedulers Schedulers}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwSchedulableResource#getDeadlineElements Deadline Elements}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwSchedulableResource#getDeadlineTypeElements Deadline Type Elements}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwSchedulableResource#getTimeSliceElements Time Slice Elements}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwSchedulableResource#getDelayServices Delay Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwSchedulableResource#getJoinServices Join Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwSchedulableResource#getYieldServices Yield Services}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#getSwSchedulableResource() + * @model + * @generated + */ +public interface SwSchedulableResource extends SwConcurrentResource, SchedulableResource { + /** + * Returns the value of the 'Is Static Scheduling Feature' attribute. + * + *

+ * If the meaning of the 'Is Static Scheduling Feature' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Is Static Scheduling Feature' attribute. + * @see #setIsStaticSchedulingFeature(boolean) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#getSwSchedulableResource_IsStaticSchedulingFeature() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.Boolean" ordered="false" + * @generated + */ + boolean isIsStaticSchedulingFeature(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwSchedulableResource#isIsStaticSchedulingFeature Is Static Scheduling Feature}' attribute. + * + * + * @param value the new value of the 'Is Static Scheduling Feature' attribute. + * @see #isIsStaticSchedulingFeature() + * @generated + */ + void setIsStaticSchedulingFeature(boolean value); + + /** + * Returns the value of the 'Is Preemptable' attribute. + * + *

+ * If the meaning of the 'Is Preemptable' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Is Preemptable' attribute. + * @see #setIsPreemptable(boolean) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#getSwSchedulableResource_IsPreemptable() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.Boolean" ordered="false" + * @generated + */ + boolean isIsPreemptable(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwSchedulableResource#isIsPreemptable Is Preemptable}' attribute. + * + * + * @param value the new value of the 'Is Preemptable' attribute. + * @see #isIsPreemptable() + * @generated + */ + void setIsPreemptable(boolean value); + + /** + * Returns the value of the 'Schedulers' reference. + * + *

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

+ * + * @return the value of the 'Schedulers' reference. + * @see #setSchedulers(NamedElement) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#getSwSchedulableResource_Schedulers() + * @model required="true" ordered="false" + * @generated + */ + NamedElement getSchedulers(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwSchedulableResource#getSchedulers Schedulers}' reference. + * + * + * @param value the new value of the 'Schedulers' reference. + * @see #getSchedulers() + * @generated + */ + void setSchedulers(NamedElement value); + + /** + * Returns the value of the 'Deadline Elements' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.TypedElement}. + * + *

+ * If the meaning of the 'Deadline Elements' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Deadline Elements' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#getSwSchedulableResource_DeadlineElements() + * @model ordered="false" + * @generated + */ + EList getDeadlineElements(); + + /** + * Returns the value of the 'Deadline Type Elements' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.TypedElement}. + * + *

+ * If the meaning of the 'Deadline Type Elements' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Deadline Type Elements' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#getSwSchedulableResource_DeadlineTypeElements() + * @model ordered="false" + * @generated + */ + EList getDeadlineTypeElements(); + + /** + * Returns the value of the 'Time Slice Elements' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.TypedElement}. + * + *

+ * If the meaning of the 'Time Slice Elements' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Time Slice Elements' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#getSwSchedulableResource_TimeSliceElements() + * @model ordered="false" + * @generated + */ + EList getTimeSliceElements(); + + /** + * Returns the value of the 'Delay Services' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.BehavioralFeature}. + * + *

+ * If the meaning of the 'Delay Services' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Delay Services' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#getSwSchedulableResource_DelayServices() + * @model ordered="false" + * @generated + */ + EList getDelayServices(); + + /** + * Returns the value of the 'Join Services' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.BehavioralFeature}. + * + *

+ * If the meaning of the 'Join Services' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Join Services' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#getSwSchedulableResource_JoinServices() + * @model ordered="false" + * @generated + */ + EList getJoinServices(); + + /** + * Returns the value of the 'Yield Services' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.BehavioralFeature}. + * + *

+ * If the meaning of the 'Yield Services' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Yield Services' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#getSwSchedulableResource_YieldServices() + * @model ordered="false" + * @generated + */ + EList getYieldServices(); + +} // SwSchedulableResource diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/SwTimerResource.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/SwTimerResource.java new file mode 100644 index 00000000000..3e03d19d88c --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/SwTimerResource.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.MARTE_DesignModel.SRM.SW_Concurrency; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.TimerResource; + +import org.eclipse.uml2.uml.TypedElement; + +/** + * + * A representation of the model object 'Sw Timer Resource'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwTimerResource#getDurationElements Duration Elements}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#getSwTimerResource() + * @model + * @generated + */ +public interface SwTimerResource extends TimerResource { + /** + * Returns the value of the 'Duration Elements' reference. + * + *

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

+ * + * @return the value of the 'Duration Elements' reference. + * @see #setDurationElements(TypedElement) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#getSwTimerResource_DurationElements() + * @model ordered="false" + * @generated + */ + TypedElement getDurationElements(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwTimerResource#getDurationElements Duration Elements}' reference. + * + * + * @param value the new value of the 'Duration Elements' reference. + * @see #getDurationElements() + * @generated + */ + void setDurationElements(TypedElement value); + +} // SwTimerResource diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/impl/AlarmImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/impl/AlarmImpl.java new file mode 100644 index 00000000000..760a26049fd --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/impl/AlarmImpl.java @@ -0,0 +1,216 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Concurrency.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EObjectResolvingEList; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.Alarm; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage; + +import org.eclipse.uml2.uml.TypedElement; + +/** + * + * An implementation of the model object 'Alarm'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.AlarmImpl#isIsWatchdog Is Watchdog}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.AlarmImpl#getTimers Timers}
  • + *
+ *

+ * + * @generated + */ +public class AlarmImpl extends InterruptResourceImpl implements Alarm { + /** + * The default value of the '{@link #isIsWatchdog() Is Watchdog}' attribute. + * + * + * @see #isIsWatchdog() + * @generated + * @ordered + */ + protected static final boolean IS_WATCHDOG_EDEFAULT = false; + + /** + * The cached value of the '{@link #isIsWatchdog() Is Watchdog}' attribute. + * + * + * @see #isIsWatchdog() + * @generated + * @ordered + */ + protected boolean isWatchdog = IS_WATCHDOG_EDEFAULT; + + /** + * The cached value of the '{@link #getTimers() Timers}' reference list. + * + * + * @see #getTimers() + * @generated + * @ordered + */ + protected EList timers; + + /** + * + * + * @generated + */ + protected AlarmImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SW_ConcurrencyPackage.Literals.ALARM; + } + + /** + * + * + * @generated + */ + public boolean isIsWatchdog() { + return isWatchdog; + } + + /** + * + * + * @generated + */ + public void setIsWatchdog(boolean newIsWatchdog) { + boolean oldIsWatchdog = isWatchdog; + isWatchdog = newIsWatchdog; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SW_ConcurrencyPackage.ALARM__IS_WATCHDOG, oldIsWatchdog, isWatchdog)); + } + + /** + * + * + * @generated + */ + public EList getTimers() { + if (timers == null) { + timers = new EObjectResolvingEList(TypedElement.class, this, SW_ConcurrencyPackage.ALARM__TIMERS); + } + return timers; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SW_ConcurrencyPackage.ALARM__IS_WATCHDOG: + return isIsWatchdog(); + case SW_ConcurrencyPackage.ALARM__TIMERS: + return getTimers(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SW_ConcurrencyPackage.ALARM__IS_WATCHDOG: + setIsWatchdog((Boolean)newValue); + return; + case SW_ConcurrencyPackage.ALARM__TIMERS: + getTimers().clear(); + getTimers().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SW_ConcurrencyPackage.ALARM__IS_WATCHDOG: + setIsWatchdog(IS_WATCHDOG_EDEFAULT); + return; + case SW_ConcurrencyPackage.ALARM__TIMERS: + getTimers().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SW_ConcurrencyPackage.ALARM__IS_WATCHDOG: + return isWatchdog != IS_WATCHDOG_EDEFAULT; + case SW_ConcurrencyPackage.ALARM__TIMERS: + return timers != null && !timers.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (isWatchdog: "); + result.append(isWatchdog); + result.append(')'); + return result.toString(); + } + +} //AlarmImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/impl/EntryPointImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/impl/EntryPointImpl.java new file mode 100644 index 00000000000..6ef402e3c61 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/impl/EntryPointImpl.java @@ -0,0 +1,238 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Concurrency.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.EntryPoint; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AllocateImpl; + +import org.eclipse.uml2.uml.BehavioralFeature; + +/** + * + * An implementation of the model object 'Entry Point'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.EntryPointImpl#isIsReentrant Is Reentrant}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.EntryPointImpl#getRoutine Routine}
  • + *
+ *

+ * + * @generated + */ +public class EntryPointImpl extends AllocateImpl implements EntryPoint { + /** + * The default value of the '{@link #isIsReentrant() Is Reentrant}' attribute. + * + * + * @see #isIsReentrant() + * @generated + * @ordered + */ + protected static final boolean IS_REENTRANT_EDEFAULT = false; + + /** + * The cached value of the '{@link #isIsReentrant() Is Reentrant}' attribute. + * + * + * @see #isIsReentrant() + * @generated + * @ordered + */ + protected boolean isReentrant = IS_REENTRANT_EDEFAULT; + + /** + * The cached value of the '{@link #getRoutine() Routine}' reference. + * + * + * @see #getRoutine() + * @generated + * @ordered + */ + protected BehavioralFeature routine; + + /** + * + * + * @generated + */ + protected EntryPointImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SW_ConcurrencyPackage.Literals.ENTRY_POINT; + } + + /** + * + * + * @generated + */ + public boolean isIsReentrant() { + return isReentrant; + } + + /** + * + * + * @generated + */ + public void setIsReentrant(boolean newIsReentrant) { + boolean oldIsReentrant = isReentrant; + isReentrant = newIsReentrant; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SW_ConcurrencyPackage.ENTRY_POINT__IS_REENTRANT, oldIsReentrant, isReentrant)); + } + + /** + * + * + * @generated + */ + public BehavioralFeature getRoutine() { + if (routine != null && routine.eIsProxy()) { + InternalEObject oldRoutine = (InternalEObject)routine; + routine = (BehavioralFeature)eResolveProxy(oldRoutine); + if (routine != oldRoutine) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, SW_ConcurrencyPackage.ENTRY_POINT__ROUTINE, oldRoutine, routine)); + } + } + return routine; + } + + /** + * + * + * @generated + */ + public BehavioralFeature basicGetRoutine() { + return routine; + } + + /** + * + * + * @generated + */ + public void setRoutine(BehavioralFeature newRoutine) { + BehavioralFeature oldRoutine = routine; + routine = newRoutine; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SW_ConcurrencyPackage.ENTRY_POINT__ROUTINE, oldRoutine, routine)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SW_ConcurrencyPackage.ENTRY_POINT__IS_REENTRANT: + return isIsReentrant(); + case SW_ConcurrencyPackage.ENTRY_POINT__ROUTINE: + if (resolve) return getRoutine(); + return basicGetRoutine(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SW_ConcurrencyPackage.ENTRY_POINT__IS_REENTRANT: + setIsReentrant((Boolean)newValue); + return; + case SW_ConcurrencyPackage.ENTRY_POINT__ROUTINE: + setRoutine((BehavioralFeature)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SW_ConcurrencyPackage.ENTRY_POINT__IS_REENTRANT: + setIsReentrant(IS_REENTRANT_EDEFAULT); + return; + case SW_ConcurrencyPackage.ENTRY_POINT__ROUTINE: + setRoutine((BehavioralFeature)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SW_ConcurrencyPackage.ENTRY_POINT__IS_REENTRANT: + return isReentrant != IS_REENTRANT_EDEFAULT; + case SW_ConcurrencyPackage.ENTRY_POINT__ROUTINE: + return routine != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (isReentrant: "); + result.append(isReentrant); + result.append(')'); + return result.toString(); + } + +} //EntryPointImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/impl/InterruptResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/impl/InterruptResourceImpl.java new file mode 100644 index 00000000000..a5e443c59a8 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/impl/InterruptResourceImpl.java @@ -0,0 +1,374 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Concurrency.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EObjectResolvingEList; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.InterruptKind; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.InterruptResource; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage; + +import org.eclipse.uml2.uml.BehavioralFeature; +import org.eclipse.uml2.uml.TypedElement; + +/** + * + * An implementation of the model object 'Interrupt Resource'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.InterruptResourceImpl#getKind Kind}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.InterruptResourceImpl#isIsMaskable Is Maskable}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.InterruptResourceImpl#getVectorElements Vector Elements}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.InterruptResourceImpl#getMaskElements Mask Elements}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.InterruptResourceImpl#getRoutineConnectServices Routine Connect Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.InterruptResourceImpl#getRoutineDisconnectServices Routine Disconnect Services}
  • + *
+ *

+ * + * @generated + */ +public class InterruptResourceImpl extends SwConcurrentResourceImpl implements InterruptResource { + /** + * The default value of the '{@link #getKind() Kind}' attribute. + * + * + * @see #getKind() + * @generated + * @ordered + */ + protected static final InterruptKind KIND_EDEFAULT = InterruptKind.HARDWARE_INTERRUPTION; + + /** + * The cached value of the '{@link #getKind() Kind}' attribute. + * + * + * @see #getKind() + * @generated + * @ordered + */ + protected InterruptKind kind = KIND_EDEFAULT; + + /** + * The default value of the '{@link #isIsMaskable() Is Maskable}' attribute. + * + * + * @see #isIsMaskable() + * @generated + * @ordered + */ + protected static final boolean IS_MASKABLE_EDEFAULT = false; + + /** + * The cached value of the '{@link #isIsMaskable() Is Maskable}' attribute. + * + * + * @see #isIsMaskable() + * @generated + * @ordered + */ + protected boolean isMaskable = IS_MASKABLE_EDEFAULT; + + /** + * The cached value of the '{@link #getVectorElements() Vector Elements}' reference list. + * + * + * @see #getVectorElements() + * @generated + * @ordered + */ + protected EList vectorElements; + + /** + * The cached value of the '{@link #getMaskElements() Mask Elements}' reference list. + * + * + * @see #getMaskElements() + * @generated + * @ordered + */ + protected EList maskElements; + + /** + * The cached value of the '{@link #getRoutineConnectServices() Routine Connect Services}' reference list. + * + * + * @see #getRoutineConnectServices() + * @generated + * @ordered + */ + protected EList routineConnectServices; + + /** + * The cached value of the '{@link #getRoutineDisconnectServices() Routine Disconnect Services}' reference list. + * + * + * @see #getRoutineDisconnectServices() + * @generated + * @ordered + */ + protected EList routineDisconnectServices; + + /** + * + * + * @generated + */ + protected InterruptResourceImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SW_ConcurrencyPackage.Literals.INTERRUPT_RESOURCE; + } + + /** + * + * + * @generated + */ + public InterruptKind getKind() { + return kind; + } + + /** + * + * + * @generated + */ + public void setKind(InterruptKind newKind) { + InterruptKind oldKind = kind; + kind = newKind == null ? KIND_EDEFAULT : newKind; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SW_ConcurrencyPackage.INTERRUPT_RESOURCE__KIND, oldKind, kind)); + } + + /** + * + * + * @generated + */ + public boolean isIsMaskable() { + return isMaskable; + } + + /** + * + * + * @generated + */ + public void setIsMaskable(boolean newIsMaskable) { + boolean oldIsMaskable = isMaskable; + isMaskable = newIsMaskable; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SW_ConcurrencyPackage.INTERRUPT_RESOURCE__IS_MASKABLE, oldIsMaskable, isMaskable)); + } + + /** + * + * + * @generated + */ + public EList getVectorElements() { + if (vectorElements == null) { + vectorElements = new EObjectResolvingEList(TypedElement.class, this, SW_ConcurrencyPackage.INTERRUPT_RESOURCE__VECTOR_ELEMENTS); + } + return vectorElements; + } + + /** + * + * + * @generated + */ + public EList getMaskElements() { + if (maskElements == null) { + maskElements = new EObjectResolvingEList(TypedElement.class, this, SW_ConcurrencyPackage.INTERRUPT_RESOURCE__MASK_ELEMENTS); + } + return maskElements; + } + + /** + * + * + * @generated + */ + public EList getRoutineConnectServices() { + if (routineConnectServices == null) { + routineConnectServices = new EObjectResolvingEList(BehavioralFeature.class, this, SW_ConcurrencyPackage.INTERRUPT_RESOURCE__ROUTINE_CONNECT_SERVICES); + } + return routineConnectServices; + } + + /** + * + * + * @generated + */ + public EList getRoutineDisconnectServices() { + if (routineDisconnectServices == null) { + routineDisconnectServices = new EObjectResolvingEList(BehavioralFeature.class, this, SW_ConcurrencyPackage.INTERRUPT_RESOURCE__ROUTINE_DISCONNECT_SERVICES); + } + return routineDisconnectServices; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SW_ConcurrencyPackage.INTERRUPT_RESOURCE__KIND: + return getKind(); + case SW_ConcurrencyPackage.INTERRUPT_RESOURCE__IS_MASKABLE: + return isIsMaskable(); + case SW_ConcurrencyPackage.INTERRUPT_RESOURCE__VECTOR_ELEMENTS: + return getVectorElements(); + case SW_ConcurrencyPackage.INTERRUPT_RESOURCE__MASK_ELEMENTS: + return getMaskElements(); + case SW_ConcurrencyPackage.INTERRUPT_RESOURCE__ROUTINE_CONNECT_SERVICES: + return getRoutineConnectServices(); + case SW_ConcurrencyPackage.INTERRUPT_RESOURCE__ROUTINE_DISCONNECT_SERVICES: + return getRoutineDisconnectServices(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SW_ConcurrencyPackage.INTERRUPT_RESOURCE__KIND: + setKind((InterruptKind)newValue); + return; + case SW_ConcurrencyPackage.INTERRUPT_RESOURCE__IS_MASKABLE: + setIsMaskable((Boolean)newValue); + return; + case SW_ConcurrencyPackage.INTERRUPT_RESOURCE__VECTOR_ELEMENTS: + getVectorElements().clear(); + getVectorElements().addAll((Collection)newValue); + return; + case SW_ConcurrencyPackage.INTERRUPT_RESOURCE__MASK_ELEMENTS: + getMaskElements().clear(); + getMaskElements().addAll((Collection)newValue); + return; + case SW_ConcurrencyPackage.INTERRUPT_RESOURCE__ROUTINE_CONNECT_SERVICES: + getRoutineConnectServices().clear(); + getRoutineConnectServices().addAll((Collection)newValue); + return; + case SW_ConcurrencyPackage.INTERRUPT_RESOURCE__ROUTINE_DISCONNECT_SERVICES: + getRoutineDisconnectServices().clear(); + getRoutineDisconnectServices().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SW_ConcurrencyPackage.INTERRUPT_RESOURCE__KIND: + setKind(KIND_EDEFAULT); + return; + case SW_ConcurrencyPackage.INTERRUPT_RESOURCE__IS_MASKABLE: + setIsMaskable(IS_MASKABLE_EDEFAULT); + return; + case SW_ConcurrencyPackage.INTERRUPT_RESOURCE__VECTOR_ELEMENTS: + getVectorElements().clear(); + return; + case SW_ConcurrencyPackage.INTERRUPT_RESOURCE__MASK_ELEMENTS: + getMaskElements().clear(); + return; + case SW_ConcurrencyPackage.INTERRUPT_RESOURCE__ROUTINE_CONNECT_SERVICES: + getRoutineConnectServices().clear(); + return; + case SW_ConcurrencyPackage.INTERRUPT_RESOURCE__ROUTINE_DISCONNECT_SERVICES: + getRoutineDisconnectServices().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SW_ConcurrencyPackage.INTERRUPT_RESOURCE__KIND: + return kind != KIND_EDEFAULT; + case SW_ConcurrencyPackage.INTERRUPT_RESOURCE__IS_MASKABLE: + return isMaskable != IS_MASKABLE_EDEFAULT; + case SW_ConcurrencyPackage.INTERRUPT_RESOURCE__VECTOR_ELEMENTS: + return vectorElements != null && !vectorElements.isEmpty(); + case SW_ConcurrencyPackage.INTERRUPT_RESOURCE__MASK_ELEMENTS: + return maskElements != null && !maskElements.isEmpty(); + case SW_ConcurrencyPackage.INTERRUPT_RESOURCE__ROUTINE_CONNECT_SERVICES: + return routineConnectServices != null && !routineConnectServices.isEmpty(); + case SW_ConcurrencyPackage.INTERRUPT_RESOURCE__ROUTINE_DISCONNECT_SERVICES: + return routineDisconnectServices != null && !routineDisconnectServices.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (kind: "); + result.append(kind); + result.append(", isMaskable: "); + result.append(isMaskable); + result.append(')'); + return result.toString(); + } + +} //InterruptResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/impl/MemoryPartitionImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/impl/MemoryPartitionImpl.java new file mode 100644 index 00000000000..aa7f968c3bd --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/impl/MemoryPartitionImpl.java @@ -0,0 +1,315 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Concurrency.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EObjectResolvingEList; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.MemoryPartition; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.impl.SwResourceImpl; + +import org.eclipse.uml2.uml.BehavioralFeature; +import org.eclipse.uml2.uml.Namespace; +import org.eclipse.uml2.uml.TypedElement; + +/** + * + * An implementation of the model object 'Memory Partition'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.MemoryPartitionImpl#getConcurrentResources Concurrent Resources}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.MemoryPartitionImpl#getMemorySpaces Memory Spaces}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.MemoryPartitionImpl#getFork Fork}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.MemoryPartitionImpl#getExit Exit}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.MemoryPartitionImpl#getBase_Namespace Base Namespace}
  • + *
+ *

+ * + * @generated + */ +public class MemoryPartitionImpl extends SwResourceImpl implements MemoryPartition { + /** + * The cached value of the '{@link #getConcurrentResources() Concurrent Resources}' reference list. + * + * + * @see #getConcurrentResources() + * @generated + * @ordered + */ + protected EList concurrentResources; + + /** + * The cached value of the '{@link #getMemorySpaces() Memory Spaces}' reference list. + * + * + * @see #getMemorySpaces() + * @generated + * @ordered + */ + protected EList memorySpaces; + + /** + * The cached value of the '{@link #getFork() Fork}' reference list. + * + * + * @see #getFork() + * @generated + * @ordered + */ + protected EList fork; + + /** + * The cached value of the '{@link #getExit() Exit}' reference list. + * + * + * @see #getExit() + * @generated + * @ordered + */ + protected EList exit; + + /** + * The cached value of the '{@link #getBase_Namespace() Base Namespace}' reference. + * + * + * @see #getBase_Namespace() + * @generated + * @ordered + */ + protected Namespace base_Namespace; + + /** + * + * + * @generated + */ + protected MemoryPartitionImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SW_ConcurrencyPackage.Literals.MEMORY_PARTITION; + } + + /** + * + * + * @generated + */ + public EList getConcurrentResources() { + if (concurrentResources == null) { + concurrentResources = new EObjectResolvingEList(TypedElement.class, this, SW_ConcurrencyPackage.MEMORY_PARTITION__CONCURRENT_RESOURCES); + } + return concurrentResources; + } + + /** + * + * + * @generated + */ + public EList getMemorySpaces() { + if (memorySpaces == null) { + memorySpaces = new EObjectResolvingEList(TypedElement.class, this, SW_ConcurrencyPackage.MEMORY_PARTITION__MEMORY_SPACES); + } + return memorySpaces; + } + + /** + * + * + * @generated + */ + public EList getFork() { + if (fork == null) { + fork = new EObjectResolvingEList(BehavioralFeature.class, this, SW_ConcurrencyPackage.MEMORY_PARTITION__FORK); + } + return fork; + } + + /** + * + * + * @generated + */ + public EList getExit() { + if (exit == null) { + exit = new EObjectResolvingEList(BehavioralFeature.class, this, SW_ConcurrencyPackage.MEMORY_PARTITION__EXIT); + } + return exit; + } + + /** + * + * + * @generated + */ + public Namespace getBase_Namespace() { + if (base_Namespace != null && base_Namespace.eIsProxy()) { + InternalEObject oldBase_Namespace = (InternalEObject)base_Namespace; + base_Namespace = (Namespace)eResolveProxy(oldBase_Namespace); + if (base_Namespace != oldBase_Namespace) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, SW_ConcurrencyPackage.MEMORY_PARTITION__BASE_NAMESPACE, oldBase_Namespace, base_Namespace)); + } + } + return base_Namespace; + } + + /** + * + * + * @generated + */ + public Namespace basicGetBase_Namespace() { + return base_Namespace; + } + + /** + * + * + * @generated + */ + public void setBase_Namespace(Namespace newBase_Namespace) { + Namespace oldBase_Namespace = base_Namespace; + base_Namespace = newBase_Namespace; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SW_ConcurrencyPackage.MEMORY_PARTITION__BASE_NAMESPACE, oldBase_Namespace, base_Namespace)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SW_ConcurrencyPackage.MEMORY_PARTITION__CONCURRENT_RESOURCES: + return getConcurrentResources(); + case SW_ConcurrencyPackage.MEMORY_PARTITION__MEMORY_SPACES: + return getMemorySpaces(); + case SW_ConcurrencyPackage.MEMORY_PARTITION__FORK: + return getFork(); + case SW_ConcurrencyPackage.MEMORY_PARTITION__EXIT: + return getExit(); + case SW_ConcurrencyPackage.MEMORY_PARTITION__BASE_NAMESPACE: + if (resolve) return getBase_Namespace(); + return basicGetBase_Namespace(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SW_ConcurrencyPackage.MEMORY_PARTITION__CONCURRENT_RESOURCES: + getConcurrentResources().clear(); + getConcurrentResources().addAll((Collection)newValue); + return; + case SW_ConcurrencyPackage.MEMORY_PARTITION__MEMORY_SPACES: + getMemorySpaces().clear(); + getMemorySpaces().addAll((Collection)newValue); + return; + case SW_ConcurrencyPackage.MEMORY_PARTITION__FORK: + getFork().clear(); + getFork().addAll((Collection)newValue); + return; + case SW_ConcurrencyPackage.MEMORY_PARTITION__EXIT: + getExit().clear(); + getExit().addAll((Collection)newValue); + return; + case SW_ConcurrencyPackage.MEMORY_PARTITION__BASE_NAMESPACE: + setBase_Namespace((Namespace)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SW_ConcurrencyPackage.MEMORY_PARTITION__CONCURRENT_RESOURCES: + getConcurrentResources().clear(); + return; + case SW_ConcurrencyPackage.MEMORY_PARTITION__MEMORY_SPACES: + getMemorySpaces().clear(); + return; + case SW_ConcurrencyPackage.MEMORY_PARTITION__FORK: + getFork().clear(); + return; + case SW_ConcurrencyPackage.MEMORY_PARTITION__EXIT: + getExit().clear(); + return; + case SW_ConcurrencyPackage.MEMORY_PARTITION__BASE_NAMESPACE: + setBase_Namespace((Namespace)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SW_ConcurrencyPackage.MEMORY_PARTITION__CONCURRENT_RESOURCES: + return concurrentResources != null && !concurrentResources.isEmpty(); + case SW_ConcurrencyPackage.MEMORY_PARTITION__MEMORY_SPACES: + return memorySpaces != null && !memorySpaces.isEmpty(); + case SW_ConcurrencyPackage.MEMORY_PARTITION__FORK: + return fork != null && !fork.isEmpty(); + case SW_ConcurrencyPackage.MEMORY_PARTITION__EXIT: + return exit != null && !exit.isEmpty(); + case SW_ConcurrencyPackage.MEMORY_PARTITION__BASE_NAMESPACE: + return base_Namespace != null; + } + return super.eIsSet(featureID); + } + +} //MemoryPartitionImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/impl/SW_ConcurrencyFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/impl/SW_ConcurrencyFactoryImpl.java new file mode 100644 index 00000000000..dcfab1e6bc9 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/impl/SW_ConcurrencyFactoryImpl.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.MARTE_DesignModel.SRM.SW_Concurrency.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.MARTE_DesignModel.SRM.SW_Concurrency.*; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class SW_ConcurrencyFactoryImpl extends EFactoryImpl implements SW_ConcurrencyFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static SW_ConcurrencyFactory init() { + try { + SW_ConcurrencyFactory theSW_ConcurrencyFactory = (SW_ConcurrencyFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/SW_Concurrency/1"); + if (theSW_ConcurrencyFactory != null) { + return theSW_ConcurrencyFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new SW_ConcurrencyFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public SW_ConcurrencyFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case SW_ConcurrencyPackage.ENTRY_POINT: return createEntryPoint(); + case SW_ConcurrencyPackage.INTERRUPT_RESOURCE: return createInterruptResource(); + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE: return createSwSchedulableResource(); + case SW_ConcurrencyPackage.SW_TIMER_RESOURCE: return createSwTimerResource(); + case SW_ConcurrencyPackage.MEMORY_PARTITION: return createMemoryPartition(); + case SW_ConcurrencyPackage.ALARM: return createAlarm(); + 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 SW_ConcurrencyPackage.INTERRUPT_KIND: + return createInterruptKindFromString(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 SW_ConcurrencyPackage.INTERRUPT_KIND: + return convertInterruptKindToString(eDataType, instanceValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public EntryPoint createEntryPoint() { + EntryPointImpl entryPoint = new EntryPointImpl(); + return entryPoint; + } + + /** + * + * + * @generated + */ + public InterruptResource createInterruptResource() { + InterruptResourceImpl interruptResource = new InterruptResourceImpl(); + return interruptResource; + } + + /** + * + * + * @generated + */ + public SwSchedulableResource createSwSchedulableResource() { + SwSchedulableResourceImpl swSchedulableResource = new SwSchedulableResourceImpl(); + return swSchedulableResource; + } + + /** + * + * + * @generated + */ + public SwTimerResource createSwTimerResource() { + SwTimerResourceImpl swTimerResource = new SwTimerResourceImpl(); + return swTimerResource; + } + + /** + * + * + * @generated + */ + public MemoryPartition createMemoryPartition() { + MemoryPartitionImpl memoryPartition = new MemoryPartitionImpl(); + return memoryPartition; + } + + /** + * + * + * @generated + */ + public Alarm createAlarm() { + AlarmImpl alarm = new AlarmImpl(); + return alarm; + } + + /** + * + * + * @generated + */ + public InterruptKind createInterruptKindFromString(EDataType eDataType, String initialValue) { + InterruptKind result = InterruptKind.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertInterruptKindToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public SW_ConcurrencyPackage getSW_ConcurrencyPackage() { + return (SW_ConcurrencyPackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static SW_ConcurrencyPackage getPackage() { + return SW_ConcurrencyPackage.eINSTANCE; + } + +} //SW_ConcurrencyFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/impl/SW_ConcurrencyPackageImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/impl/SW_ConcurrencyPackageImpl.java new file mode 100644 index 00000000000..8ceaaeaa2d5 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/impl/SW_ConcurrencyPackageImpl.java @@ -0,0 +1,1093 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Concurrency.impl; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +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.Alarm; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.EntryPoint; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.InterruptKind; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.InterruptResource; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.MemoryPartition; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyFactory; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwSchedulableResource; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwTimerResource; + +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.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 SW_ConcurrencyPackageImpl extends EPackageImpl implements SW_ConcurrencyPackage { + /** + * + * + * @generated + */ + private EClass entryPointEClass = null; + + /** + * + * + * @generated + */ + private EClass swConcurrentResourceEClass = null; + + /** + * + * + * @generated + */ + private EClass interruptResourceEClass = null; + + /** + * + * + * @generated + */ + private EClass swSchedulableResourceEClass = null; + + /** + * + * + * @generated + */ + private EClass swTimerResourceEClass = null; + + /** + * + * + * @generated + */ + private EClass memoryPartitionEClass = null; + + /** + * + * + * @generated + */ + private EClass alarmEClass = null; + + /** + * + * + * @generated + */ + private EEnum interruptKindEEnum = 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.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage#eNS_URI + * @see #init() + * @generated + */ + private SW_ConcurrencyPackageImpl() { + super(eNS_URI, SW_ConcurrencyFactory.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 SW_ConcurrencyPackage#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 SW_ConcurrencyPackage init() { + if (isInited) return (SW_ConcurrencyPackage)EPackage.Registry.INSTANCE.getEPackage(SW_ConcurrencyPackage.eNS_URI); + + // Obtain or create and register package + SW_ConcurrencyPackageImpl theSW_ConcurrencyPackage = (SW_ConcurrencyPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof SW_ConcurrencyPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new SW_ConcurrencyPackageImpl()); + + 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_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); + 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 + theSW_ConcurrencyPackage.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_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(); + theMARTE_PrimitivesTypesPackage.createPackageContents(); + + // Initialize created meta-data + theSW_ConcurrencyPackage.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_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(); + theMARTE_PrimitivesTypesPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theSW_ConcurrencyPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(SW_ConcurrencyPackage.eNS_URI, theSW_ConcurrencyPackage); + return theSW_ConcurrencyPackage; + } + + /** + * + * + * @generated + */ + public EClass getEntryPoint() { + return entryPointEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getEntryPoint_IsReentrant() { + return (EAttribute)entryPointEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getEntryPoint_Routine() { + return (EReference)entryPointEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getSwConcurrentResource() { + return swConcurrentResourceEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSwConcurrentResource_Type() { + return (EAttribute)swConcurrentResourceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getSwConcurrentResource_ActivationCapacity() { + return (EAttribute)swConcurrentResourceEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getSwConcurrentResource_EntryPoints() { + return (EReference)swConcurrentResourceEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getSwConcurrentResource_AdressSpace() { + return (EReference)swConcurrentResourceEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EReference getSwConcurrentResource_PeriodElements() { + return (EReference)swConcurrentResourceEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EReference getSwConcurrentResource_PriorityElements() { + return (EReference)swConcurrentResourceEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EReference getSwConcurrentResource_StackSizeElements() { + return (EReference)swConcurrentResourceEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EReference getSwConcurrentResource_ActivateServices() { + return (EReference)swConcurrentResourceEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EReference getSwConcurrentResource_EnableConcurrencyServices() { + return (EReference)swConcurrentResourceEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + public EReference getSwConcurrentResource_ResumeServices() { + return (EReference)swConcurrentResourceEClass.getEStructuralFeatures().get(9); + } + + /** + * + * + * @generated + */ + public EReference getSwConcurrentResource_SuspendServices() { + return (EReference)swConcurrentResourceEClass.getEStructuralFeatures().get(10); + } + + /** + * + * + * @generated + */ + public EReference getSwConcurrentResource_TerminateServices() { + return (EReference)swConcurrentResourceEClass.getEStructuralFeatures().get(11); + } + + /** + * + * + * @generated + */ + public EReference getSwConcurrentResource_DisableConcurrencyServices() { + return (EReference)swConcurrentResourceEClass.getEStructuralFeatures().get(12); + } + + /** + * + * + * @generated + */ + public EReference getSwConcurrentResource_ShareDataResources() { + return (EReference)swConcurrentResourceEClass.getEStructuralFeatures().get(13); + } + + /** + * + * + * @generated + */ + public EReference getSwConcurrentResource_MessageResources() { + return (EReference)swConcurrentResourceEClass.getEStructuralFeatures().get(14); + } + + /** + * + * + * @generated + */ + public EReference getSwConcurrentResource_MutualExclusionResources() { + return (EReference)swConcurrentResourceEClass.getEStructuralFeatures().get(15); + } + + /** + * + * + * @generated + */ + public EReference getSwConcurrentResource_NotificationResources() { + return (EReference)swConcurrentResourceEClass.getEStructuralFeatures().get(16); + } + + /** + * + * + * @generated + */ + public EReference getSwConcurrentResource_HeapSizeElements() { + return (EReference)swConcurrentResourceEClass.getEStructuralFeatures().get(17); + } + + /** + * + * + * @generated + */ + public EClass getInterruptResource() { + return interruptResourceEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getInterruptResource_Kind() { + return (EAttribute)interruptResourceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getInterruptResource_IsMaskable() { + return (EAttribute)interruptResourceEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getInterruptResource_VectorElements() { + return (EReference)interruptResourceEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getInterruptResource_MaskElements() { + return (EReference)interruptResourceEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EReference getInterruptResource_RoutineConnectServices() { + return (EReference)interruptResourceEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EReference getInterruptResource_RoutineDisconnectServices() { + return (EReference)interruptResourceEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EClass getSwSchedulableResource() { + return swSchedulableResourceEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSwSchedulableResource_IsStaticSchedulingFeature() { + return (EAttribute)swSchedulableResourceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getSwSchedulableResource_IsPreemptable() { + return (EAttribute)swSchedulableResourceEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getSwSchedulableResource_Schedulers() { + return (EReference)swSchedulableResourceEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getSwSchedulableResource_DeadlineElements() { + return (EReference)swSchedulableResourceEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EReference getSwSchedulableResource_DeadlineTypeElements() { + return (EReference)swSchedulableResourceEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EReference getSwSchedulableResource_TimeSliceElements() { + return (EReference)swSchedulableResourceEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EReference getSwSchedulableResource_DelayServices() { + return (EReference)swSchedulableResourceEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EReference getSwSchedulableResource_JoinServices() { + return (EReference)swSchedulableResourceEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EReference getSwSchedulableResource_YieldServices() { + return (EReference)swSchedulableResourceEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + public EClass getSwTimerResource() { + return swTimerResourceEClass; + } + + /** + * + * + * @generated + */ + public EReference getSwTimerResource_DurationElements() { + return (EReference)swTimerResourceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getMemoryPartition() { + return memoryPartitionEClass; + } + + /** + * + * + * @generated + */ + public EReference getMemoryPartition_ConcurrentResources() { + return (EReference)memoryPartitionEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getMemoryPartition_MemorySpaces() { + return (EReference)memoryPartitionEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getMemoryPartition_Fork() { + return (EReference)memoryPartitionEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getMemoryPartition_Exit() { + return (EReference)memoryPartitionEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EReference getMemoryPartition_Base_Namespace() { + return (EReference)memoryPartitionEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EClass getAlarm() { + return alarmEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getAlarm_IsWatchdog() { + return (EAttribute)alarmEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getAlarm_Timers() { + return (EReference)alarmEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EEnum getInterruptKind() { + return interruptKindEEnum; + } + + /** + * + * + * @generated + */ + public SW_ConcurrencyFactory getSW_ConcurrencyFactory() { + return (SW_ConcurrencyFactory)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 + entryPointEClass = createEClass(ENTRY_POINT); + createEAttribute(entryPointEClass, ENTRY_POINT__IS_REENTRANT); + createEReference(entryPointEClass, ENTRY_POINT__ROUTINE); + + swConcurrentResourceEClass = createEClass(SW_CONCURRENT_RESOURCE); + createEAttribute(swConcurrentResourceEClass, SW_CONCURRENT_RESOURCE__TYPE); + createEAttribute(swConcurrentResourceEClass, SW_CONCURRENT_RESOURCE__ACTIVATION_CAPACITY); + createEReference(swConcurrentResourceEClass, SW_CONCURRENT_RESOURCE__ENTRY_POINTS); + createEReference(swConcurrentResourceEClass, SW_CONCURRENT_RESOURCE__ADRESS_SPACE); + createEReference(swConcurrentResourceEClass, SW_CONCURRENT_RESOURCE__PERIOD_ELEMENTS); + createEReference(swConcurrentResourceEClass, SW_CONCURRENT_RESOURCE__PRIORITY_ELEMENTS); + createEReference(swConcurrentResourceEClass, SW_CONCURRENT_RESOURCE__STACK_SIZE_ELEMENTS); + createEReference(swConcurrentResourceEClass, SW_CONCURRENT_RESOURCE__ACTIVATE_SERVICES); + createEReference(swConcurrentResourceEClass, SW_CONCURRENT_RESOURCE__ENABLE_CONCURRENCY_SERVICES); + createEReference(swConcurrentResourceEClass, SW_CONCURRENT_RESOURCE__RESUME_SERVICES); + createEReference(swConcurrentResourceEClass, SW_CONCURRENT_RESOURCE__SUSPEND_SERVICES); + createEReference(swConcurrentResourceEClass, SW_CONCURRENT_RESOURCE__TERMINATE_SERVICES); + createEReference(swConcurrentResourceEClass, SW_CONCURRENT_RESOURCE__DISABLE_CONCURRENCY_SERVICES); + createEReference(swConcurrentResourceEClass, SW_CONCURRENT_RESOURCE__SHARE_DATA_RESOURCES); + createEReference(swConcurrentResourceEClass, SW_CONCURRENT_RESOURCE__MESSAGE_RESOURCES); + createEReference(swConcurrentResourceEClass, SW_CONCURRENT_RESOURCE__MUTUAL_EXCLUSION_RESOURCES); + createEReference(swConcurrentResourceEClass, SW_CONCURRENT_RESOURCE__NOTIFICATION_RESOURCES); + createEReference(swConcurrentResourceEClass, SW_CONCURRENT_RESOURCE__HEAP_SIZE_ELEMENTS); + + interruptResourceEClass = createEClass(INTERRUPT_RESOURCE); + createEAttribute(interruptResourceEClass, INTERRUPT_RESOURCE__KIND); + createEAttribute(interruptResourceEClass, INTERRUPT_RESOURCE__IS_MASKABLE); + createEReference(interruptResourceEClass, INTERRUPT_RESOURCE__VECTOR_ELEMENTS); + createEReference(interruptResourceEClass, INTERRUPT_RESOURCE__MASK_ELEMENTS); + createEReference(interruptResourceEClass, INTERRUPT_RESOURCE__ROUTINE_CONNECT_SERVICES); + createEReference(interruptResourceEClass, INTERRUPT_RESOURCE__ROUTINE_DISCONNECT_SERVICES); + + swSchedulableResourceEClass = createEClass(SW_SCHEDULABLE_RESOURCE); + createEAttribute(swSchedulableResourceEClass, SW_SCHEDULABLE_RESOURCE__IS_STATIC_SCHEDULING_FEATURE); + createEAttribute(swSchedulableResourceEClass, SW_SCHEDULABLE_RESOURCE__IS_PREEMPTABLE); + createEReference(swSchedulableResourceEClass, SW_SCHEDULABLE_RESOURCE__SCHEDULERS); + createEReference(swSchedulableResourceEClass, SW_SCHEDULABLE_RESOURCE__DEADLINE_ELEMENTS); + createEReference(swSchedulableResourceEClass, SW_SCHEDULABLE_RESOURCE__DEADLINE_TYPE_ELEMENTS); + createEReference(swSchedulableResourceEClass, SW_SCHEDULABLE_RESOURCE__TIME_SLICE_ELEMENTS); + createEReference(swSchedulableResourceEClass, SW_SCHEDULABLE_RESOURCE__DELAY_SERVICES); + createEReference(swSchedulableResourceEClass, SW_SCHEDULABLE_RESOURCE__JOIN_SERVICES); + createEReference(swSchedulableResourceEClass, SW_SCHEDULABLE_RESOURCE__YIELD_SERVICES); + + swTimerResourceEClass = createEClass(SW_TIMER_RESOURCE); + createEReference(swTimerResourceEClass, SW_TIMER_RESOURCE__DURATION_ELEMENTS); + + memoryPartitionEClass = createEClass(MEMORY_PARTITION); + createEReference(memoryPartitionEClass, MEMORY_PARTITION__CONCURRENT_RESOURCES); + createEReference(memoryPartitionEClass, MEMORY_PARTITION__MEMORY_SPACES); + createEReference(memoryPartitionEClass, MEMORY_PARTITION__FORK); + createEReference(memoryPartitionEClass, MEMORY_PARTITION__EXIT); + createEReference(memoryPartitionEClass, MEMORY_PARTITION__BASE_NAMESPACE); + + alarmEClass = createEClass(ALARM); + createEAttribute(alarmEClass, ALARM__IS_WATCHDOG); + createEReference(alarmEClass, ALARM__TIMERS); + + // Create enums + interruptKindEEnum = createEEnum(INTERRUPT_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); + + // Obtain other dependent packages + AllocPackage theAllocPackage = (AllocPackage)EPackage.Registry.INSTANCE.getEPackage(AllocPackage.eNS_URI); + MARTE_PrimitivesTypesPackage theMARTE_PrimitivesTypesPackage = (MARTE_PrimitivesTypesPackage)EPackage.Registry.INSTANCE.getEPackage(MARTE_PrimitivesTypesPackage.eNS_URI); + UMLPackage theUMLPackage = (UMLPackage)EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI); + SW_ResourceCorePackage theSW_ResourceCorePackage = (SW_ResourceCorePackage)EPackage.Registry.INSTANCE.getEPackage(SW_ResourceCorePackage.eNS_URI); + BasicNFP_TypesPackage theBasicNFP_TypesPackage = (BasicNFP_TypesPackage)EPackage.Registry.INSTANCE.getEPackage(BasicNFP_TypesPackage.eNS_URI); + GRMPackage theGRMPackage = (GRMPackage)EPackage.Registry.INSTANCE.getEPackage(GRMPackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + entryPointEClass.getESuperTypes().add(theAllocPackage.getAllocate()); + swConcurrentResourceEClass.getESuperTypes().add(theSW_ResourceCorePackage.getSwResource()); + interruptResourceEClass.getESuperTypes().add(this.getSwConcurrentResource()); + swSchedulableResourceEClass.getESuperTypes().add(this.getSwConcurrentResource()); + swSchedulableResourceEClass.getESuperTypes().add(theGRMPackage.getSchedulableResource()); + swTimerResourceEClass.getESuperTypes().add(theGRMPackage.getTimerResource()); + memoryPartitionEClass.getESuperTypes().add(theSW_ResourceCorePackage.getSwResource()); + alarmEClass.getESuperTypes().add(this.getInterruptResource()); + + // Initialize classes and features; add operations and parameters + initEClass(entryPointEClass, EntryPoint.class, "EntryPoint", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEntryPoint_IsReentrant(), theMARTE_PrimitivesTypesPackage.getBoolean(), "isReentrant", null, 0, 1, EntryPoint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getEntryPoint_Routine(), theUMLPackage.getBehavioralFeature(), null, "routine", null, 1, 1, EntryPoint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(swConcurrentResourceEClass, SwConcurrentResource.class, "SwConcurrentResource", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSwConcurrentResource_Type(), theBasicNFP_TypesPackage.getArrivalPattern(), "type", null, 0, 1, SwConcurrentResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getSwConcurrentResource_ActivationCapacity(), theMARTE_PrimitivesTypesPackage.getInteger(), "activationCapacity", null, 0, 1, SwConcurrentResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getSwConcurrentResource_EntryPoints(), theUMLPackage.getElement(), null, "entryPoints", null, 0, -1, SwConcurrentResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getSwConcurrentResource_AdressSpace(), theUMLPackage.getTypedElement(), null, "adressSpace", null, 0, -1, SwConcurrentResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getSwConcurrentResource_PeriodElements(), theUMLPackage.getTypedElement(), null, "periodElements", null, 0, -1, SwConcurrentResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getSwConcurrentResource_PriorityElements(), theUMLPackage.getTypedElement(), null, "priorityElements", null, 0, -1, SwConcurrentResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getSwConcurrentResource_StackSizeElements(), theUMLPackage.getTypedElement(), null, "stackSizeElements", null, 0, -1, SwConcurrentResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getSwConcurrentResource_ActivateServices(), theUMLPackage.getBehavioralFeature(), null, "activateServices", null, 0, -1, SwConcurrentResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getSwConcurrentResource_EnableConcurrencyServices(), theUMLPackage.getBehavioralFeature(), null, "enableConcurrencyServices", null, 0, -1, SwConcurrentResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getSwConcurrentResource_ResumeServices(), theUMLPackage.getBehavioralFeature(), null, "resumeServices", null, 0, -1, SwConcurrentResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getSwConcurrentResource_SuspendServices(), theUMLPackage.getBehavioralFeature(), null, "suspendServices", null, 0, -1, SwConcurrentResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getSwConcurrentResource_TerminateServices(), theUMLPackage.getBehavioralFeature(), null, "terminateServices", null, 0, -1, SwConcurrentResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getSwConcurrentResource_DisableConcurrencyServices(), theUMLPackage.getBehavioralFeature(), null, "disableConcurrencyServices", null, 0, -1, SwConcurrentResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getSwConcurrentResource_ShareDataResources(), theUMLPackage.getTypedElement(), null, "shareDataResources", null, 0, -1, SwConcurrentResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getSwConcurrentResource_MessageResources(), theUMLPackage.getTypedElement(), null, "messageResources", null, 0, -1, SwConcurrentResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getSwConcurrentResource_MutualExclusionResources(), theUMLPackage.getTypedElement(), null, "mutualExclusionResources", null, 0, -1, SwConcurrentResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getSwConcurrentResource_NotificationResources(), theUMLPackage.getTypedElement(), null, "notificationResources", null, 0, -1, SwConcurrentResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getSwConcurrentResource_HeapSizeElements(), theUMLPackage.getTypedElement(), null, "heapSizeElements", null, 0, -1, SwConcurrentResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(interruptResourceEClass, InterruptResource.class, "InterruptResource", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getInterruptResource_Kind(), this.getInterruptKind(), "kind", null, 0, 1, InterruptResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getInterruptResource_IsMaskable(), theMARTE_PrimitivesTypesPackage.getBoolean(), "isMaskable", null, 0, 1, InterruptResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getInterruptResource_VectorElements(), theUMLPackage.getTypedElement(), null, "vectorElements", null, 0, -1, InterruptResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getInterruptResource_MaskElements(), theUMLPackage.getTypedElement(), null, "maskElements", null, 0, -1, InterruptResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getInterruptResource_RoutineConnectServices(), theUMLPackage.getBehavioralFeature(), null, "routineConnectServices", null, 0, -1, InterruptResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getInterruptResource_RoutineDisconnectServices(), theUMLPackage.getBehavioralFeature(), null, "routineDisconnectServices", null, 0, -1, InterruptResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(swSchedulableResourceEClass, SwSchedulableResource.class, "SwSchedulableResource", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSwSchedulableResource_IsStaticSchedulingFeature(), theMARTE_PrimitivesTypesPackage.getBoolean(), "isStaticSchedulingFeature", null, 0, 1, SwSchedulableResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getSwSchedulableResource_IsPreemptable(), theMARTE_PrimitivesTypesPackage.getBoolean(), "isPreemptable", null, 0, 1, SwSchedulableResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getSwSchedulableResource_Schedulers(), theUMLPackage.getNamedElement(), null, "schedulers", null, 1, 1, SwSchedulableResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getSwSchedulableResource_DeadlineElements(), theUMLPackage.getTypedElement(), null, "deadlineElements", null, 0, -1, SwSchedulableResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getSwSchedulableResource_DeadlineTypeElements(), theUMLPackage.getTypedElement(), null, "deadlineTypeElements", null, 0, -1, SwSchedulableResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getSwSchedulableResource_TimeSliceElements(), theUMLPackage.getTypedElement(), null, "timeSliceElements", null, 0, -1, SwSchedulableResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getSwSchedulableResource_DelayServices(), theUMLPackage.getBehavioralFeature(), null, "delayServices", null, 0, -1, SwSchedulableResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getSwSchedulableResource_JoinServices(), theUMLPackage.getBehavioralFeature(), null, "joinServices", null, 0, -1, SwSchedulableResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getSwSchedulableResource_YieldServices(), theUMLPackage.getBehavioralFeature(), null, "yieldServices", null, 0, -1, SwSchedulableResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(swTimerResourceEClass, SwTimerResource.class, "SwTimerResource", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSwTimerResource_DurationElements(), theUMLPackage.getTypedElement(), null, "durationElements", null, 0, 1, SwTimerResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(memoryPartitionEClass, MemoryPartition.class, "MemoryPartition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getMemoryPartition_ConcurrentResources(), theUMLPackage.getTypedElement(), null, "concurrentResources", null, 0, -1, MemoryPartition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getMemoryPartition_MemorySpaces(), theUMLPackage.getTypedElement(), null, "memorySpaces", null, 0, -1, MemoryPartition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getMemoryPartition_Fork(), theUMLPackage.getBehavioralFeature(), null, "fork", null, 0, -1, MemoryPartition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getMemoryPartition_Exit(), theUMLPackage.getBehavioralFeature(), null, "exit", null, 0, -1, MemoryPartition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getMemoryPartition_Base_Namespace(), theUMLPackage.getNamespace(), null, "base_Namespace", null, 1, 1, MemoryPartition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(alarmEClass, Alarm.class, "Alarm", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getAlarm_IsWatchdog(), theMARTE_PrimitivesTypesPackage.getBoolean(), "isWatchdog", null, 0, 1, Alarm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getAlarm_Timers(), theUMLPackage.getTypedElement(), null, "timers", null, 0, -1, Alarm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + // Initialize enums and add enum literals + initEEnum(interruptKindEEnum, InterruptKind.class, "InterruptKind"); + addEEnumLiteral(interruptKindEEnum, InterruptKind.HARDWARE_INTERRUPTION); + addEEnumLiteral(interruptKindEEnum, InterruptKind.PROCESSOR_DETECTED_EXCEPTION); + addEEnumLiteral(interruptKindEEnum, InterruptKind.PROGRAMMED_EXCEPTION); + addEEnumLiteral(interruptKindEEnum, InterruptKind.UNDEF); + addEEnumLiteral(interruptKindEEnum, InterruptKind.OTHER); + + // Create annotations + // redefines + createRedefinesAnnotations(); + } + + /** + * Initializes the annotations for redefines. + * + * + * @generated + */ + protected void createRedefinesAnnotations() { + String source = "redefines"; + addAnnotation + (getSwTimerResource_DurationElements(), + source, + new String[] { + }, + new URI[] { + URI.createURI(MARTEPackage.eNS_URI).appendFragment("//MARTE_Foundations/GRM/TimerResource/duration") + }); + } + +} //SW_ConcurrencyPackageImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/impl/SwConcurrentResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/impl/SwConcurrentResourceImpl.java new file mode 100644 index 00000000000..2e597402523 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/impl/SwConcurrentResourceImpl.java @@ -0,0 +1,784 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Concurrency.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EObjectResolvingEList; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.impl.SwResourceImpl; + +import org.eclipse.uml2.uml.BehavioralFeature; +import org.eclipse.uml2.uml.Element; +import org.eclipse.uml2.uml.TypedElement; + +/** + * + * An implementation of the model object 'Sw Concurrent Resource'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SwConcurrentResourceImpl#getType Type}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SwConcurrentResourceImpl#getActivationCapacity Activation Capacity}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SwConcurrentResourceImpl#getEntryPoints Entry Points}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SwConcurrentResourceImpl#getAdressSpace Adress Space}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SwConcurrentResourceImpl#getPeriodElements Period Elements}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SwConcurrentResourceImpl#getPriorityElements Priority Elements}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SwConcurrentResourceImpl#getStackSizeElements Stack Size Elements}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SwConcurrentResourceImpl#getActivateServices Activate Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SwConcurrentResourceImpl#getEnableConcurrencyServices Enable Concurrency Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SwConcurrentResourceImpl#getResumeServices Resume Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SwConcurrentResourceImpl#getSuspendServices Suspend Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SwConcurrentResourceImpl#getTerminateServices Terminate Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SwConcurrentResourceImpl#getDisableConcurrencyServices Disable Concurrency Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SwConcurrentResourceImpl#getShareDataResources Share Data Resources}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SwConcurrentResourceImpl#getMessageResources Message Resources}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SwConcurrentResourceImpl#getMutualExclusionResources Mutual Exclusion Resources}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SwConcurrentResourceImpl#getNotificationResources Notification Resources}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SwConcurrentResourceImpl#getHeapSizeElements Heap Size Elements}
  • + *
+ *

+ * + * @generated + */ +public abstract class SwConcurrentResourceImpl extends SwResourceImpl implements SwConcurrentResource { + /** + * The default value of the '{@link #getType() Type}' attribute. + * + * + * @see #getType() + * @generated + * @ordered + */ + protected static final String TYPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getType() Type}' attribute. + * + * + * @see #getType() + * @generated + * @ordered + */ + protected String type = TYPE_EDEFAULT; + + /** + * The default value of the '{@link #getActivationCapacity() Activation Capacity}' attribute. + * + * + * @see #getActivationCapacity() + * @generated + * @ordered + */ + protected static final int ACTIVATION_CAPACITY_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getActivationCapacity() Activation Capacity}' attribute. + * + * + * @see #getActivationCapacity() + * @generated + * @ordered + */ + protected int activationCapacity = ACTIVATION_CAPACITY_EDEFAULT; + + /** + * The cached value of the '{@link #getEntryPoints() Entry Points}' reference list. + * + * + * @see #getEntryPoints() + * @generated + * @ordered + */ + protected EList entryPoints; + + /** + * The cached value of the '{@link #getAdressSpace() Adress Space}' reference list. + * + * + * @see #getAdressSpace() + * @generated + * @ordered + */ + protected EList adressSpace; + + /** + * The cached value of the '{@link #getPeriodElements() Period Elements}' reference list. + * + * + * @see #getPeriodElements() + * @generated + * @ordered + */ + protected EList periodElements; + + /** + * The cached value of the '{@link #getPriorityElements() Priority Elements}' reference list. + * + * + * @see #getPriorityElements() + * @generated + * @ordered + */ + protected EList priorityElements; + + /** + * The cached value of the '{@link #getStackSizeElements() Stack Size Elements}' reference list. + * + * + * @see #getStackSizeElements() + * @generated + * @ordered + */ + protected EList stackSizeElements; + + /** + * The cached value of the '{@link #getActivateServices() Activate Services}' reference list. + * + * + * @see #getActivateServices() + * @generated + * @ordered + */ + protected EList activateServices; + + /** + * The cached value of the '{@link #getEnableConcurrencyServices() Enable Concurrency Services}' reference list. + * + * + * @see #getEnableConcurrencyServices() + * @generated + * @ordered + */ + protected EList enableConcurrencyServices; + + /** + * The cached value of the '{@link #getResumeServices() Resume Services}' reference list. + * + * + * @see #getResumeServices() + * @generated + * @ordered + */ + protected EList resumeServices; + + /** + * The cached value of the '{@link #getSuspendServices() Suspend Services}' reference list. + * + * + * @see #getSuspendServices() + * @generated + * @ordered + */ + protected EList suspendServices; + + /** + * The cached value of the '{@link #getTerminateServices() Terminate Services}' reference list. + * + * + * @see #getTerminateServices() + * @generated + * @ordered + */ + protected EList terminateServices; + + /** + * The cached value of the '{@link #getDisableConcurrencyServices() Disable Concurrency Services}' reference list. + * + * + * @see #getDisableConcurrencyServices() + * @generated + * @ordered + */ + protected EList disableConcurrencyServices; + + /** + * The cached value of the '{@link #getShareDataResources() Share Data Resources}' reference list. + * + * + * @see #getShareDataResources() + * @generated + * @ordered + */ + protected EList shareDataResources; + + /** + * The cached value of the '{@link #getMessageResources() Message Resources}' reference list. + * + * + * @see #getMessageResources() + * @generated + * @ordered + */ + protected EList messageResources; + + /** + * The cached value of the '{@link #getMutualExclusionResources() Mutual Exclusion Resources}' reference list. + * + * + * @see #getMutualExclusionResources() + * @generated + * @ordered + */ + protected EList mutualExclusionResources; + + /** + * The cached value of the '{@link #getNotificationResources() Notification Resources}' reference list. + * + * + * @see #getNotificationResources() + * @generated + * @ordered + */ + protected EList notificationResources; + + /** + * The cached value of the '{@link #getHeapSizeElements() Heap Size Elements}' reference list. + * + * + * @see #getHeapSizeElements() + * @generated + * @ordered + */ + protected EList heapSizeElements; + + /** + * + * + * @generated + */ + protected SwConcurrentResourceImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SW_ConcurrencyPackage.Literals.SW_CONCURRENT_RESOURCE; + } + + /** + * + * + * @generated + */ + public String getType() { + return type; + } + + /** + * + * + * @generated + */ + public void setType(String newType) { + String oldType = type; + type = newType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__TYPE, oldType, type)); + } + + /** + * + * + * @generated + */ + public int getActivationCapacity() { + return activationCapacity; + } + + /** + * + * + * @generated + */ + public void setActivationCapacity(int newActivationCapacity) { + int oldActivationCapacity = activationCapacity; + activationCapacity = newActivationCapacity; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__ACTIVATION_CAPACITY, oldActivationCapacity, activationCapacity)); + } + + /** + * + * + * @generated + */ + public EList getEntryPoints() { + if (entryPoints == null) { + entryPoints = new EObjectResolvingEList(Element.class, this, SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__ENTRY_POINTS); + } + return entryPoints; + } + + /** + * + * + * @generated + */ + public EList getAdressSpace() { + if (adressSpace == null) { + adressSpace = new EObjectResolvingEList(TypedElement.class, this, SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__ADRESS_SPACE); + } + return adressSpace; + } + + /** + * + * + * @generated + */ + public EList getPeriodElements() { + if (periodElements == null) { + periodElements = new EObjectResolvingEList(TypedElement.class, this, SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__PERIOD_ELEMENTS); + } + return periodElements; + } + + /** + * + * + * @generated + */ + public EList getPriorityElements() { + if (priorityElements == null) { + priorityElements = new EObjectResolvingEList(TypedElement.class, this, SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__PRIORITY_ELEMENTS); + } + return priorityElements; + } + + /** + * + * + * @generated + */ + public EList getStackSizeElements() { + if (stackSizeElements == null) { + stackSizeElements = new EObjectResolvingEList(TypedElement.class, this, SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__STACK_SIZE_ELEMENTS); + } + return stackSizeElements; + } + + /** + * + * + * @generated + */ + public EList getActivateServices() { + if (activateServices == null) { + activateServices = new EObjectResolvingEList(BehavioralFeature.class, this, SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__ACTIVATE_SERVICES); + } + return activateServices; + } + + /** + * + * + * @generated + */ + public EList getEnableConcurrencyServices() { + if (enableConcurrencyServices == null) { + enableConcurrencyServices = new EObjectResolvingEList(BehavioralFeature.class, this, SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__ENABLE_CONCURRENCY_SERVICES); + } + return enableConcurrencyServices; + } + + /** + * + * + * @generated + */ + public EList getResumeServices() { + if (resumeServices == null) { + resumeServices = new EObjectResolvingEList(BehavioralFeature.class, this, SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__RESUME_SERVICES); + } + return resumeServices; + } + + /** + * + * + * @generated + */ + public EList getSuspendServices() { + if (suspendServices == null) { + suspendServices = new EObjectResolvingEList(BehavioralFeature.class, this, SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__SUSPEND_SERVICES); + } + return suspendServices; + } + + /** + * + * + * @generated + */ + public EList getTerminateServices() { + if (terminateServices == null) { + terminateServices = new EObjectResolvingEList(BehavioralFeature.class, this, SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__TERMINATE_SERVICES); + } + return terminateServices; + } + + /** + * + * + * @generated + */ + public EList getDisableConcurrencyServices() { + if (disableConcurrencyServices == null) { + disableConcurrencyServices = new EObjectResolvingEList(BehavioralFeature.class, this, SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__DISABLE_CONCURRENCY_SERVICES); + } + return disableConcurrencyServices; + } + + /** + * + * + * @generated + */ + public EList getShareDataResources() { + if (shareDataResources == null) { + shareDataResources = new EObjectResolvingEList(TypedElement.class, this, SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__SHARE_DATA_RESOURCES); + } + return shareDataResources; + } + + /** + * + * + * @generated + */ + public EList getMessageResources() { + if (messageResources == null) { + messageResources = new EObjectResolvingEList(TypedElement.class, this, SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__MESSAGE_RESOURCES); + } + return messageResources; + } + + /** + * + * + * @generated + */ + public EList getMutualExclusionResources() { + if (mutualExclusionResources == null) { + mutualExclusionResources = new EObjectResolvingEList(TypedElement.class, this, SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__MUTUAL_EXCLUSION_RESOURCES); + } + return mutualExclusionResources; + } + + /** + * + * + * @generated + */ + public EList getNotificationResources() { + if (notificationResources == null) { + notificationResources = new EObjectResolvingEList(TypedElement.class, this, SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__NOTIFICATION_RESOURCES); + } + return notificationResources; + } + + /** + * + * + * @generated + */ + public EList getHeapSizeElements() { + if (heapSizeElements == null) { + heapSizeElements = new EObjectResolvingEList(TypedElement.class, this, SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__HEAP_SIZE_ELEMENTS); + } + return heapSizeElements; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__TYPE: + return getType(); + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__ACTIVATION_CAPACITY: + return getActivationCapacity(); + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__ENTRY_POINTS: + return getEntryPoints(); + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__ADRESS_SPACE: + return getAdressSpace(); + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__PERIOD_ELEMENTS: + return getPeriodElements(); + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__PRIORITY_ELEMENTS: + return getPriorityElements(); + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__STACK_SIZE_ELEMENTS: + return getStackSizeElements(); + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__ACTIVATE_SERVICES: + return getActivateServices(); + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__ENABLE_CONCURRENCY_SERVICES: + return getEnableConcurrencyServices(); + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__RESUME_SERVICES: + return getResumeServices(); + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__SUSPEND_SERVICES: + return getSuspendServices(); + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__TERMINATE_SERVICES: + return getTerminateServices(); + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__DISABLE_CONCURRENCY_SERVICES: + return getDisableConcurrencyServices(); + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__SHARE_DATA_RESOURCES: + return getShareDataResources(); + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__MESSAGE_RESOURCES: + return getMessageResources(); + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__MUTUAL_EXCLUSION_RESOURCES: + return getMutualExclusionResources(); + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__NOTIFICATION_RESOURCES: + return getNotificationResources(); + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__HEAP_SIZE_ELEMENTS: + return getHeapSizeElements(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__TYPE: + setType((String)newValue); + return; + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__ACTIVATION_CAPACITY: + setActivationCapacity((Integer)newValue); + return; + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__ENTRY_POINTS: + getEntryPoints().clear(); + getEntryPoints().addAll((Collection)newValue); + return; + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__ADRESS_SPACE: + getAdressSpace().clear(); + getAdressSpace().addAll((Collection)newValue); + return; + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__PERIOD_ELEMENTS: + getPeriodElements().clear(); + getPeriodElements().addAll((Collection)newValue); + return; + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__PRIORITY_ELEMENTS: + getPriorityElements().clear(); + getPriorityElements().addAll((Collection)newValue); + return; + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__STACK_SIZE_ELEMENTS: + getStackSizeElements().clear(); + getStackSizeElements().addAll((Collection)newValue); + return; + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__ACTIVATE_SERVICES: + getActivateServices().clear(); + getActivateServices().addAll((Collection)newValue); + return; + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__ENABLE_CONCURRENCY_SERVICES: + getEnableConcurrencyServices().clear(); + getEnableConcurrencyServices().addAll((Collection)newValue); + return; + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__RESUME_SERVICES: + getResumeServices().clear(); + getResumeServices().addAll((Collection)newValue); + return; + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__SUSPEND_SERVICES: + getSuspendServices().clear(); + getSuspendServices().addAll((Collection)newValue); + return; + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__TERMINATE_SERVICES: + getTerminateServices().clear(); + getTerminateServices().addAll((Collection)newValue); + return; + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__DISABLE_CONCURRENCY_SERVICES: + getDisableConcurrencyServices().clear(); + getDisableConcurrencyServices().addAll((Collection)newValue); + return; + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__SHARE_DATA_RESOURCES: + getShareDataResources().clear(); + getShareDataResources().addAll((Collection)newValue); + return; + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__MESSAGE_RESOURCES: + getMessageResources().clear(); + getMessageResources().addAll((Collection)newValue); + return; + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__MUTUAL_EXCLUSION_RESOURCES: + getMutualExclusionResources().clear(); + getMutualExclusionResources().addAll((Collection)newValue); + return; + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__NOTIFICATION_RESOURCES: + getNotificationResources().clear(); + getNotificationResources().addAll((Collection)newValue); + return; + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__HEAP_SIZE_ELEMENTS: + getHeapSizeElements().clear(); + getHeapSizeElements().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__TYPE: + setType(TYPE_EDEFAULT); + return; + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__ACTIVATION_CAPACITY: + setActivationCapacity(ACTIVATION_CAPACITY_EDEFAULT); + return; + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__ENTRY_POINTS: + getEntryPoints().clear(); + return; + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__ADRESS_SPACE: + getAdressSpace().clear(); + return; + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__PERIOD_ELEMENTS: + getPeriodElements().clear(); + return; + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__PRIORITY_ELEMENTS: + getPriorityElements().clear(); + return; + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__STACK_SIZE_ELEMENTS: + getStackSizeElements().clear(); + return; + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__ACTIVATE_SERVICES: + getActivateServices().clear(); + return; + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__ENABLE_CONCURRENCY_SERVICES: + getEnableConcurrencyServices().clear(); + return; + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__RESUME_SERVICES: + getResumeServices().clear(); + return; + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__SUSPEND_SERVICES: + getSuspendServices().clear(); + return; + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__TERMINATE_SERVICES: + getTerminateServices().clear(); + return; + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__DISABLE_CONCURRENCY_SERVICES: + getDisableConcurrencyServices().clear(); + return; + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__SHARE_DATA_RESOURCES: + getShareDataResources().clear(); + return; + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__MESSAGE_RESOURCES: + getMessageResources().clear(); + return; + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__MUTUAL_EXCLUSION_RESOURCES: + getMutualExclusionResources().clear(); + return; + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__NOTIFICATION_RESOURCES: + getNotificationResources().clear(); + return; + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__HEAP_SIZE_ELEMENTS: + getHeapSizeElements().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__TYPE: + return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type); + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__ACTIVATION_CAPACITY: + return activationCapacity != ACTIVATION_CAPACITY_EDEFAULT; + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__ENTRY_POINTS: + return entryPoints != null && !entryPoints.isEmpty(); + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__ADRESS_SPACE: + return adressSpace != null && !adressSpace.isEmpty(); + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__PERIOD_ELEMENTS: + return periodElements != null && !periodElements.isEmpty(); + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__PRIORITY_ELEMENTS: + return priorityElements != null && !priorityElements.isEmpty(); + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__STACK_SIZE_ELEMENTS: + return stackSizeElements != null && !stackSizeElements.isEmpty(); + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__ACTIVATE_SERVICES: + return activateServices != null && !activateServices.isEmpty(); + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__ENABLE_CONCURRENCY_SERVICES: + return enableConcurrencyServices != null && !enableConcurrencyServices.isEmpty(); + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__RESUME_SERVICES: + return resumeServices != null && !resumeServices.isEmpty(); + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__SUSPEND_SERVICES: + return suspendServices != null && !suspendServices.isEmpty(); + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__TERMINATE_SERVICES: + return terminateServices != null && !terminateServices.isEmpty(); + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__DISABLE_CONCURRENCY_SERVICES: + return disableConcurrencyServices != null && !disableConcurrencyServices.isEmpty(); + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__SHARE_DATA_RESOURCES: + return shareDataResources != null && !shareDataResources.isEmpty(); + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__MESSAGE_RESOURCES: + return messageResources != null && !messageResources.isEmpty(); + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__MUTUAL_EXCLUSION_RESOURCES: + return mutualExclusionResources != null && !mutualExclusionResources.isEmpty(); + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__NOTIFICATION_RESOURCES: + return notificationResources != null && !notificationResources.isEmpty(); + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE__HEAP_SIZE_ELEMENTS: + return heapSizeElements != null && !heapSizeElements.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (type: "); + result.append(type); + result.append(", activationCapacity: "); + result.append(activationCapacity); + result.append(')'); + return result.toString(); + } + +} //SwConcurrentResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/impl/SwSchedulableResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/impl/SwSchedulableResourceImpl.java new file mode 100644 index 00000000000..50820734fe7 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/impl/SwSchedulableResourceImpl.java @@ -0,0 +1,782 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Concurrency.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EDataTypeUniqueEList; +import org.eclipse.emf.ecore.util.EObjectResolvingEList; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwSchedulableResource; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SchedulableResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SecondaryScheduler; + +import org.eclipse.uml2.uml.BehavioralFeature; +import org.eclipse.uml2.uml.NamedElement; +import org.eclipse.uml2.uml.TypedElement; + +/** + * + * An implementation of the model object 'Sw Schedulable Resource'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SwSchedulableResourceImpl#getSchedParams Sched Params}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SwSchedulableResourceImpl#getDependentScheduler Dependent Scheduler}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SwSchedulableResourceImpl#getHost Host}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SwSchedulableResourceImpl#isIsStaticSchedulingFeature Is Static Scheduling Feature}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SwSchedulableResourceImpl#isIsPreemptable Is Preemptable}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SwSchedulableResourceImpl#getSchedulers Schedulers}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SwSchedulableResourceImpl#getDeadlineElements Deadline Elements}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SwSchedulableResourceImpl#getDeadlineTypeElements Deadline Type Elements}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SwSchedulableResourceImpl#getTimeSliceElements Time Slice Elements}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SwSchedulableResourceImpl#getDelayServices Delay Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SwSchedulableResourceImpl#getJoinServices Join Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SwSchedulableResourceImpl#getYieldServices Yield Services}
  • + *
+ *

+ * + * @generated + */ +public class SwSchedulableResourceImpl extends SwConcurrentResourceImpl implements SwSchedulableResource { + /** + * The cached value of the '{@link #getSchedParams() Sched Params}' attribute list. + * + * + * @see #getSchedParams() + * @generated + * @ordered + */ + protected EList schedParams; + + /** + * The cached value of the '{@link #getDependentScheduler() Dependent Scheduler}' reference. + * + * + * @see #getDependentScheduler() + * @generated + * @ordered + */ + protected SecondaryScheduler dependentScheduler; + + /** + * The cached value of the '{@link #getHost() Host}' reference. + * + * + * @see #getHost() + * @generated + * @ordered + */ + protected Scheduler host; + + /** + * The default value of the '{@link #isIsStaticSchedulingFeature() Is Static Scheduling Feature}' attribute. + * + * + * @see #isIsStaticSchedulingFeature() + * @generated + * @ordered + */ + protected static final boolean IS_STATIC_SCHEDULING_FEATURE_EDEFAULT = false; + + /** + * The cached value of the '{@link #isIsStaticSchedulingFeature() Is Static Scheduling Feature}' attribute. + * + * + * @see #isIsStaticSchedulingFeature() + * @generated + * @ordered + */ + protected boolean isStaticSchedulingFeature = IS_STATIC_SCHEDULING_FEATURE_EDEFAULT; + + /** + * The default value of the '{@link #isIsPreemptable() Is Preemptable}' attribute. + * + * + * @see #isIsPreemptable() + * @generated + * @ordered + */ + protected static final boolean IS_PREEMPTABLE_EDEFAULT = false; + + /** + * The cached value of the '{@link #isIsPreemptable() Is Preemptable}' attribute. + * + * + * @see #isIsPreemptable() + * @generated + * @ordered + */ + protected boolean isPreemptable = IS_PREEMPTABLE_EDEFAULT; + + /** + * The cached value of the '{@link #getSchedulers() Schedulers}' reference. + * + * + * @see #getSchedulers() + * @generated + * @ordered + */ + protected NamedElement schedulers; + + /** + * The cached value of the '{@link #getDeadlineElements() Deadline Elements}' reference list. + * + * + * @see #getDeadlineElements() + * @generated + * @ordered + */ + protected EList deadlineElements; + + /** + * The cached value of the '{@link #getDeadlineTypeElements() Deadline Type Elements}' reference list. + * + * + * @see #getDeadlineTypeElements() + * @generated + * @ordered + */ + protected EList deadlineTypeElements; + + /** + * The cached value of the '{@link #getTimeSliceElements() Time Slice Elements}' reference list. + * + * + * @see #getTimeSliceElements() + * @generated + * @ordered + */ + protected EList timeSliceElements; + + /** + * The cached value of the '{@link #getDelayServices() Delay Services}' reference list. + * + * + * @see #getDelayServices() + * @generated + * @ordered + */ + protected EList delayServices; + + /** + * The cached value of the '{@link #getJoinServices() Join Services}' reference list. + * + * + * @see #getJoinServices() + * @generated + * @ordered + */ + protected EList joinServices; + + /** + * The cached value of the '{@link #getYieldServices() Yield Services}' reference list. + * + * + * @see #getYieldServices() + * @generated + * @ordered + */ + protected EList yieldServices; + + /** + * + * + * @generated + */ + protected SwSchedulableResourceImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SW_ConcurrencyPackage.Literals.SW_SCHEDULABLE_RESOURCE; + } + + /** + * + * + * @generated + */ + public EList getSchedParams() { + if (schedParams == null) { + schedParams = new EDataTypeUniqueEList(String.class, this, SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__SCHED_PARAMS); + } + return schedParams; + } + + /** + * + * + * @generated + */ + public SecondaryScheduler getDependentScheduler() { + if (dependentScheduler != null && dependentScheduler.eIsProxy()) { + InternalEObject oldDependentScheduler = (InternalEObject)dependentScheduler; + dependentScheduler = (SecondaryScheduler)eResolveProxy(oldDependentScheduler); + if (dependentScheduler != oldDependentScheduler) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__DEPENDENT_SCHEDULER, oldDependentScheduler, dependentScheduler)); + } + } + return dependentScheduler; + } + + /** + * + * + * @generated + */ + public SecondaryScheduler basicGetDependentScheduler() { + return dependentScheduler; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetDependentScheduler(SecondaryScheduler newDependentScheduler, NotificationChain msgs) { + SecondaryScheduler oldDependentScheduler = dependentScheduler; + dependentScheduler = newDependentScheduler; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__DEPENDENT_SCHEDULER, oldDependentScheduler, newDependentScheduler); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setDependentScheduler(SecondaryScheduler newDependentScheduler) { + if (newDependentScheduler != dependentScheduler) { + NotificationChain msgs = null; + if (dependentScheduler != null) + msgs = ((InternalEObject)dependentScheduler).eInverseRemove(this, GRMPackage.SECONDARY_SCHEDULER__VIRTUAL_PROCESSING_UNITS, SecondaryScheduler.class, msgs); + if (newDependentScheduler != null) + msgs = ((InternalEObject)newDependentScheduler).eInverseAdd(this, GRMPackage.SECONDARY_SCHEDULER__VIRTUAL_PROCESSING_UNITS, SecondaryScheduler.class, msgs); + msgs = basicSetDependentScheduler(newDependentScheduler, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__DEPENDENT_SCHEDULER, newDependentScheduler, newDependentScheduler)); + } + + /** + * + * + * @generated + */ + public Scheduler getHost() { + if (host != null && host.eIsProxy()) { + InternalEObject oldHost = (InternalEObject)host; + host = (Scheduler)eResolveProxy(oldHost); + if (host != oldHost) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__HOST, oldHost, host)); + } + } + return host; + } + + /** + * + * + * @generated + */ + public Scheduler basicGetHost() { + return host; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetHost(Scheduler newHost, NotificationChain msgs) { + Scheduler oldHost = host; + host = newHost; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__HOST, oldHost, newHost); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setHost(Scheduler newHost) { + if (newHost != host) { + NotificationChain msgs = null; + if (host != null) + msgs = ((InternalEObject)host).eInverseRemove(this, GRMPackage.SCHEDULER__SCHEDULABLE_RESOURCES, Scheduler.class, msgs); + if (newHost != null) + msgs = ((InternalEObject)newHost).eInverseAdd(this, GRMPackage.SCHEDULER__SCHEDULABLE_RESOURCES, Scheduler.class, msgs); + msgs = basicSetHost(newHost, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__HOST, newHost, newHost)); + } + + /** + * + * + * @generated + */ + public boolean isIsStaticSchedulingFeature() { + return isStaticSchedulingFeature; + } + + /** + * + * + * @generated + */ + public void setIsStaticSchedulingFeature(boolean newIsStaticSchedulingFeature) { + boolean oldIsStaticSchedulingFeature = isStaticSchedulingFeature; + isStaticSchedulingFeature = newIsStaticSchedulingFeature; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__IS_STATIC_SCHEDULING_FEATURE, oldIsStaticSchedulingFeature, isStaticSchedulingFeature)); + } + + /** + * + * + * @generated + */ + public boolean isIsPreemptable() { + return isPreemptable; + } + + /** + * + * + * @generated + */ + public void setIsPreemptable(boolean newIsPreemptable) { + boolean oldIsPreemptable = isPreemptable; + isPreemptable = newIsPreemptable; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__IS_PREEMPTABLE, oldIsPreemptable, isPreemptable)); + } + + /** + * + * + * @generated + */ + public NamedElement getSchedulers() { + if (schedulers != null && schedulers.eIsProxy()) { + InternalEObject oldSchedulers = (InternalEObject)schedulers; + schedulers = (NamedElement)eResolveProxy(oldSchedulers); + if (schedulers != oldSchedulers) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__SCHEDULERS, oldSchedulers, schedulers)); + } + } + return schedulers; + } + + /** + * + * + * @generated + */ + public NamedElement basicGetSchedulers() { + return schedulers; + } + + /** + * + * + * @generated + */ + public void setSchedulers(NamedElement newSchedulers) { + NamedElement oldSchedulers = schedulers; + schedulers = newSchedulers; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__SCHEDULERS, oldSchedulers, schedulers)); + } + + /** + * + * + * @generated + */ + public EList getDeadlineElements() { + if (deadlineElements == null) { + deadlineElements = new EObjectResolvingEList(TypedElement.class, this, SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__DEADLINE_ELEMENTS); + } + return deadlineElements; + } + + /** + * + * + * @generated + */ + public EList getDeadlineTypeElements() { + if (deadlineTypeElements == null) { + deadlineTypeElements = new EObjectResolvingEList(TypedElement.class, this, SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__DEADLINE_TYPE_ELEMENTS); + } + return deadlineTypeElements; + } + + /** + * + * + * @generated + */ + public EList getTimeSliceElements() { + if (timeSliceElements == null) { + timeSliceElements = new EObjectResolvingEList(TypedElement.class, this, SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__TIME_SLICE_ELEMENTS); + } + return timeSliceElements; + } + + /** + * + * + * @generated + */ + public EList getDelayServices() { + if (delayServices == null) { + delayServices = new EObjectResolvingEList(BehavioralFeature.class, this, SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__DELAY_SERVICES); + } + return delayServices; + } + + /** + * + * + * @generated + */ + public EList getJoinServices() { + if (joinServices == null) { + joinServices = new EObjectResolvingEList(BehavioralFeature.class, this, SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__JOIN_SERVICES); + } + return joinServices; + } + + /** + * + * + * @generated + */ + public EList getYieldServices() { + if (yieldServices == null) { + yieldServices = new EObjectResolvingEList(BehavioralFeature.class, this, SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__YIELD_SERVICES); + } + return yieldServices; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__DEPENDENT_SCHEDULER: + if (dependentScheduler != null) + msgs = ((InternalEObject)dependentScheduler).eInverseRemove(this, GRMPackage.SECONDARY_SCHEDULER__VIRTUAL_PROCESSING_UNITS, SecondaryScheduler.class, msgs); + return basicSetDependentScheduler((SecondaryScheduler)otherEnd, msgs); + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__HOST: + if (host != null) + msgs = ((InternalEObject)host).eInverseRemove(this, GRMPackage.SCHEDULER__SCHEDULABLE_RESOURCES, Scheduler.class, msgs); + return basicSetHost((Scheduler)otherEnd, msgs); + } + return super.eInverseAdd(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__DEPENDENT_SCHEDULER: + return basicSetDependentScheduler(null, msgs); + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__HOST: + return basicSetHost(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__SCHED_PARAMS: + return getSchedParams(); + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__DEPENDENT_SCHEDULER: + if (resolve) return getDependentScheduler(); + return basicGetDependentScheduler(); + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__HOST: + if (resolve) return getHost(); + return basicGetHost(); + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__IS_STATIC_SCHEDULING_FEATURE: + return isIsStaticSchedulingFeature(); + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__IS_PREEMPTABLE: + return isIsPreemptable(); + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__SCHEDULERS: + if (resolve) return getSchedulers(); + return basicGetSchedulers(); + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__DEADLINE_ELEMENTS: + return getDeadlineElements(); + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__DEADLINE_TYPE_ELEMENTS: + return getDeadlineTypeElements(); + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__TIME_SLICE_ELEMENTS: + return getTimeSliceElements(); + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__DELAY_SERVICES: + return getDelayServices(); + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__JOIN_SERVICES: + return getJoinServices(); + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__YIELD_SERVICES: + return getYieldServices(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__SCHED_PARAMS: + getSchedParams().clear(); + getSchedParams().addAll((Collection)newValue); + return; + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__DEPENDENT_SCHEDULER: + setDependentScheduler((SecondaryScheduler)newValue); + return; + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__HOST: + setHost((Scheduler)newValue); + return; + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__IS_STATIC_SCHEDULING_FEATURE: + setIsStaticSchedulingFeature((Boolean)newValue); + return; + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__IS_PREEMPTABLE: + setIsPreemptable((Boolean)newValue); + return; + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__SCHEDULERS: + setSchedulers((NamedElement)newValue); + return; + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__DEADLINE_ELEMENTS: + getDeadlineElements().clear(); + getDeadlineElements().addAll((Collection)newValue); + return; + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__DEADLINE_TYPE_ELEMENTS: + getDeadlineTypeElements().clear(); + getDeadlineTypeElements().addAll((Collection)newValue); + return; + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__TIME_SLICE_ELEMENTS: + getTimeSliceElements().clear(); + getTimeSliceElements().addAll((Collection)newValue); + return; + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__DELAY_SERVICES: + getDelayServices().clear(); + getDelayServices().addAll((Collection)newValue); + return; + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__JOIN_SERVICES: + getJoinServices().clear(); + getJoinServices().addAll((Collection)newValue); + return; + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__YIELD_SERVICES: + getYieldServices().clear(); + getYieldServices().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__SCHED_PARAMS: + getSchedParams().clear(); + return; + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__DEPENDENT_SCHEDULER: + setDependentScheduler((SecondaryScheduler)null); + return; + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__HOST: + setHost((Scheduler)null); + return; + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__IS_STATIC_SCHEDULING_FEATURE: + setIsStaticSchedulingFeature(IS_STATIC_SCHEDULING_FEATURE_EDEFAULT); + return; + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__IS_PREEMPTABLE: + setIsPreemptable(IS_PREEMPTABLE_EDEFAULT); + return; + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__SCHEDULERS: + setSchedulers((NamedElement)null); + return; + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__DEADLINE_ELEMENTS: + getDeadlineElements().clear(); + return; + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__DEADLINE_TYPE_ELEMENTS: + getDeadlineTypeElements().clear(); + return; + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__TIME_SLICE_ELEMENTS: + getTimeSliceElements().clear(); + return; + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__DELAY_SERVICES: + getDelayServices().clear(); + return; + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__JOIN_SERVICES: + getJoinServices().clear(); + return; + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__YIELD_SERVICES: + getYieldServices().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__SCHED_PARAMS: + return schedParams != null && !schedParams.isEmpty(); + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__DEPENDENT_SCHEDULER: + return dependentScheduler != null; + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__HOST: + return host != null; + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__IS_STATIC_SCHEDULING_FEATURE: + return isStaticSchedulingFeature != IS_STATIC_SCHEDULING_FEATURE_EDEFAULT; + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__IS_PREEMPTABLE: + return isPreemptable != IS_PREEMPTABLE_EDEFAULT; + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__SCHEDULERS: + return schedulers != null; + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__DEADLINE_ELEMENTS: + return deadlineElements != null && !deadlineElements.isEmpty(); + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__DEADLINE_TYPE_ELEMENTS: + return deadlineTypeElements != null && !deadlineTypeElements.isEmpty(); + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__TIME_SLICE_ELEMENTS: + return timeSliceElements != null && !timeSliceElements.isEmpty(); + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__DELAY_SERVICES: + return delayServices != null && !delayServices.isEmpty(); + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__JOIN_SERVICES: + return joinServices != null && !joinServices.isEmpty(); + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__YIELD_SERVICES: + return yieldServices != null && !yieldServices.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) { + if (baseClass == SchedulableResource.class) { + switch (derivedFeatureID) { + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__SCHED_PARAMS: return GRMPackage.SCHEDULABLE_RESOURCE__SCHED_PARAMS; + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__DEPENDENT_SCHEDULER: return GRMPackage.SCHEDULABLE_RESOURCE__DEPENDENT_SCHEDULER; + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__HOST: return GRMPackage.SCHEDULABLE_RESOURCE__HOST; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) { + if (baseClass == SchedulableResource.class) { + switch (baseFeatureID) { + case GRMPackage.SCHEDULABLE_RESOURCE__SCHED_PARAMS: return SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__SCHED_PARAMS; + case GRMPackage.SCHEDULABLE_RESOURCE__DEPENDENT_SCHEDULER: return SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__DEPENDENT_SCHEDULER; + case GRMPackage.SCHEDULABLE_RESOURCE__HOST: return SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE__HOST; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (schedParams: "); + result.append(schedParams); + result.append(", isStaticSchedulingFeature: "); + result.append(isStaticSchedulingFeature); + result.append(", isPreemptable: "); + result.append(isPreemptable); + result.append(')'); + return result.toString(); + } + +} //SwSchedulableResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/impl/SwTimerResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/impl/SwTimerResourceImpl.java new file mode 100644 index 00000000000..73c29fdc844 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/impl/SwTimerResourceImpl.java @@ -0,0 +1,170 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Concurrency.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwTimerResource; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.TimerResourceImpl; + +import org.eclipse.uml2.uml.TypedElement; + +/** + * + * An implementation of the model object 'Sw Timer Resource'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.impl.SwTimerResourceImpl#getDurationElements Duration Elements}
  • + *
+ *

+ * + * @generated + */ +public class SwTimerResourceImpl extends TimerResourceImpl implements SwTimerResource { + /** + * The cached value of the '{@link #getDurationElements() Duration Elements}' reference. + * + * + * @see #getDurationElements() + * @generated + * @ordered + */ + protected TypedElement durationElements; + + /** + * + * + * @generated + */ + protected SwTimerResourceImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SW_ConcurrencyPackage.Literals.SW_TIMER_RESOURCE; + } + + /** + * + * + * @generated + */ + public TypedElement getDurationElements() { + if (durationElements != null && durationElements.eIsProxy()) { + InternalEObject oldDurationElements = (InternalEObject)durationElements; + durationElements = (TypedElement)eResolveProxy(oldDurationElements); + if (durationElements != oldDurationElements) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, SW_ConcurrencyPackage.SW_TIMER_RESOURCE__DURATION_ELEMENTS, oldDurationElements, durationElements)); + } + } + return durationElements; + } + + /** + * + * + * @generated + */ + public TypedElement basicGetDurationElements() { + return durationElements; + } + + /** + * + * + * @generated + */ + public void setDurationElements(TypedElement newDurationElements) { + TypedElement oldDurationElements = durationElements; + durationElements = newDurationElements; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SW_ConcurrencyPackage.SW_TIMER_RESOURCE__DURATION_ELEMENTS, oldDurationElements, durationElements)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SW_ConcurrencyPackage.SW_TIMER_RESOURCE__DURATION_ELEMENTS: + if (resolve) return getDurationElements(); + return basicGetDurationElements(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SW_ConcurrencyPackage.SW_TIMER_RESOURCE__DURATION_ELEMENTS: + setDurationElements((TypedElement)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SW_ConcurrencyPackage.SW_TIMER_RESOURCE__DURATION_ELEMENTS: + setDurationElements((TypedElement)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SW_ConcurrencyPackage.SW_TIMER_RESOURCE__DURATION_ELEMENTS: + return durationElements != null; + } + return super.eIsSet(featureID); + } + +} //SwTimerResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/util/SW_ConcurrencyAdapterFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/util/SW_ConcurrencyAdapterFactory.java new file mode 100644 index 00000000000..ff2c07ddff7 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/util/SW_ConcurrencyAdapterFactory.java @@ -0,0 +1,356 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Concurrency.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.MARTE_DesignModel.SRM.SW_Concurrency.*; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SwResource; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Allocate; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SchedulableResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.TimerResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.TimingResource; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage + * @generated + */ +public class SW_ConcurrencyAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * @generated + */ + protected static SW_ConcurrencyPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public SW_ConcurrencyAdapterFactory() { + if (modelPackage == null) { + modelPackage = SW_ConcurrencyPackage.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 SW_ConcurrencySwitch modelSwitch = + new SW_ConcurrencySwitch() { + @Override + public Adapter caseEntryPoint(EntryPoint object) { + return createEntryPointAdapter(); + } + @Override + public Adapter caseSwConcurrentResource(SwConcurrentResource object) { + return createSwConcurrentResourceAdapter(); + } + @Override + public Adapter caseInterruptResource(InterruptResource object) { + return createInterruptResourceAdapter(); + } + @Override + public Adapter caseSwSchedulableResource(SwSchedulableResource object) { + return createSwSchedulableResourceAdapter(); + } + @Override + public Adapter caseSwTimerResource(SwTimerResource object) { + return createSwTimerResourceAdapter(); + } + @Override + public Adapter caseMemoryPartition(MemoryPartition object) { + return createMemoryPartitionAdapter(); + } + @Override + public Adapter caseAlarm(Alarm object) { + return createAlarmAdapter(); + } + @Override + public Adapter caseAllocate(Allocate object) { + return createAllocateAdapter(); + } + @Override + public Adapter caseResource(Resource object) { + return createResourceAdapter(); + } + @Override + public Adapter caseSwResource(SwResource object) { + return createSwResourceAdapter(); + } + @Override + public Adapter caseSchedulableResource(SchedulableResource object) { + return createSchedulableResourceAdapter(); + } + @Override + public Adapter caseTimingResource(TimingResource object) { + return createTimingResourceAdapter(); + } + @Override + public Adapter caseTimerResource(TimerResource object) { + return createTimerResourceAdapter(); + } + @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.MARTE_DesignModel.SRM.SW_Concurrency.EntryPoint Entry Point}'. + * + * 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.MARTE_DesignModel.SRM.SW_Concurrency.EntryPoint + * @generated + */ + public Adapter createEntryPointAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource Sw Concurrent Resource}'. + * + * 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.MARTE_DesignModel.SRM.SW_Concurrency.SwConcurrentResource + * @generated + */ + public Adapter createSwConcurrentResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.InterruptResource Interrupt Resource}'. + * + * 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.MARTE_DesignModel.SRM.SW_Concurrency.InterruptResource + * @generated + */ + public Adapter createInterruptResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwSchedulableResource Sw Schedulable Resource}'. + * + * 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.MARTE_DesignModel.SRM.SW_Concurrency.SwSchedulableResource + * @generated + */ + public Adapter createSwSchedulableResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SwTimerResource Sw Timer Resource}'. + * + * 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.MARTE_DesignModel.SRM.SW_Concurrency.SwTimerResource + * @generated + */ + public Adapter createSwTimerResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.MemoryPartition Memory Partition}'. + * + * 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.MARTE_DesignModel.SRM.SW_Concurrency.MemoryPartition + * @generated + */ + public Adapter createMemoryPartitionAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.Alarm Alarm}'. + * + * 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.MARTE_DesignModel.SRM.SW_Concurrency.Alarm + * @generated + */ + public Adapter createAlarmAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Allocate Allocate}'. + * + * 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.MARTE_Foundations.Alloc.Allocate + * @generated + */ + public Adapter createAllocateAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource Resource}'. + * + * 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.MARTE_Foundations.GRM.Resource + * @generated + */ + public Adapter createResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SwResource Sw Resource}'. + * + * 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.MARTE_DesignModel.SRM.SW_ResourceCore.SwResource + * @generated + */ + public Adapter createSwResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SchedulableResource Schedulable Resource}'. + * + * 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.MARTE_Foundations.GRM.SchedulableResource + * @generated + */ + public Adapter createSchedulableResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.TimingResource Timing Resource}'. + * + * 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.MARTE_Foundations.GRM.TimingResource + * @generated + */ + public Adapter createTimingResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.TimerResource Timer Resource}'. + * + * 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.MARTE_Foundations.GRM.TimerResource + * @generated + */ + public Adapter createTimerResourceAdapter() { + 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; + } + +} //SW_ConcurrencyAdapterFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/util/SW_ConcurrencyResourceFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/util/SW_ConcurrencyResourceFactoryImpl.java new file mode 100644 index 00000000000..7da7f2995e3 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/util/SW_ConcurrencyResourceFactoryImpl.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.MARTE_DesignModel.SRM.SW_Concurrency.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; + +import org.eclipse.emf.ecore.xmi.XMLResource; + +/** + * + * The Resource Factory associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.util.SW_ConcurrencyResourceImpl + * @generated + */ +public class SW_ConcurrencyResourceFactoryImpl extends ResourceFactoryImpl { + /** + * Creates an instance of the resource factory. + * + * + * @generated + */ + public SW_ConcurrencyResourceFactoryImpl() { + super(); + } + + /** + * Creates an instance of the resource. + * + * + * @generated + */ + @Override + public Resource createResource(URI uri) { + XMLResource result = new SW_ConcurrencyResourceImpl(uri); + result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + + result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); + return result; + } + +} //SW_ConcurrencyResourceFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/util/SW_ConcurrencyResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/util/SW_ConcurrencyResourceImpl.java new file mode 100644 index 00000000000..b832122d9b2 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/util/SW_ConcurrencyResourceImpl.java @@ -0,0 +1,39 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Concurrency.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; + +/** + * + * The Resource associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.util.SW_ConcurrencyResourceFactoryImpl + * @generated + */ +public class SW_ConcurrencyResourceImpl extends XMLResourceImpl { + /** + * Creates an instance of the resource. + * + * + * @param uri the URI of the new resource. + * @generated + */ + public SW_ConcurrencyResourceImpl(URI uri) { + super(uri); + } + +} //SW_ConcurrencyResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/util/SW_ConcurrencySwitch.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/util/SW_ConcurrencySwitch.java new file mode 100644 index 00000000000..4dcb8a875ea --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/util/SW_ConcurrencySwitch.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.MARTE_DesignModel.SRM.SW_Concurrency.util; + +import java.util.List; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.*; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SwResource; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Allocate; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SchedulableResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.TimerResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.TimingResource; + +/** + * + * 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.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage + * @generated + */ +public class SW_ConcurrencySwitch { + /** + * The cached model package + * + * + * @generated + */ + protected static SW_ConcurrencyPackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public SW_ConcurrencySwitch() { + if (modelPackage == null) { + modelPackage = SW_ConcurrencyPackage.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 SW_ConcurrencyPackage.ENTRY_POINT: { + EntryPoint entryPoint = (EntryPoint)theEObject; + T result = caseEntryPoint(entryPoint); + if (result == null) result = caseAllocate(entryPoint); + if (result == null) result = defaultCase(theEObject); + return result; + } + case SW_ConcurrencyPackage.SW_CONCURRENT_RESOURCE: { + SwConcurrentResource swConcurrentResource = (SwConcurrentResource)theEObject; + T result = caseSwConcurrentResource(swConcurrentResource); + if (result == null) result = caseSwResource(swConcurrentResource); + if (result == null) result = caseResource(swConcurrentResource); + if (result == null) result = defaultCase(theEObject); + return result; + } + case SW_ConcurrencyPackage.INTERRUPT_RESOURCE: { + InterruptResource interruptResource = (InterruptResource)theEObject; + T result = caseInterruptResource(interruptResource); + if (result == null) result = caseSwConcurrentResource(interruptResource); + if (result == null) result = caseSwResource(interruptResource); + if (result == null) result = caseResource(interruptResource); + if (result == null) result = defaultCase(theEObject); + return result; + } + case SW_ConcurrencyPackage.SW_SCHEDULABLE_RESOURCE: { + SwSchedulableResource swSchedulableResource = (SwSchedulableResource)theEObject; + T result = caseSwSchedulableResource(swSchedulableResource); + if (result == null) result = caseSwConcurrentResource(swSchedulableResource); + if (result == null) result = caseSchedulableResource(swSchedulableResource); + if (result == null) result = caseSwResource(swSchedulableResource); + if (result == null) result = caseResource(swSchedulableResource); + if (result == null) result = defaultCase(theEObject); + return result; + } + case SW_ConcurrencyPackage.SW_TIMER_RESOURCE: { + SwTimerResource swTimerResource = (SwTimerResource)theEObject; + T result = caseSwTimerResource(swTimerResource); + if (result == null) result = caseTimerResource(swTimerResource); + if (result == null) result = caseTimingResource(swTimerResource); + if (result == null) result = caseResource(swTimerResource); + if (result == null) result = defaultCase(theEObject); + return result; + } + case SW_ConcurrencyPackage.MEMORY_PARTITION: { + MemoryPartition memoryPartition = (MemoryPartition)theEObject; + T result = caseMemoryPartition(memoryPartition); + if (result == null) result = caseSwResource(memoryPartition); + if (result == null) result = caseResource(memoryPartition); + if (result == null) result = defaultCase(theEObject); + return result; + } + case SW_ConcurrencyPackage.ALARM: { + Alarm alarm = (Alarm)theEObject; + T result = caseAlarm(alarm); + if (result == null) result = caseInterruptResource(alarm); + if (result == null) result = caseSwConcurrentResource(alarm); + if (result == null) result = caseSwResource(alarm); + if (result == null) result = caseResource(alarm); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Entry Point'. + * + * 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 'Entry Point'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseEntryPoint(EntryPoint object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Sw Concurrent Resource'. + * + * 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 'Sw Concurrent Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSwConcurrentResource(SwConcurrentResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Interrupt Resource'. + * + * 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 'Interrupt Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseInterruptResource(InterruptResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Sw Schedulable Resource'. + * + * 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 'Sw Schedulable Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSwSchedulableResource(SwSchedulableResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Sw Timer Resource'. + * + * 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 'Sw Timer Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSwTimerResource(SwTimerResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Memory Partition'. + * + * 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 'Memory Partition'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseMemoryPartition(MemoryPartition object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Alarm'. + * + * 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 'Alarm'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseAlarm(Alarm object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Allocate'. + * + * 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 'Allocate'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseAllocate(Allocate object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Resource'. + * + * 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 'Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseResource(Resource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Sw Resource'. + * + * 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 'Sw Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSwResource(SwResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Schedulable Resource'. + * + * 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 'Schedulable Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSchedulableResource(SchedulableResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Timing Resource'. + * + * 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 'Timing Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseTimingResource(TimingResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Timer Resource'. + * + * 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 'Timer Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseTimerResource(TimerResource 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; + } + +} //SW_ConcurrencySwitch diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/util/SW_ConcurrencyXMLProcessor.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/util/SW_ConcurrencyXMLProcessor.java new file mode 100644 index 00000000000..73cb7d66155 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Concurrency/util/SW_ConcurrencyXMLProcessor.java @@ -0,0 +1,61 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Concurrency.util; + +import java.util.Map; + +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.xmi.util.XMLProcessor; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Concurrency.SW_ConcurrencyPackage; + +/** + * This class contains helper methods to serialize and deserialize XML documents + * + * + * @generated + */ +public class SW_ConcurrencyXMLProcessor extends XMLProcessor { + + /** + * Public constructor to instantiate the helper. + * + * + * @generated + */ + public SW_ConcurrencyXMLProcessor() { + super((EPackage.Registry.INSTANCE)); + SW_ConcurrencyPackage.eINSTANCE.eClass(); + } + + /** + * Register for "*" and "xml" file extensions the SW_ConcurrencyResourceFactoryImpl factory. + * + * + * @generated + */ + @Override + protected Map getRegistrations() { + if (registrations == null) { + super.getRegistrations(); + registrations.put(XML_EXTENSION, new SW_ConcurrencyResourceFactoryImpl()); + registrations.put(STAR_EXTENSION, new SW_ConcurrencyResourceFactoryImpl()); + } + return registrations; + } + +} //SW_ConcurrencyXMLProcessor diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/ConcurrentAccessProtocolKind.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/ConcurrentAccessProtocolKind.java new file mode 100644 index 00000000000..93a374403e4 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/ConcurrentAccessProtocolKind.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.MARTE_DesignModel.SRM.SW_Interaction; + +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 'Concurrent Access Protocol Kind', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage#getConcurrentAccessProtocolKind() + * @model + * @generated + */ +public enum ConcurrentAccessProtocolKind implements Enumerator { + /** + * The 'PIP' literal object. + * + * + * @see #PIP_VALUE + * @generated + * @ordered + */ + PIP(0, "PIP", "PIP"), + + /** + * The 'PCP' literal object. + * + * + * @see #PCP_VALUE + * @generated + * @ordered + */ + PCP(1, "PCP", "PCP"), + + /** + * The 'No Preemption' literal object. + * + * + * @see #NO_PREEMPTION_VALUE + * @generated + * @ordered + */ + NO_PREEMPTION(2, "NoPreemption", "NoPreemption"), + + /** + * The 'Undef' literal object. + * + * + * @see #UNDEF_VALUE + * @generated + * @ordered + */ + UNDEF(3, "Undef", "Undef"), + + /** + * The 'Other' literal object. + * + * + * @see #OTHER_VALUE + * @generated + * @ordered + */ + OTHER(4, "Other", "Other"); + + /** + * The 'PIP' literal value. + * + *

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

+ * + * @see #PIP + * @model + * @generated + * @ordered + */ + public static final int PIP_VALUE = 0; + + /** + * The 'PCP' literal value. + * + *

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

+ * + * @see #PCP + * @model + * @generated + * @ordered + */ + public static final int PCP_VALUE = 1; + + /** + * 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 = 2; + + /** + * 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 = 3; + + /** + * 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 = 4; + + /** + * An array of all the 'Concurrent Access Protocol Kind' enumerators. + * + * + * @generated + */ + private static final ConcurrentAccessProtocolKind[] VALUES_ARRAY = + new ConcurrentAccessProtocolKind[] { + PIP, + PCP, + NO_PREEMPTION, + UNDEF, + OTHER, + }; + + /** + * A public read-only list of all the 'Concurrent Access Protocol Kind' enumerators. + * + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Concurrent Access Protocol Kind' literal with the specified literal value. + * + * + * @generated + */ + public static ConcurrentAccessProtocolKind get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + ConcurrentAccessProtocolKind result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Concurrent Access Protocol Kind' literal with the specified name. + * + * + * @generated + */ + public static ConcurrentAccessProtocolKind getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + ConcurrentAccessProtocolKind result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Concurrent Access Protocol Kind' literal with the specified integer value. + * + * + * @generated + */ + public static ConcurrentAccessProtocolKind get(int value) { + switch (value) { + case PIP_VALUE: return PIP; + case PCP_VALUE: return PCP; + case NO_PREEMPTION_VALUE: return NO_PREEMPTION; + 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 ConcurrentAccessProtocolKind(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; + } + +} //ConcurrentAccessProtocolKind diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/MessageComResource.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/MessageComResource.java new file mode 100644 index 00000000000..4d24aac1ec0 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/MessageComResource.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.MARTE_DesignModel.SRM.SW_Interaction; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.uml2.uml.BehavioralFeature; +import org.eclipse.uml2.uml.TypedElement; + +/** + * + * A representation of the model object 'Message Com Resource'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.MessageComResource#isIsFixedMessageSize Is Fixed Message Size}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.MessageComResource#getMechanism Mechanism}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.MessageComResource#getMessageSizeElements Message Size Elements}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.MessageComResource#getMessageQueueCapacityElements Message Queue Capacity Elements}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.MessageComResource#getMessageQueuePolicy Message Queue Policy}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.MessageComResource#getSendServices Send Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.MessageComResource#getReceiveServices Receive Services}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage#getMessageComResource() + * @model + * @generated + */ +public interface MessageComResource extends SwCommunicationResource { + /** + * Returns the value of the 'Is Fixed Message Size' attribute. + * + *

+ * If the meaning of the 'Is Fixed Message Size' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Is Fixed Message Size' attribute. + * @see #setIsFixedMessageSize(boolean) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage#getMessageComResource_IsFixedMessageSize() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.Boolean" ordered="false" + * @generated + */ + boolean isIsFixedMessageSize(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.MessageComResource#isIsFixedMessageSize Is Fixed Message Size}' attribute. + * + * + * @param value the new value of the 'Is Fixed Message Size' attribute. + * @see #isIsFixedMessageSize() + * @generated + */ + void setIsFixedMessageSize(boolean value); + + /** + * Returns the value of the 'Mechanism' attribute. + * The literals are from the enumeration {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.MessageResourceKind}. + * + *

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

+ * + * @return the value of the 'Mechanism' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.MessageResourceKind + * @see #setMechanism(MessageResourceKind) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage#getMessageComResource_Mechanism() + * @model unique="false" ordered="false" + * @generated + */ + MessageResourceKind getMechanism(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.MessageComResource#getMechanism Mechanism}' attribute. + * + * + * @param value the new value of the 'Mechanism' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.MessageResourceKind + * @see #getMechanism() + * @generated + */ + void setMechanism(MessageResourceKind value); + + /** + * Returns the value of the 'Message Size Elements' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.TypedElement}. + * + *

+ * If the meaning of the 'Message Size Elements' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Message Size Elements' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage#getMessageComResource_MessageSizeElements() + * @model ordered="false" + * @generated + */ + EList getMessageSizeElements(); + + /** + * Returns the value of the 'Message Queue Capacity Elements' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.TypedElement}. + * + *

+ * If the meaning of the 'Message Queue Capacity Elements' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Message Queue Capacity Elements' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage#getMessageComResource_MessageQueueCapacityElements() + * @model ordered="false" + * @generated + */ + EList getMessageQueueCapacityElements(); + + /** + * Returns the value of the 'Message Queue Policy' attribute. + * The literals are from the enumeration {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.QueuePolicyKind}. + * + *

+ * If the meaning of the 'Message Queue Policy' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Message Queue Policy' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.QueuePolicyKind + * @see #setMessageQueuePolicy(QueuePolicyKind) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage#getMessageComResource_MessageQueuePolicy() + * @model unique="false" ordered="false" + * @generated + */ + QueuePolicyKind getMessageQueuePolicy(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.MessageComResource#getMessageQueuePolicy Message Queue Policy}' attribute. + * + * + * @param value the new value of the 'Message Queue Policy' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.QueuePolicyKind + * @see #getMessageQueuePolicy() + * @generated + */ + void setMessageQueuePolicy(QueuePolicyKind value); + + /** + * Returns the value of the 'Send Services' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.BehavioralFeature}. + * + *

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

+ * + * @return the value of the 'Send Services' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage#getMessageComResource_SendServices() + * @model ordered="false" + * @generated + */ + EList getSendServices(); + + /** + * Returns the value of the 'Receive Services' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.BehavioralFeature}. + * + *

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

+ * + * @return the value of the 'Receive Services' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage#getMessageComResource_ReceiveServices() + * @model ordered="false" + * @generated + */ + EList getReceiveServices(); + +} // MessageComResource diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/MessageResourceKind.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/MessageResourceKind.java new file mode 100644 index 00000000000..32bc37ddbd4 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/MessageResourceKind.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.MARTE_DesignModel.SRM.SW_Interaction; + +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 'Message Resource Kind', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage#getMessageResourceKind() + * @model + * @generated + */ +public enum MessageResourceKind implements Enumerator { + /** + * The 'Message Queue' literal object. + * + * + * @see #MESSAGE_QUEUE_VALUE + * @generated + * @ordered + */ + MESSAGE_QUEUE(0, "MessageQueue", "MessageQueue"), + + /** + * The 'Pipe' literal object. + * + * + * @see #PIPE_VALUE + * @generated + * @ordered + */ + PIPE(1, "Pipe", "Pipe"), + + /** + * The 'Blackboard' literal object. + * + * + * @see #BLACKBOARD_VALUE + * @generated + * @ordered + */ + BLACKBOARD(2, "Blackboard", "Blackboard"), + + /** + * The 'Undef' literal object. + * + * + * @see #UNDEF_VALUE + * @generated + * @ordered + */ + UNDEF(3, "Undef", "Undef"), + + /** + * The 'Other' literal object. + * + * + * @see #OTHER_VALUE + * @generated + * @ordered + */ + OTHER(4, "Other", "Other"); + + /** + * The 'Message Queue' literal value. + * + *

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

+ * + * @see #MESSAGE_QUEUE + * @model name="MessageQueue" + * @generated + * @ordered + */ + public static final int MESSAGE_QUEUE_VALUE = 0; + + /** + * The 'Pipe' literal value. + * + *

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

+ * + * @see #PIPE + * @model name="Pipe" + * @generated + * @ordered + */ + public static final int PIPE_VALUE = 1; + + /** + * The 'Blackboard' literal value. + * + *

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

+ * + * @see #BLACKBOARD + * @model name="Blackboard" + * @generated + * @ordered + */ + public static final int BLACKBOARD_VALUE = 2; + + /** + * 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 = 3; + + /** + * 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 = 4; + + /** + * An array of all the 'Message Resource Kind' enumerators. + * + * + * @generated + */ + private static final MessageResourceKind[] VALUES_ARRAY = + new MessageResourceKind[] { + MESSAGE_QUEUE, + PIPE, + BLACKBOARD, + UNDEF, + OTHER, + }; + + /** + * A public read-only list of all the 'Message Resource Kind' enumerators. + * + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Message Resource Kind' literal with the specified literal value. + * + * + * @generated + */ + public static MessageResourceKind get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + MessageResourceKind result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Message Resource Kind' literal with the specified name. + * + * + * @generated + */ + public static MessageResourceKind getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + MessageResourceKind result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Message Resource Kind' literal with the specified integer value. + * + * + * @generated + */ + public static MessageResourceKind get(int value) { + switch (value) { + case MESSAGE_QUEUE_VALUE: return MESSAGE_QUEUE; + case PIPE_VALUE: return PIPE; + case BLACKBOARD_VALUE: return BLACKBOARD; + 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 MessageResourceKind(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; + } + +} //MessageResourceKind diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/MutualExclusionResourceKind.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/MutualExclusionResourceKind.java new file mode 100644 index 00000000000..24fc5a7132b --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/MutualExclusionResourceKind.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.MARTE_DesignModel.SRM.SW_Interaction; + +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 'Mutual Exclusion Resource Kind', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage#getMutualExclusionResourceKind() + * @model + * @generated + */ +public enum MutualExclusionResourceKind implements Enumerator { + /** + * The 'Boolean Semaphore' literal object. + * + * + * @see #BOOLEAN_SEMAPHORE_VALUE + * @generated + * @ordered + */ + BOOLEAN_SEMAPHORE(0, "BooleanSemaphore", "BooleanSemaphore"), + + /** + * The 'Count Semaphore' literal object. + * + * + * @see #COUNT_SEMAPHORE_VALUE + * @generated + * @ordered + */ + COUNT_SEMAPHORE(1, "CountSemaphore", "CountSemaphore"), + + /** + * The 'Mutex' literal object. + * + * + * @see #MUTEX_VALUE + * @generated + * @ordered + */ + MUTEX(2, "Mutex", "Mutex"), + + /** + * The 'Undef' literal object. + * + * + * @see #UNDEF_VALUE + * @generated + * @ordered + */ + UNDEF(3, "Undef", "Undef"), + + /** + * The 'Other' literal object. + * + * + * @see #OTHER_VALUE + * @generated + * @ordered + */ + OTHER(4, "Other", "Other"); + + /** + * The 'Boolean Semaphore' literal value. + * + *

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

+ * + * @see #BOOLEAN_SEMAPHORE + * @model name="BooleanSemaphore" + * @generated + * @ordered + */ + public static final int BOOLEAN_SEMAPHORE_VALUE = 0; + + /** + * The 'Count Semaphore' literal value. + * + *

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

+ * + * @see #COUNT_SEMAPHORE + * @model name="CountSemaphore" + * @generated + * @ordered + */ + public static final int COUNT_SEMAPHORE_VALUE = 1; + + /** + * The 'Mutex' literal value. + * + *

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

+ * + * @see #MUTEX + * @model name="Mutex" + * @generated + * @ordered + */ + public static final int MUTEX_VALUE = 2; + + /** + * 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 = 3; + + /** + * 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 = 4; + + /** + * An array of all the 'Mutual Exclusion Resource Kind' enumerators. + * + * + * @generated + */ + private static final MutualExclusionResourceKind[] VALUES_ARRAY = + new MutualExclusionResourceKind[] { + BOOLEAN_SEMAPHORE, + COUNT_SEMAPHORE, + MUTEX, + UNDEF, + OTHER, + }; + + /** + * A public read-only list of all the 'Mutual Exclusion Resource Kind' enumerators. + * + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Mutual Exclusion Resource Kind' literal with the specified literal value. + * + * + * @generated + */ + public static MutualExclusionResourceKind get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + MutualExclusionResourceKind result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Mutual Exclusion Resource Kind' literal with the specified name. + * + * + * @generated + */ + public static MutualExclusionResourceKind getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + MutualExclusionResourceKind result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Mutual Exclusion Resource Kind' literal with the specified integer value. + * + * + * @generated + */ + public static MutualExclusionResourceKind get(int value) { + switch (value) { + case BOOLEAN_SEMAPHORE_VALUE: return BOOLEAN_SEMAPHORE; + case COUNT_SEMAPHORE_VALUE: return COUNT_SEMAPHORE; + case MUTEX_VALUE: return MUTEX; + 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 MutualExclusionResourceKind(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; + } + +} //MutualExclusionResourceKind diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/NotificationKind.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/NotificationKind.java new file mode 100644 index 00000000000..4effeb719e5 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/NotificationKind.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.MARTE_DesignModel.SRM.SW_Interaction; + +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 'Notification Kind', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage#getNotificationKind() + * @model + * @generated + */ +public enum NotificationKind implements Enumerator { + /** + * The 'Memorized' literal object. + * + * + * @see #MEMORIZED_VALUE + * @generated + * @ordered + */ + MEMORIZED(0, "Memorized", "Memorized"), + + /** + * The 'Bounded' literal object. + * + * + * @see #BOUNDED_VALUE + * @generated + * @ordered + */ + BOUNDED(1, "Bounded", "Bounded"), + + /** + * The 'Memoryless' literal object. + * + * + * @see #MEMORYLESS_VALUE + * @generated + * @ordered + */ + MEMORYLESS(2, "Memoryless", "Memoryless"), + + /** + * The 'Undef' literal object. + * + * + * @see #UNDEF_VALUE + * @generated + * @ordered + */ + UNDEF(3, "Undef", "Undef"), + + /** + * The 'Other' literal object. + * + * + * @see #OTHER_VALUE + * @generated + * @ordered + */ + OTHER(4, "Other", "Other"); + + /** + * The 'Memorized' literal value. + * + *

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

+ * + * @see #MEMORIZED + * @model name="Memorized" + * @generated + * @ordered + */ + public static final int MEMORIZED_VALUE = 0; + + /** + * The 'Bounded' literal value. + * + *

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

+ * + * @see #BOUNDED + * @model name="Bounded" + * @generated + * @ordered + */ + public static final int BOUNDED_VALUE = 1; + + /** + * The 'Memoryless' literal value. + * + *

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

+ * + * @see #MEMORYLESS + * @model name="Memoryless" + * @generated + * @ordered + */ + public static final int MEMORYLESS_VALUE = 2; + + /** + * 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 = 3; + + /** + * 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 = 4; + + /** + * An array of all the 'Notification Kind' enumerators. + * + * + * @generated + */ + private static final NotificationKind[] VALUES_ARRAY = + new NotificationKind[] { + MEMORIZED, + BOUNDED, + MEMORYLESS, + UNDEF, + OTHER, + }; + + /** + * A public read-only list of all the 'Notification Kind' enumerators. + * + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Notification Kind' literal with the specified literal value. + * + * + * @generated + */ + public static NotificationKind get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + NotificationKind result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Notification Kind' literal with the specified name. + * + * + * @generated + */ + public static NotificationKind getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + NotificationKind result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Notification Kind' literal with the specified integer value. + * + * + * @generated + */ + public static NotificationKind get(int value) { + switch (value) { + case MEMORIZED_VALUE: return MEMORIZED; + case BOUNDED_VALUE: return BOUNDED; + case MEMORYLESS_VALUE: return MEMORYLESS; + 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 NotificationKind(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; + } + +} //NotificationKind diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/NotificationResource.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/NotificationResource.java new file mode 100644 index 00000000000..e2fc0bc1e2b --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/NotificationResource.java @@ -0,0 +1,199 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Interaction; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.uml2.uml.BehavioralFeature; +import org.eclipse.uml2.uml.TypedElement; + +/** + * + * A representation of the model object 'Notification Resource'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationResource#getOccurence Occurence}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationResource#getMechanism Mechanism}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationResource#getOccurenceCountElements Occurence Count Elements}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationResource#getMaskElements Mask Elements}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationResource#getFlushServices Flush Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationResource#getSignalServices Signal Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationResource#getWaitServices Wait Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationResource#getClearServices Clear Services}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage#getNotificationResource() + * @model + * @generated + */ +public interface NotificationResource extends SwSynchronizationResource { + /** + * Returns the value of the 'Occurence' attribute. + * The literals are from the enumeration {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationKind}. + * + *

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

+ * + * @return the value of the 'Occurence' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationKind + * @see #setOccurence(NotificationKind) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage#getNotificationResource_Occurence() + * @model unique="false" ordered="false" + * @generated + */ + NotificationKind getOccurence(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationResource#getOccurence Occurence}' attribute. + * + * + * @param value the new value of the 'Occurence' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationKind + * @see #getOccurence() + * @generated + */ + void setOccurence(NotificationKind value); + + /** + * Returns the value of the 'Mechanism' attribute. + * The literals are from the enumeration {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationResourceKind}. + * + *

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

+ * + * @return the value of the 'Mechanism' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationResourceKind + * @see #setMechanism(NotificationResourceKind) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage#getNotificationResource_Mechanism() + * @model unique="false" ordered="false" + * @generated + */ + NotificationResourceKind getMechanism(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationResource#getMechanism Mechanism}' attribute. + * + * + * @param value the new value of the 'Mechanism' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationResourceKind + * @see #getMechanism() + * @generated + */ + void setMechanism(NotificationResourceKind value); + + /** + * Returns the value of the 'Occurence Count Elements' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.TypedElement}. + * + *

+ * If the meaning of the 'Occurence Count Elements' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Occurence Count Elements' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage#getNotificationResource_OccurenceCountElements() + * @model ordered="false" + * @generated + */ + EList getOccurenceCountElements(); + + /** + * Returns the value of the 'Mask Elements' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.TypedElement}. + * + *

+ * If the meaning of the 'Mask Elements' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Mask Elements' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage#getNotificationResource_MaskElements() + * @model ordered="false" + * @generated + */ + EList getMaskElements(); + + /** + * Returns the value of the 'Flush Services' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.BehavioralFeature}. + * + *

+ * If the meaning of the 'Flush Services' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Flush Services' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage#getNotificationResource_FlushServices() + * @model ordered="false" + * @generated + */ + EList getFlushServices(); + + /** + * Returns the value of the 'Signal Services' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.BehavioralFeature}. + * + *

+ * If the meaning of the 'Signal Services' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Signal Services' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage#getNotificationResource_SignalServices() + * @model ordered="false" + * @generated + */ + EList getSignalServices(); + + /** + * Returns the value of the 'Wait Services' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.BehavioralFeature}. + * + *

+ * If the meaning of the 'Wait Services' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Wait Services' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage#getNotificationResource_WaitServices() + * @model ordered="false" + * @generated + */ + EList getWaitServices(); + + /** + * Returns the value of the 'Clear Services' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.BehavioralFeature}. + * + *

+ * If the meaning of the 'Clear Services' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Clear Services' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage#getNotificationResource_ClearServices() + * @model ordered="false" + * @generated + */ + EList getClearServices(); + +} // NotificationResource diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/NotificationResourceKind.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/NotificationResourceKind.java new file mode 100644 index 00000000000..d8932e72d2c --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/NotificationResourceKind.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.MARTE_DesignModel.SRM.SW_Interaction; + +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 'Notification Resource Kind', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage#getNotificationResourceKind() + * @model + * @generated + */ +public enum NotificationResourceKind implements Enumerator { + /** + * The 'Event' literal object. + * + * + * @see #EVENT_VALUE + * @generated + * @ordered + */ + EVENT(0, "Event", "Event"), + + /** + * The 'Barrier' literal object. + * + * + * @see #BARRIER_VALUE + * @generated + * @ordered + */ + BARRIER(1, "Barrier", "Barrier"), + + /** + * 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 'Event' literal value. + * + *

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

+ * + * @see #EVENT + * @model name="Event" + * @generated + * @ordered + */ + public static final int EVENT_VALUE = 0; + + /** + * The 'Barrier' literal value. + * + *

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

+ * + * @see #BARRIER + * @model name="Barrier" + * @generated + * @ordered + */ + public static final int BARRIER_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 'Notification Resource Kind' enumerators. + * + * + * @generated + */ + private static final NotificationResourceKind[] VALUES_ARRAY = + new NotificationResourceKind[] { + EVENT, + BARRIER, + UNDEF, + OTHER, + }; + + /** + * A public read-only list of all the 'Notification Resource Kind' enumerators. + * + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Notification Resource Kind' literal with the specified literal value. + * + * + * @generated + */ + public static NotificationResourceKind get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + NotificationResourceKind result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Notification Resource Kind' literal with the specified name. + * + * + * @generated + */ + public static NotificationResourceKind getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + NotificationResourceKind result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Notification Resource Kind' literal with the specified integer value. + * + * + * @generated + */ + public static NotificationResourceKind get(int value) { + switch (value) { + case EVENT_VALUE: return EVENT; + case BARRIER_VALUE: return BARRIER; + 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 NotificationResourceKind(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; + } + +} //NotificationResourceKind diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/QueuePolicyKind.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/QueuePolicyKind.java new file mode 100644 index 00000000000..7f687c2f410 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/QueuePolicyKind.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.MARTE_DesignModel.SRM.SW_Interaction; + +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 'Queue Policy Kind', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage#getQueuePolicyKind() + * @model + * @generated + */ +public enum QueuePolicyKind implements Enumerator { + /** + * The 'FIFO' literal object. + * + * + * @see #FIFO_VALUE + * @generated + * @ordered + */ + FIFO(0, "FIFO", "FIFO"), + + /** + * The 'LIFO' literal object. + * + * + * @see #LIFO_VALUE + * @generated + * @ordered + */ + LIFO(1, "LIFO", "LIFO"), + + /** + * The 'Priority' literal object. + * + * + * @see #PRIORITY_VALUE + * @generated + * @ordered + */ + PRIORITY(2, "Priority", "Priority"), + + /** + * The 'Undef' literal object. + * + * + * @see #UNDEF_VALUE + * @generated + * @ordered + */ + UNDEF(3, "Undef", "Undef"), + + /** + * The 'Other' literal object. + * + * + * @see #OTHER_VALUE + * @generated + * @ordered + */ + OTHER(4, "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 'LIFO' literal value. + * + *

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

+ * + * @see #LIFO + * @model + * @generated + * @ordered + */ + public static final int LIFO_VALUE = 1; + + /** + * The 'Priority' literal value. + * + *

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

+ * + * @see #PRIORITY + * @model name="Priority" + * @generated + * @ordered + */ + public static final int PRIORITY_VALUE = 2; + + /** + * 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 = 3; + + /** + * 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 = 4; + + /** + * An array of all the 'Queue Policy Kind' enumerators. + * + * + * @generated + */ + private static final QueuePolicyKind[] VALUES_ARRAY = + new QueuePolicyKind[] { + FIFO, + LIFO, + PRIORITY, + UNDEF, + OTHER, + }; + + /** + * A public read-only list of all the 'Queue Policy Kind' enumerators. + * + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Queue Policy Kind' literal with the specified literal value. + * + * + * @generated + */ + public static QueuePolicyKind get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + QueuePolicyKind result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Queue Policy Kind' literal with the specified name. + * + * + * @generated + */ + public static QueuePolicyKind getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + QueuePolicyKind result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Queue Policy Kind' literal with the specified integer value. + * + * + * @generated + */ + public static QueuePolicyKind get(int value) { + switch (value) { + case FIFO_VALUE: return FIFO; + case LIFO_VALUE: return LIFO; + case PRIORITY_VALUE: return PRIORITY; + 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 QueuePolicyKind(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; + } + +} //QueuePolicyKind diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/SW_InteractionFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/SW_InteractionFactory.java new file mode 100644 index 00000000000..98e2430e45b --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/SW_InteractionFactory.java @@ -0,0 +1,80 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Interaction; + +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.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage + * @generated + */ +public interface SW_InteractionFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + SW_InteractionFactory eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SW_InteractionFactoryImpl.init(); + + /** + * Returns a new object of class 'Shared Data Com Resource'. + * + * + * @return a new object of class 'Shared Data Com Resource'. + * @generated + */ + SharedDataComResource createSharedDataComResource(); + + /** + * Returns a new object of class 'Message Com Resource'. + * + * + * @return a new object of class 'Message Com Resource'. + * @generated + */ + MessageComResource createMessageComResource(); + + /** + * Returns a new object of class 'Notification Resource'. + * + * + * @return a new object of class 'Notification Resource'. + * @generated + */ + NotificationResource createNotificationResource(); + + /** + * Returns a new object of class 'Sw Mutual Exclusion Resource'. + * + * + * @return a new object of class 'Sw Mutual Exclusion Resource'. + * @generated + */ + SwMutualExclusionResource createSwMutualExclusionResource(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + SW_InteractionPackage getSW_InteractionPackage(); + +} //SW_InteractionFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/SW_InteractionPackage.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/SW_InteractionPackage.java new file mode 100644 index 00000000000..45f63ab831b --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/SW_InteractionPackage.java @@ -0,0 +1,2628 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Interaction; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SW_ResourceCorePackage; + +/** + * + * 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.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionFactory + * @model kind="package" + * @generated + */ +public interface SW_InteractionPackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "SW_Interaction"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "http://www.eclipse.org/papyrus/SW_Interaction/1"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "SW_Interaction"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + SW_InteractionPackage eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SW_InteractionPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SwInteractionResourceImpl Sw Interaction Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SwInteractionResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SW_InteractionPackageImpl#getSwInteractionResource() + * @generated + */ + int SW_INTERACTION_RESOURCE = 0; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int SW_INTERACTION_RESOURCE__RES_MULT = SW_ResourceCorePackage.SW_RESOURCE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int SW_INTERACTION_RESOURCE__IS_PROTECTED = SW_ResourceCorePackage.SW_RESOURCE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int SW_INTERACTION_RESOURCE__IS_ACTIVE = SW_ResourceCorePackage.SW_RESOURCE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int SW_INTERACTION_RESOURCE__BASE_PROPERTY = SW_ResourceCorePackage.SW_RESOURCE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int SW_INTERACTION_RESOURCE__BASE_INSTANCE_SPECIFICATION = SW_ResourceCorePackage.SW_RESOURCE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int SW_INTERACTION_RESOURCE__BASE_CLASSIFIER = SW_ResourceCorePackage.SW_RESOURCE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int SW_INTERACTION_RESOURCE__BASE_LIFELINE = SW_ResourceCorePackage.SW_RESOURCE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int SW_INTERACTION_RESOURCE__BASE_CONNECTABLE_ELEMENT = SW_ResourceCorePackage.SW_RESOURCE__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Identifier Elements' reference list. + * + * + * @generated + * @ordered + */ + int SW_INTERACTION_RESOURCE__IDENTIFIER_ELEMENTS = SW_ResourceCorePackage.SW_RESOURCE__IDENTIFIER_ELEMENTS; + + /** + * The feature id for the 'State Elements' reference list. + * + * + * @generated + * @ordered + */ + int SW_INTERACTION_RESOURCE__STATE_ELEMENTS = SW_ResourceCorePackage.SW_RESOURCE__STATE_ELEMENTS; + + /** + * The feature id for the 'Memory Size Footprint' reference. + * + * + * @generated + * @ordered + */ + int SW_INTERACTION_RESOURCE__MEMORY_SIZE_FOOTPRINT = SW_ResourceCorePackage.SW_RESOURCE__MEMORY_SIZE_FOOTPRINT; + + /** + * The feature id for the 'Create Services' reference list. + * + * + * @generated + * @ordered + */ + int SW_INTERACTION_RESOURCE__CREATE_SERVICES = SW_ResourceCorePackage.SW_RESOURCE__CREATE_SERVICES; + + /** + * The feature id for the 'Delete Services' reference list. + * + * + * @generated + * @ordered + */ + int SW_INTERACTION_RESOURCE__DELETE_SERVICES = SW_ResourceCorePackage.SW_RESOURCE__DELETE_SERVICES; + + /** + * The feature id for the 'Initialize Services' reference list. + * + * + * @generated + * @ordered + */ + int SW_INTERACTION_RESOURCE__INITIALIZE_SERVICES = SW_ResourceCorePackage.SW_RESOURCE__INITIALIZE_SERVICES; + + /** + * The feature id for the 'Is Intra Memory Partition Interaction' attribute. + * + * + * @generated + * @ordered + */ + int SW_INTERACTION_RESOURCE__IS_INTRA_MEMORY_PARTITION_INTERACTION = SW_ResourceCorePackage.SW_RESOURCE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Waiting Queue Policy' attribute. + * + * + * @generated + * @ordered + */ + int SW_INTERACTION_RESOURCE__WAITING_QUEUE_POLICY = SW_ResourceCorePackage.SW_RESOURCE_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Waiting Queue Capacity' attribute. + * + * + * @generated + * @ordered + */ + int SW_INTERACTION_RESOURCE__WAITING_QUEUE_CAPACITY = SW_ResourceCorePackage.SW_RESOURCE_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Waiting Policy Elements' reference list. + * + * + * @generated + * @ordered + */ + int SW_INTERACTION_RESOURCE__WAITING_POLICY_ELEMENTS = SW_ResourceCorePackage.SW_RESOURCE_FEATURE_COUNT + 3; + + /** + * The number of structural features of the 'Sw Interaction Resource' class. + * + * + * @generated + * @ordered + */ + int SW_INTERACTION_RESOURCE_FEATURE_COUNT = SW_ResourceCorePackage.SW_RESOURCE_FEATURE_COUNT + 4; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SwCommunicationResourceImpl Sw Communication Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SwCommunicationResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SW_InteractionPackageImpl#getSwCommunicationResource() + * @generated + */ + int SW_COMMUNICATION_RESOURCE = 1; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int SW_COMMUNICATION_RESOURCE__RES_MULT = SW_INTERACTION_RESOURCE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int SW_COMMUNICATION_RESOURCE__IS_PROTECTED = SW_INTERACTION_RESOURCE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int SW_COMMUNICATION_RESOURCE__IS_ACTIVE = SW_INTERACTION_RESOURCE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int SW_COMMUNICATION_RESOURCE__BASE_PROPERTY = SW_INTERACTION_RESOURCE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int SW_COMMUNICATION_RESOURCE__BASE_INSTANCE_SPECIFICATION = SW_INTERACTION_RESOURCE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int SW_COMMUNICATION_RESOURCE__BASE_CLASSIFIER = SW_INTERACTION_RESOURCE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int SW_COMMUNICATION_RESOURCE__BASE_LIFELINE = SW_INTERACTION_RESOURCE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int SW_COMMUNICATION_RESOURCE__BASE_CONNECTABLE_ELEMENT = SW_INTERACTION_RESOURCE__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Identifier Elements' reference list. + * + * + * @generated + * @ordered + */ + int SW_COMMUNICATION_RESOURCE__IDENTIFIER_ELEMENTS = SW_INTERACTION_RESOURCE__IDENTIFIER_ELEMENTS; + + /** + * The feature id for the 'State Elements' reference list. + * + * + * @generated + * @ordered + */ + int SW_COMMUNICATION_RESOURCE__STATE_ELEMENTS = SW_INTERACTION_RESOURCE__STATE_ELEMENTS; + + /** + * The feature id for the 'Memory Size Footprint' reference. + * + * + * @generated + * @ordered + */ + int SW_COMMUNICATION_RESOURCE__MEMORY_SIZE_FOOTPRINT = SW_INTERACTION_RESOURCE__MEMORY_SIZE_FOOTPRINT; + + /** + * The feature id for the 'Create Services' reference list. + * + * + * @generated + * @ordered + */ + int SW_COMMUNICATION_RESOURCE__CREATE_SERVICES = SW_INTERACTION_RESOURCE__CREATE_SERVICES; + + /** + * The feature id for the 'Delete Services' reference list. + * + * + * @generated + * @ordered + */ + int SW_COMMUNICATION_RESOURCE__DELETE_SERVICES = SW_INTERACTION_RESOURCE__DELETE_SERVICES; + + /** + * The feature id for the 'Initialize Services' reference list. + * + * + * @generated + * @ordered + */ + int SW_COMMUNICATION_RESOURCE__INITIALIZE_SERVICES = SW_INTERACTION_RESOURCE__INITIALIZE_SERVICES; + + /** + * The feature id for the 'Is Intra Memory Partition Interaction' attribute. + * + * + * @generated + * @ordered + */ + int SW_COMMUNICATION_RESOURCE__IS_INTRA_MEMORY_PARTITION_INTERACTION = SW_INTERACTION_RESOURCE__IS_INTRA_MEMORY_PARTITION_INTERACTION; + + /** + * The feature id for the 'Waiting Queue Policy' attribute. + * + * + * @generated + * @ordered + */ + int SW_COMMUNICATION_RESOURCE__WAITING_QUEUE_POLICY = SW_INTERACTION_RESOURCE__WAITING_QUEUE_POLICY; + + /** + * The feature id for the 'Waiting Queue Capacity' attribute. + * + * + * @generated + * @ordered + */ + int SW_COMMUNICATION_RESOURCE__WAITING_QUEUE_CAPACITY = SW_INTERACTION_RESOURCE__WAITING_QUEUE_CAPACITY; + + /** + * The feature id for the 'Waiting Policy Elements' reference list. + * + * + * @generated + * @ordered + */ + int SW_COMMUNICATION_RESOURCE__WAITING_POLICY_ELEMENTS = SW_INTERACTION_RESOURCE__WAITING_POLICY_ELEMENTS; + + /** + * The feature id for the 'Speed Factor' attribute. + * + * + * @generated + * @ordered + */ + int SW_COMMUNICATION_RESOURCE__SPEED_FACTOR = SW_INTERACTION_RESOURCE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Main Scheduler' reference. + * + * + * @generated + * @ordered + */ + int SW_COMMUNICATION_RESOURCE__MAIN_SCHEDULER = SW_INTERACTION_RESOURCE_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Element Size' attribute. + * + * + * @generated + * @ordered + */ + int SW_COMMUNICATION_RESOURCE__ELEMENT_SIZE = SW_INTERACTION_RESOURCE_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Base Connector' reference. + * + * + * @generated + * @ordered + */ + int SW_COMMUNICATION_RESOURCE__BASE_CONNECTOR = SW_INTERACTION_RESOURCE_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Transm Mode' attribute. + * + * + * @generated + * @ordered + */ + int SW_COMMUNICATION_RESOURCE__TRANSM_MODE = SW_INTERACTION_RESOURCE_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Block T' attribute list. + * + * + * @generated + * @ordered + */ + int SW_COMMUNICATION_RESOURCE__BLOCK_T = SW_INTERACTION_RESOURCE_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Packet T' attribute list. + * + * + * @generated + * @ordered + */ + int SW_COMMUNICATION_RESOURCE__PACKET_T = SW_INTERACTION_RESOURCE_FEATURE_COUNT + 6; + + /** + * The feature id for the 'Capacity' attribute list. + * + * + * @generated + * @ordered + */ + int SW_COMMUNICATION_RESOURCE__CAPACITY = SW_INTERACTION_RESOURCE_FEATURE_COUNT + 7; + + /** + * The number of structural features of the 'Sw Communication Resource' class. + * + * + * @generated + * @ordered + */ + int SW_COMMUNICATION_RESOURCE_FEATURE_COUNT = SW_INTERACTION_RESOURCE_FEATURE_COUNT + 8; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SwSynchronizationResourceImpl Sw Synchronization Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SwSynchronizationResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SW_InteractionPackageImpl#getSwSynchronizationResource() + * @generated + */ + int SW_SYNCHRONIZATION_RESOURCE = 2; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int SW_SYNCHRONIZATION_RESOURCE__RES_MULT = SW_INTERACTION_RESOURCE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int SW_SYNCHRONIZATION_RESOURCE__IS_PROTECTED = SW_INTERACTION_RESOURCE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int SW_SYNCHRONIZATION_RESOURCE__IS_ACTIVE = SW_INTERACTION_RESOURCE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int SW_SYNCHRONIZATION_RESOURCE__BASE_PROPERTY = SW_INTERACTION_RESOURCE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int SW_SYNCHRONIZATION_RESOURCE__BASE_INSTANCE_SPECIFICATION = SW_INTERACTION_RESOURCE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int SW_SYNCHRONIZATION_RESOURCE__BASE_CLASSIFIER = SW_INTERACTION_RESOURCE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int SW_SYNCHRONIZATION_RESOURCE__BASE_LIFELINE = SW_INTERACTION_RESOURCE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int SW_SYNCHRONIZATION_RESOURCE__BASE_CONNECTABLE_ELEMENT = SW_INTERACTION_RESOURCE__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Identifier Elements' reference list. + * + * + * @generated + * @ordered + */ + int SW_SYNCHRONIZATION_RESOURCE__IDENTIFIER_ELEMENTS = SW_INTERACTION_RESOURCE__IDENTIFIER_ELEMENTS; + + /** + * The feature id for the 'State Elements' reference list. + * + * + * @generated + * @ordered + */ + int SW_SYNCHRONIZATION_RESOURCE__STATE_ELEMENTS = SW_INTERACTION_RESOURCE__STATE_ELEMENTS; + + /** + * The feature id for the 'Memory Size Footprint' reference. + * + * + * @generated + * @ordered + */ + int SW_SYNCHRONIZATION_RESOURCE__MEMORY_SIZE_FOOTPRINT = SW_INTERACTION_RESOURCE__MEMORY_SIZE_FOOTPRINT; + + /** + * The feature id for the 'Create Services' reference list. + * + * + * @generated + * @ordered + */ + int SW_SYNCHRONIZATION_RESOURCE__CREATE_SERVICES = SW_INTERACTION_RESOURCE__CREATE_SERVICES; + + /** + * The feature id for the 'Delete Services' reference list. + * + * + * @generated + * @ordered + */ + int SW_SYNCHRONIZATION_RESOURCE__DELETE_SERVICES = SW_INTERACTION_RESOURCE__DELETE_SERVICES; + + /** + * The feature id for the 'Initialize Services' reference list. + * + * + * @generated + * @ordered + */ + int SW_SYNCHRONIZATION_RESOURCE__INITIALIZE_SERVICES = SW_INTERACTION_RESOURCE__INITIALIZE_SERVICES; + + /** + * The feature id for the 'Is Intra Memory Partition Interaction' attribute. + * + * + * @generated + * @ordered + */ + int SW_SYNCHRONIZATION_RESOURCE__IS_INTRA_MEMORY_PARTITION_INTERACTION = SW_INTERACTION_RESOURCE__IS_INTRA_MEMORY_PARTITION_INTERACTION; + + /** + * The feature id for the 'Waiting Queue Policy' attribute. + * + * + * @generated + * @ordered + */ + int SW_SYNCHRONIZATION_RESOURCE__WAITING_QUEUE_POLICY = SW_INTERACTION_RESOURCE__WAITING_QUEUE_POLICY; + + /** + * The feature id for the 'Waiting Queue Capacity' attribute. + * + * + * @generated + * @ordered + */ + int SW_SYNCHRONIZATION_RESOURCE__WAITING_QUEUE_CAPACITY = SW_INTERACTION_RESOURCE__WAITING_QUEUE_CAPACITY; + + /** + * The feature id for the 'Waiting Policy Elements' reference list. + * + * + * @generated + * @ordered + */ + int SW_SYNCHRONIZATION_RESOURCE__WAITING_POLICY_ELEMENTS = SW_INTERACTION_RESOURCE__WAITING_POLICY_ELEMENTS; + + /** + * The number of structural features of the 'Sw Synchronization Resource' class. + * + * + * @generated + * @ordered + */ + int SW_SYNCHRONIZATION_RESOURCE_FEATURE_COUNT = SW_INTERACTION_RESOURCE_FEATURE_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SharedDataComResourceImpl Shared Data Com Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SharedDataComResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SW_InteractionPackageImpl#getSharedDataComResource() + * @generated + */ + int SHARED_DATA_COM_RESOURCE = 3; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int SHARED_DATA_COM_RESOURCE__RES_MULT = SW_COMMUNICATION_RESOURCE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int SHARED_DATA_COM_RESOURCE__IS_PROTECTED = SW_COMMUNICATION_RESOURCE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int SHARED_DATA_COM_RESOURCE__IS_ACTIVE = SW_COMMUNICATION_RESOURCE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int SHARED_DATA_COM_RESOURCE__BASE_PROPERTY = SW_COMMUNICATION_RESOURCE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int SHARED_DATA_COM_RESOURCE__BASE_INSTANCE_SPECIFICATION = SW_COMMUNICATION_RESOURCE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int SHARED_DATA_COM_RESOURCE__BASE_CLASSIFIER = SW_COMMUNICATION_RESOURCE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int SHARED_DATA_COM_RESOURCE__BASE_LIFELINE = SW_COMMUNICATION_RESOURCE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int SHARED_DATA_COM_RESOURCE__BASE_CONNECTABLE_ELEMENT = SW_COMMUNICATION_RESOURCE__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Identifier Elements' reference list. + * + * + * @generated + * @ordered + */ + int SHARED_DATA_COM_RESOURCE__IDENTIFIER_ELEMENTS = SW_COMMUNICATION_RESOURCE__IDENTIFIER_ELEMENTS; + + /** + * The feature id for the 'State Elements' reference list. + * + * + * @generated + * @ordered + */ + int SHARED_DATA_COM_RESOURCE__STATE_ELEMENTS = SW_COMMUNICATION_RESOURCE__STATE_ELEMENTS; + + /** + * The feature id for the 'Memory Size Footprint' reference. + * + * + * @generated + * @ordered + */ + int SHARED_DATA_COM_RESOURCE__MEMORY_SIZE_FOOTPRINT = SW_COMMUNICATION_RESOURCE__MEMORY_SIZE_FOOTPRINT; + + /** + * The feature id for the 'Create Services' reference list. + * + * + * @generated + * @ordered + */ + int SHARED_DATA_COM_RESOURCE__CREATE_SERVICES = SW_COMMUNICATION_RESOURCE__CREATE_SERVICES; + + /** + * The feature id for the 'Delete Services' reference list. + * + * + * @generated + * @ordered + */ + int SHARED_DATA_COM_RESOURCE__DELETE_SERVICES = SW_COMMUNICATION_RESOURCE__DELETE_SERVICES; + + /** + * The feature id for the 'Initialize Services' reference list. + * + * + * @generated + * @ordered + */ + int SHARED_DATA_COM_RESOURCE__INITIALIZE_SERVICES = SW_COMMUNICATION_RESOURCE__INITIALIZE_SERVICES; + + /** + * The feature id for the 'Is Intra Memory Partition Interaction' attribute. + * + * + * @generated + * @ordered + */ + int SHARED_DATA_COM_RESOURCE__IS_INTRA_MEMORY_PARTITION_INTERACTION = SW_COMMUNICATION_RESOURCE__IS_INTRA_MEMORY_PARTITION_INTERACTION; + + /** + * The feature id for the 'Waiting Queue Policy' attribute. + * + * + * @generated + * @ordered + */ + int SHARED_DATA_COM_RESOURCE__WAITING_QUEUE_POLICY = SW_COMMUNICATION_RESOURCE__WAITING_QUEUE_POLICY; + + /** + * The feature id for the 'Waiting Queue Capacity' attribute. + * + * + * @generated + * @ordered + */ + int SHARED_DATA_COM_RESOURCE__WAITING_QUEUE_CAPACITY = SW_COMMUNICATION_RESOURCE__WAITING_QUEUE_CAPACITY; + + /** + * The feature id for the 'Waiting Policy Elements' reference list. + * + * + * @generated + * @ordered + */ + int SHARED_DATA_COM_RESOURCE__WAITING_POLICY_ELEMENTS = SW_COMMUNICATION_RESOURCE__WAITING_POLICY_ELEMENTS; + + /** + * The feature id for the 'Speed Factor' attribute. + * + * + * @generated + * @ordered + */ + int SHARED_DATA_COM_RESOURCE__SPEED_FACTOR = SW_COMMUNICATION_RESOURCE__SPEED_FACTOR; + + /** + * The feature id for the 'Main Scheduler' reference. + * + * + * @generated + * @ordered + */ + int SHARED_DATA_COM_RESOURCE__MAIN_SCHEDULER = SW_COMMUNICATION_RESOURCE__MAIN_SCHEDULER; + + /** + * The feature id for the 'Element Size' attribute. + * + * + * @generated + * @ordered + */ + int SHARED_DATA_COM_RESOURCE__ELEMENT_SIZE = SW_COMMUNICATION_RESOURCE__ELEMENT_SIZE; + + /** + * The feature id for the 'Base Connector' reference. + * + * + * @generated + * @ordered + */ + int SHARED_DATA_COM_RESOURCE__BASE_CONNECTOR = SW_COMMUNICATION_RESOURCE__BASE_CONNECTOR; + + /** + * The feature id for the 'Transm Mode' attribute. + * + * + * @generated + * @ordered + */ + int SHARED_DATA_COM_RESOURCE__TRANSM_MODE = SW_COMMUNICATION_RESOURCE__TRANSM_MODE; + + /** + * The feature id for the 'Block T' attribute list. + * + * + * @generated + * @ordered + */ + int SHARED_DATA_COM_RESOURCE__BLOCK_T = SW_COMMUNICATION_RESOURCE__BLOCK_T; + + /** + * The feature id for the 'Packet T' attribute list. + * + * + * @generated + * @ordered + */ + int SHARED_DATA_COM_RESOURCE__PACKET_T = SW_COMMUNICATION_RESOURCE__PACKET_T; + + /** + * The feature id for the 'Capacity' attribute list. + * + * + * @generated + * @ordered + */ + int SHARED_DATA_COM_RESOURCE__CAPACITY = SW_COMMUNICATION_RESOURCE__CAPACITY; + + /** + * The feature id for the 'Read Services' reference list. + * + * + * @generated + * @ordered + */ + int SHARED_DATA_COM_RESOURCE__READ_SERVICES = SW_COMMUNICATION_RESOURCE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Write Services' reference list. + * + * + * @generated + * @ordered + */ + int SHARED_DATA_COM_RESOURCE__WRITE_SERVICES = SW_COMMUNICATION_RESOURCE_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Shared Data Com Resource' class. + * + * + * @generated + * @ordered + */ + int SHARED_DATA_COM_RESOURCE_FEATURE_COUNT = SW_COMMUNICATION_RESOURCE_FEATURE_COUNT + 2; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.MessageComResourceImpl Message Com Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.MessageComResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SW_InteractionPackageImpl#getMessageComResource() + * @generated + */ + int MESSAGE_COM_RESOURCE = 4; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int MESSAGE_COM_RESOURCE__RES_MULT = SW_COMMUNICATION_RESOURCE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int MESSAGE_COM_RESOURCE__IS_PROTECTED = SW_COMMUNICATION_RESOURCE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int MESSAGE_COM_RESOURCE__IS_ACTIVE = SW_COMMUNICATION_RESOURCE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int MESSAGE_COM_RESOURCE__BASE_PROPERTY = SW_COMMUNICATION_RESOURCE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int MESSAGE_COM_RESOURCE__BASE_INSTANCE_SPECIFICATION = SW_COMMUNICATION_RESOURCE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int MESSAGE_COM_RESOURCE__BASE_CLASSIFIER = SW_COMMUNICATION_RESOURCE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int MESSAGE_COM_RESOURCE__BASE_LIFELINE = SW_COMMUNICATION_RESOURCE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int MESSAGE_COM_RESOURCE__BASE_CONNECTABLE_ELEMENT = SW_COMMUNICATION_RESOURCE__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Identifier Elements' reference list. + * + * + * @generated + * @ordered + */ + int MESSAGE_COM_RESOURCE__IDENTIFIER_ELEMENTS = SW_COMMUNICATION_RESOURCE__IDENTIFIER_ELEMENTS; + + /** + * The feature id for the 'State Elements' reference list. + * + * + * @generated + * @ordered + */ + int MESSAGE_COM_RESOURCE__STATE_ELEMENTS = SW_COMMUNICATION_RESOURCE__STATE_ELEMENTS; + + /** + * The feature id for the 'Memory Size Footprint' reference. + * + * + * @generated + * @ordered + */ + int MESSAGE_COM_RESOURCE__MEMORY_SIZE_FOOTPRINT = SW_COMMUNICATION_RESOURCE__MEMORY_SIZE_FOOTPRINT; + + /** + * The feature id for the 'Create Services' reference list. + * + * + * @generated + * @ordered + */ + int MESSAGE_COM_RESOURCE__CREATE_SERVICES = SW_COMMUNICATION_RESOURCE__CREATE_SERVICES; + + /** + * The feature id for the 'Delete Services' reference list. + * + * + * @generated + * @ordered + */ + int MESSAGE_COM_RESOURCE__DELETE_SERVICES = SW_COMMUNICATION_RESOURCE__DELETE_SERVICES; + + /** + * The feature id for the 'Initialize Services' reference list. + * + * + * @generated + * @ordered + */ + int MESSAGE_COM_RESOURCE__INITIALIZE_SERVICES = SW_COMMUNICATION_RESOURCE__INITIALIZE_SERVICES; + + /** + * The feature id for the 'Is Intra Memory Partition Interaction' attribute. + * + * + * @generated + * @ordered + */ + int MESSAGE_COM_RESOURCE__IS_INTRA_MEMORY_PARTITION_INTERACTION = SW_COMMUNICATION_RESOURCE__IS_INTRA_MEMORY_PARTITION_INTERACTION; + + /** + * The feature id for the 'Waiting Queue Policy' attribute. + * + * + * @generated + * @ordered + */ + int MESSAGE_COM_RESOURCE__WAITING_QUEUE_POLICY = SW_COMMUNICATION_RESOURCE__WAITING_QUEUE_POLICY; + + /** + * The feature id for the 'Waiting Queue Capacity' attribute. + * + * + * @generated + * @ordered + */ + int MESSAGE_COM_RESOURCE__WAITING_QUEUE_CAPACITY = SW_COMMUNICATION_RESOURCE__WAITING_QUEUE_CAPACITY; + + /** + * The feature id for the 'Waiting Policy Elements' reference list. + * + * + * @generated + * @ordered + */ + int MESSAGE_COM_RESOURCE__WAITING_POLICY_ELEMENTS = SW_COMMUNICATION_RESOURCE__WAITING_POLICY_ELEMENTS; + + /** + * The feature id for the 'Speed Factor' attribute. + * + * + * @generated + * @ordered + */ + int MESSAGE_COM_RESOURCE__SPEED_FACTOR = SW_COMMUNICATION_RESOURCE__SPEED_FACTOR; + + /** + * The feature id for the 'Main Scheduler' reference. + * + * + * @generated + * @ordered + */ + int MESSAGE_COM_RESOURCE__MAIN_SCHEDULER = SW_COMMUNICATION_RESOURCE__MAIN_SCHEDULER; + + /** + * The feature id for the 'Element Size' attribute. + * + * + * @generated + * @ordered + */ + int MESSAGE_COM_RESOURCE__ELEMENT_SIZE = SW_COMMUNICATION_RESOURCE__ELEMENT_SIZE; + + /** + * The feature id for the 'Base Connector' reference. + * + * + * @generated + * @ordered + */ + int MESSAGE_COM_RESOURCE__BASE_CONNECTOR = SW_COMMUNICATION_RESOURCE__BASE_CONNECTOR; + + /** + * The feature id for the 'Transm Mode' attribute. + * + * + * @generated + * @ordered + */ + int MESSAGE_COM_RESOURCE__TRANSM_MODE = SW_COMMUNICATION_RESOURCE__TRANSM_MODE; + + /** + * The feature id for the 'Block T' attribute list. + * + * + * @generated + * @ordered + */ + int MESSAGE_COM_RESOURCE__BLOCK_T = SW_COMMUNICATION_RESOURCE__BLOCK_T; + + /** + * The feature id for the 'Packet T' attribute list. + * + * + * @generated + * @ordered + */ + int MESSAGE_COM_RESOURCE__PACKET_T = SW_COMMUNICATION_RESOURCE__PACKET_T; + + /** + * The feature id for the 'Capacity' attribute list. + * + * + * @generated + * @ordered + */ + int MESSAGE_COM_RESOURCE__CAPACITY = SW_COMMUNICATION_RESOURCE__CAPACITY; + + /** + * The feature id for the 'Is Fixed Message Size' attribute. + * + * + * @generated + * @ordered + */ + int MESSAGE_COM_RESOURCE__IS_FIXED_MESSAGE_SIZE = SW_COMMUNICATION_RESOURCE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Mechanism' attribute. + * + * + * @generated + * @ordered + */ + int MESSAGE_COM_RESOURCE__MECHANISM = SW_COMMUNICATION_RESOURCE_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Message Size Elements' reference list. + * + * + * @generated + * @ordered + */ + int MESSAGE_COM_RESOURCE__MESSAGE_SIZE_ELEMENTS = SW_COMMUNICATION_RESOURCE_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Message Queue Capacity Elements' reference list. + * + * + * @generated + * @ordered + */ + int MESSAGE_COM_RESOURCE__MESSAGE_QUEUE_CAPACITY_ELEMENTS = SW_COMMUNICATION_RESOURCE_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Message Queue Policy' attribute. + * + * + * @generated + * @ordered + */ + int MESSAGE_COM_RESOURCE__MESSAGE_QUEUE_POLICY = SW_COMMUNICATION_RESOURCE_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Send Services' reference list. + * + * + * @generated + * @ordered + */ + int MESSAGE_COM_RESOURCE__SEND_SERVICES = SW_COMMUNICATION_RESOURCE_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Receive Services' reference list. + * + * + * @generated + * @ordered + */ + int MESSAGE_COM_RESOURCE__RECEIVE_SERVICES = SW_COMMUNICATION_RESOURCE_FEATURE_COUNT + 6; + + /** + * The number of structural features of the 'Message Com Resource' class. + * + * + * @generated + * @ordered + */ + int MESSAGE_COM_RESOURCE_FEATURE_COUNT = SW_COMMUNICATION_RESOURCE_FEATURE_COUNT + 7; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.NotificationResourceImpl Notification Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.NotificationResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SW_InteractionPackageImpl#getNotificationResource() + * @generated + */ + int NOTIFICATION_RESOURCE = 5; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int NOTIFICATION_RESOURCE__RES_MULT = SW_SYNCHRONIZATION_RESOURCE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int NOTIFICATION_RESOURCE__IS_PROTECTED = SW_SYNCHRONIZATION_RESOURCE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int NOTIFICATION_RESOURCE__IS_ACTIVE = SW_SYNCHRONIZATION_RESOURCE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int NOTIFICATION_RESOURCE__BASE_PROPERTY = SW_SYNCHRONIZATION_RESOURCE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int NOTIFICATION_RESOURCE__BASE_INSTANCE_SPECIFICATION = SW_SYNCHRONIZATION_RESOURCE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int NOTIFICATION_RESOURCE__BASE_CLASSIFIER = SW_SYNCHRONIZATION_RESOURCE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int NOTIFICATION_RESOURCE__BASE_LIFELINE = SW_SYNCHRONIZATION_RESOURCE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int NOTIFICATION_RESOURCE__BASE_CONNECTABLE_ELEMENT = SW_SYNCHRONIZATION_RESOURCE__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Identifier Elements' reference list. + * + * + * @generated + * @ordered + */ + int NOTIFICATION_RESOURCE__IDENTIFIER_ELEMENTS = SW_SYNCHRONIZATION_RESOURCE__IDENTIFIER_ELEMENTS; + + /** + * The feature id for the 'State Elements' reference list. + * + * + * @generated + * @ordered + */ + int NOTIFICATION_RESOURCE__STATE_ELEMENTS = SW_SYNCHRONIZATION_RESOURCE__STATE_ELEMENTS; + + /** + * The feature id for the 'Memory Size Footprint' reference. + * + * + * @generated + * @ordered + */ + int NOTIFICATION_RESOURCE__MEMORY_SIZE_FOOTPRINT = SW_SYNCHRONIZATION_RESOURCE__MEMORY_SIZE_FOOTPRINT; + + /** + * The feature id for the 'Create Services' reference list. + * + * + * @generated + * @ordered + */ + int NOTIFICATION_RESOURCE__CREATE_SERVICES = SW_SYNCHRONIZATION_RESOURCE__CREATE_SERVICES; + + /** + * The feature id for the 'Delete Services' reference list. + * + * + * @generated + * @ordered + */ + int NOTIFICATION_RESOURCE__DELETE_SERVICES = SW_SYNCHRONIZATION_RESOURCE__DELETE_SERVICES; + + /** + * The feature id for the 'Initialize Services' reference list. + * + * + * @generated + * @ordered + */ + int NOTIFICATION_RESOURCE__INITIALIZE_SERVICES = SW_SYNCHRONIZATION_RESOURCE__INITIALIZE_SERVICES; + + /** + * The feature id for the 'Is Intra Memory Partition Interaction' attribute. + * + * + * @generated + * @ordered + */ + int NOTIFICATION_RESOURCE__IS_INTRA_MEMORY_PARTITION_INTERACTION = SW_SYNCHRONIZATION_RESOURCE__IS_INTRA_MEMORY_PARTITION_INTERACTION; + + /** + * The feature id for the 'Waiting Queue Policy' attribute. + * + * + * @generated + * @ordered + */ + int NOTIFICATION_RESOURCE__WAITING_QUEUE_POLICY = SW_SYNCHRONIZATION_RESOURCE__WAITING_QUEUE_POLICY; + + /** + * The feature id for the 'Waiting Queue Capacity' attribute. + * + * + * @generated + * @ordered + */ + int NOTIFICATION_RESOURCE__WAITING_QUEUE_CAPACITY = SW_SYNCHRONIZATION_RESOURCE__WAITING_QUEUE_CAPACITY; + + /** + * The feature id for the 'Waiting Policy Elements' reference list. + * + * + * @generated + * @ordered + */ + int NOTIFICATION_RESOURCE__WAITING_POLICY_ELEMENTS = SW_SYNCHRONIZATION_RESOURCE__WAITING_POLICY_ELEMENTS; + + /** + * The feature id for the 'Occurence' attribute. + * + * + * @generated + * @ordered + */ + int NOTIFICATION_RESOURCE__OCCURENCE = SW_SYNCHRONIZATION_RESOURCE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Mechanism' attribute. + * + * + * @generated + * @ordered + */ + int NOTIFICATION_RESOURCE__MECHANISM = SW_SYNCHRONIZATION_RESOURCE_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Occurence Count Elements' reference list. + * + * + * @generated + * @ordered + */ + int NOTIFICATION_RESOURCE__OCCURENCE_COUNT_ELEMENTS = SW_SYNCHRONIZATION_RESOURCE_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Mask Elements' reference list. + * + * + * @generated + * @ordered + */ + int NOTIFICATION_RESOURCE__MASK_ELEMENTS = SW_SYNCHRONIZATION_RESOURCE_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Flush Services' reference list. + * + * + * @generated + * @ordered + */ + int NOTIFICATION_RESOURCE__FLUSH_SERVICES = SW_SYNCHRONIZATION_RESOURCE_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Signal Services' reference list. + * + * + * @generated + * @ordered + */ + int NOTIFICATION_RESOURCE__SIGNAL_SERVICES = SW_SYNCHRONIZATION_RESOURCE_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Wait Services' reference list. + * + * + * @generated + * @ordered + */ + int NOTIFICATION_RESOURCE__WAIT_SERVICES = SW_SYNCHRONIZATION_RESOURCE_FEATURE_COUNT + 6; + + /** + * The feature id for the 'Clear Services' reference list. + * + * + * @generated + * @ordered + */ + int NOTIFICATION_RESOURCE__CLEAR_SERVICES = SW_SYNCHRONIZATION_RESOURCE_FEATURE_COUNT + 7; + + /** + * The number of structural features of the 'Notification Resource' class. + * + * + * @generated + * @ordered + */ + int NOTIFICATION_RESOURCE_FEATURE_COUNT = SW_SYNCHRONIZATION_RESOURCE_FEATURE_COUNT + 8; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SwMutualExclusionResourceImpl Sw Mutual Exclusion Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SwMutualExclusionResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SW_InteractionPackageImpl#getSwMutualExclusionResource() + * @generated + */ + int SW_MUTUAL_EXCLUSION_RESOURCE = 6; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int SW_MUTUAL_EXCLUSION_RESOURCE__RES_MULT = SW_SYNCHRONIZATION_RESOURCE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int SW_MUTUAL_EXCLUSION_RESOURCE__IS_PROTECTED = SW_SYNCHRONIZATION_RESOURCE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int SW_MUTUAL_EXCLUSION_RESOURCE__IS_ACTIVE = SW_SYNCHRONIZATION_RESOURCE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int SW_MUTUAL_EXCLUSION_RESOURCE__BASE_PROPERTY = SW_SYNCHRONIZATION_RESOURCE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int SW_MUTUAL_EXCLUSION_RESOURCE__BASE_INSTANCE_SPECIFICATION = SW_SYNCHRONIZATION_RESOURCE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int SW_MUTUAL_EXCLUSION_RESOURCE__BASE_CLASSIFIER = SW_SYNCHRONIZATION_RESOURCE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int SW_MUTUAL_EXCLUSION_RESOURCE__BASE_LIFELINE = SW_SYNCHRONIZATION_RESOURCE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int SW_MUTUAL_EXCLUSION_RESOURCE__BASE_CONNECTABLE_ELEMENT = SW_SYNCHRONIZATION_RESOURCE__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Identifier Elements' reference list. + * + * + * @generated + * @ordered + */ + int SW_MUTUAL_EXCLUSION_RESOURCE__IDENTIFIER_ELEMENTS = SW_SYNCHRONIZATION_RESOURCE__IDENTIFIER_ELEMENTS; + + /** + * The feature id for the 'State Elements' reference list. + * + * + * @generated + * @ordered + */ + int SW_MUTUAL_EXCLUSION_RESOURCE__STATE_ELEMENTS = SW_SYNCHRONIZATION_RESOURCE__STATE_ELEMENTS; + + /** + * The feature id for the 'Memory Size Footprint' reference. + * + * + * @generated + * @ordered + */ + int SW_MUTUAL_EXCLUSION_RESOURCE__MEMORY_SIZE_FOOTPRINT = SW_SYNCHRONIZATION_RESOURCE__MEMORY_SIZE_FOOTPRINT; + + /** + * The feature id for the 'Create Services' reference list. + * + * + * @generated + * @ordered + */ + int SW_MUTUAL_EXCLUSION_RESOURCE__CREATE_SERVICES = SW_SYNCHRONIZATION_RESOURCE__CREATE_SERVICES; + + /** + * The feature id for the 'Delete Services' reference list. + * + * + * @generated + * @ordered + */ + int SW_MUTUAL_EXCLUSION_RESOURCE__DELETE_SERVICES = SW_SYNCHRONIZATION_RESOURCE__DELETE_SERVICES; + + /** + * The feature id for the 'Initialize Services' reference list. + * + * + * @generated + * @ordered + */ + int SW_MUTUAL_EXCLUSION_RESOURCE__INITIALIZE_SERVICES = SW_SYNCHRONIZATION_RESOURCE__INITIALIZE_SERVICES; + + /** + * The feature id for the 'Is Intra Memory Partition Interaction' attribute. + * + * + * @generated + * @ordered + */ + int SW_MUTUAL_EXCLUSION_RESOURCE__IS_INTRA_MEMORY_PARTITION_INTERACTION = SW_SYNCHRONIZATION_RESOURCE__IS_INTRA_MEMORY_PARTITION_INTERACTION; + + /** + * The feature id for the 'Waiting Queue Policy' attribute. + * + * + * @generated + * @ordered + */ + int SW_MUTUAL_EXCLUSION_RESOURCE__WAITING_QUEUE_POLICY = SW_SYNCHRONIZATION_RESOURCE__WAITING_QUEUE_POLICY; + + /** + * The feature id for the 'Waiting Queue Capacity' attribute. + * + * + * @generated + * @ordered + */ + int SW_MUTUAL_EXCLUSION_RESOURCE__WAITING_QUEUE_CAPACITY = SW_SYNCHRONIZATION_RESOURCE__WAITING_QUEUE_CAPACITY; + + /** + * The feature id for the 'Waiting Policy Elements' reference list. + * + * + * @generated + * @ordered + */ + int SW_MUTUAL_EXCLUSION_RESOURCE__WAITING_POLICY_ELEMENTS = SW_SYNCHRONIZATION_RESOURCE__WAITING_POLICY_ELEMENTS; + + /** + * The feature id for the 'Protect Kind' attribute. + * + * + * @generated + * @ordered + */ + int SW_MUTUAL_EXCLUSION_RESOURCE__PROTECT_KIND = SW_SYNCHRONIZATION_RESOURCE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Ceiling' attribute. + * + * + * @generated + * @ordered + */ + int SW_MUTUAL_EXCLUSION_RESOURCE__CEILING = SW_SYNCHRONIZATION_RESOURCE_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Other Protect Protocol' attribute. + * + * + * @generated + * @ordered + */ + int SW_MUTUAL_EXCLUSION_RESOURCE__OTHER_PROTECT_PROTOCOL = SW_SYNCHRONIZATION_RESOURCE_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Scheduler' reference. + * + * + * @generated + * @ordered + */ + int SW_MUTUAL_EXCLUSION_RESOURCE__SCHEDULER = SW_SYNCHRONIZATION_RESOURCE_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Mechanism' attribute. + * + * + * @generated + * @ordered + */ + int SW_MUTUAL_EXCLUSION_RESOURCE__MECHANISM = SW_SYNCHRONIZATION_RESOURCE_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Concurrent Access Protocol' attribute. + * + * + * @generated + * @ordered + */ + int SW_MUTUAL_EXCLUSION_RESOURCE__CONCURRENT_ACCESS_PROTOCOL = SW_SYNCHRONIZATION_RESOURCE_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Access Token Elements' reference list. + * + * + * @generated + * @ordered + */ + int SW_MUTUAL_EXCLUSION_RESOURCE__ACCESS_TOKEN_ELEMENTS = SW_SYNCHRONIZATION_RESOURCE_FEATURE_COUNT + 6; + + /** + * The feature id for the 'Release Services' reference list. + * + * + * @generated + * @ordered + */ + int SW_MUTUAL_EXCLUSION_RESOURCE__RELEASE_SERVICES = SW_SYNCHRONIZATION_RESOURCE_FEATURE_COUNT + 7; + + /** + * The feature id for the 'Acquire Services' reference list. + * + * + * @generated + * @ordered + */ + int SW_MUTUAL_EXCLUSION_RESOURCE__ACQUIRE_SERVICES = SW_SYNCHRONIZATION_RESOURCE_FEATURE_COUNT + 8; + + /** + * The number of structural features of the 'Sw Mutual Exclusion Resource' class. + * + * + * @generated + * @ordered + */ + int SW_MUTUAL_EXCLUSION_RESOURCE_FEATURE_COUNT = SW_SYNCHRONIZATION_RESOURCE_FEATURE_COUNT + 9; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.QueuePolicyKind Queue Policy Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.QueuePolicyKind + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SW_InteractionPackageImpl#getQueuePolicyKind() + * @generated + */ + int QUEUE_POLICY_KIND = 7; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.MessageResourceKind Message Resource Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.MessageResourceKind + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SW_InteractionPackageImpl#getMessageResourceKind() + * @generated + */ + int MESSAGE_RESOURCE_KIND = 8; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationKind Notification Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationKind + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SW_InteractionPackageImpl#getNotificationKind() + * @generated + */ + int NOTIFICATION_KIND = 9; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationResourceKind Notification Resource Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationResourceKind + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SW_InteractionPackageImpl#getNotificationResourceKind() + * @generated + */ + int NOTIFICATION_RESOURCE_KIND = 10; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.MutualExclusionResourceKind Mutual Exclusion Resource Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.MutualExclusionResourceKind + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SW_InteractionPackageImpl#getMutualExclusionResourceKind() + * @generated + */ + int MUTUAL_EXCLUSION_RESOURCE_KIND = 11; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.ConcurrentAccessProtocolKind Concurrent Access Protocol Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.ConcurrentAccessProtocolKind + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SW_InteractionPackageImpl#getConcurrentAccessProtocolKind() + * @generated + */ + int CONCURRENT_ACCESS_PROTOCOL_KIND = 12; + + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwInteractionResource Sw Interaction Resource}'. + * + * + * @return the meta object for class 'Sw Interaction Resource'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwInteractionResource + * @generated + */ + EClass getSwInteractionResource(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwInteractionResource#isIsIntraMemoryPartitionInteraction Is Intra Memory Partition Interaction}'. + * + * + * @return the meta object for the attribute 'Is Intra Memory Partition Interaction'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwInteractionResource#isIsIntraMemoryPartitionInteraction() + * @see #getSwInteractionResource() + * @generated + */ + EAttribute getSwInteractionResource_IsIntraMemoryPartitionInteraction(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwInteractionResource#getWaitingQueuePolicy Waiting Queue Policy}'. + * + * + * @return the meta object for the attribute 'Waiting Queue Policy'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwInteractionResource#getWaitingQueuePolicy() + * @see #getSwInteractionResource() + * @generated + */ + EAttribute getSwInteractionResource_WaitingQueuePolicy(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwInteractionResource#getWaitingQueueCapacity Waiting Queue Capacity}'. + * + * + * @return the meta object for the attribute 'Waiting Queue Capacity'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwInteractionResource#getWaitingQueueCapacity() + * @see #getSwInteractionResource() + * @generated + */ + EAttribute getSwInteractionResource_WaitingQueueCapacity(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwInteractionResource#getWaitingPolicyElements Waiting Policy Elements}'. + * + * + * @return the meta object for the reference list 'Waiting Policy Elements'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwInteractionResource#getWaitingPolicyElements() + * @see #getSwInteractionResource() + * @generated + */ + EReference getSwInteractionResource_WaitingPolicyElements(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwCommunicationResource Sw Communication Resource}'. + * + * + * @return the meta object for class 'Sw Communication Resource'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwCommunicationResource + * @generated + */ + EClass getSwCommunicationResource(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwSynchronizationResource Sw Synchronization Resource}'. + * + * + * @return the meta object for class 'Sw Synchronization Resource'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwSynchronizationResource + * @generated + */ + EClass getSwSynchronizationResource(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SharedDataComResource Shared Data Com Resource}'. + * + * + * @return the meta object for class 'Shared Data Com Resource'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SharedDataComResource + * @generated + */ + EClass getSharedDataComResource(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SharedDataComResource#getReadServices Read Services}'. + * + * + * @return the meta object for the reference list 'Read Services'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SharedDataComResource#getReadServices() + * @see #getSharedDataComResource() + * @generated + */ + EReference getSharedDataComResource_ReadServices(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SharedDataComResource#getWriteServices Write Services}'. + * + * + * @return the meta object for the reference list 'Write Services'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SharedDataComResource#getWriteServices() + * @see #getSharedDataComResource() + * @generated + */ + EReference getSharedDataComResource_WriteServices(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.MessageComResource Message Com Resource}'. + * + * + * @return the meta object for class 'Message Com Resource'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.MessageComResource + * @generated + */ + EClass getMessageComResource(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.MessageComResource#isIsFixedMessageSize Is Fixed Message Size}'. + * + * + * @return the meta object for the attribute 'Is Fixed Message Size'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.MessageComResource#isIsFixedMessageSize() + * @see #getMessageComResource() + * @generated + */ + EAttribute getMessageComResource_IsFixedMessageSize(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.MessageComResource#getMechanism Mechanism}'. + * + * + * @return the meta object for the attribute 'Mechanism'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.MessageComResource#getMechanism() + * @see #getMessageComResource() + * @generated + */ + EAttribute getMessageComResource_Mechanism(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.MessageComResource#getMessageSizeElements Message Size Elements}'. + * + * + * @return the meta object for the reference list 'Message Size Elements'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.MessageComResource#getMessageSizeElements() + * @see #getMessageComResource() + * @generated + */ + EReference getMessageComResource_MessageSizeElements(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.MessageComResource#getMessageQueueCapacityElements Message Queue Capacity Elements}'. + * + * + * @return the meta object for the reference list 'Message Queue Capacity Elements'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.MessageComResource#getMessageQueueCapacityElements() + * @see #getMessageComResource() + * @generated + */ + EReference getMessageComResource_MessageQueueCapacityElements(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.MessageComResource#getMessageQueuePolicy Message Queue Policy}'. + * + * + * @return the meta object for the attribute 'Message Queue Policy'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.MessageComResource#getMessageQueuePolicy() + * @see #getMessageComResource() + * @generated + */ + EAttribute getMessageComResource_MessageQueuePolicy(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.MessageComResource#getSendServices Send Services}'. + * + * + * @return the meta object for the reference list 'Send Services'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.MessageComResource#getSendServices() + * @see #getMessageComResource() + * @generated + */ + EReference getMessageComResource_SendServices(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.MessageComResource#getReceiveServices Receive Services}'. + * + * + * @return the meta object for the reference list 'Receive Services'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.MessageComResource#getReceiveServices() + * @see #getMessageComResource() + * @generated + */ + EReference getMessageComResource_ReceiveServices(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationResource Notification Resource}'. + * + * + * @return the meta object for class 'Notification Resource'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationResource + * @generated + */ + EClass getNotificationResource(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationResource#getOccurence Occurence}'. + * + * + * @return the meta object for the attribute 'Occurence'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationResource#getOccurence() + * @see #getNotificationResource() + * @generated + */ + EAttribute getNotificationResource_Occurence(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationResource#getMechanism Mechanism}'. + * + * + * @return the meta object for the attribute 'Mechanism'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationResource#getMechanism() + * @see #getNotificationResource() + * @generated + */ + EAttribute getNotificationResource_Mechanism(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationResource#getOccurenceCountElements Occurence Count Elements}'. + * + * + * @return the meta object for the reference list 'Occurence Count Elements'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationResource#getOccurenceCountElements() + * @see #getNotificationResource() + * @generated + */ + EReference getNotificationResource_OccurenceCountElements(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationResource#getMaskElements Mask Elements}'. + * + * + * @return the meta object for the reference list 'Mask Elements'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationResource#getMaskElements() + * @see #getNotificationResource() + * @generated + */ + EReference getNotificationResource_MaskElements(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationResource#getFlushServices Flush Services}'. + * + * + * @return the meta object for the reference list 'Flush Services'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationResource#getFlushServices() + * @see #getNotificationResource() + * @generated + */ + EReference getNotificationResource_FlushServices(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationResource#getSignalServices Signal Services}'. + * + * + * @return the meta object for the reference list 'Signal Services'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationResource#getSignalServices() + * @see #getNotificationResource() + * @generated + */ + EReference getNotificationResource_SignalServices(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationResource#getWaitServices Wait Services}'. + * + * + * @return the meta object for the reference list 'Wait Services'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationResource#getWaitServices() + * @see #getNotificationResource() + * @generated + */ + EReference getNotificationResource_WaitServices(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationResource#getClearServices Clear Services}'. + * + * + * @return the meta object for the reference list 'Clear Services'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationResource#getClearServices() + * @see #getNotificationResource() + * @generated + */ + EReference getNotificationResource_ClearServices(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwMutualExclusionResource Sw Mutual Exclusion Resource}'. + * + * + * @return the meta object for class 'Sw Mutual Exclusion Resource'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwMutualExclusionResource + * @generated + */ + EClass getSwMutualExclusionResource(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwMutualExclusionResource#getMechanism Mechanism}'. + * + * + * @return the meta object for the attribute 'Mechanism'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwMutualExclusionResource#getMechanism() + * @see #getSwMutualExclusionResource() + * @generated + */ + EAttribute getSwMutualExclusionResource_Mechanism(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwMutualExclusionResource#getConcurrentAccessProtocol Concurrent Access Protocol}'. + * + * + * @return the meta object for the attribute 'Concurrent Access Protocol'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwMutualExclusionResource#getConcurrentAccessProtocol() + * @see #getSwMutualExclusionResource() + * @generated + */ + EAttribute getSwMutualExclusionResource_ConcurrentAccessProtocol(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwMutualExclusionResource#getAccessTokenElements Access Token Elements}'. + * + * + * @return the meta object for the reference list 'Access Token Elements'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwMutualExclusionResource#getAccessTokenElements() + * @see #getSwMutualExclusionResource() + * @generated + */ + EReference getSwMutualExclusionResource_AccessTokenElements(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwMutualExclusionResource#getReleaseServices Release Services}'. + * + * + * @return the meta object for the reference list 'Release Services'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwMutualExclusionResource#getReleaseServices() + * @see #getSwMutualExclusionResource() + * @generated + */ + EReference getSwMutualExclusionResource_ReleaseServices(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwMutualExclusionResource#getAcquireServices Acquire Services}'. + * + * + * @return the meta object for the reference list 'Acquire Services'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwMutualExclusionResource#getAcquireServices() + * @see #getSwMutualExclusionResource() + * @generated + */ + EReference getSwMutualExclusionResource_AcquireServices(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.QueuePolicyKind Queue Policy Kind}'. + * + * + * @return the meta object for enum 'Queue Policy Kind'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.QueuePolicyKind + * @generated + */ + EEnum getQueuePolicyKind(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.MessageResourceKind Message Resource Kind}'. + * + * + * @return the meta object for enum 'Message Resource Kind'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.MessageResourceKind + * @generated + */ + EEnum getMessageResourceKind(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationKind Notification Kind}'. + * + * + * @return the meta object for enum 'Notification Kind'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationKind + * @generated + */ + EEnum getNotificationKind(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationResourceKind Notification Resource Kind}'. + * + * + * @return the meta object for enum 'Notification Resource Kind'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationResourceKind + * @generated + */ + EEnum getNotificationResourceKind(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.MutualExclusionResourceKind Mutual Exclusion Resource Kind}'. + * + * + * @return the meta object for enum 'Mutual Exclusion Resource Kind'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.MutualExclusionResourceKind + * @generated + */ + EEnum getMutualExclusionResourceKind(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.ConcurrentAccessProtocolKind Concurrent Access Protocol Kind}'. + * + * + * @return the meta object for enum 'Concurrent Access Protocol Kind'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.ConcurrentAccessProtocolKind + * @generated + */ + EEnum getConcurrentAccessProtocolKind(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + SW_InteractionFactory getSW_InteractionFactory(); + + /** + * + * 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.MARTE_DesignModel.SRM.SW_Interaction.impl.SwInteractionResourceImpl Sw Interaction Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SwInteractionResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SW_InteractionPackageImpl#getSwInteractionResource() + * @generated + */ + EClass SW_INTERACTION_RESOURCE = eINSTANCE.getSwInteractionResource(); + + /** + * The meta object literal for the 'Is Intra Memory Partition Interaction' attribute feature. + * + * + * @generated + */ + EAttribute SW_INTERACTION_RESOURCE__IS_INTRA_MEMORY_PARTITION_INTERACTION = eINSTANCE.getSwInteractionResource_IsIntraMemoryPartitionInteraction(); + + /** + * The meta object literal for the 'Waiting Queue Policy' attribute feature. + * + * + * @generated + */ + EAttribute SW_INTERACTION_RESOURCE__WAITING_QUEUE_POLICY = eINSTANCE.getSwInteractionResource_WaitingQueuePolicy(); + + /** + * The meta object literal for the 'Waiting Queue Capacity' attribute feature. + * + * + * @generated + */ + EAttribute SW_INTERACTION_RESOURCE__WAITING_QUEUE_CAPACITY = eINSTANCE.getSwInteractionResource_WaitingQueueCapacity(); + + /** + * The meta object literal for the 'Waiting Policy Elements' reference list feature. + * + * + * @generated + */ + EReference SW_INTERACTION_RESOURCE__WAITING_POLICY_ELEMENTS = eINSTANCE.getSwInteractionResource_WaitingPolicyElements(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SwCommunicationResourceImpl Sw Communication Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SwCommunicationResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SW_InteractionPackageImpl#getSwCommunicationResource() + * @generated + */ + EClass SW_COMMUNICATION_RESOURCE = eINSTANCE.getSwCommunicationResource(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SwSynchronizationResourceImpl Sw Synchronization Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SwSynchronizationResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SW_InteractionPackageImpl#getSwSynchronizationResource() + * @generated + */ + EClass SW_SYNCHRONIZATION_RESOURCE = eINSTANCE.getSwSynchronizationResource(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SharedDataComResourceImpl Shared Data Com Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SharedDataComResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SW_InteractionPackageImpl#getSharedDataComResource() + * @generated + */ + EClass SHARED_DATA_COM_RESOURCE = eINSTANCE.getSharedDataComResource(); + + /** + * The meta object literal for the 'Read Services' reference list feature. + * + * + * @generated + */ + EReference SHARED_DATA_COM_RESOURCE__READ_SERVICES = eINSTANCE.getSharedDataComResource_ReadServices(); + + /** + * The meta object literal for the 'Write Services' reference list feature. + * + * + * @generated + */ + EReference SHARED_DATA_COM_RESOURCE__WRITE_SERVICES = eINSTANCE.getSharedDataComResource_WriteServices(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.MessageComResourceImpl Message Com Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.MessageComResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SW_InteractionPackageImpl#getMessageComResource() + * @generated + */ + EClass MESSAGE_COM_RESOURCE = eINSTANCE.getMessageComResource(); + + /** + * The meta object literal for the 'Is Fixed Message Size' attribute feature. + * + * + * @generated + */ + EAttribute MESSAGE_COM_RESOURCE__IS_FIXED_MESSAGE_SIZE = eINSTANCE.getMessageComResource_IsFixedMessageSize(); + + /** + * The meta object literal for the 'Mechanism' attribute feature. + * + * + * @generated + */ + EAttribute MESSAGE_COM_RESOURCE__MECHANISM = eINSTANCE.getMessageComResource_Mechanism(); + + /** + * The meta object literal for the 'Message Size Elements' reference list feature. + * + * + * @generated + */ + EReference MESSAGE_COM_RESOURCE__MESSAGE_SIZE_ELEMENTS = eINSTANCE.getMessageComResource_MessageSizeElements(); + + /** + * The meta object literal for the 'Message Queue Capacity Elements' reference list feature. + * + * + * @generated + */ + EReference MESSAGE_COM_RESOURCE__MESSAGE_QUEUE_CAPACITY_ELEMENTS = eINSTANCE.getMessageComResource_MessageQueueCapacityElements(); + + /** + * The meta object literal for the 'Message Queue Policy' attribute feature. + * + * + * @generated + */ + EAttribute MESSAGE_COM_RESOURCE__MESSAGE_QUEUE_POLICY = eINSTANCE.getMessageComResource_MessageQueuePolicy(); + + /** + * The meta object literal for the 'Send Services' reference list feature. + * + * + * @generated + */ + EReference MESSAGE_COM_RESOURCE__SEND_SERVICES = eINSTANCE.getMessageComResource_SendServices(); + + /** + * The meta object literal for the 'Receive Services' reference list feature. + * + * + * @generated + */ + EReference MESSAGE_COM_RESOURCE__RECEIVE_SERVICES = eINSTANCE.getMessageComResource_ReceiveServices(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.NotificationResourceImpl Notification Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.NotificationResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SW_InteractionPackageImpl#getNotificationResource() + * @generated + */ + EClass NOTIFICATION_RESOURCE = eINSTANCE.getNotificationResource(); + + /** + * The meta object literal for the 'Occurence' attribute feature. + * + * + * @generated + */ + EAttribute NOTIFICATION_RESOURCE__OCCURENCE = eINSTANCE.getNotificationResource_Occurence(); + + /** + * The meta object literal for the 'Mechanism' attribute feature. + * + * + * @generated + */ + EAttribute NOTIFICATION_RESOURCE__MECHANISM = eINSTANCE.getNotificationResource_Mechanism(); + + /** + * The meta object literal for the 'Occurence Count Elements' reference list feature. + * + * + * @generated + */ + EReference NOTIFICATION_RESOURCE__OCCURENCE_COUNT_ELEMENTS = eINSTANCE.getNotificationResource_OccurenceCountElements(); + + /** + * The meta object literal for the 'Mask Elements' reference list feature. + * + * + * @generated + */ + EReference NOTIFICATION_RESOURCE__MASK_ELEMENTS = eINSTANCE.getNotificationResource_MaskElements(); + + /** + * The meta object literal for the 'Flush Services' reference list feature. + * + * + * @generated + */ + EReference NOTIFICATION_RESOURCE__FLUSH_SERVICES = eINSTANCE.getNotificationResource_FlushServices(); + + /** + * The meta object literal for the 'Signal Services' reference list feature. + * + * + * @generated + */ + EReference NOTIFICATION_RESOURCE__SIGNAL_SERVICES = eINSTANCE.getNotificationResource_SignalServices(); + + /** + * The meta object literal for the 'Wait Services' reference list feature. + * + * + * @generated + */ + EReference NOTIFICATION_RESOURCE__WAIT_SERVICES = eINSTANCE.getNotificationResource_WaitServices(); + + /** + * The meta object literal for the 'Clear Services' reference list feature. + * + * + * @generated + */ + EReference NOTIFICATION_RESOURCE__CLEAR_SERVICES = eINSTANCE.getNotificationResource_ClearServices(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SwMutualExclusionResourceImpl Sw Mutual Exclusion Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SwMutualExclusionResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SW_InteractionPackageImpl#getSwMutualExclusionResource() + * @generated + */ + EClass SW_MUTUAL_EXCLUSION_RESOURCE = eINSTANCE.getSwMutualExclusionResource(); + + /** + * The meta object literal for the 'Mechanism' attribute feature. + * + * + * @generated + */ + EAttribute SW_MUTUAL_EXCLUSION_RESOURCE__MECHANISM = eINSTANCE.getSwMutualExclusionResource_Mechanism(); + + /** + * The meta object literal for the 'Concurrent Access Protocol' attribute feature. + * + * + * @generated + */ + EAttribute SW_MUTUAL_EXCLUSION_RESOURCE__CONCURRENT_ACCESS_PROTOCOL = eINSTANCE.getSwMutualExclusionResource_ConcurrentAccessProtocol(); + + /** + * The meta object literal for the 'Access Token Elements' reference list feature. + * + * + * @generated + */ + EReference SW_MUTUAL_EXCLUSION_RESOURCE__ACCESS_TOKEN_ELEMENTS = eINSTANCE.getSwMutualExclusionResource_AccessTokenElements(); + + /** + * The meta object literal for the 'Release Services' reference list feature. + * + * + * @generated + */ + EReference SW_MUTUAL_EXCLUSION_RESOURCE__RELEASE_SERVICES = eINSTANCE.getSwMutualExclusionResource_ReleaseServices(); + + /** + * The meta object literal for the 'Acquire Services' reference list feature. + * + * + * @generated + */ + EReference SW_MUTUAL_EXCLUSION_RESOURCE__ACQUIRE_SERVICES = eINSTANCE.getSwMutualExclusionResource_AcquireServices(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.QueuePolicyKind Queue Policy Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.QueuePolicyKind + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SW_InteractionPackageImpl#getQueuePolicyKind() + * @generated + */ + EEnum QUEUE_POLICY_KIND = eINSTANCE.getQueuePolicyKind(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.MessageResourceKind Message Resource Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.MessageResourceKind + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SW_InteractionPackageImpl#getMessageResourceKind() + * @generated + */ + EEnum MESSAGE_RESOURCE_KIND = eINSTANCE.getMessageResourceKind(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationKind Notification Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationKind + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SW_InteractionPackageImpl#getNotificationKind() + * @generated + */ + EEnum NOTIFICATION_KIND = eINSTANCE.getNotificationKind(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationResourceKind Notification Resource Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationResourceKind + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SW_InteractionPackageImpl#getNotificationResourceKind() + * @generated + */ + EEnum NOTIFICATION_RESOURCE_KIND = eINSTANCE.getNotificationResourceKind(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.MutualExclusionResourceKind Mutual Exclusion Resource Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.MutualExclusionResourceKind + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SW_InteractionPackageImpl#getMutualExclusionResourceKind() + * @generated + */ + EEnum MUTUAL_EXCLUSION_RESOURCE_KIND = eINSTANCE.getMutualExclusionResourceKind(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.ConcurrentAccessProtocolKind Concurrent Access Protocol Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.ConcurrentAccessProtocolKind + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SW_InteractionPackageImpl#getConcurrentAccessProtocolKind() + * @generated + */ + EEnum CONCURRENT_ACCESS_PROTOCOL_KIND = eINSTANCE.getConcurrentAccessProtocolKind(); + + } + +} //SW_InteractionPackage diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/SharedDataComResource.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/SharedDataComResource.java new file mode 100644 index 00000000000..35bce2ebb41 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/SharedDataComResource.java @@ -0,0 +1,70 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Interaction; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.uml2.uml.BehavioralFeature; + +/** + * + * A representation of the model object 'Shared Data Com Resource'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SharedDataComResource#getReadServices Read Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SharedDataComResource#getWriteServices Write Services}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage#getSharedDataComResource() + * @model + * @generated + */ +public interface SharedDataComResource extends SwCommunicationResource { + /** + * Returns the value of the 'Read Services' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.BehavioralFeature}. + * + *

+ * If the meaning of the 'Read Services' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Read Services' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage#getSharedDataComResource_ReadServices() + * @model ordered="false" + * @generated + */ + EList getReadServices(); + + /** + * Returns the value of the 'Write Services' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.BehavioralFeature}. + * + *

+ * If the meaning of the 'Write Services' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Write Services' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage#getSharedDataComResource_WriteServices() + * @model ordered="false" + * @generated + */ + EList getWriteServices(); + +} // SharedDataComResource diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/SwCommunicationResource.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/SwCommunicationResource.java new file mode 100644 index 00000000000..ec03c7a214e --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/SwCommunicationResource.java @@ -0,0 +1,29 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Interaction; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationMedia; + +/** + * + * A representation of the model object 'Sw Communication Resource'. + * + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage#getSwCommunicationResource() + * @model abstract="true" + * @generated + */ +public interface SwCommunicationResource extends SwInteractionResource, CommunicationMedia { +} // SwCommunicationResource diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/SwInteractionResource.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/SwInteractionResource.java new file mode 100644 index 00000000000..6394ee38916 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/SwInteractionResource.java @@ -0,0 +1,139 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Interaction; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SwResource; + +import org.eclipse.uml2.uml.TypedElement; + +/** + * + * A representation of the model object 'Sw Interaction Resource'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwInteractionResource#isIsIntraMemoryPartitionInteraction Is Intra Memory Partition Interaction}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwInteractionResource#getWaitingQueuePolicy Waiting Queue Policy}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwInteractionResource#getWaitingQueueCapacity Waiting Queue Capacity}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwInteractionResource#getWaitingPolicyElements Waiting Policy Elements}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage#getSwInteractionResource() + * @model abstract="true" + * @generated + */ +public interface SwInteractionResource extends SwResource { + /** + * Returns the value of the 'Is Intra Memory Partition Interaction' attribute. + * + *

+ * If the meaning of the 'Is Intra Memory Partition Interaction' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Is Intra Memory Partition Interaction' attribute. + * @see #setIsIntraMemoryPartitionInteraction(boolean) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage#getSwInteractionResource_IsIntraMemoryPartitionInteraction() + * @model unique="false" ordered="false" + * @generated + */ + boolean isIsIntraMemoryPartitionInteraction(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwInteractionResource#isIsIntraMemoryPartitionInteraction Is Intra Memory Partition Interaction}' attribute. + * + * + * @param value the new value of the 'Is Intra Memory Partition Interaction' attribute. + * @see #isIsIntraMemoryPartitionInteraction() + * @generated + */ + void setIsIntraMemoryPartitionInteraction(boolean value); + + /** + * Returns the value of the 'Waiting Queue Policy' attribute. + * The literals are from the enumeration {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.QueuePolicyKind}. + * + *

+ * If the meaning of the 'Waiting Queue Policy' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Waiting Queue Policy' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.QueuePolicyKind + * @see #setWaitingQueuePolicy(QueuePolicyKind) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage#getSwInteractionResource_WaitingQueuePolicy() + * @model unique="false" ordered="false" + * @generated + */ + QueuePolicyKind getWaitingQueuePolicy(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwInteractionResource#getWaitingQueuePolicy Waiting Queue Policy}' attribute. + * + * + * @param value the new value of the 'Waiting Queue Policy' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.QueuePolicyKind + * @see #getWaitingQueuePolicy() + * @generated + */ + void setWaitingQueuePolicy(QueuePolicyKind value); + + /** + * Returns the value of the 'Waiting Queue Capacity' attribute. + * + *

+ * If the meaning of the 'Waiting Queue Capacity' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Waiting Queue Capacity' attribute. + * @see #setWaitingQueueCapacity(int) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage#getSwInteractionResource_WaitingQueueCapacity() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.Integer" ordered="false" + * @generated + */ + int getWaitingQueueCapacity(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwInteractionResource#getWaitingQueueCapacity Waiting Queue Capacity}' attribute. + * + * + * @param value the new value of the 'Waiting Queue Capacity' attribute. + * @see #getWaitingQueueCapacity() + * @generated + */ + void setWaitingQueueCapacity(int value); + + /** + * Returns the value of the 'Waiting Policy Elements' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.TypedElement}. + * + *

+ * If the meaning of the 'Waiting Policy Elements' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Waiting Policy Elements' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage#getSwInteractionResource_WaitingPolicyElements() + * @model ordered="false" + * @generated + */ + EList getWaitingPolicyElements(); + +} // SwInteractionResource diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/SwMutualExclusionResource.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/SwMutualExclusionResource.java new file mode 100644 index 00000000000..6a415118b4c --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/SwMutualExclusionResource.java @@ -0,0 +1,150 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Interaction; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.MutualExclusionResource; + +import org.eclipse.uml2.uml.BehavioralFeature; +import org.eclipse.uml2.uml.TypedElement; + +/** + * + * A representation of the model object 'Sw Mutual Exclusion Resource'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwMutualExclusionResource#getMechanism Mechanism}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwMutualExclusionResource#getConcurrentAccessProtocol Concurrent Access Protocol}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwMutualExclusionResource#getAccessTokenElements Access Token Elements}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwMutualExclusionResource#getReleaseServices Release Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwMutualExclusionResource#getAcquireServices Acquire Services}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage#getSwMutualExclusionResource() + * @model + * @generated + */ +public interface SwMutualExclusionResource extends SwSynchronizationResource, MutualExclusionResource { + /** + * Returns the value of the 'Mechanism' attribute. + * The literals are from the enumeration {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.MutualExclusionResourceKind}. + * + *

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

+ * + * @return the value of the 'Mechanism' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.MutualExclusionResourceKind + * @see #setMechanism(MutualExclusionResourceKind) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage#getSwMutualExclusionResource_Mechanism() + * @model unique="false" ordered="false" + * @generated + */ + MutualExclusionResourceKind getMechanism(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwMutualExclusionResource#getMechanism Mechanism}' attribute. + * + * + * @param value the new value of the 'Mechanism' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.MutualExclusionResourceKind + * @see #getMechanism() + * @generated + */ + void setMechanism(MutualExclusionResourceKind value); + + /** + * Returns the value of the 'Concurrent Access Protocol' attribute. + * The literals are from the enumeration {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.ConcurrentAccessProtocolKind}. + * + *

+ * If the meaning of the 'Concurrent Access Protocol' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Concurrent Access Protocol' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.ConcurrentAccessProtocolKind + * @see #setConcurrentAccessProtocol(ConcurrentAccessProtocolKind) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage#getSwMutualExclusionResource_ConcurrentAccessProtocol() + * @model unique="false" ordered="false" + * @generated + */ + ConcurrentAccessProtocolKind getConcurrentAccessProtocol(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwMutualExclusionResource#getConcurrentAccessProtocol Concurrent Access Protocol}' attribute. + * + * + * @param value the new value of the 'Concurrent Access Protocol' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.ConcurrentAccessProtocolKind + * @see #getConcurrentAccessProtocol() + * @generated + */ + void setConcurrentAccessProtocol(ConcurrentAccessProtocolKind value); + + /** + * Returns the value of the 'Access Token Elements' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.TypedElement}. + * + *

+ * If the meaning of the 'Access Token Elements' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Access Token Elements' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage#getSwMutualExclusionResource_AccessTokenElements() + * @model ordered="false" + * @generated + */ + EList getAccessTokenElements(); + + /** + * Returns the value of the 'Release Services' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.BehavioralFeature}. + * + *

+ * If the meaning of the 'Release Services' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Release Services' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage#getSwMutualExclusionResource_ReleaseServices() + * @model ordered="false" + * @generated + */ + EList getReleaseServices(); + + /** + * Returns the value of the 'Acquire Services' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.BehavioralFeature}. + * + *

+ * If the meaning of the 'Acquire Services' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Acquire Services' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage#getSwMutualExclusionResource_AcquireServices() + * @model ordered="false" + * @generated + */ + EList getAcquireServices(); + +} // SwMutualExclusionResource diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/SwSynchronizationResource.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/SwSynchronizationResource.java new file mode 100644 index 00000000000..aa1ad17fd3f --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/SwSynchronizationResource.java @@ -0,0 +1,29 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Interaction; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SynchronizationResource; + +/** + * + * A representation of the model object 'Sw Synchronization Resource'. + * + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage#getSwSynchronizationResource() + * @model abstract="true" + * @generated + */ +public interface SwSynchronizationResource extends SwInteractionResource, SynchronizationResource { +} // SwSynchronizationResource diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/impl/MessageComResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/impl/MessageComResourceImpl.java new file mode 100644 index 00000000000..7cd4cdce019 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/impl/MessageComResourceImpl.java @@ -0,0 +1,429 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Interaction.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EObjectResolvingEList; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.MessageComResource; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.MessageResourceKind; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.QueuePolicyKind; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage; + +import org.eclipse.uml2.uml.BehavioralFeature; +import org.eclipse.uml2.uml.TypedElement; + +/** + * + * An implementation of the model object 'Message Com Resource'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.MessageComResourceImpl#isIsFixedMessageSize Is Fixed Message Size}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.MessageComResourceImpl#getMechanism Mechanism}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.MessageComResourceImpl#getMessageSizeElements Message Size Elements}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.MessageComResourceImpl#getMessageQueueCapacityElements Message Queue Capacity Elements}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.MessageComResourceImpl#getMessageQueuePolicy Message Queue Policy}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.MessageComResourceImpl#getSendServices Send Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.MessageComResourceImpl#getReceiveServices Receive Services}
  • + *
+ *

+ * + * @generated + */ +public class MessageComResourceImpl extends SwCommunicationResourceImpl implements MessageComResource { + /** + * The default value of the '{@link #isIsFixedMessageSize() Is Fixed Message Size}' attribute. + * + * + * @see #isIsFixedMessageSize() + * @generated + * @ordered + */ + protected static final boolean IS_FIXED_MESSAGE_SIZE_EDEFAULT = false; + + /** + * The cached value of the '{@link #isIsFixedMessageSize() Is Fixed Message Size}' attribute. + * + * + * @see #isIsFixedMessageSize() + * @generated + * @ordered + */ + protected boolean isFixedMessageSize = IS_FIXED_MESSAGE_SIZE_EDEFAULT; + + /** + * The default value of the '{@link #getMechanism() Mechanism}' attribute. + * + * + * @see #getMechanism() + * @generated + * @ordered + */ + protected static final MessageResourceKind MECHANISM_EDEFAULT = MessageResourceKind.MESSAGE_QUEUE; + + /** + * The cached value of the '{@link #getMechanism() Mechanism}' attribute. + * + * + * @see #getMechanism() + * @generated + * @ordered + */ + protected MessageResourceKind mechanism = MECHANISM_EDEFAULT; + + /** + * The cached value of the '{@link #getMessageSizeElements() Message Size Elements}' reference list. + * + * + * @see #getMessageSizeElements() + * @generated + * @ordered + */ + protected EList messageSizeElements; + + /** + * The cached value of the '{@link #getMessageQueueCapacityElements() Message Queue Capacity Elements}' reference list. + * + * + * @see #getMessageQueueCapacityElements() + * @generated + * @ordered + */ + protected EList messageQueueCapacityElements; + + /** + * The default value of the '{@link #getMessageQueuePolicy() Message Queue Policy}' attribute. + * + * + * @see #getMessageQueuePolicy() + * @generated + * @ordered + */ + protected static final QueuePolicyKind MESSAGE_QUEUE_POLICY_EDEFAULT = QueuePolicyKind.FIFO; + + /** + * The cached value of the '{@link #getMessageQueuePolicy() Message Queue Policy}' attribute. + * + * + * @see #getMessageQueuePolicy() + * @generated + * @ordered + */ + protected QueuePolicyKind messageQueuePolicy = MESSAGE_QUEUE_POLICY_EDEFAULT; + + /** + * The cached value of the '{@link #getSendServices() Send Services}' reference list. + * + * + * @see #getSendServices() + * @generated + * @ordered + */ + protected EList sendServices; + + /** + * The cached value of the '{@link #getReceiveServices() Receive Services}' reference list. + * + * + * @see #getReceiveServices() + * @generated + * @ordered + */ + protected EList receiveServices; + + /** + * + * + * @generated + */ + protected MessageComResourceImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SW_InteractionPackage.Literals.MESSAGE_COM_RESOURCE; + } + + /** + * + * + * @generated + */ + public boolean isIsFixedMessageSize() { + return isFixedMessageSize; + } + + /** + * + * + * @generated + */ + public void setIsFixedMessageSize(boolean newIsFixedMessageSize) { + boolean oldIsFixedMessageSize = isFixedMessageSize; + isFixedMessageSize = newIsFixedMessageSize; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SW_InteractionPackage.MESSAGE_COM_RESOURCE__IS_FIXED_MESSAGE_SIZE, oldIsFixedMessageSize, isFixedMessageSize)); + } + + /** + * + * + * @generated + */ + public MessageResourceKind getMechanism() { + return mechanism; + } + + /** + * + * + * @generated + */ + public void setMechanism(MessageResourceKind newMechanism) { + MessageResourceKind oldMechanism = mechanism; + mechanism = newMechanism == null ? MECHANISM_EDEFAULT : newMechanism; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SW_InteractionPackage.MESSAGE_COM_RESOURCE__MECHANISM, oldMechanism, mechanism)); + } + + /** + * + * + * @generated + */ + public EList getMessageSizeElements() { + if (messageSizeElements == null) { + messageSizeElements = new EObjectResolvingEList(TypedElement.class, this, SW_InteractionPackage.MESSAGE_COM_RESOURCE__MESSAGE_SIZE_ELEMENTS); + } + return messageSizeElements; + } + + /** + * + * + * @generated + */ + public EList getMessageQueueCapacityElements() { + if (messageQueueCapacityElements == null) { + messageQueueCapacityElements = new EObjectResolvingEList(TypedElement.class, this, SW_InteractionPackage.MESSAGE_COM_RESOURCE__MESSAGE_QUEUE_CAPACITY_ELEMENTS); + } + return messageQueueCapacityElements; + } + + /** + * + * + * @generated + */ + public QueuePolicyKind getMessageQueuePolicy() { + return messageQueuePolicy; + } + + /** + * + * + * @generated + */ + public void setMessageQueuePolicy(QueuePolicyKind newMessageQueuePolicy) { + QueuePolicyKind oldMessageQueuePolicy = messageQueuePolicy; + messageQueuePolicy = newMessageQueuePolicy == null ? MESSAGE_QUEUE_POLICY_EDEFAULT : newMessageQueuePolicy; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SW_InteractionPackage.MESSAGE_COM_RESOURCE__MESSAGE_QUEUE_POLICY, oldMessageQueuePolicy, messageQueuePolicy)); + } + + /** + * + * + * @generated + */ + public EList getSendServices() { + if (sendServices == null) { + sendServices = new EObjectResolvingEList(BehavioralFeature.class, this, SW_InteractionPackage.MESSAGE_COM_RESOURCE__SEND_SERVICES); + } + return sendServices; + } + + /** + * + * + * @generated + */ + public EList getReceiveServices() { + if (receiveServices == null) { + receiveServices = new EObjectResolvingEList(BehavioralFeature.class, this, SW_InteractionPackage.MESSAGE_COM_RESOURCE__RECEIVE_SERVICES); + } + return receiveServices; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SW_InteractionPackage.MESSAGE_COM_RESOURCE__IS_FIXED_MESSAGE_SIZE: + return isIsFixedMessageSize(); + case SW_InteractionPackage.MESSAGE_COM_RESOURCE__MECHANISM: + return getMechanism(); + case SW_InteractionPackage.MESSAGE_COM_RESOURCE__MESSAGE_SIZE_ELEMENTS: + return getMessageSizeElements(); + case SW_InteractionPackage.MESSAGE_COM_RESOURCE__MESSAGE_QUEUE_CAPACITY_ELEMENTS: + return getMessageQueueCapacityElements(); + case SW_InteractionPackage.MESSAGE_COM_RESOURCE__MESSAGE_QUEUE_POLICY: + return getMessageQueuePolicy(); + case SW_InteractionPackage.MESSAGE_COM_RESOURCE__SEND_SERVICES: + return getSendServices(); + case SW_InteractionPackage.MESSAGE_COM_RESOURCE__RECEIVE_SERVICES: + return getReceiveServices(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SW_InteractionPackage.MESSAGE_COM_RESOURCE__IS_FIXED_MESSAGE_SIZE: + setIsFixedMessageSize((Boolean)newValue); + return; + case SW_InteractionPackage.MESSAGE_COM_RESOURCE__MECHANISM: + setMechanism((MessageResourceKind)newValue); + return; + case SW_InteractionPackage.MESSAGE_COM_RESOURCE__MESSAGE_SIZE_ELEMENTS: + getMessageSizeElements().clear(); + getMessageSizeElements().addAll((Collection)newValue); + return; + case SW_InteractionPackage.MESSAGE_COM_RESOURCE__MESSAGE_QUEUE_CAPACITY_ELEMENTS: + getMessageQueueCapacityElements().clear(); + getMessageQueueCapacityElements().addAll((Collection)newValue); + return; + case SW_InteractionPackage.MESSAGE_COM_RESOURCE__MESSAGE_QUEUE_POLICY: + setMessageQueuePolicy((QueuePolicyKind)newValue); + return; + case SW_InteractionPackage.MESSAGE_COM_RESOURCE__SEND_SERVICES: + getSendServices().clear(); + getSendServices().addAll((Collection)newValue); + return; + case SW_InteractionPackage.MESSAGE_COM_RESOURCE__RECEIVE_SERVICES: + getReceiveServices().clear(); + getReceiveServices().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SW_InteractionPackage.MESSAGE_COM_RESOURCE__IS_FIXED_MESSAGE_SIZE: + setIsFixedMessageSize(IS_FIXED_MESSAGE_SIZE_EDEFAULT); + return; + case SW_InteractionPackage.MESSAGE_COM_RESOURCE__MECHANISM: + setMechanism(MECHANISM_EDEFAULT); + return; + case SW_InteractionPackage.MESSAGE_COM_RESOURCE__MESSAGE_SIZE_ELEMENTS: + getMessageSizeElements().clear(); + return; + case SW_InteractionPackage.MESSAGE_COM_RESOURCE__MESSAGE_QUEUE_CAPACITY_ELEMENTS: + getMessageQueueCapacityElements().clear(); + return; + case SW_InteractionPackage.MESSAGE_COM_RESOURCE__MESSAGE_QUEUE_POLICY: + setMessageQueuePolicy(MESSAGE_QUEUE_POLICY_EDEFAULT); + return; + case SW_InteractionPackage.MESSAGE_COM_RESOURCE__SEND_SERVICES: + getSendServices().clear(); + return; + case SW_InteractionPackage.MESSAGE_COM_RESOURCE__RECEIVE_SERVICES: + getReceiveServices().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SW_InteractionPackage.MESSAGE_COM_RESOURCE__IS_FIXED_MESSAGE_SIZE: + return isFixedMessageSize != IS_FIXED_MESSAGE_SIZE_EDEFAULT; + case SW_InteractionPackage.MESSAGE_COM_RESOURCE__MECHANISM: + return mechanism != MECHANISM_EDEFAULT; + case SW_InteractionPackage.MESSAGE_COM_RESOURCE__MESSAGE_SIZE_ELEMENTS: + return messageSizeElements != null && !messageSizeElements.isEmpty(); + case SW_InteractionPackage.MESSAGE_COM_RESOURCE__MESSAGE_QUEUE_CAPACITY_ELEMENTS: + return messageQueueCapacityElements != null && !messageQueueCapacityElements.isEmpty(); + case SW_InteractionPackage.MESSAGE_COM_RESOURCE__MESSAGE_QUEUE_POLICY: + return messageQueuePolicy != MESSAGE_QUEUE_POLICY_EDEFAULT; + case SW_InteractionPackage.MESSAGE_COM_RESOURCE__SEND_SERVICES: + return sendServices != null && !sendServices.isEmpty(); + case SW_InteractionPackage.MESSAGE_COM_RESOURCE__RECEIVE_SERVICES: + return receiveServices != null && !receiveServices.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (isFixedMessageSize: "); + result.append(isFixedMessageSize); + result.append(", mechanism: "); + result.append(mechanism); + result.append(", messageQueuePolicy: "); + result.append(messageQueuePolicy); + result.append(')'); + return result.toString(); + } + +} //MessageComResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/impl/NotificationResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/impl/NotificationResourceImpl.java new file mode 100644 index 00000000000..d07297fdbf0 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/impl/NotificationResourceImpl.java @@ -0,0 +1,443 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Interaction.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EObjectResolvingEList; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationKind; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationResource; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationResourceKind; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage; + +import org.eclipse.uml2.uml.BehavioralFeature; +import org.eclipse.uml2.uml.TypedElement; + +/** + * + * An implementation of the model object 'Notification Resource'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.NotificationResourceImpl#getOccurence Occurence}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.NotificationResourceImpl#getMechanism Mechanism}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.NotificationResourceImpl#getOccurenceCountElements Occurence Count Elements}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.NotificationResourceImpl#getMaskElements Mask Elements}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.NotificationResourceImpl#getFlushServices Flush Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.NotificationResourceImpl#getSignalServices Signal Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.NotificationResourceImpl#getWaitServices Wait Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.NotificationResourceImpl#getClearServices Clear Services}
  • + *
+ *

+ * + * @generated + */ +public class NotificationResourceImpl extends SwSynchronizationResourceImpl implements NotificationResource { + /** + * The default value of the '{@link #getOccurence() Occurence}' attribute. + * + * + * @see #getOccurence() + * @generated + * @ordered + */ + protected static final NotificationKind OCCURENCE_EDEFAULT = NotificationKind.MEMORIZED; + + /** + * The cached value of the '{@link #getOccurence() Occurence}' attribute. + * + * + * @see #getOccurence() + * @generated + * @ordered + */ + protected NotificationKind occurence = OCCURENCE_EDEFAULT; + + /** + * The default value of the '{@link #getMechanism() Mechanism}' attribute. + * + * + * @see #getMechanism() + * @generated + * @ordered + */ + protected static final NotificationResourceKind MECHANISM_EDEFAULT = NotificationResourceKind.EVENT; + + /** + * The cached value of the '{@link #getMechanism() Mechanism}' attribute. + * + * + * @see #getMechanism() + * @generated + * @ordered + */ + protected NotificationResourceKind mechanism = MECHANISM_EDEFAULT; + + /** + * The cached value of the '{@link #getOccurenceCountElements() Occurence Count Elements}' reference list. + * + * + * @see #getOccurenceCountElements() + * @generated + * @ordered + */ + protected EList occurenceCountElements; + + /** + * The cached value of the '{@link #getMaskElements() Mask Elements}' reference list. + * + * + * @see #getMaskElements() + * @generated + * @ordered + */ + protected EList maskElements; + + /** + * The cached value of the '{@link #getFlushServices() Flush Services}' reference list. + * + * + * @see #getFlushServices() + * @generated + * @ordered + */ + protected EList flushServices; + + /** + * The cached value of the '{@link #getSignalServices() Signal Services}' reference list. + * + * + * @see #getSignalServices() + * @generated + * @ordered + */ + protected EList signalServices; + + /** + * The cached value of the '{@link #getWaitServices() Wait Services}' reference list. + * + * + * @see #getWaitServices() + * @generated + * @ordered + */ + protected EList waitServices; + + /** + * The cached value of the '{@link #getClearServices() Clear Services}' reference list. + * + * + * @see #getClearServices() + * @generated + * @ordered + */ + protected EList clearServices; + + /** + * + * + * @generated + */ + protected NotificationResourceImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SW_InteractionPackage.Literals.NOTIFICATION_RESOURCE; + } + + /** + * + * + * @generated + */ + public NotificationKind getOccurence() { + return occurence; + } + + /** + * + * + * @generated + */ + public void setOccurence(NotificationKind newOccurence) { + NotificationKind oldOccurence = occurence; + occurence = newOccurence == null ? OCCURENCE_EDEFAULT : newOccurence; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SW_InteractionPackage.NOTIFICATION_RESOURCE__OCCURENCE, oldOccurence, occurence)); + } + + /** + * + * + * @generated + */ + public NotificationResourceKind getMechanism() { + return mechanism; + } + + /** + * + * + * @generated + */ + public void setMechanism(NotificationResourceKind newMechanism) { + NotificationResourceKind oldMechanism = mechanism; + mechanism = newMechanism == null ? MECHANISM_EDEFAULT : newMechanism; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SW_InteractionPackage.NOTIFICATION_RESOURCE__MECHANISM, oldMechanism, mechanism)); + } + + /** + * + * + * @generated + */ + public EList getOccurenceCountElements() { + if (occurenceCountElements == null) { + occurenceCountElements = new EObjectResolvingEList(TypedElement.class, this, SW_InteractionPackage.NOTIFICATION_RESOURCE__OCCURENCE_COUNT_ELEMENTS); + } + return occurenceCountElements; + } + + /** + * + * + * @generated + */ + public EList getMaskElements() { + if (maskElements == null) { + maskElements = new EObjectResolvingEList(TypedElement.class, this, SW_InteractionPackage.NOTIFICATION_RESOURCE__MASK_ELEMENTS); + } + return maskElements; + } + + /** + * + * + * @generated + */ + public EList getFlushServices() { + if (flushServices == null) { + flushServices = new EObjectResolvingEList(BehavioralFeature.class, this, SW_InteractionPackage.NOTIFICATION_RESOURCE__FLUSH_SERVICES); + } + return flushServices; + } + + /** + * + * + * @generated + */ + public EList getSignalServices() { + if (signalServices == null) { + signalServices = new EObjectResolvingEList(BehavioralFeature.class, this, SW_InteractionPackage.NOTIFICATION_RESOURCE__SIGNAL_SERVICES); + } + return signalServices; + } + + /** + * + * + * @generated + */ + public EList getWaitServices() { + if (waitServices == null) { + waitServices = new EObjectResolvingEList(BehavioralFeature.class, this, SW_InteractionPackage.NOTIFICATION_RESOURCE__WAIT_SERVICES); + } + return waitServices; + } + + /** + * + * + * @generated + */ + public EList getClearServices() { + if (clearServices == null) { + clearServices = new EObjectResolvingEList(BehavioralFeature.class, this, SW_InteractionPackage.NOTIFICATION_RESOURCE__CLEAR_SERVICES); + } + return clearServices; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SW_InteractionPackage.NOTIFICATION_RESOURCE__OCCURENCE: + return getOccurence(); + case SW_InteractionPackage.NOTIFICATION_RESOURCE__MECHANISM: + return getMechanism(); + case SW_InteractionPackage.NOTIFICATION_RESOURCE__OCCURENCE_COUNT_ELEMENTS: + return getOccurenceCountElements(); + case SW_InteractionPackage.NOTIFICATION_RESOURCE__MASK_ELEMENTS: + return getMaskElements(); + case SW_InteractionPackage.NOTIFICATION_RESOURCE__FLUSH_SERVICES: + return getFlushServices(); + case SW_InteractionPackage.NOTIFICATION_RESOURCE__SIGNAL_SERVICES: + return getSignalServices(); + case SW_InteractionPackage.NOTIFICATION_RESOURCE__WAIT_SERVICES: + return getWaitServices(); + case SW_InteractionPackage.NOTIFICATION_RESOURCE__CLEAR_SERVICES: + return getClearServices(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SW_InteractionPackage.NOTIFICATION_RESOURCE__OCCURENCE: + setOccurence((NotificationKind)newValue); + return; + case SW_InteractionPackage.NOTIFICATION_RESOURCE__MECHANISM: + setMechanism((NotificationResourceKind)newValue); + return; + case SW_InteractionPackage.NOTIFICATION_RESOURCE__OCCURENCE_COUNT_ELEMENTS: + getOccurenceCountElements().clear(); + getOccurenceCountElements().addAll((Collection)newValue); + return; + case SW_InteractionPackage.NOTIFICATION_RESOURCE__MASK_ELEMENTS: + getMaskElements().clear(); + getMaskElements().addAll((Collection)newValue); + return; + case SW_InteractionPackage.NOTIFICATION_RESOURCE__FLUSH_SERVICES: + getFlushServices().clear(); + getFlushServices().addAll((Collection)newValue); + return; + case SW_InteractionPackage.NOTIFICATION_RESOURCE__SIGNAL_SERVICES: + getSignalServices().clear(); + getSignalServices().addAll((Collection)newValue); + return; + case SW_InteractionPackage.NOTIFICATION_RESOURCE__WAIT_SERVICES: + getWaitServices().clear(); + getWaitServices().addAll((Collection)newValue); + return; + case SW_InteractionPackage.NOTIFICATION_RESOURCE__CLEAR_SERVICES: + getClearServices().clear(); + getClearServices().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SW_InteractionPackage.NOTIFICATION_RESOURCE__OCCURENCE: + setOccurence(OCCURENCE_EDEFAULT); + return; + case SW_InteractionPackage.NOTIFICATION_RESOURCE__MECHANISM: + setMechanism(MECHANISM_EDEFAULT); + return; + case SW_InteractionPackage.NOTIFICATION_RESOURCE__OCCURENCE_COUNT_ELEMENTS: + getOccurenceCountElements().clear(); + return; + case SW_InteractionPackage.NOTIFICATION_RESOURCE__MASK_ELEMENTS: + getMaskElements().clear(); + return; + case SW_InteractionPackage.NOTIFICATION_RESOURCE__FLUSH_SERVICES: + getFlushServices().clear(); + return; + case SW_InteractionPackage.NOTIFICATION_RESOURCE__SIGNAL_SERVICES: + getSignalServices().clear(); + return; + case SW_InteractionPackage.NOTIFICATION_RESOURCE__WAIT_SERVICES: + getWaitServices().clear(); + return; + case SW_InteractionPackage.NOTIFICATION_RESOURCE__CLEAR_SERVICES: + getClearServices().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SW_InteractionPackage.NOTIFICATION_RESOURCE__OCCURENCE: + return occurence != OCCURENCE_EDEFAULT; + case SW_InteractionPackage.NOTIFICATION_RESOURCE__MECHANISM: + return mechanism != MECHANISM_EDEFAULT; + case SW_InteractionPackage.NOTIFICATION_RESOURCE__OCCURENCE_COUNT_ELEMENTS: + return occurenceCountElements != null && !occurenceCountElements.isEmpty(); + case SW_InteractionPackage.NOTIFICATION_RESOURCE__MASK_ELEMENTS: + return maskElements != null && !maskElements.isEmpty(); + case SW_InteractionPackage.NOTIFICATION_RESOURCE__FLUSH_SERVICES: + return flushServices != null && !flushServices.isEmpty(); + case SW_InteractionPackage.NOTIFICATION_RESOURCE__SIGNAL_SERVICES: + return signalServices != null && !signalServices.isEmpty(); + case SW_InteractionPackage.NOTIFICATION_RESOURCE__WAIT_SERVICES: + return waitServices != null && !waitServices.isEmpty(); + case SW_InteractionPackage.NOTIFICATION_RESOURCE__CLEAR_SERVICES: + return clearServices != null && !clearServices.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (occurence: "); + result.append(occurence); + result.append(", mechanism: "); + result.append(mechanism); + result.append(')'); + return result.toString(); + } + +} //NotificationResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/impl/SW_InteractionFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/impl/SW_InteractionFactoryImpl.java new file mode 100644 index 00000000000..3e98d891ddf --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/impl/SW_InteractionFactoryImpl.java @@ -0,0 +1,310 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Interaction.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.MARTE_DesignModel.SRM.SW_Interaction.*; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class SW_InteractionFactoryImpl extends EFactoryImpl implements SW_InteractionFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static SW_InteractionFactory init() { + try { + SW_InteractionFactory theSW_InteractionFactory = (SW_InteractionFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/SW_Interaction/1"); + if (theSW_InteractionFactory != null) { + return theSW_InteractionFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new SW_InteractionFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public SW_InteractionFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case SW_InteractionPackage.SHARED_DATA_COM_RESOURCE: return createSharedDataComResource(); + case SW_InteractionPackage.MESSAGE_COM_RESOURCE: return createMessageComResource(); + case SW_InteractionPackage.NOTIFICATION_RESOURCE: return createNotificationResource(); + case SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE: return createSwMutualExclusionResource(); + 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 SW_InteractionPackage.QUEUE_POLICY_KIND: + return createQueuePolicyKindFromString(eDataType, initialValue); + case SW_InteractionPackage.MESSAGE_RESOURCE_KIND: + return createMessageResourceKindFromString(eDataType, initialValue); + case SW_InteractionPackage.NOTIFICATION_KIND: + return createNotificationKindFromString(eDataType, initialValue); + case SW_InteractionPackage.NOTIFICATION_RESOURCE_KIND: + return createNotificationResourceKindFromString(eDataType, initialValue); + case SW_InteractionPackage.MUTUAL_EXCLUSION_RESOURCE_KIND: + return createMutualExclusionResourceKindFromString(eDataType, initialValue); + case SW_InteractionPackage.CONCURRENT_ACCESS_PROTOCOL_KIND: + return createConcurrentAccessProtocolKindFromString(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 SW_InteractionPackage.QUEUE_POLICY_KIND: + return convertQueuePolicyKindToString(eDataType, instanceValue); + case SW_InteractionPackage.MESSAGE_RESOURCE_KIND: + return convertMessageResourceKindToString(eDataType, instanceValue); + case SW_InteractionPackage.NOTIFICATION_KIND: + return convertNotificationKindToString(eDataType, instanceValue); + case SW_InteractionPackage.NOTIFICATION_RESOURCE_KIND: + return convertNotificationResourceKindToString(eDataType, instanceValue); + case SW_InteractionPackage.MUTUAL_EXCLUSION_RESOURCE_KIND: + return convertMutualExclusionResourceKindToString(eDataType, instanceValue); + case SW_InteractionPackage.CONCURRENT_ACCESS_PROTOCOL_KIND: + return convertConcurrentAccessProtocolKindToString(eDataType, instanceValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public SharedDataComResource createSharedDataComResource() { + SharedDataComResourceImpl sharedDataComResource = new SharedDataComResourceImpl(); + return sharedDataComResource; + } + + /** + * + * + * @generated + */ + public MessageComResource createMessageComResource() { + MessageComResourceImpl messageComResource = new MessageComResourceImpl(); + return messageComResource; + } + + /** + * + * + * @generated + */ + public NotificationResource createNotificationResource() { + NotificationResourceImpl notificationResource = new NotificationResourceImpl(); + return notificationResource; + } + + /** + * + * + * @generated + */ + public SwMutualExclusionResource createSwMutualExclusionResource() { + SwMutualExclusionResourceImpl swMutualExclusionResource = new SwMutualExclusionResourceImpl(); + return swMutualExclusionResource; + } + + /** + * + * + * @generated + */ + public QueuePolicyKind createQueuePolicyKindFromString(EDataType eDataType, String initialValue) { + QueuePolicyKind result = QueuePolicyKind.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertQueuePolicyKindToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public MessageResourceKind createMessageResourceKindFromString(EDataType eDataType, String initialValue) { + MessageResourceKind result = MessageResourceKind.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertMessageResourceKindToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public NotificationKind createNotificationKindFromString(EDataType eDataType, String initialValue) { + NotificationKind result = NotificationKind.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertNotificationKindToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public NotificationResourceKind createNotificationResourceKindFromString(EDataType eDataType, String initialValue) { + NotificationResourceKind result = NotificationResourceKind.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertNotificationResourceKindToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public MutualExclusionResourceKind createMutualExclusionResourceKindFromString(EDataType eDataType, String initialValue) { + MutualExclusionResourceKind result = MutualExclusionResourceKind.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertMutualExclusionResourceKindToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public ConcurrentAccessProtocolKind createConcurrentAccessProtocolKindFromString(EDataType eDataType, String initialValue) { + ConcurrentAccessProtocolKind result = ConcurrentAccessProtocolKind.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertConcurrentAccessProtocolKindToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public SW_InteractionPackage getSW_InteractionPackage() { + return (SW_InteractionPackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static SW_InteractionPackage getPackage() { + return SW_InteractionPackage.eINSTANCE; + } + +} //SW_InteractionFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/impl/SW_InteractionPackageImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/impl/SW_InteractionPackageImpl.java new file mode 100644 index 00000000000..cc9e3575e52 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/impl/SW_InteractionPackageImpl.java @@ -0,0 +1,1006 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Interaction.impl; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +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.ConcurrentAccessProtocolKind; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.MessageComResource; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.MessageResourceKind; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.MutualExclusionResourceKind; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationKind; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationResource; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationResourceKind; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.QueuePolicyKind; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionFactory; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SharedDataComResource; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwCommunicationResource; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwInteractionResource; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwMutualExclusionResource; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwSynchronizationResource; + +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.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 SW_InteractionPackageImpl extends EPackageImpl implements SW_InteractionPackage { + /** + * + * + * @generated + */ + private EClass swInteractionResourceEClass = null; + + /** + * + * + * @generated + */ + private EClass swCommunicationResourceEClass = null; + + /** + * + * + * @generated + */ + private EClass swSynchronizationResourceEClass = null; + + /** + * + * + * @generated + */ + private EClass sharedDataComResourceEClass = null; + + /** + * + * + * @generated + */ + private EClass messageComResourceEClass = null; + + /** + * + * + * @generated + */ + private EClass notificationResourceEClass = null; + + /** + * + * + * @generated + */ + private EClass swMutualExclusionResourceEClass = null; + + /** + * + * + * @generated + */ + private EEnum queuePolicyKindEEnum = null; + + /** + * + * + * @generated + */ + private EEnum messageResourceKindEEnum = null; + + /** + * + * + * @generated + */ + private EEnum notificationKindEEnum = null; + + /** + * + * + * @generated + */ + private EEnum notificationResourceKindEEnum = null; + + /** + * + * + * @generated + */ + private EEnum mutualExclusionResourceKindEEnum = null; + + /** + * + * + * @generated + */ + private EEnum concurrentAccessProtocolKindEEnum = 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.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage#eNS_URI + * @see #init() + * @generated + */ + private SW_InteractionPackageImpl() { + super(eNS_URI, SW_InteractionFactory.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 SW_InteractionPackage#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 SW_InteractionPackage init() { + if (isInited) return (SW_InteractionPackage)EPackage.Registry.INSTANCE.getEPackage(SW_InteractionPackage.eNS_URI); + + // Obtain or create and register package + SW_InteractionPackageImpl theSW_InteractionPackage = (SW_InteractionPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof SW_InteractionPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new SW_InteractionPackageImpl()); + + 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); + 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); + 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 + theSW_InteractionPackage.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(); + 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(); + theMARTE_PrimitivesTypesPackage.createPackageContents(); + + // Initialize created meta-data + theSW_InteractionPackage.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(); + 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(); + theMARTE_PrimitivesTypesPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theSW_InteractionPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(SW_InteractionPackage.eNS_URI, theSW_InteractionPackage); + return theSW_InteractionPackage; + } + + /** + * + * + * @generated + */ + public EClass getSwInteractionResource() { + return swInteractionResourceEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSwInteractionResource_IsIntraMemoryPartitionInteraction() { + return (EAttribute)swInteractionResourceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getSwInteractionResource_WaitingQueuePolicy() { + return (EAttribute)swInteractionResourceEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getSwInteractionResource_WaitingQueueCapacity() { + return (EAttribute)swInteractionResourceEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getSwInteractionResource_WaitingPolicyElements() { + return (EReference)swInteractionResourceEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EClass getSwCommunicationResource() { + return swCommunicationResourceEClass; + } + + /** + * + * + * @generated + */ + public EClass getSwSynchronizationResource() { + return swSynchronizationResourceEClass; + } + + /** + * + * + * @generated + */ + public EClass getSharedDataComResource() { + return sharedDataComResourceEClass; + } + + /** + * + * + * @generated + */ + public EReference getSharedDataComResource_ReadServices() { + return (EReference)sharedDataComResourceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getSharedDataComResource_WriteServices() { + return (EReference)sharedDataComResourceEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getMessageComResource() { + return messageComResourceEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getMessageComResource_IsFixedMessageSize() { + return (EAttribute)messageComResourceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getMessageComResource_Mechanism() { + return (EAttribute)messageComResourceEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getMessageComResource_MessageSizeElements() { + return (EReference)messageComResourceEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getMessageComResource_MessageQueueCapacityElements() { + return (EReference)messageComResourceEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getMessageComResource_MessageQueuePolicy() { + return (EAttribute)messageComResourceEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EReference getMessageComResource_SendServices() { + return (EReference)messageComResourceEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EReference getMessageComResource_ReceiveServices() { + return (EReference)messageComResourceEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EClass getNotificationResource() { + return notificationResourceEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getNotificationResource_Occurence() { + return (EAttribute)notificationResourceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getNotificationResource_Mechanism() { + return (EAttribute)notificationResourceEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getNotificationResource_OccurenceCountElements() { + return (EReference)notificationResourceEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getNotificationResource_MaskElements() { + return (EReference)notificationResourceEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EReference getNotificationResource_FlushServices() { + return (EReference)notificationResourceEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EReference getNotificationResource_SignalServices() { + return (EReference)notificationResourceEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EReference getNotificationResource_WaitServices() { + return (EReference)notificationResourceEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EReference getNotificationResource_ClearServices() { + return (EReference)notificationResourceEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EClass getSwMutualExclusionResource() { + return swMutualExclusionResourceEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSwMutualExclusionResource_Mechanism() { + return (EAttribute)swMutualExclusionResourceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getSwMutualExclusionResource_ConcurrentAccessProtocol() { + return (EAttribute)swMutualExclusionResourceEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getSwMutualExclusionResource_AccessTokenElements() { + return (EReference)swMutualExclusionResourceEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getSwMutualExclusionResource_ReleaseServices() { + return (EReference)swMutualExclusionResourceEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EReference getSwMutualExclusionResource_AcquireServices() { + return (EReference)swMutualExclusionResourceEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EEnum getQueuePolicyKind() { + return queuePolicyKindEEnum; + } + + /** + * + * + * @generated + */ + public EEnum getMessageResourceKind() { + return messageResourceKindEEnum; + } + + /** + * + * + * @generated + */ + public EEnum getNotificationKind() { + return notificationKindEEnum; + } + + /** + * + * + * @generated + */ + public EEnum getNotificationResourceKind() { + return notificationResourceKindEEnum; + } + + /** + * + * + * @generated + */ + public EEnum getMutualExclusionResourceKind() { + return mutualExclusionResourceKindEEnum; + } + + /** + * + * + * @generated + */ + public EEnum getConcurrentAccessProtocolKind() { + return concurrentAccessProtocolKindEEnum; + } + + /** + * + * + * @generated + */ + public SW_InteractionFactory getSW_InteractionFactory() { + return (SW_InteractionFactory)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 + swInteractionResourceEClass = createEClass(SW_INTERACTION_RESOURCE); + createEAttribute(swInteractionResourceEClass, SW_INTERACTION_RESOURCE__IS_INTRA_MEMORY_PARTITION_INTERACTION); + createEAttribute(swInteractionResourceEClass, SW_INTERACTION_RESOURCE__WAITING_QUEUE_POLICY); + createEAttribute(swInteractionResourceEClass, SW_INTERACTION_RESOURCE__WAITING_QUEUE_CAPACITY); + createEReference(swInteractionResourceEClass, SW_INTERACTION_RESOURCE__WAITING_POLICY_ELEMENTS); + + swCommunicationResourceEClass = createEClass(SW_COMMUNICATION_RESOURCE); + + swSynchronizationResourceEClass = createEClass(SW_SYNCHRONIZATION_RESOURCE); + + sharedDataComResourceEClass = createEClass(SHARED_DATA_COM_RESOURCE); + createEReference(sharedDataComResourceEClass, SHARED_DATA_COM_RESOURCE__READ_SERVICES); + createEReference(sharedDataComResourceEClass, SHARED_DATA_COM_RESOURCE__WRITE_SERVICES); + + messageComResourceEClass = createEClass(MESSAGE_COM_RESOURCE); + createEAttribute(messageComResourceEClass, MESSAGE_COM_RESOURCE__IS_FIXED_MESSAGE_SIZE); + createEAttribute(messageComResourceEClass, MESSAGE_COM_RESOURCE__MECHANISM); + createEReference(messageComResourceEClass, MESSAGE_COM_RESOURCE__MESSAGE_SIZE_ELEMENTS); + createEReference(messageComResourceEClass, MESSAGE_COM_RESOURCE__MESSAGE_QUEUE_CAPACITY_ELEMENTS); + createEAttribute(messageComResourceEClass, MESSAGE_COM_RESOURCE__MESSAGE_QUEUE_POLICY); + createEReference(messageComResourceEClass, MESSAGE_COM_RESOURCE__SEND_SERVICES); + createEReference(messageComResourceEClass, MESSAGE_COM_RESOURCE__RECEIVE_SERVICES); + + notificationResourceEClass = createEClass(NOTIFICATION_RESOURCE); + createEAttribute(notificationResourceEClass, NOTIFICATION_RESOURCE__OCCURENCE); + createEAttribute(notificationResourceEClass, NOTIFICATION_RESOURCE__MECHANISM); + createEReference(notificationResourceEClass, NOTIFICATION_RESOURCE__OCCURENCE_COUNT_ELEMENTS); + createEReference(notificationResourceEClass, NOTIFICATION_RESOURCE__MASK_ELEMENTS); + createEReference(notificationResourceEClass, NOTIFICATION_RESOURCE__FLUSH_SERVICES); + createEReference(notificationResourceEClass, NOTIFICATION_RESOURCE__SIGNAL_SERVICES); + createEReference(notificationResourceEClass, NOTIFICATION_RESOURCE__WAIT_SERVICES); + createEReference(notificationResourceEClass, NOTIFICATION_RESOURCE__CLEAR_SERVICES); + + swMutualExclusionResourceEClass = createEClass(SW_MUTUAL_EXCLUSION_RESOURCE); + createEAttribute(swMutualExclusionResourceEClass, SW_MUTUAL_EXCLUSION_RESOURCE__MECHANISM); + createEAttribute(swMutualExclusionResourceEClass, SW_MUTUAL_EXCLUSION_RESOURCE__CONCURRENT_ACCESS_PROTOCOL); + createEReference(swMutualExclusionResourceEClass, SW_MUTUAL_EXCLUSION_RESOURCE__ACCESS_TOKEN_ELEMENTS); + createEReference(swMutualExclusionResourceEClass, SW_MUTUAL_EXCLUSION_RESOURCE__RELEASE_SERVICES); + createEReference(swMutualExclusionResourceEClass, SW_MUTUAL_EXCLUSION_RESOURCE__ACQUIRE_SERVICES); + + // Create enums + queuePolicyKindEEnum = createEEnum(QUEUE_POLICY_KIND); + messageResourceKindEEnum = createEEnum(MESSAGE_RESOURCE_KIND); + notificationKindEEnum = createEEnum(NOTIFICATION_KIND); + notificationResourceKindEEnum = createEEnum(NOTIFICATION_RESOURCE_KIND); + mutualExclusionResourceKindEEnum = createEEnum(MUTUAL_EXCLUSION_RESOURCE_KIND); + concurrentAccessProtocolKindEEnum = createEEnum(CONCURRENT_ACCESS_PROTOCOL_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); + + // Obtain other dependent packages + SW_ResourceCorePackage theSW_ResourceCorePackage = (SW_ResourceCorePackage)EPackage.Registry.INSTANCE.getEPackage(SW_ResourceCorePackage.eNS_URI); + MARTE_PrimitivesTypesPackage theMARTE_PrimitivesTypesPackage = (MARTE_PrimitivesTypesPackage)EPackage.Registry.INSTANCE.getEPackage(MARTE_PrimitivesTypesPackage.eNS_URI); + UMLPackage theUMLPackage = (UMLPackage)EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI); + GRMPackage theGRMPackage = (GRMPackage)EPackage.Registry.INSTANCE.getEPackage(GRMPackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + swInteractionResourceEClass.getESuperTypes().add(theSW_ResourceCorePackage.getSwResource()); + swCommunicationResourceEClass.getESuperTypes().add(this.getSwInteractionResource()); + swCommunicationResourceEClass.getESuperTypes().add(theGRMPackage.getCommunicationMedia()); + swSynchronizationResourceEClass.getESuperTypes().add(this.getSwInteractionResource()); + swSynchronizationResourceEClass.getESuperTypes().add(theGRMPackage.getSynchronizationResource()); + sharedDataComResourceEClass.getESuperTypes().add(this.getSwCommunicationResource()); + messageComResourceEClass.getESuperTypes().add(this.getSwCommunicationResource()); + notificationResourceEClass.getESuperTypes().add(this.getSwSynchronizationResource()); + swMutualExclusionResourceEClass.getESuperTypes().add(this.getSwSynchronizationResource()); + swMutualExclusionResourceEClass.getESuperTypes().add(theGRMPackage.getMutualExclusionResource()); + + // Initialize classes and features; add operations and parameters + initEClass(swInteractionResourceEClass, SwInteractionResource.class, "SwInteractionResource", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSwInteractionResource_IsIntraMemoryPartitionInteraction(), ecorePackage.getEBoolean(), "isIntraMemoryPartitionInteraction", null, 0, 1, SwInteractionResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getSwInteractionResource_WaitingQueuePolicy(), this.getQueuePolicyKind(), "waitingQueuePolicy", null, 0, 1, SwInteractionResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getSwInteractionResource_WaitingQueueCapacity(), theMARTE_PrimitivesTypesPackage.getInteger(), "waitingQueueCapacity", null, 0, 1, SwInteractionResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getSwInteractionResource_WaitingPolicyElements(), theUMLPackage.getTypedElement(), null, "waitingPolicyElements", null, 0, -1, SwInteractionResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(swCommunicationResourceEClass, SwCommunicationResource.class, "SwCommunicationResource", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(swSynchronizationResourceEClass, SwSynchronizationResource.class, "SwSynchronizationResource", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(sharedDataComResourceEClass, SharedDataComResource.class, "SharedDataComResource", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSharedDataComResource_ReadServices(), theUMLPackage.getBehavioralFeature(), null, "readServices", null, 0, -1, SharedDataComResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getSharedDataComResource_WriteServices(), theUMLPackage.getBehavioralFeature(), null, "writeServices", null, 0, -1, SharedDataComResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(messageComResourceEClass, MessageComResource.class, "MessageComResource", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getMessageComResource_IsFixedMessageSize(), theMARTE_PrimitivesTypesPackage.getBoolean(), "isFixedMessageSize", null, 0, 1, MessageComResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getMessageComResource_Mechanism(), this.getMessageResourceKind(), "mechanism", null, 0, 1, MessageComResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getMessageComResource_MessageSizeElements(), theUMLPackage.getTypedElement(), null, "messageSizeElements", null, 0, -1, MessageComResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getMessageComResource_MessageQueueCapacityElements(), theUMLPackage.getTypedElement(), null, "messageQueueCapacityElements", null, 0, -1, MessageComResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getMessageComResource_MessageQueuePolicy(), this.getQueuePolicyKind(), "messageQueuePolicy", null, 0, 1, MessageComResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getMessageComResource_SendServices(), theUMLPackage.getBehavioralFeature(), null, "sendServices", null, 0, -1, MessageComResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getMessageComResource_ReceiveServices(), theUMLPackage.getBehavioralFeature(), null, "receiveServices", null, 0, -1, MessageComResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(notificationResourceEClass, NotificationResource.class, "NotificationResource", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getNotificationResource_Occurence(), this.getNotificationKind(), "occurence", null, 0, 1, NotificationResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getNotificationResource_Mechanism(), this.getNotificationResourceKind(), "mechanism", null, 0, 1, NotificationResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getNotificationResource_OccurenceCountElements(), theUMLPackage.getTypedElement(), null, "occurenceCountElements", null, 0, -1, NotificationResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getNotificationResource_MaskElements(), theUMLPackage.getTypedElement(), null, "maskElements", null, 0, -1, NotificationResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getNotificationResource_FlushServices(), theUMLPackage.getBehavioralFeature(), null, "flushServices", null, 0, -1, NotificationResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getNotificationResource_SignalServices(), theUMLPackage.getBehavioralFeature(), null, "signalServices", null, 0, -1, NotificationResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getNotificationResource_WaitServices(), theUMLPackage.getBehavioralFeature(), null, "waitServices", null, 0, -1, NotificationResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getNotificationResource_ClearServices(), theUMLPackage.getBehavioralFeature(), null, "clearServices", null, 0, -1, NotificationResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(swMutualExclusionResourceEClass, SwMutualExclusionResource.class, "SwMutualExclusionResource", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSwMutualExclusionResource_Mechanism(), this.getMutualExclusionResourceKind(), "mechanism", null, 0, 1, SwMutualExclusionResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getSwMutualExclusionResource_ConcurrentAccessProtocol(), this.getConcurrentAccessProtocolKind(), "concurrentAccessProtocol", null, 0, 1, SwMutualExclusionResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getSwMutualExclusionResource_AccessTokenElements(), theUMLPackage.getTypedElement(), null, "accessTokenElements", null, 0, -1, SwMutualExclusionResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getSwMutualExclusionResource_ReleaseServices(), theUMLPackage.getBehavioralFeature(), null, "releaseServices", null, 0, -1, SwMutualExclusionResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getSwMutualExclusionResource_AcquireServices(), theUMLPackage.getBehavioralFeature(), null, "acquireServices", null, 0, -1, SwMutualExclusionResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + // Initialize enums and add enum literals + initEEnum(queuePolicyKindEEnum, QueuePolicyKind.class, "QueuePolicyKind"); + addEEnumLiteral(queuePolicyKindEEnum, QueuePolicyKind.FIFO); + addEEnumLiteral(queuePolicyKindEEnum, QueuePolicyKind.LIFO); + addEEnumLiteral(queuePolicyKindEEnum, QueuePolicyKind.PRIORITY); + addEEnumLiteral(queuePolicyKindEEnum, QueuePolicyKind.UNDEF); + addEEnumLiteral(queuePolicyKindEEnum, QueuePolicyKind.OTHER); + + initEEnum(messageResourceKindEEnum, MessageResourceKind.class, "MessageResourceKind"); + addEEnumLiteral(messageResourceKindEEnum, MessageResourceKind.MESSAGE_QUEUE); + addEEnumLiteral(messageResourceKindEEnum, MessageResourceKind.PIPE); + addEEnumLiteral(messageResourceKindEEnum, MessageResourceKind.BLACKBOARD); + addEEnumLiteral(messageResourceKindEEnum, MessageResourceKind.UNDEF); + addEEnumLiteral(messageResourceKindEEnum, MessageResourceKind.OTHER); + + initEEnum(notificationKindEEnum, NotificationKind.class, "NotificationKind"); + addEEnumLiteral(notificationKindEEnum, NotificationKind.MEMORIZED); + addEEnumLiteral(notificationKindEEnum, NotificationKind.BOUNDED); + addEEnumLiteral(notificationKindEEnum, NotificationKind.MEMORYLESS); + addEEnumLiteral(notificationKindEEnum, NotificationKind.UNDEF); + addEEnumLiteral(notificationKindEEnum, NotificationKind.OTHER); + + initEEnum(notificationResourceKindEEnum, NotificationResourceKind.class, "NotificationResourceKind"); + addEEnumLiteral(notificationResourceKindEEnum, NotificationResourceKind.EVENT); + addEEnumLiteral(notificationResourceKindEEnum, NotificationResourceKind.BARRIER); + addEEnumLiteral(notificationResourceKindEEnum, NotificationResourceKind.UNDEF); + addEEnumLiteral(notificationResourceKindEEnum, NotificationResourceKind.OTHER); + + initEEnum(mutualExclusionResourceKindEEnum, MutualExclusionResourceKind.class, "MutualExclusionResourceKind"); + addEEnumLiteral(mutualExclusionResourceKindEEnum, MutualExclusionResourceKind.BOOLEAN_SEMAPHORE); + addEEnumLiteral(mutualExclusionResourceKindEEnum, MutualExclusionResourceKind.COUNT_SEMAPHORE); + addEEnumLiteral(mutualExclusionResourceKindEEnum, MutualExclusionResourceKind.MUTEX); + addEEnumLiteral(mutualExclusionResourceKindEEnum, MutualExclusionResourceKind.UNDEF); + addEEnumLiteral(mutualExclusionResourceKindEEnum, MutualExclusionResourceKind.OTHER); + + initEEnum(concurrentAccessProtocolKindEEnum, ConcurrentAccessProtocolKind.class, "ConcurrentAccessProtocolKind"); + addEEnumLiteral(concurrentAccessProtocolKindEEnum, ConcurrentAccessProtocolKind.PIP); + addEEnumLiteral(concurrentAccessProtocolKindEEnum, ConcurrentAccessProtocolKind.PCP); + addEEnumLiteral(concurrentAccessProtocolKindEEnum, ConcurrentAccessProtocolKind.NO_PREEMPTION); + addEEnumLiteral(concurrentAccessProtocolKindEEnum, ConcurrentAccessProtocolKind.UNDEF); + addEEnumLiteral(concurrentAccessProtocolKindEEnum, ConcurrentAccessProtocolKind.OTHER); + } + +} //SW_InteractionPackageImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/impl/SharedDataComResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/impl/SharedDataComResourceImpl.java new file mode 100644 index 00000000000..1ac575496da --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/impl/SharedDataComResourceImpl.java @@ -0,0 +1,178 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Interaction.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.util.EObjectResolvingEList; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SharedDataComResource; + +import org.eclipse.uml2.uml.BehavioralFeature; + +/** + * + * An implementation of the model object 'Shared Data Com Resource'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SharedDataComResourceImpl#getReadServices Read Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SharedDataComResourceImpl#getWriteServices Write Services}
  • + *
+ *

+ * + * @generated + */ +public class SharedDataComResourceImpl extends SwCommunicationResourceImpl implements SharedDataComResource { + /** + * The cached value of the '{@link #getReadServices() Read Services}' reference list. + * + * + * @see #getReadServices() + * @generated + * @ordered + */ + protected EList readServices; + + /** + * The cached value of the '{@link #getWriteServices() Write Services}' reference list. + * + * + * @see #getWriteServices() + * @generated + * @ordered + */ + protected EList writeServices; + + /** + * + * + * @generated + */ + protected SharedDataComResourceImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SW_InteractionPackage.Literals.SHARED_DATA_COM_RESOURCE; + } + + /** + * + * + * @generated + */ + public EList getReadServices() { + if (readServices == null) { + readServices = new EObjectResolvingEList(BehavioralFeature.class, this, SW_InteractionPackage.SHARED_DATA_COM_RESOURCE__READ_SERVICES); + } + return readServices; + } + + /** + * + * + * @generated + */ + public EList getWriteServices() { + if (writeServices == null) { + writeServices = new EObjectResolvingEList(BehavioralFeature.class, this, SW_InteractionPackage.SHARED_DATA_COM_RESOURCE__WRITE_SERVICES); + } + return writeServices; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SW_InteractionPackage.SHARED_DATA_COM_RESOURCE__READ_SERVICES: + return getReadServices(); + case SW_InteractionPackage.SHARED_DATA_COM_RESOURCE__WRITE_SERVICES: + return getWriteServices(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SW_InteractionPackage.SHARED_DATA_COM_RESOURCE__READ_SERVICES: + getReadServices().clear(); + getReadServices().addAll((Collection)newValue); + return; + case SW_InteractionPackage.SHARED_DATA_COM_RESOURCE__WRITE_SERVICES: + getWriteServices().clear(); + getWriteServices().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SW_InteractionPackage.SHARED_DATA_COM_RESOURCE__READ_SERVICES: + getReadServices().clear(); + return; + case SW_InteractionPackage.SHARED_DATA_COM_RESOURCE__WRITE_SERVICES: + getWriteServices().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SW_InteractionPackage.SHARED_DATA_COM_RESOURCE__READ_SERVICES: + return readServices != null && !readServices.isEmpty(); + case SW_InteractionPackage.SHARED_DATA_COM_RESOURCE__WRITE_SERVICES: + return writeServices != null && !writeServices.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //SharedDataComResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/impl/SwCommunicationResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/impl/SwCommunicationResourceImpl.java new file mode 100644 index 00000000000..c7b1504231a --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/impl/SwCommunicationResourceImpl.java @@ -0,0 +1,582 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Interaction.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EDataTypeUniqueEList; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwCommunicationResource; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationMedia; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ProcessingResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler; + +import org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.TransmModeKind; + +import org.eclipse.uml2.uml.Connector; + +/** + * + * An implementation of the model object 'Sw Communication Resource'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SwCommunicationResourceImpl#getSpeedFactor Speed Factor}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SwCommunicationResourceImpl#getMainScheduler Main Scheduler}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SwCommunicationResourceImpl#getElementSize Element Size}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SwCommunicationResourceImpl#getBase_Connector Base Connector}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SwCommunicationResourceImpl#getTransmMode Transm Mode}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SwCommunicationResourceImpl#getBlockT Block T}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SwCommunicationResourceImpl#getPacketT Packet T}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SwCommunicationResourceImpl#getCapacity Capacity}
  • + *
+ *

+ * + * @generated + */ +public abstract class SwCommunicationResourceImpl extends SwInteractionResourceImpl implements SwCommunicationResource { + /** + * The default value of the '{@link #getSpeedFactor() Speed Factor}' attribute. + * + * + * @see #getSpeedFactor() + * @generated + * @ordered + */ + protected static final String SPEED_FACTOR_EDEFAULT = "1.0"; + + /** + * The cached value of the '{@link #getSpeedFactor() Speed Factor}' attribute. + * + * + * @see #getSpeedFactor() + * @generated + * @ordered + */ + protected String speedFactor = SPEED_FACTOR_EDEFAULT; + + /** + * The cached value of the '{@link #getMainScheduler() Main Scheduler}' reference. + * + * + * @see #getMainScheduler() + * @generated + * @ordered + */ + protected Scheduler mainScheduler; + + /** + * The default value of the '{@link #getElementSize() Element Size}' attribute. + * + * + * @see #getElementSize() + * @generated + * @ordered + */ + protected static final String ELEMENT_SIZE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getElementSize() Element Size}' attribute. + * + * + * @see #getElementSize() + * @generated + * @ordered + */ + protected String elementSize = ELEMENT_SIZE_EDEFAULT; + + /** + * The cached value of the '{@link #getBase_Connector() Base Connector}' reference. + * + * + * @see #getBase_Connector() + * @generated + * @ordered + */ + protected Connector base_Connector; + + /** + * The default value of the '{@link #getTransmMode() Transm Mode}' attribute. + * + * + * @see #getTransmMode() + * @generated + * @ordered + */ + protected static final TransmModeKind TRANSM_MODE_EDEFAULT = TransmModeKind.SIMPLEX; + + /** + * The cached value of the '{@link #getTransmMode() Transm Mode}' attribute. + * + * + * @see #getTransmMode() + * @generated + * @ordered + */ + protected TransmModeKind transmMode = TRANSM_MODE_EDEFAULT; + + /** + * The cached value of the '{@link #getBlockT() Block T}' attribute list. + * + * + * @see #getBlockT() + * @generated + * @ordered + */ + protected EList blockT; + + /** + * The cached value of the '{@link #getPacketT() Packet T}' attribute list. + * + * + * @see #getPacketT() + * @generated + * @ordered + */ + protected EList packetT; + + /** + * The cached value of the '{@link #getCapacity() Capacity}' attribute list. + * + * + * @see #getCapacity() + * @generated + * @ordered + */ + protected EList capacity; + + /** + * + * + * @generated + */ + protected SwCommunicationResourceImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SW_InteractionPackage.Literals.SW_COMMUNICATION_RESOURCE; + } + + /** + * + * + * @generated + */ + public String getSpeedFactor() { + return speedFactor; + } + + /** + * + * + * @generated + */ + public void setSpeedFactor(String newSpeedFactor) { + String oldSpeedFactor = speedFactor; + speedFactor = newSpeedFactor; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__SPEED_FACTOR, oldSpeedFactor, speedFactor)); + } + + /** + * + * + * @generated + */ + public Scheduler getMainScheduler() { + if (mainScheduler != null && mainScheduler.eIsProxy()) { + InternalEObject oldMainScheduler = (InternalEObject)mainScheduler; + mainScheduler = (Scheduler)eResolveProxy(oldMainScheduler); + if (mainScheduler != oldMainScheduler) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__MAIN_SCHEDULER, oldMainScheduler, mainScheduler)); + } + } + return mainScheduler; + } + + /** + * + * + * @generated + */ + public Scheduler basicGetMainScheduler() { + return mainScheduler; + } + + /** + * + * + * @generated + */ + public void setMainScheduler(Scheduler newMainScheduler) { + Scheduler oldMainScheduler = mainScheduler; + mainScheduler = newMainScheduler; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__MAIN_SCHEDULER, oldMainScheduler, mainScheduler)); + } + + /** + * + * + * @generated + */ + public String getElementSize() { + return elementSize; + } + + /** + * + * + * @generated + */ + public void setElementSize(String newElementSize) { + String oldElementSize = elementSize; + elementSize = newElementSize; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__ELEMENT_SIZE, oldElementSize, elementSize)); + } + + /** + * + * + * @generated + */ + public Connector getBase_Connector() { + if (base_Connector != null && base_Connector.eIsProxy()) { + InternalEObject oldBase_Connector = (InternalEObject)base_Connector; + base_Connector = (Connector)eResolveProxy(oldBase_Connector); + if (base_Connector != oldBase_Connector) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__BASE_CONNECTOR, oldBase_Connector, base_Connector)); + } + } + return base_Connector; + } + + /** + * + * + * @generated + */ + public Connector basicGetBase_Connector() { + return base_Connector; + } + + /** + * + * + * @generated + */ + public void setBase_Connector(Connector newBase_Connector) { + Connector oldBase_Connector = base_Connector; + base_Connector = newBase_Connector; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__BASE_CONNECTOR, oldBase_Connector, base_Connector)); + } + + /** + * + * + * @generated + */ + public TransmModeKind getTransmMode() { + return transmMode; + } + + /** + * + * + * @generated + */ + public void setTransmMode(TransmModeKind newTransmMode) { + TransmModeKind oldTransmMode = transmMode; + transmMode = newTransmMode == null ? TRANSM_MODE_EDEFAULT : newTransmMode; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__TRANSM_MODE, oldTransmMode, transmMode)); + } + + /** + * + * + * @generated + */ + public EList getBlockT() { + if (blockT == null) { + blockT = new EDataTypeUniqueEList(String.class, this, SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__BLOCK_T); + } + return blockT; + } + + /** + * + * + * @generated + */ + public EList getPacketT() { + if (packetT == null) { + packetT = new EDataTypeUniqueEList(String.class, this, SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__PACKET_T); + } + return packetT; + } + + /** + * + * + * @generated + */ + public EList getCapacity() { + if (capacity == null) { + capacity = new EDataTypeUniqueEList(String.class, this, SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__CAPACITY); + } + return capacity; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__SPEED_FACTOR: + return getSpeedFactor(); + case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__MAIN_SCHEDULER: + if (resolve) return getMainScheduler(); + return basicGetMainScheduler(); + case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__ELEMENT_SIZE: + return getElementSize(); + case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__BASE_CONNECTOR: + if (resolve) return getBase_Connector(); + return basicGetBase_Connector(); + case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__TRANSM_MODE: + return getTransmMode(); + case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__BLOCK_T: + return getBlockT(); + case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__PACKET_T: + return getPacketT(); + case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__CAPACITY: + return getCapacity(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__SPEED_FACTOR: + setSpeedFactor((String)newValue); + return; + case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__MAIN_SCHEDULER: + setMainScheduler((Scheduler)newValue); + return; + case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__ELEMENT_SIZE: + setElementSize((String)newValue); + return; + case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__BASE_CONNECTOR: + setBase_Connector((Connector)newValue); + return; + case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__TRANSM_MODE: + setTransmMode((TransmModeKind)newValue); + return; + case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__BLOCK_T: + getBlockT().clear(); + getBlockT().addAll((Collection)newValue); + return; + case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__PACKET_T: + getPacketT().clear(); + getPacketT().addAll((Collection)newValue); + return; + case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__CAPACITY: + getCapacity().clear(); + getCapacity().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__SPEED_FACTOR: + setSpeedFactor(SPEED_FACTOR_EDEFAULT); + return; + case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__MAIN_SCHEDULER: + setMainScheduler((Scheduler)null); + return; + case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__ELEMENT_SIZE: + setElementSize(ELEMENT_SIZE_EDEFAULT); + return; + case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__BASE_CONNECTOR: + setBase_Connector((Connector)null); + return; + case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__TRANSM_MODE: + setTransmMode(TRANSM_MODE_EDEFAULT); + return; + case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__BLOCK_T: + getBlockT().clear(); + return; + case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__PACKET_T: + getPacketT().clear(); + return; + case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__CAPACITY: + getCapacity().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__SPEED_FACTOR: + return SPEED_FACTOR_EDEFAULT == null ? speedFactor != null : !SPEED_FACTOR_EDEFAULT.equals(speedFactor); + case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__MAIN_SCHEDULER: + return mainScheduler != null; + case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__ELEMENT_SIZE: + return ELEMENT_SIZE_EDEFAULT == null ? elementSize != null : !ELEMENT_SIZE_EDEFAULT.equals(elementSize); + case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__BASE_CONNECTOR: + return base_Connector != null; + case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__TRANSM_MODE: + return transmMode != TRANSM_MODE_EDEFAULT; + case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__BLOCK_T: + return blockT != null && !blockT.isEmpty(); + case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__PACKET_T: + return packetT != null && !packetT.isEmpty(); + case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__CAPACITY: + return capacity != null && !capacity.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) { + if (baseClass == ProcessingResource.class) { + switch (derivedFeatureID) { + case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__SPEED_FACTOR: return GRMPackage.PROCESSING_RESOURCE__SPEED_FACTOR; + case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__MAIN_SCHEDULER: return GRMPackage.PROCESSING_RESOURCE__MAIN_SCHEDULER; + default: return -1; + } + } + if (baseClass == CommunicationMedia.class) { + switch (derivedFeatureID) { + case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__ELEMENT_SIZE: return GRMPackage.COMMUNICATION_MEDIA__ELEMENT_SIZE; + case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__BASE_CONNECTOR: return GRMPackage.COMMUNICATION_MEDIA__BASE_CONNECTOR; + case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__TRANSM_MODE: return GRMPackage.COMMUNICATION_MEDIA__TRANSM_MODE; + case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__BLOCK_T: return GRMPackage.COMMUNICATION_MEDIA__BLOCK_T; + case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__PACKET_T: return GRMPackage.COMMUNICATION_MEDIA__PACKET_T; + case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__CAPACITY: return GRMPackage.COMMUNICATION_MEDIA__CAPACITY; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) { + if (baseClass == ProcessingResource.class) { + switch (baseFeatureID) { + case GRMPackage.PROCESSING_RESOURCE__SPEED_FACTOR: return SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__SPEED_FACTOR; + case GRMPackage.PROCESSING_RESOURCE__MAIN_SCHEDULER: return SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__MAIN_SCHEDULER; + default: return -1; + } + } + if (baseClass == CommunicationMedia.class) { + switch (baseFeatureID) { + case GRMPackage.COMMUNICATION_MEDIA__ELEMENT_SIZE: return SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__ELEMENT_SIZE; + case GRMPackage.COMMUNICATION_MEDIA__BASE_CONNECTOR: return SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__BASE_CONNECTOR; + case GRMPackage.COMMUNICATION_MEDIA__TRANSM_MODE: return SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__TRANSM_MODE; + case GRMPackage.COMMUNICATION_MEDIA__BLOCK_T: return SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__BLOCK_T; + case GRMPackage.COMMUNICATION_MEDIA__PACKET_T: return SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__PACKET_T; + case GRMPackage.COMMUNICATION_MEDIA__CAPACITY: return SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__CAPACITY; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (speedFactor: "); + result.append(speedFactor); + result.append(", elementSize: "); + result.append(elementSize); + result.append(", transmMode: "); + result.append(transmMode); + result.append(", blockT: "); + result.append(blockT); + result.append(", packetT: "); + result.append(packetT); + result.append(", capacity: "); + result.append(capacity); + result.append(')'); + return result.toString(); + } + +} //SwCommunicationResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/impl/SwInteractionResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/impl/SwInteractionResourceImpl.java new file mode 100644 index 00000000000..4efe910cdf4 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/impl/SwInteractionResourceImpl.java @@ -0,0 +1,327 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Interaction.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EObjectResolvingEList; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.QueuePolicyKind; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwInteractionResource; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.impl.SwResourceImpl; + +import org.eclipse.uml2.uml.TypedElement; + +/** + * + * An implementation of the model object 'Sw Interaction Resource'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SwInteractionResourceImpl#isIsIntraMemoryPartitionInteraction Is Intra Memory Partition Interaction}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SwInteractionResourceImpl#getWaitingQueuePolicy Waiting Queue Policy}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SwInteractionResourceImpl#getWaitingQueueCapacity Waiting Queue Capacity}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SwInteractionResourceImpl#getWaitingPolicyElements Waiting Policy Elements}
  • + *
+ *

+ * + * @generated + */ +public abstract class SwInteractionResourceImpl extends SwResourceImpl implements SwInteractionResource { + /** + * The default value of the '{@link #isIsIntraMemoryPartitionInteraction() Is Intra Memory Partition Interaction}' attribute. + * + * + * @see #isIsIntraMemoryPartitionInteraction() + * @generated + * @ordered + */ + protected static final boolean IS_INTRA_MEMORY_PARTITION_INTERACTION_EDEFAULT = false; + + /** + * The cached value of the '{@link #isIsIntraMemoryPartitionInteraction() Is Intra Memory Partition Interaction}' attribute. + * + * + * @see #isIsIntraMemoryPartitionInteraction() + * @generated + * @ordered + */ + protected boolean isIntraMemoryPartitionInteraction = IS_INTRA_MEMORY_PARTITION_INTERACTION_EDEFAULT; + + /** + * The default value of the '{@link #getWaitingQueuePolicy() Waiting Queue Policy}' attribute. + * + * + * @see #getWaitingQueuePolicy() + * @generated + * @ordered + */ + protected static final QueuePolicyKind WAITING_QUEUE_POLICY_EDEFAULT = QueuePolicyKind.FIFO; + + /** + * The cached value of the '{@link #getWaitingQueuePolicy() Waiting Queue Policy}' attribute. + * + * + * @see #getWaitingQueuePolicy() + * @generated + * @ordered + */ + protected QueuePolicyKind waitingQueuePolicy = WAITING_QUEUE_POLICY_EDEFAULT; + + /** + * The default value of the '{@link #getWaitingQueueCapacity() Waiting Queue Capacity}' attribute. + * + * + * @see #getWaitingQueueCapacity() + * @generated + * @ordered + */ + protected static final int WAITING_QUEUE_CAPACITY_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getWaitingQueueCapacity() Waiting Queue Capacity}' attribute. + * + * + * @see #getWaitingQueueCapacity() + * @generated + * @ordered + */ + protected int waitingQueueCapacity = WAITING_QUEUE_CAPACITY_EDEFAULT; + + /** + * The cached value of the '{@link #getWaitingPolicyElements() Waiting Policy Elements}' reference list. + * + * + * @see #getWaitingPolicyElements() + * @generated + * @ordered + */ + protected EList waitingPolicyElements; + + /** + * + * + * @generated + */ + protected SwInteractionResourceImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SW_InteractionPackage.Literals.SW_INTERACTION_RESOURCE; + } + + /** + * + * + * @generated + */ + public boolean isIsIntraMemoryPartitionInteraction() { + return isIntraMemoryPartitionInteraction; + } + + /** + * + * + * @generated + */ + public void setIsIntraMemoryPartitionInteraction(boolean newIsIntraMemoryPartitionInteraction) { + boolean oldIsIntraMemoryPartitionInteraction = isIntraMemoryPartitionInteraction; + isIntraMemoryPartitionInteraction = newIsIntraMemoryPartitionInteraction; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SW_InteractionPackage.SW_INTERACTION_RESOURCE__IS_INTRA_MEMORY_PARTITION_INTERACTION, oldIsIntraMemoryPartitionInteraction, isIntraMemoryPartitionInteraction)); + } + + /** + * + * + * @generated + */ + public QueuePolicyKind getWaitingQueuePolicy() { + return waitingQueuePolicy; + } + + /** + * + * + * @generated + */ + public void setWaitingQueuePolicy(QueuePolicyKind newWaitingQueuePolicy) { + QueuePolicyKind oldWaitingQueuePolicy = waitingQueuePolicy; + waitingQueuePolicy = newWaitingQueuePolicy == null ? WAITING_QUEUE_POLICY_EDEFAULT : newWaitingQueuePolicy; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SW_InteractionPackage.SW_INTERACTION_RESOURCE__WAITING_QUEUE_POLICY, oldWaitingQueuePolicy, waitingQueuePolicy)); + } + + /** + * + * + * @generated + */ + public int getWaitingQueueCapacity() { + return waitingQueueCapacity; + } + + /** + * + * + * @generated + */ + public void setWaitingQueueCapacity(int newWaitingQueueCapacity) { + int oldWaitingQueueCapacity = waitingQueueCapacity; + waitingQueueCapacity = newWaitingQueueCapacity; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SW_InteractionPackage.SW_INTERACTION_RESOURCE__WAITING_QUEUE_CAPACITY, oldWaitingQueueCapacity, waitingQueueCapacity)); + } + + /** + * + * + * @generated + */ + public EList getWaitingPolicyElements() { + if (waitingPolicyElements == null) { + waitingPolicyElements = new EObjectResolvingEList(TypedElement.class, this, SW_InteractionPackage.SW_INTERACTION_RESOURCE__WAITING_POLICY_ELEMENTS); + } + return waitingPolicyElements; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SW_InteractionPackage.SW_INTERACTION_RESOURCE__IS_INTRA_MEMORY_PARTITION_INTERACTION: + return isIsIntraMemoryPartitionInteraction(); + case SW_InteractionPackage.SW_INTERACTION_RESOURCE__WAITING_QUEUE_POLICY: + return getWaitingQueuePolicy(); + case SW_InteractionPackage.SW_INTERACTION_RESOURCE__WAITING_QUEUE_CAPACITY: + return getWaitingQueueCapacity(); + case SW_InteractionPackage.SW_INTERACTION_RESOURCE__WAITING_POLICY_ELEMENTS: + return getWaitingPolicyElements(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SW_InteractionPackage.SW_INTERACTION_RESOURCE__IS_INTRA_MEMORY_PARTITION_INTERACTION: + setIsIntraMemoryPartitionInteraction((Boolean)newValue); + return; + case SW_InteractionPackage.SW_INTERACTION_RESOURCE__WAITING_QUEUE_POLICY: + setWaitingQueuePolicy((QueuePolicyKind)newValue); + return; + case SW_InteractionPackage.SW_INTERACTION_RESOURCE__WAITING_QUEUE_CAPACITY: + setWaitingQueueCapacity((Integer)newValue); + return; + case SW_InteractionPackage.SW_INTERACTION_RESOURCE__WAITING_POLICY_ELEMENTS: + getWaitingPolicyElements().clear(); + getWaitingPolicyElements().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SW_InteractionPackage.SW_INTERACTION_RESOURCE__IS_INTRA_MEMORY_PARTITION_INTERACTION: + setIsIntraMemoryPartitionInteraction(IS_INTRA_MEMORY_PARTITION_INTERACTION_EDEFAULT); + return; + case SW_InteractionPackage.SW_INTERACTION_RESOURCE__WAITING_QUEUE_POLICY: + setWaitingQueuePolicy(WAITING_QUEUE_POLICY_EDEFAULT); + return; + case SW_InteractionPackage.SW_INTERACTION_RESOURCE__WAITING_QUEUE_CAPACITY: + setWaitingQueueCapacity(WAITING_QUEUE_CAPACITY_EDEFAULT); + return; + case SW_InteractionPackage.SW_INTERACTION_RESOURCE__WAITING_POLICY_ELEMENTS: + getWaitingPolicyElements().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SW_InteractionPackage.SW_INTERACTION_RESOURCE__IS_INTRA_MEMORY_PARTITION_INTERACTION: + return isIntraMemoryPartitionInteraction != IS_INTRA_MEMORY_PARTITION_INTERACTION_EDEFAULT; + case SW_InteractionPackage.SW_INTERACTION_RESOURCE__WAITING_QUEUE_POLICY: + return waitingQueuePolicy != WAITING_QUEUE_POLICY_EDEFAULT; + case SW_InteractionPackage.SW_INTERACTION_RESOURCE__WAITING_QUEUE_CAPACITY: + return waitingQueueCapacity != WAITING_QUEUE_CAPACITY_EDEFAULT; + case SW_InteractionPackage.SW_INTERACTION_RESOURCE__WAITING_POLICY_ELEMENTS: + return waitingPolicyElements != null && !waitingPolicyElements.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (isIntraMemoryPartitionInteraction: "); + result.append(isIntraMemoryPartitionInteraction); + result.append(", waitingQueuePolicy: "); + result.append(waitingQueuePolicy); + result.append(", waitingQueueCapacity: "); + result.append(waitingQueueCapacity); + result.append(')'); + return result.toString(); + } + +} //SwInteractionResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/impl/SwMutualExclusionResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/impl/SwMutualExclusionResourceImpl.java new file mode 100644 index 00000000000..1615e9b634f --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/impl/SwMutualExclusionResourceImpl.java @@ -0,0 +1,661 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Interaction.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EObjectResolvingEList; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.ConcurrentAccessProtocolKind; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.MutualExclusionResourceKind; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwMutualExclusionResource; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.MutualExclusionResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler; + +import org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.ProtectProtocolKind; + +import org.eclipse.uml2.uml.BehavioralFeature; +import org.eclipse.uml2.uml.TypedElement; + +/** + * + * An implementation of the model object 'Sw Mutual Exclusion Resource'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SwMutualExclusionResourceImpl#getProtectKind Protect Kind}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SwMutualExclusionResourceImpl#getCeiling Ceiling}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SwMutualExclusionResourceImpl#getOtherProtectProtocol Other Protect Protocol}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SwMutualExclusionResourceImpl#getScheduler Scheduler}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SwMutualExclusionResourceImpl#getMechanism Mechanism}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SwMutualExclusionResourceImpl#getConcurrentAccessProtocol Concurrent Access Protocol}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SwMutualExclusionResourceImpl#getAccessTokenElements Access Token Elements}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SwMutualExclusionResourceImpl#getReleaseServices Release Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SwMutualExclusionResourceImpl#getAcquireServices Acquire Services}
  • + *
+ *

+ * + * @generated + */ +public class SwMutualExclusionResourceImpl extends SwSynchronizationResourceImpl implements SwMutualExclusionResource { + /** + * The default value of the '{@link #getProtectKind() Protect Kind}' attribute. + * + * + * @see #getProtectKind() + * @generated + * @ordered + */ + protected static final ProtectProtocolKind PROTECT_KIND_EDEFAULT = ProtectProtocolKind.PRIORITY_INHERITANCE; + + /** + * The cached value of the '{@link #getProtectKind() Protect Kind}' attribute. + * + * + * @see #getProtectKind() + * @generated + * @ordered + */ + protected ProtectProtocolKind protectKind = PROTECT_KIND_EDEFAULT; + + /** + * The default value of the '{@link #getCeiling() Ceiling}' attribute. + * + * + * @see #getCeiling() + * @generated + * @ordered + */ + protected static final String CEILING_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCeiling() Ceiling}' attribute. + * + * + * @see #getCeiling() + * @generated + * @ordered + */ + protected String ceiling = CEILING_EDEFAULT; + + /** + * The default value of the '{@link #getOtherProtectProtocol() Other Protect Protocol}' attribute. + * + * + * @see #getOtherProtectProtocol() + * @generated + * @ordered + */ + protected static final String OTHER_PROTECT_PROTOCOL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getOtherProtectProtocol() Other Protect Protocol}' attribute. + * + * + * @see #getOtherProtectProtocol() + * @generated + * @ordered + */ + protected String otherProtectProtocol = OTHER_PROTECT_PROTOCOL_EDEFAULT; + + /** + * The cached value of the '{@link #getScheduler() Scheduler}' reference. + * + * + * @see #getScheduler() + * @generated + * @ordered + */ + protected Scheduler scheduler; + + /** + * The default value of the '{@link #getMechanism() Mechanism}' attribute. + * + * + * @see #getMechanism() + * @generated + * @ordered + */ + protected static final MutualExclusionResourceKind MECHANISM_EDEFAULT = MutualExclusionResourceKind.BOOLEAN_SEMAPHORE; + + /** + * The cached value of the '{@link #getMechanism() Mechanism}' attribute. + * + * + * @see #getMechanism() + * @generated + * @ordered + */ + protected MutualExclusionResourceKind mechanism = MECHANISM_EDEFAULT; + + /** + * The default value of the '{@link #getConcurrentAccessProtocol() Concurrent Access Protocol}' attribute. + * + * + * @see #getConcurrentAccessProtocol() + * @generated + * @ordered + */ + protected static final ConcurrentAccessProtocolKind CONCURRENT_ACCESS_PROTOCOL_EDEFAULT = ConcurrentAccessProtocolKind.PIP; + + /** + * The cached value of the '{@link #getConcurrentAccessProtocol() Concurrent Access Protocol}' attribute. + * + * + * @see #getConcurrentAccessProtocol() + * @generated + * @ordered + */ + protected ConcurrentAccessProtocolKind concurrentAccessProtocol = CONCURRENT_ACCESS_PROTOCOL_EDEFAULT; + + /** + * The cached value of the '{@link #getAccessTokenElements() Access Token Elements}' reference list. + * + * + * @see #getAccessTokenElements() + * @generated + * @ordered + */ + protected EList accessTokenElements; + + /** + * The cached value of the '{@link #getReleaseServices() Release Services}' reference list. + * + * + * @see #getReleaseServices() + * @generated + * @ordered + */ + protected EList releaseServices; + + /** + * The cached value of the '{@link #getAcquireServices() Acquire Services}' reference list. + * + * + * @see #getAcquireServices() + * @generated + * @ordered + */ + protected EList acquireServices; + + /** + * + * + * @generated + */ + protected SwMutualExclusionResourceImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SW_InteractionPackage.Literals.SW_MUTUAL_EXCLUSION_RESOURCE; + } + + /** + * + * + * @generated + */ + public ProtectProtocolKind getProtectKind() { + return protectKind; + } + + /** + * + * + * @generated + */ + public void setProtectKind(ProtectProtocolKind newProtectKind) { + ProtectProtocolKind oldProtectKind = protectKind; + protectKind = newProtectKind == null ? PROTECT_KIND_EDEFAULT : newProtectKind; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__PROTECT_KIND, oldProtectKind, protectKind)); + } + + /** + * + * + * @generated + */ + public String getCeiling() { + return ceiling; + } + + /** + * + * + * @generated + */ + public void setCeiling(String newCeiling) { + String oldCeiling = ceiling; + ceiling = newCeiling; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__CEILING, oldCeiling, ceiling)); + } + + /** + * + * + * @generated + */ + public String getOtherProtectProtocol() { + return otherProtectProtocol; + } + + /** + * + * + * @generated + */ + public void setOtherProtectProtocol(String newOtherProtectProtocol) { + String oldOtherProtectProtocol = otherProtectProtocol; + otherProtectProtocol = newOtherProtectProtocol; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__OTHER_PROTECT_PROTOCOL, oldOtherProtectProtocol, otherProtectProtocol)); + } + + /** + * + * + * @generated + */ + public Scheduler getScheduler() { + if (scheduler != null && scheduler.eIsProxy()) { + InternalEObject oldScheduler = (InternalEObject)scheduler; + scheduler = (Scheduler)eResolveProxy(oldScheduler); + if (scheduler != oldScheduler) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__SCHEDULER, oldScheduler, scheduler)); + } + } + return scheduler; + } + + /** + * + * + * @generated + */ + public Scheduler basicGetScheduler() { + return scheduler; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetScheduler(Scheduler newScheduler, NotificationChain msgs) { + Scheduler oldScheduler = scheduler; + scheduler = newScheduler; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__SCHEDULER, oldScheduler, newScheduler); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setScheduler(Scheduler newScheduler) { + if (newScheduler != scheduler) { + NotificationChain msgs = null; + if (scheduler != null) + msgs = ((InternalEObject)scheduler).eInverseRemove(this, GRMPackage.SCHEDULER__PROTECTED_SHARED_RESOURCES, Scheduler.class, msgs); + if (newScheduler != null) + msgs = ((InternalEObject)newScheduler).eInverseAdd(this, GRMPackage.SCHEDULER__PROTECTED_SHARED_RESOURCES, Scheduler.class, msgs); + msgs = basicSetScheduler(newScheduler, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__SCHEDULER, newScheduler, newScheduler)); + } + + /** + * + * + * @generated + */ + public MutualExclusionResourceKind getMechanism() { + return mechanism; + } + + /** + * + * + * @generated + */ + public void setMechanism(MutualExclusionResourceKind newMechanism) { + MutualExclusionResourceKind oldMechanism = mechanism; + mechanism = newMechanism == null ? MECHANISM_EDEFAULT : newMechanism; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__MECHANISM, oldMechanism, mechanism)); + } + + /** + * + * + * @generated + */ + public ConcurrentAccessProtocolKind getConcurrentAccessProtocol() { + return concurrentAccessProtocol; + } + + /** + * + * + * @generated + */ + public void setConcurrentAccessProtocol(ConcurrentAccessProtocolKind newConcurrentAccessProtocol) { + ConcurrentAccessProtocolKind oldConcurrentAccessProtocol = concurrentAccessProtocol; + concurrentAccessProtocol = newConcurrentAccessProtocol == null ? CONCURRENT_ACCESS_PROTOCOL_EDEFAULT : newConcurrentAccessProtocol; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__CONCURRENT_ACCESS_PROTOCOL, oldConcurrentAccessProtocol, concurrentAccessProtocol)); + } + + /** + * + * + * @generated + */ + public EList getAccessTokenElements() { + if (accessTokenElements == null) { + accessTokenElements = new EObjectResolvingEList(TypedElement.class, this, SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__ACCESS_TOKEN_ELEMENTS); + } + return accessTokenElements; + } + + /** + * + * + * @generated + */ + public EList getReleaseServices() { + if (releaseServices == null) { + releaseServices = new EObjectResolvingEList(BehavioralFeature.class, this, SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__RELEASE_SERVICES); + } + return releaseServices; + } + + /** + * + * + * @generated + */ + public EList getAcquireServices() { + if (acquireServices == null) { + acquireServices = new EObjectResolvingEList(BehavioralFeature.class, this, SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__ACQUIRE_SERVICES); + } + return acquireServices; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__SCHEDULER: + if (scheduler != null) + msgs = ((InternalEObject)scheduler).eInverseRemove(this, GRMPackage.SCHEDULER__PROTECTED_SHARED_RESOURCES, Scheduler.class, msgs); + return basicSetScheduler((Scheduler)otherEnd, msgs); + } + return super.eInverseAdd(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__SCHEDULER: + return basicSetScheduler(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__PROTECT_KIND: + return getProtectKind(); + case SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__CEILING: + return getCeiling(); + case SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__OTHER_PROTECT_PROTOCOL: + return getOtherProtectProtocol(); + case SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__SCHEDULER: + if (resolve) return getScheduler(); + return basicGetScheduler(); + case SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__MECHANISM: + return getMechanism(); + case SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__CONCURRENT_ACCESS_PROTOCOL: + return getConcurrentAccessProtocol(); + case SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__ACCESS_TOKEN_ELEMENTS: + return getAccessTokenElements(); + case SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__RELEASE_SERVICES: + return getReleaseServices(); + case SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__ACQUIRE_SERVICES: + return getAcquireServices(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__PROTECT_KIND: + setProtectKind((ProtectProtocolKind)newValue); + return; + case SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__CEILING: + setCeiling((String)newValue); + return; + case SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__OTHER_PROTECT_PROTOCOL: + setOtherProtectProtocol((String)newValue); + return; + case SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__SCHEDULER: + setScheduler((Scheduler)newValue); + return; + case SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__MECHANISM: + setMechanism((MutualExclusionResourceKind)newValue); + return; + case SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__CONCURRENT_ACCESS_PROTOCOL: + setConcurrentAccessProtocol((ConcurrentAccessProtocolKind)newValue); + return; + case SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__ACCESS_TOKEN_ELEMENTS: + getAccessTokenElements().clear(); + getAccessTokenElements().addAll((Collection)newValue); + return; + case SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__RELEASE_SERVICES: + getReleaseServices().clear(); + getReleaseServices().addAll((Collection)newValue); + return; + case SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__ACQUIRE_SERVICES: + getAcquireServices().clear(); + getAcquireServices().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__PROTECT_KIND: + setProtectKind(PROTECT_KIND_EDEFAULT); + return; + case SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__CEILING: + setCeiling(CEILING_EDEFAULT); + return; + case SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__OTHER_PROTECT_PROTOCOL: + setOtherProtectProtocol(OTHER_PROTECT_PROTOCOL_EDEFAULT); + return; + case SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__SCHEDULER: + setScheduler((Scheduler)null); + return; + case SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__MECHANISM: + setMechanism(MECHANISM_EDEFAULT); + return; + case SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__CONCURRENT_ACCESS_PROTOCOL: + setConcurrentAccessProtocol(CONCURRENT_ACCESS_PROTOCOL_EDEFAULT); + return; + case SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__ACCESS_TOKEN_ELEMENTS: + getAccessTokenElements().clear(); + return; + case SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__RELEASE_SERVICES: + getReleaseServices().clear(); + return; + case SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__ACQUIRE_SERVICES: + getAcquireServices().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__PROTECT_KIND: + return protectKind != PROTECT_KIND_EDEFAULT; + case SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__CEILING: + return CEILING_EDEFAULT == null ? ceiling != null : !CEILING_EDEFAULT.equals(ceiling); + case SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__OTHER_PROTECT_PROTOCOL: + return OTHER_PROTECT_PROTOCOL_EDEFAULT == null ? otherProtectProtocol != null : !OTHER_PROTECT_PROTOCOL_EDEFAULT.equals(otherProtectProtocol); + case SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__SCHEDULER: + return scheduler != null; + case SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__MECHANISM: + return mechanism != MECHANISM_EDEFAULT; + case SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__CONCURRENT_ACCESS_PROTOCOL: + return concurrentAccessProtocol != CONCURRENT_ACCESS_PROTOCOL_EDEFAULT; + case SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__ACCESS_TOKEN_ELEMENTS: + return accessTokenElements != null && !accessTokenElements.isEmpty(); + case SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__RELEASE_SERVICES: + return releaseServices != null && !releaseServices.isEmpty(); + case SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__ACQUIRE_SERVICES: + return acquireServices != null && !acquireServices.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) { + if (baseClass == MutualExclusionResource.class) { + switch (derivedFeatureID) { + case SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__PROTECT_KIND: return GRMPackage.MUTUAL_EXCLUSION_RESOURCE__PROTECT_KIND; + case SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__CEILING: return GRMPackage.MUTUAL_EXCLUSION_RESOURCE__CEILING; + case SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__OTHER_PROTECT_PROTOCOL: return GRMPackage.MUTUAL_EXCLUSION_RESOURCE__OTHER_PROTECT_PROTOCOL; + case SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__SCHEDULER: return GRMPackage.MUTUAL_EXCLUSION_RESOURCE__SCHEDULER; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) { + if (baseClass == MutualExclusionResource.class) { + switch (baseFeatureID) { + case GRMPackage.MUTUAL_EXCLUSION_RESOURCE__PROTECT_KIND: return SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__PROTECT_KIND; + case GRMPackage.MUTUAL_EXCLUSION_RESOURCE__CEILING: return SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__CEILING; + case GRMPackage.MUTUAL_EXCLUSION_RESOURCE__OTHER_PROTECT_PROTOCOL: return SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__OTHER_PROTECT_PROTOCOL; + case GRMPackage.MUTUAL_EXCLUSION_RESOURCE__SCHEDULER: return SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE__SCHEDULER; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (protectKind: "); + result.append(protectKind); + result.append(", ceiling: "); + result.append(ceiling); + result.append(", otherProtectProtocol: "); + result.append(otherProtectProtocol); + result.append(", mechanism: "); + result.append(mechanism); + result.append(", concurrentAccessProtocol: "); + result.append(concurrentAccessProtocol); + result.append(')'); + return result.toString(); + } + +} //SwMutualExclusionResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/impl/SwSynchronizationResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/impl/SwSynchronizationResourceImpl.java new file mode 100644 index 00000000000..c0527448386 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/impl/SwSynchronizationResourceImpl.java @@ -0,0 +1,50 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Interaction.impl; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwSynchronizationResource; + +/** + * + * An implementation of the model object 'Sw Synchronization Resource'. + * + *

+ *

+ * + * @generated + */ +public abstract class SwSynchronizationResourceImpl extends SwInteractionResourceImpl implements SwSynchronizationResource { + /** + * + * + * @generated + */ + protected SwSynchronizationResourceImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SW_InteractionPackage.Literals.SW_SYNCHRONIZATION_RESOURCE; + } + +} //SwSynchronizationResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/util/SW_InteractionAdapterFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/util/SW_InteractionAdapterFactory.java new file mode 100644 index 00000000000..0865e042feb --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/util/SW_InteractionAdapterFactory.java @@ -0,0 +1,355 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Interaction.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.MARTE_DesignModel.SRM.SW_Interaction.*; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SwResource; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationMedia; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.MutualExclusionResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ProcessingResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SynchronizationResource; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage + * @generated + */ +public class SW_InteractionAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * @generated + */ + protected static SW_InteractionPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public SW_InteractionAdapterFactory() { + if (modelPackage == null) { + modelPackage = SW_InteractionPackage.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 SW_InteractionSwitch modelSwitch = + new SW_InteractionSwitch() { + @Override + public Adapter caseSwInteractionResource(SwInteractionResource object) { + return createSwInteractionResourceAdapter(); + } + @Override + public Adapter caseSwCommunicationResource(SwCommunicationResource object) { + return createSwCommunicationResourceAdapter(); + } + @Override + public Adapter caseSwSynchronizationResource(SwSynchronizationResource object) { + return createSwSynchronizationResourceAdapter(); + } + @Override + public Adapter caseSharedDataComResource(SharedDataComResource object) { + return createSharedDataComResourceAdapter(); + } + @Override + public Adapter caseMessageComResource(MessageComResource object) { + return createMessageComResourceAdapter(); + } + @Override + public Adapter caseNotificationResource(NotificationResource object) { + return createNotificationResourceAdapter(); + } + @Override + public Adapter caseSwMutualExclusionResource(SwMutualExclusionResource object) { + return createSwMutualExclusionResourceAdapter(); + } + @Override + public Adapter caseResource(Resource object) { + return createResourceAdapter(); + } + @Override + public Adapter caseSwResource(SwResource object) { + return createSwResourceAdapter(); + } + @Override + public Adapter caseProcessingResource(ProcessingResource object) { + return createProcessingResourceAdapter(); + } + @Override + public Adapter caseCommunicationMedia(CommunicationMedia object) { + return createCommunicationMediaAdapter(); + } + @Override + public Adapter caseSynchronizationResource(SynchronizationResource object) { + return createSynchronizationResourceAdapter(); + } + @Override + public Adapter caseMutualExclusionResource(MutualExclusionResource object) { + return createMutualExclusionResourceAdapter(); + } + @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.MARTE_DesignModel.SRM.SW_Interaction.SwInteractionResource Sw Interaction Resource}'. + * + * 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.MARTE_DesignModel.SRM.SW_Interaction.SwInteractionResource + * @generated + */ + public Adapter createSwInteractionResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwCommunicationResource Sw Communication Resource}'. + * + * 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.MARTE_DesignModel.SRM.SW_Interaction.SwCommunicationResource + * @generated + */ + public Adapter createSwCommunicationResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwSynchronizationResource Sw Synchronization Resource}'. + * + * 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.MARTE_DesignModel.SRM.SW_Interaction.SwSynchronizationResource + * @generated + */ + public Adapter createSwSynchronizationResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SharedDataComResource Shared Data Com Resource}'. + * + * 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.MARTE_DesignModel.SRM.SW_Interaction.SharedDataComResource + * @generated + */ + public Adapter createSharedDataComResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.MessageComResource Message Com Resource}'. + * + * 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.MARTE_DesignModel.SRM.SW_Interaction.MessageComResource + * @generated + */ + public Adapter createMessageComResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.NotificationResource Notification Resource}'. + * + * 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.MARTE_DesignModel.SRM.SW_Interaction.NotificationResource + * @generated + */ + public Adapter createNotificationResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwMutualExclusionResource Sw Mutual Exclusion Resource}'. + * + * 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.MARTE_DesignModel.SRM.SW_Interaction.SwMutualExclusionResource + * @generated + */ + public Adapter createSwMutualExclusionResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource Resource}'. + * + * 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.MARTE_Foundations.GRM.Resource + * @generated + */ + public Adapter createResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SwResource Sw Resource}'. + * + * 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.MARTE_DesignModel.SRM.SW_ResourceCore.SwResource + * @generated + */ + public Adapter createSwResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ProcessingResource Processing Resource}'. + * + * 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.MARTE_Foundations.GRM.ProcessingResource + * @generated + */ + public Adapter createProcessingResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationMedia Communication Media}'. + * + * 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.MARTE_Foundations.GRM.CommunicationMedia + * @generated + */ + public Adapter createCommunicationMediaAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SynchronizationResource Synchronization Resource}'. + * + * 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.MARTE_Foundations.GRM.SynchronizationResource + * @generated + */ + public Adapter createSynchronizationResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.MutualExclusionResource Mutual Exclusion Resource}'. + * + * 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.MARTE_Foundations.GRM.MutualExclusionResource + * @generated + */ + public Adapter createMutualExclusionResourceAdapter() { + 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; + } + +} //SW_InteractionAdapterFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/util/SW_InteractionResourceFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/util/SW_InteractionResourceFactoryImpl.java new file mode 100644 index 00000000000..57484daa79d --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/util/SW_InteractionResourceFactoryImpl.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.MARTE_DesignModel.SRM.SW_Interaction.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; + +import org.eclipse.emf.ecore.xmi.XMLResource; + +/** + * + * The Resource Factory associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.util.SW_InteractionResourceImpl + * @generated + */ +public class SW_InteractionResourceFactoryImpl extends ResourceFactoryImpl { + /** + * Creates an instance of the resource factory. + * + * + * @generated + */ + public SW_InteractionResourceFactoryImpl() { + super(); + } + + /** + * Creates an instance of the resource. + * + * + * @generated + */ + @Override + public Resource createResource(URI uri) { + XMLResource result = new SW_InteractionResourceImpl(uri); + result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + + result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); + return result; + } + +} //SW_InteractionResourceFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/util/SW_InteractionResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/util/SW_InteractionResourceImpl.java new file mode 100644 index 00000000000..6986cd49d4c --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/util/SW_InteractionResourceImpl.java @@ -0,0 +1,39 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Interaction.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; + +/** + * + * The Resource associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.util.SW_InteractionResourceFactoryImpl + * @generated + */ +public class SW_InteractionResourceImpl extends XMLResourceImpl { + /** + * Creates an instance of the resource. + * + * + * @param uri the URI of the new resource. + * @generated + */ + public SW_InteractionResourceImpl(URI uri) { + super(uri); + } + +} //SW_InteractionResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/util/SW_InteractionSwitch.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/util/SW_InteractionSwitch.java new file mode 100644 index 00000000000..f641a7996e2 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/util/SW_InteractionSwitch.java @@ -0,0 +1,395 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Interaction.util; + +import java.util.List; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.*; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SwResource; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationMedia; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.MutualExclusionResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ProcessingResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SynchronizationResource; + +/** + * + * 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.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage + * @generated + */ +public class SW_InteractionSwitch { + /** + * The cached model package + * + * + * @generated + */ + protected static SW_InteractionPackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public SW_InteractionSwitch() { + if (modelPackage == null) { + modelPackage = SW_InteractionPackage.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 SW_InteractionPackage.SW_INTERACTION_RESOURCE: { + SwInteractionResource swInteractionResource = (SwInteractionResource)theEObject; + T result = caseSwInteractionResource(swInteractionResource); + if (result == null) result = caseSwResource(swInteractionResource); + if (result == null) result = caseResource(swInteractionResource); + if (result == null) result = defaultCase(theEObject); + return result; + } + case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE: { + SwCommunicationResource swCommunicationResource = (SwCommunicationResource)theEObject; + T result = caseSwCommunicationResource(swCommunicationResource); + if (result == null) result = caseSwInteractionResource(swCommunicationResource); + if (result == null) result = caseCommunicationMedia(swCommunicationResource); + if (result == null) result = caseSwResource(swCommunicationResource); + if (result == null) result = caseProcessingResource(swCommunicationResource); + if (result == null) result = caseResource(swCommunicationResource); + if (result == null) result = defaultCase(theEObject); + return result; + } + case SW_InteractionPackage.SW_SYNCHRONIZATION_RESOURCE: { + SwSynchronizationResource swSynchronizationResource = (SwSynchronizationResource)theEObject; + T result = caseSwSynchronizationResource(swSynchronizationResource); + if (result == null) result = caseSwInteractionResource(swSynchronizationResource); + if (result == null) result = caseSynchronizationResource(swSynchronizationResource); + if (result == null) result = caseSwResource(swSynchronizationResource); + if (result == null) result = caseResource(swSynchronizationResource); + if (result == null) result = defaultCase(theEObject); + return result; + } + case SW_InteractionPackage.SHARED_DATA_COM_RESOURCE: { + SharedDataComResource sharedDataComResource = (SharedDataComResource)theEObject; + T result = caseSharedDataComResource(sharedDataComResource); + if (result == null) result = caseSwCommunicationResource(sharedDataComResource); + if (result == null) result = caseSwInteractionResource(sharedDataComResource); + if (result == null) result = caseCommunicationMedia(sharedDataComResource); + if (result == null) result = caseSwResource(sharedDataComResource); + if (result == null) result = caseProcessingResource(sharedDataComResource); + if (result == null) result = caseResource(sharedDataComResource); + if (result == null) result = defaultCase(theEObject); + return result; + } + case SW_InteractionPackage.MESSAGE_COM_RESOURCE: { + MessageComResource messageComResource = (MessageComResource)theEObject; + T result = caseMessageComResource(messageComResource); + if (result == null) result = caseSwCommunicationResource(messageComResource); + if (result == null) result = caseSwInteractionResource(messageComResource); + if (result == null) result = caseCommunicationMedia(messageComResource); + if (result == null) result = caseSwResource(messageComResource); + if (result == null) result = caseProcessingResource(messageComResource); + if (result == null) result = caseResource(messageComResource); + if (result == null) result = defaultCase(theEObject); + return result; + } + case SW_InteractionPackage.NOTIFICATION_RESOURCE: { + NotificationResource notificationResource = (NotificationResource)theEObject; + T result = caseNotificationResource(notificationResource); + if (result == null) result = caseSwSynchronizationResource(notificationResource); + if (result == null) result = caseSwInteractionResource(notificationResource); + if (result == null) result = caseSynchronizationResource(notificationResource); + if (result == null) result = caseSwResource(notificationResource); + if (result == null) result = caseResource(notificationResource); + if (result == null) result = defaultCase(theEObject); + return result; + } + case SW_InteractionPackage.SW_MUTUAL_EXCLUSION_RESOURCE: { + SwMutualExclusionResource swMutualExclusionResource = (SwMutualExclusionResource)theEObject; + T result = caseSwMutualExclusionResource(swMutualExclusionResource); + if (result == null) result = caseSwSynchronizationResource(swMutualExclusionResource); + if (result == null) result = caseMutualExclusionResource(swMutualExclusionResource); + if (result == null) result = caseSwInteractionResource(swMutualExclusionResource); + if (result == null) result = caseSynchronizationResource(swMutualExclusionResource); + if (result == null) result = caseSwResource(swMutualExclusionResource); + if (result == null) result = caseResource(swMutualExclusionResource); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Sw Interaction Resource'. + * + * 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 'Sw Interaction Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSwInteractionResource(SwInteractionResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Sw Communication Resource'. + * + * 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 'Sw Communication Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSwCommunicationResource(SwCommunicationResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Sw Synchronization Resource'. + * + * 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 'Sw Synchronization Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSwSynchronizationResource(SwSynchronizationResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Shared Data Com Resource'. + * + * 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 'Shared Data Com Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSharedDataComResource(SharedDataComResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Message Com Resource'. + * + * 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 'Message Com Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseMessageComResource(MessageComResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Notification Resource'. + * + * 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 'Notification Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseNotificationResource(NotificationResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Sw Mutual Exclusion Resource'. + * + * 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 'Sw Mutual Exclusion Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSwMutualExclusionResource(SwMutualExclusionResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Resource'. + * + * 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 'Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseResource(Resource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Sw Resource'. + * + * 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 'Sw Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSwResource(SwResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Processing Resource'. + * + * 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 'Processing Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseProcessingResource(ProcessingResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Communication Media'. + * + * 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 'Communication Media'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCommunicationMedia(CommunicationMedia object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Synchronization Resource'. + * + * 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 'Synchronization Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSynchronizationResource(SynchronizationResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Mutual Exclusion Resource'. + * + * 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 'Mutual Exclusion Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseMutualExclusionResource(MutualExclusionResource 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; + } + +} //SW_InteractionSwitch diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/util/SW_InteractionXMLProcessor.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/util/SW_InteractionXMLProcessor.java new file mode 100644 index 00000000000..d1e594e804f --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/util/SW_InteractionXMLProcessor.java @@ -0,0 +1,61 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_Interaction.util; + +import java.util.Map; + +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.xmi.util.XMLProcessor; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage; + +/** + * This class contains helper methods to serialize and deserialize XML documents + * + * + * @generated + */ +public class SW_InteractionXMLProcessor extends XMLProcessor { + + /** + * Public constructor to instantiate the helper. + * + * + * @generated + */ + public SW_InteractionXMLProcessor() { + super((EPackage.Registry.INSTANCE)); + SW_InteractionPackage.eINSTANCE.eClass(); + } + + /** + * Register for "*" and "xml" file extensions the SW_InteractionResourceFactoryImpl factory. + * + * + * @generated + */ + @Override + protected Map getRegistrations() { + if (registrations == null) { + super.getRegistrations(); + registrations.put(XML_EXTENSION, new SW_InteractionResourceFactoryImpl()); + registrations.put(STAR_EXTENSION, new SW_InteractionResourceFactoryImpl()); + } + return registrations; + } + +} //SW_InteractionXMLProcessor diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/SW_ResourceCoreFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/SW_ResourceCoreFactory.java new file mode 100644 index 00000000000..8a22cddb802 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/SW_ResourceCoreFactory.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.MARTE_DesignModel.SRM.SW_ResourceCore; + +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.MARTE_DesignModel.SRM.SW_ResourceCore.SW_ResourceCorePackage + * @generated + */ +public interface SW_ResourceCoreFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + SW_ResourceCoreFactory eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.impl.SW_ResourceCoreFactoryImpl.init(); + + /** + * Returns a new object of class 'Sw Access Service'. + * + * + * @return a new object of class 'Sw Access Service'. + * @generated + */ + SwAccessService createSwAccessService(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + SW_ResourceCorePackage getSW_ResourceCorePackage(); + +} //SW_ResourceCoreFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/SW_ResourceCorePackage.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/SW_ResourceCorePackage.java new file mode 100644 index 00000000000..8b73091bf50 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/SW_ResourceCorePackage.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.MARTE_DesignModel.SRM.SW_ResourceCore; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage; + +/** + * + * 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.MARTE_DesignModel.SRM.SW_ResourceCore.SW_ResourceCoreFactory + * @model kind="package" + * @generated + */ +public interface SW_ResourceCorePackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "SW_ResourceCore"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "http://www.eclipse.org/papyrus/SW_ResourceCore/1"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "SW_ResourceCore"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + SW_ResourceCorePackage eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.impl.SW_ResourceCorePackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.impl.SwResourceImpl Sw Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.impl.SwResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.impl.SW_ResourceCorePackageImpl#getSwResource() + * @generated + */ + int SW_RESOURCE = 0; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int SW_RESOURCE__RES_MULT = GRMPackage.RESOURCE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int SW_RESOURCE__IS_PROTECTED = GRMPackage.RESOURCE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int SW_RESOURCE__IS_ACTIVE = GRMPackage.RESOURCE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int SW_RESOURCE__BASE_PROPERTY = GRMPackage.RESOURCE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int SW_RESOURCE__BASE_INSTANCE_SPECIFICATION = GRMPackage.RESOURCE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int SW_RESOURCE__BASE_CLASSIFIER = GRMPackage.RESOURCE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int SW_RESOURCE__BASE_LIFELINE = GRMPackage.RESOURCE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int SW_RESOURCE__BASE_CONNECTABLE_ELEMENT = GRMPackage.RESOURCE__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Identifier Elements' reference list. + * + * + * @generated + * @ordered + */ + int SW_RESOURCE__IDENTIFIER_ELEMENTS = GRMPackage.RESOURCE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'State Elements' reference list. + * + * + * @generated + * @ordered + */ + int SW_RESOURCE__STATE_ELEMENTS = GRMPackage.RESOURCE_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Memory Size Footprint' reference. + * + * + * @generated + * @ordered + */ + int SW_RESOURCE__MEMORY_SIZE_FOOTPRINT = GRMPackage.RESOURCE_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Create Services' reference list. + * + * + * @generated + * @ordered + */ + int SW_RESOURCE__CREATE_SERVICES = GRMPackage.RESOURCE_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Delete Services' reference list. + * + * + * @generated + * @ordered + */ + int SW_RESOURCE__DELETE_SERVICES = GRMPackage.RESOURCE_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Initialize Services' reference list. + * + * + * @generated + * @ordered + */ + int SW_RESOURCE__INITIALIZE_SERVICES = GRMPackage.RESOURCE_FEATURE_COUNT + 5; + + /** + * The number of structural features of the 'Sw Resource' class. + * + * + * @generated + * @ordered + */ + int SW_RESOURCE_FEATURE_COUNT = GRMPackage.RESOURCE_FEATURE_COUNT + 6; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.impl.SwAccessServiceImpl Sw Access Service}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.impl.SwAccessServiceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.impl.SW_ResourceCorePackageImpl#getSwAccessService() + * @generated + */ + int SW_ACCESS_SERVICE = 1; + + /** + * The feature id for the 'Owner' reference. + * + * + * @generated + * @ordered + */ + int SW_ACCESS_SERVICE__OWNER = GRMPackage.GR_SERVICE__OWNER; + + /** + * The feature id for the 'Base Execution Specification' reference. + * + * + * @generated + * @ordered + */ + int SW_ACCESS_SERVICE__BASE_EXECUTION_SPECIFICATION = GRMPackage.GR_SERVICE__BASE_EXECUTION_SPECIFICATION; + + /** + * The feature id for the 'Base Behavioral Feature' reference. + * + * + * @generated + * @ordered + */ + int SW_ACCESS_SERVICE__BASE_BEHAVIORAL_FEATURE = GRMPackage.GR_SERVICE__BASE_BEHAVIORAL_FEATURE; + + /** + * The feature id for the 'Base Behavior' reference. + * + * + * @generated + * @ordered + */ + int SW_ACCESS_SERVICE__BASE_BEHAVIOR = GRMPackage.GR_SERVICE__BASE_BEHAVIOR; + + /** + * The feature id for the 'Base Collaboration' reference. + * + * + * @generated + * @ordered + */ + int SW_ACCESS_SERVICE__BASE_COLLABORATION = GRMPackage.GR_SERVICE__BASE_COLLABORATION; + + /** + * The feature id for the 'Base Collaboration Use' reference. + * + * + * @generated + * @ordered + */ + int SW_ACCESS_SERVICE__BASE_COLLABORATION_USE = GRMPackage.GR_SERVICE__BASE_COLLABORATION_USE; + + /** + * The feature id for the 'Is Modifier' attribute. + * + * + * @generated + * @ordered + */ + int SW_ACCESS_SERVICE__IS_MODIFIER = GRMPackage.GR_SERVICE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Accessed Element' reference. + * + * + * @generated + * @ordered + */ + int SW_ACCESS_SERVICE__ACCESSED_ELEMENT = GRMPackage.GR_SERVICE_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Sw Access Service' class. + * + * + * @generated + * @ordered + */ + int SW_ACCESS_SERVICE_FEATURE_COUNT = GRMPackage.GR_SERVICE_FEATURE_COUNT + 2; + + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SwResource Sw Resource}'. + * + * + * @return the meta object for class 'Sw Resource'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SwResource + * @generated + */ + EClass getSwResource(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SwResource#getIdentifierElements Identifier Elements}'. + * + * + * @return the meta object for the reference list 'Identifier Elements'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SwResource#getIdentifierElements() + * @see #getSwResource() + * @generated + */ + EReference getSwResource_IdentifierElements(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SwResource#getStateElements State Elements}'. + * + * + * @return the meta object for the reference list 'State Elements'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SwResource#getStateElements() + * @see #getSwResource() + * @generated + */ + EReference getSwResource_StateElements(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SwResource#getMemorySizeFootprint Memory Size Footprint}'. + * + * + * @return the meta object for the reference 'Memory Size Footprint'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SwResource#getMemorySizeFootprint() + * @see #getSwResource() + * @generated + */ + EReference getSwResource_MemorySizeFootprint(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SwResource#getCreateServices Create Services}'. + * + * + * @return the meta object for the reference list 'Create Services'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SwResource#getCreateServices() + * @see #getSwResource() + * @generated + */ + EReference getSwResource_CreateServices(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SwResource#getDeleteServices Delete Services}'. + * + * + * @return the meta object for the reference list 'Delete Services'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SwResource#getDeleteServices() + * @see #getSwResource() + * @generated + */ + EReference getSwResource_DeleteServices(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SwResource#getInitializeServices Initialize Services}'. + * + * + * @return the meta object for the reference list 'Initialize Services'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SwResource#getInitializeServices() + * @see #getSwResource() + * @generated + */ + EReference getSwResource_InitializeServices(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SwAccessService Sw Access Service}'. + * + * + * @return the meta object for class 'Sw Access Service'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SwAccessService + * @generated + */ + EClass getSwAccessService(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SwAccessService#isIsModifier Is Modifier}'. + * + * + * @return the meta object for the attribute 'Is Modifier'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SwAccessService#isIsModifier() + * @see #getSwAccessService() + * @generated + */ + EAttribute getSwAccessService_IsModifier(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SwAccessService#getAccessedElement Accessed Element}'. + * + * + * @return the meta object for the reference 'Accessed Element'. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SwAccessService#getAccessedElement() + * @see #getSwAccessService() + * @generated + */ + EReference getSwAccessService_AccessedElement(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + SW_ResourceCoreFactory getSW_ResourceCoreFactory(); + + /** + * + * 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.MARTE_DesignModel.SRM.SW_ResourceCore.impl.SwResourceImpl Sw Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.impl.SwResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.impl.SW_ResourceCorePackageImpl#getSwResource() + * @generated + */ + EClass SW_RESOURCE = eINSTANCE.getSwResource(); + + /** + * The meta object literal for the 'Identifier Elements' reference list feature. + * + * + * @generated + */ + EReference SW_RESOURCE__IDENTIFIER_ELEMENTS = eINSTANCE.getSwResource_IdentifierElements(); + + /** + * The meta object literal for the 'State Elements' reference list feature. + * + * + * @generated + */ + EReference SW_RESOURCE__STATE_ELEMENTS = eINSTANCE.getSwResource_StateElements(); + + /** + * The meta object literal for the 'Memory Size Footprint' reference feature. + * + * + * @generated + */ + EReference SW_RESOURCE__MEMORY_SIZE_FOOTPRINT = eINSTANCE.getSwResource_MemorySizeFootprint(); + + /** + * The meta object literal for the 'Create Services' reference list feature. + * + * + * @generated + */ + EReference SW_RESOURCE__CREATE_SERVICES = eINSTANCE.getSwResource_CreateServices(); + + /** + * The meta object literal for the 'Delete Services' reference list feature. + * + * + * @generated + */ + EReference SW_RESOURCE__DELETE_SERVICES = eINSTANCE.getSwResource_DeleteServices(); + + /** + * The meta object literal for the 'Initialize Services' reference list feature. + * + * + * @generated + */ + EReference SW_RESOURCE__INITIALIZE_SERVICES = eINSTANCE.getSwResource_InitializeServices(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.impl.SwAccessServiceImpl Sw Access Service}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.impl.SwAccessServiceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.impl.SW_ResourceCorePackageImpl#getSwAccessService() + * @generated + */ + EClass SW_ACCESS_SERVICE = eINSTANCE.getSwAccessService(); + + /** + * The meta object literal for the 'Is Modifier' attribute feature. + * + * + * @generated + */ + EAttribute SW_ACCESS_SERVICE__IS_MODIFIER = eINSTANCE.getSwAccessService_IsModifier(); + + /** + * The meta object literal for the 'Accessed Element' reference feature. + * + * + * @generated + */ + EReference SW_ACCESS_SERVICE__ACCESSED_ELEMENT = eINSTANCE.getSwAccessService_AccessedElement(); + + } + +} //SW_ResourceCorePackage diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/SwAccessService.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/SwAccessService.java new file mode 100644 index 00000000000..57537ac2821 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/SwAccessService.java @@ -0,0 +1,90 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_ResourceCore; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GrService; + +import org.eclipse.uml2.uml.Property; + +/** + * + * A representation of the model object 'Sw Access Service'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SwAccessService#isIsModifier Is Modifier}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SwAccessService#getAccessedElement Accessed Element}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SW_ResourceCorePackage#getSwAccessService() + * @model + * @generated + */ +public interface SwAccessService extends GrService { + /** + * Returns the value of the 'Is Modifier' attribute. + * + *

+ * If the meaning of the 'Is Modifier' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Is Modifier' attribute. + * @see #setIsModifier(boolean) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SW_ResourceCorePackage#getSwAccessService_IsModifier() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.Boolean" ordered="false" + * @generated + */ + boolean isIsModifier(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SwAccessService#isIsModifier Is Modifier}' attribute. + * + * + * @param value the new value of the 'Is Modifier' attribute. + * @see #isIsModifier() + * @generated + */ + void setIsModifier(boolean value); + + /** + * Returns the value of the 'Accessed Element' reference. + * + *

+ * If the meaning of the 'Accessed Element' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Accessed Element' reference. + * @see #setAccessedElement(Property) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SW_ResourceCorePackage#getSwAccessService_AccessedElement() + * @model required="true" ordered="false" + * @generated + */ + Property getAccessedElement(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SwAccessService#getAccessedElement Accessed Element}' reference. + * + * + * @param value the new value of the 'Accessed Element' reference. + * @see #getAccessedElement() + * @generated + */ + void setAccessedElement(Property value); + +} // SwAccessService diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/SwResource.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/SwResource.java new file mode 100644 index 00000000000..7ae96acdf85 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/SwResource.java @@ -0,0 +1,151 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_ResourceCore; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource; + +import org.eclipse.uml2.uml.BehavioralFeature; +import org.eclipse.uml2.uml.TypedElement; + +/** + * + * A representation of the model object 'Sw Resource'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SwResource#getIdentifierElements Identifier Elements}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SwResource#getStateElements State Elements}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SwResource#getMemorySizeFootprint Memory Size Footprint}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SwResource#getCreateServices Create Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SwResource#getDeleteServices Delete Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SwResource#getInitializeServices Initialize Services}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SW_ResourceCorePackage#getSwResource() + * @model abstract="true" + * @generated + */ +public interface SwResource extends Resource { + /** + * Returns the value of the 'Identifier Elements' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.TypedElement}. + * + *

+ * If the meaning of the 'Identifier Elements' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Identifier Elements' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SW_ResourceCorePackage#getSwResource_IdentifierElements() + * @model ordered="false" + * @generated + */ + EList getIdentifierElements(); + + /** + * Returns the value of the 'State Elements' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.TypedElement}. + * + *

+ * If the meaning of the 'State Elements' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'State Elements' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SW_ResourceCorePackage#getSwResource_StateElements() + * @model ordered="false" + * @generated + */ + EList getStateElements(); + + /** + * Returns the value of the 'Memory Size Footprint' reference. + * + *

+ * If the meaning of the 'Memory Size Footprint' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Memory Size Footprint' reference. + * @see #setMemorySizeFootprint(TypedElement) + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SW_ResourceCorePackage#getSwResource_MemorySizeFootprint() + * @model ordered="false" + * @generated + */ + TypedElement getMemorySizeFootprint(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SwResource#getMemorySizeFootprint Memory Size Footprint}' reference. + * + * + * @param value the new value of the 'Memory Size Footprint' reference. + * @see #getMemorySizeFootprint() + * @generated + */ + void setMemorySizeFootprint(TypedElement value); + + /** + * Returns the value of the 'Create Services' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.BehavioralFeature}. + * + *

+ * If the meaning of the 'Create Services' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Create Services' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SW_ResourceCorePackage#getSwResource_CreateServices() + * @model ordered="false" + * @generated + */ + EList getCreateServices(); + + /** + * Returns the value of the 'Delete Services' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.BehavioralFeature}. + * + *

+ * If the meaning of the 'Delete Services' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Delete Services' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SW_ResourceCorePackage#getSwResource_DeleteServices() + * @model ordered="false" + * @generated + */ + EList getDeleteServices(); + + /** + * Returns the value of the 'Initialize Services' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.BehavioralFeature}. + * + *

+ * If the meaning of the 'Initialize Services' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Initialize Services' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SW_ResourceCorePackage#getSwResource_InitializeServices() + * @model ordered="false" + * @generated + */ + EList getInitializeServices(); + +} // SwResource diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/impl/SW_ResourceCoreFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/impl/SW_ResourceCoreFactoryImpl.java new file mode 100644 index 00000000000..810bbe296d7 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/impl/SW_ResourceCoreFactoryImpl.java @@ -0,0 +1,106 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_ResourceCore.impl; + +import org.eclipse.emf.ecore.EClass; +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.MARTE_DesignModel.SRM.SW_ResourceCore.*; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class SW_ResourceCoreFactoryImpl extends EFactoryImpl implements SW_ResourceCoreFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static SW_ResourceCoreFactory init() { + try { + SW_ResourceCoreFactory theSW_ResourceCoreFactory = (SW_ResourceCoreFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/SW_ResourceCore/1"); + if (theSW_ResourceCoreFactory != null) { + return theSW_ResourceCoreFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new SW_ResourceCoreFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public SW_ResourceCoreFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case SW_ResourceCorePackage.SW_ACCESS_SERVICE: return createSwAccessService(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public SwAccessService createSwAccessService() { + SwAccessServiceImpl swAccessService = new SwAccessServiceImpl(); + return swAccessService; + } + + /** + * + * + * @generated + */ + public SW_ResourceCorePackage getSW_ResourceCorePackage() { + return (SW_ResourceCorePackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static SW_ResourceCorePackage getPackage() { + return SW_ResourceCorePackage.eINSTANCE; + } + +} //SW_ResourceCoreFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/impl/SW_ResourceCorePackageImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/impl/SW_ResourceCorePackageImpl.java new file mode 100644 index 00000000000..eda0329353d --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/impl/SW_ResourceCorePackageImpl.java @@ -0,0 +1,541 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_ResourceCore.impl; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +import org.eclipse.emf.ecore.impl.EPackageImpl; + +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_ResourceCoreFactory; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SW_ResourceCorePackage; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SwAccessService; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SwResource; + +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.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 SW_ResourceCorePackageImpl extends EPackageImpl implements SW_ResourceCorePackage { + /** + * + * + * @generated + */ + private EClass swResourceEClass = null; + + /** + * + * + * @generated + */ + private EClass swAccessServiceEClass = 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.MARTE_DesignModel.SRM.SW_ResourceCore.SW_ResourceCorePackage#eNS_URI + * @see #init() + * @generated + */ + private SW_ResourceCorePackageImpl() { + super(eNS_URI, SW_ResourceCoreFactory.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 SW_ResourceCorePackage#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 SW_ResourceCorePackage init() { + if (isInited) return (SW_ResourceCorePackage)EPackage.Registry.INSTANCE.getEPackage(SW_ResourceCorePackage.eNS_URI); + + // Obtain or create and register package + SW_ResourceCorePackageImpl theSW_ResourceCorePackage = (SW_ResourceCorePackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof SW_ResourceCorePackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new SW_ResourceCorePackageImpl()); + + 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_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); + 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 + theSW_ResourceCorePackage.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_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(); + theMARTE_PrimitivesTypesPackage.createPackageContents(); + + // Initialize created meta-data + theSW_ResourceCorePackage.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_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(); + theMARTE_PrimitivesTypesPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theSW_ResourceCorePackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(SW_ResourceCorePackage.eNS_URI, theSW_ResourceCorePackage); + return theSW_ResourceCorePackage; + } + + /** + * + * + * @generated + */ + public EClass getSwResource() { + return swResourceEClass; + } + + /** + * + * + * @generated + */ + public EReference getSwResource_IdentifierElements() { + return (EReference)swResourceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getSwResource_StateElements() { + return (EReference)swResourceEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getSwResource_MemorySizeFootprint() { + return (EReference)swResourceEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getSwResource_CreateServices() { + return (EReference)swResourceEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EReference getSwResource_DeleteServices() { + return (EReference)swResourceEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EReference getSwResource_InitializeServices() { + return (EReference)swResourceEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EClass getSwAccessService() { + return swAccessServiceEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSwAccessService_IsModifier() { + return (EAttribute)swAccessServiceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getSwAccessService_AccessedElement() { + return (EReference)swAccessServiceEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public SW_ResourceCoreFactory getSW_ResourceCoreFactory() { + return (SW_ResourceCoreFactory)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 + swResourceEClass = createEClass(SW_RESOURCE); + createEReference(swResourceEClass, SW_RESOURCE__IDENTIFIER_ELEMENTS); + createEReference(swResourceEClass, SW_RESOURCE__STATE_ELEMENTS); + createEReference(swResourceEClass, SW_RESOURCE__MEMORY_SIZE_FOOTPRINT); + createEReference(swResourceEClass, SW_RESOURCE__CREATE_SERVICES); + createEReference(swResourceEClass, SW_RESOURCE__DELETE_SERVICES); + createEReference(swResourceEClass, SW_RESOURCE__INITIALIZE_SERVICES); + + swAccessServiceEClass = createEClass(SW_ACCESS_SERVICE); + createEAttribute(swAccessServiceEClass, SW_ACCESS_SERVICE__IS_MODIFIER); + createEReference(swAccessServiceEClass, SW_ACCESS_SERVICE__ACCESSED_ELEMENT); + } + + /** + * + * + * @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 + GRMPackage theGRMPackage = (GRMPackage)EPackage.Registry.INSTANCE.getEPackage(GRMPackage.eNS_URI); + UMLPackage theUMLPackage = (UMLPackage)EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI); + 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 + swResourceEClass.getESuperTypes().add(theGRMPackage.getResource()); + swAccessServiceEClass.getESuperTypes().add(theGRMPackage.getGrService()); + + // Initialize classes and features; add operations and parameters + initEClass(swResourceEClass, SwResource.class, "SwResource", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSwResource_IdentifierElements(), theUMLPackage.getTypedElement(), null, "identifierElements", null, 0, -1, SwResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getSwResource_StateElements(), theUMLPackage.getTypedElement(), null, "stateElements", null, 0, -1, SwResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getSwResource_MemorySizeFootprint(), theUMLPackage.getTypedElement(), null, "memorySizeFootprint", null, 0, 1, SwResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getSwResource_CreateServices(), theUMLPackage.getBehavioralFeature(), null, "createServices", null, 0, -1, SwResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getSwResource_DeleteServices(), theUMLPackage.getBehavioralFeature(), null, "deleteServices", null, 0, -1, SwResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getSwResource_InitializeServices(), theUMLPackage.getBehavioralFeature(), null, "initializeServices", null, 0, -1, SwResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(swAccessServiceEClass, SwAccessService.class, "SwAccessService", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSwAccessService_IsModifier(), theMARTE_PrimitivesTypesPackage.getBoolean(), "isModifier", null, 0, 1, SwAccessService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getSwAccessService_AccessedElement(), theUMLPackage.getProperty(), null, "accessedElement", null, 1, 1, SwAccessService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + } + +} //SW_ResourceCorePackageImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/impl/SwAccessServiceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/impl/SwAccessServiceImpl.java new file mode 100644 index 00000000000..c99699d3f64 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/impl/SwAccessServiceImpl.java @@ -0,0 +1,238 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_ResourceCore.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SW_ResourceCorePackage; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SwAccessService; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GrServiceImpl; + +import org.eclipse.uml2.uml.Property; + +/** + * + * An implementation of the model object 'Sw Access Service'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.impl.SwAccessServiceImpl#isIsModifier Is Modifier}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.impl.SwAccessServiceImpl#getAccessedElement Accessed Element}
  • + *
+ *

+ * + * @generated + */ +public class SwAccessServiceImpl extends GrServiceImpl implements SwAccessService { + /** + * The default value of the '{@link #isIsModifier() Is Modifier}' attribute. + * + * + * @see #isIsModifier() + * @generated + * @ordered + */ + protected static final boolean IS_MODIFIER_EDEFAULT = false; + + /** + * The cached value of the '{@link #isIsModifier() Is Modifier}' attribute. + * + * + * @see #isIsModifier() + * @generated + * @ordered + */ + protected boolean isModifier = IS_MODIFIER_EDEFAULT; + + /** + * The cached value of the '{@link #getAccessedElement() Accessed Element}' reference. + * + * + * @see #getAccessedElement() + * @generated + * @ordered + */ + protected Property accessedElement; + + /** + * + * + * @generated + */ + protected SwAccessServiceImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SW_ResourceCorePackage.Literals.SW_ACCESS_SERVICE; + } + + /** + * + * + * @generated + */ + public boolean isIsModifier() { + return isModifier; + } + + /** + * + * + * @generated + */ + public void setIsModifier(boolean newIsModifier) { + boolean oldIsModifier = isModifier; + isModifier = newIsModifier; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SW_ResourceCorePackage.SW_ACCESS_SERVICE__IS_MODIFIER, oldIsModifier, isModifier)); + } + + /** + * + * + * @generated + */ + public Property getAccessedElement() { + if (accessedElement != null && accessedElement.eIsProxy()) { + InternalEObject oldAccessedElement = (InternalEObject)accessedElement; + accessedElement = (Property)eResolveProxy(oldAccessedElement); + if (accessedElement != oldAccessedElement) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, SW_ResourceCorePackage.SW_ACCESS_SERVICE__ACCESSED_ELEMENT, oldAccessedElement, accessedElement)); + } + } + return accessedElement; + } + + /** + * + * + * @generated + */ + public Property basicGetAccessedElement() { + return accessedElement; + } + + /** + * + * + * @generated + */ + public void setAccessedElement(Property newAccessedElement) { + Property oldAccessedElement = accessedElement; + accessedElement = newAccessedElement; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SW_ResourceCorePackage.SW_ACCESS_SERVICE__ACCESSED_ELEMENT, oldAccessedElement, accessedElement)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SW_ResourceCorePackage.SW_ACCESS_SERVICE__IS_MODIFIER: + return isIsModifier(); + case SW_ResourceCorePackage.SW_ACCESS_SERVICE__ACCESSED_ELEMENT: + if (resolve) return getAccessedElement(); + return basicGetAccessedElement(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SW_ResourceCorePackage.SW_ACCESS_SERVICE__IS_MODIFIER: + setIsModifier((Boolean)newValue); + return; + case SW_ResourceCorePackage.SW_ACCESS_SERVICE__ACCESSED_ELEMENT: + setAccessedElement((Property)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SW_ResourceCorePackage.SW_ACCESS_SERVICE__IS_MODIFIER: + setIsModifier(IS_MODIFIER_EDEFAULT); + return; + case SW_ResourceCorePackage.SW_ACCESS_SERVICE__ACCESSED_ELEMENT: + setAccessedElement((Property)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SW_ResourceCorePackage.SW_ACCESS_SERVICE__IS_MODIFIER: + return isModifier != IS_MODIFIER_EDEFAULT; + case SW_ResourceCorePackage.SW_ACCESS_SERVICE__ACCESSED_ELEMENT: + return accessedElement != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (isModifier: "); + result.append(isModifier); + result.append(')'); + return result.toString(); + } + +} //SwAccessServiceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/impl/SwResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/impl/SwResourceImpl.java new file mode 100644 index 00000000000..2e15579461a --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/impl/SwResourceImpl.java @@ -0,0 +1,348 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_ResourceCore.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EObjectResolvingEList; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SW_ResourceCorePackage; +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SwResource; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ResourceImpl; + +import org.eclipse.uml2.uml.BehavioralFeature; +import org.eclipse.uml2.uml.TypedElement; + +/** + * + * An implementation of the model object 'Sw Resource'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.impl.SwResourceImpl#getIdentifierElements Identifier Elements}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.impl.SwResourceImpl#getStateElements State Elements}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.impl.SwResourceImpl#getMemorySizeFootprint Memory Size Footprint}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.impl.SwResourceImpl#getCreateServices Create Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.impl.SwResourceImpl#getDeleteServices Delete Services}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.impl.SwResourceImpl#getInitializeServices Initialize Services}
  • + *
+ *

+ * + * @generated + */ +public abstract class SwResourceImpl extends ResourceImpl implements SwResource { + /** + * The cached value of the '{@link #getIdentifierElements() Identifier Elements}' reference list. + * + * + * @see #getIdentifierElements() + * @generated + * @ordered + */ + protected EList identifierElements; + + /** + * The cached value of the '{@link #getStateElements() State Elements}' reference list. + * + * + * @see #getStateElements() + * @generated + * @ordered + */ + protected EList stateElements; + + /** + * The cached value of the '{@link #getMemorySizeFootprint() Memory Size Footprint}' reference. + * + * + * @see #getMemorySizeFootprint() + * @generated + * @ordered + */ + protected TypedElement memorySizeFootprint; + + /** + * The cached value of the '{@link #getCreateServices() Create Services}' reference list. + * + * + * @see #getCreateServices() + * @generated + * @ordered + */ + protected EList createServices; + + /** + * The cached value of the '{@link #getDeleteServices() Delete Services}' reference list. + * + * + * @see #getDeleteServices() + * @generated + * @ordered + */ + protected EList deleteServices; + + /** + * The cached value of the '{@link #getInitializeServices() Initialize Services}' reference list. + * + * + * @see #getInitializeServices() + * @generated + * @ordered + */ + protected EList initializeServices; + + /** + * + * + * @generated + */ + protected SwResourceImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SW_ResourceCorePackage.Literals.SW_RESOURCE; + } + + /** + * + * + * @generated + */ + public EList getIdentifierElements() { + if (identifierElements == null) { + identifierElements = new EObjectResolvingEList(TypedElement.class, this, SW_ResourceCorePackage.SW_RESOURCE__IDENTIFIER_ELEMENTS); + } + return identifierElements; + } + + /** + * + * + * @generated + */ + public EList getStateElements() { + if (stateElements == null) { + stateElements = new EObjectResolvingEList(TypedElement.class, this, SW_ResourceCorePackage.SW_RESOURCE__STATE_ELEMENTS); + } + return stateElements; + } + + /** + * + * + * @generated + */ + public TypedElement getMemorySizeFootprint() { + if (memorySizeFootprint != null && memorySizeFootprint.eIsProxy()) { + InternalEObject oldMemorySizeFootprint = (InternalEObject)memorySizeFootprint; + memorySizeFootprint = (TypedElement)eResolveProxy(oldMemorySizeFootprint); + if (memorySizeFootprint != oldMemorySizeFootprint) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, SW_ResourceCorePackage.SW_RESOURCE__MEMORY_SIZE_FOOTPRINT, oldMemorySizeFootprint, memorySizeFootprint)); + } + } + return memorySizeFootprint; + } + + /** + * + * + * @generated + */ + public TypedElement basicGetMemorySizeFootprint() { + return memorySizeFootprint; + } + + /** + * + * + * @generated + */ + public void setMemorySizeFootprint(TypedElement newMemorySizeFootprint) { + TypedElement oldMemorySizeFootprint = memorySizeFootprint; + memorySizeFootprint = newMemorySizeFootprint; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SW_ResourceCorePackage.SW_RESOURCE__MEMORY_SIZE_FOOTPRINT, oldMemorySizeFootprint, memorySizeFootprint)); + } + + /** + * + * + * @generated + */ + public EList getCreateServices() { + if (createServices == null) { + createServices = new EObjectResolvingEList(BehavioralFeature.class, this, SW_ResourceCorePackage.SW_RESOURCE__CREATE_SERVICES); + } + return createServices; + } + + /** + * + * + * @generated + */ + public EList getDeleteServices() { + if (deleteServices == null) { + deleteServices = new EObjectResolvingEList(BehavioralFeature.class, this, SW_ResourceCorePackage.SW_RESOURCE__DELETE_SERVICES); + } + return deleteServices; + } + + /** + * + * + * @generated + */ + public EList getInitializeServices() { + if (initializeServices == null) { + initializeServices = new EObjectResolvingEList(BehavioralFeature.class, this, SW_ResourceCorePackage.SW_RESOURCE__INITIALIZE_SERVICES); + } + return initializeServices; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SW_ResourceCorePackage.SW_RESOURCE__IDENTIFIER_ELEMENTS: + return getIdentifierElements(); + case SW_ResourceCorePackage.SW_RESOURCE__STATE_ELEMENTS: + return getStateElements(); + case SW_ResourceCorePackage.SW_RESOURCE__MEMORY_SIZE_FOOTPRINT: + if (resolve) return getMemorySizeFootprint(); + return basicGetMemorySizeFootprint(); + case SW_ResourceCorePackage.SW_RESOURCE__CREATE_SERVICES: + return getCreateServices(); + case SW_ResourceCorePackage.SW_RESOURCE__DELETE_SERVICES: + return getDeleteServices(); + case SW_ResourceCorePackage.SW_RESOURCE__INITIALIZE_SERVICES: + return getInitializeServices(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SW_ResourceCorePackage.SW_RESOURCE__IDENTIFIER_ELEMENTS: + getIdentifierElements().clear(); + getIdentifierElements().addAll((Collection)newValue); + return; + case SW_ResourceCorePackage.SW_RESOURCE__STATE_ELEMENTS: + getStateElements().clear(); + getStateElements().addAll((Collection)newValue); + return; + case SW_ResourceCorePackage.SW_RESOURCE__MEMORY_SIZE_FOOTPRINT: + setMemorySizeFootprint((TypedElement)newValue); + return; + case SW_ResourceCorePackage.SW_RESOURCE__CREATE_SERVICES: + getCreateServices().clear(); + getCreateServices().addAll((Collection)newValue); + return; + case SW_ResourceCorePackage.SW_RESOURCE__DELETE_SERVICES: + getDeleteServices().clear(); + getDeleteServices().addAll((Collection)newValue); + return; + case SW_ResourceCorePackage.SW_RESOURCE__INITIALIZE_SERVICES: + getInitializeServices().clear(); + getInitializeServices().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SW_ResourceCorePackage.SW_RESOURCE__IDENTIFIER_ELEMENTS: + getIdentifierElements().clear(); + return; + case SW_ResourceCorePackage.SW_RESOURCE__STATE_ELEMENTS: + getStateElements().clear(); + return; + case SW_ResourceCorePackage.SW_RESOURCE__MEMORY_SIZE_FOOTPRINT: + setMemorySizeFootprint((TypedElement)null); + return; + case SW_ResourceCorePackage.SW_RESOURCE__CREATE_SERVICES: + getCreateServices().clear(); + return; + case SW_ResourceCorePackage.SW_RESOURCE__DELETE_SERVICES: + getDeleteServices().clear(); + return; + case SW_ResourceCorePackage.SW_RESOURCE__INITIALIZE_SERVICES: + getInitializeServices().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SW_ResourceCorePackage.SW_RESOURCE__IDENTIFIER_ELEMENTS: + return identifierElements != null && !identifierElements.isEmpty(); + case SW_ResourceCorePackage.SW_RESOURCE__STATE_ELEMENTS: + return stateElements != null && !stateElements.isEmpty(); + case SW_ResourceCorePackage.SW_RESOURCE__MEMORY_SIZE_FOOTPRINT: + return memorySizeFootprint != null; + case SW_ResourceCorePackage.SW_RESOURCE__CREATE_SERVICES: + return createServices != null && !createServices.isEmpty(); + case SW_ResourceCorePackage.SW_RESOURCE__DELETE_SERVICES: + return deleteServices != null && !deleteServices.isEmpty(); + case SW_ResourceCorePackage.SW_RESOURCE__INITIALIZE_SERVICES: + return initializeServices != null && !initializeServices.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //SwResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/util/SW_ResourceCoreAdapterFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/util/SW_ResourceCoreAdapterFactory.java new file mode 100644 index 00000000000..ce42bec71e0 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/util/SW_ResourceCoreAdapterFactory.java @@ -0,0 +1,188 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_ResourceCore.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.MARTE_DesignModel.SRM.SW_ResourceCore.*; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GrService; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SW_ResourceCorePackage + * @generated + */ +public class SW_ResourceCoreAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * @generated + */ + protected static SW_ResourceCorePackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public SW_ResourceCoreAdapterFactory() { + if (modelPackage == null) { + modelPackage = SW_ResourceCorePackage.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 SW_ResourceCoreSwitch modelSwitch = + new SW_ResourceCoreSwitch() { + @Override + public Adapter caseSwResource(SwResource object) { + return createSwResourceAdapter(); + } + @Override + public Adapter caseSwAccessService(SwAccessService object) { + return createSwAccessServiceAdapter(); + } + @Override + public Adapter caseResource(Resource object) { + return createResourceAdapter(); + } + @Override + public Adapter caseGrService(GrService object) { + return createGrServiceAdapter(); + } + @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.MARTE_DesignModel.SRM.SW_ResourceCore.SwResource Sw Resource}'. + * + * 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.MARTE_DesignModel.SRM.SW_ResourceCore.SwResource + * @generated + */ + public Adapter createSwResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SwAccessService Sw Access Service}'. + * + * 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.MARTE_DesignModel.SRM.SW_ResourceCore.SwAccessService + * @generated + */ + public Adapter createSwAccessServiceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource Resource}'. + * + * 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.MARTE_Foundations.GRM.Resource + * @generated + */ + public Adapter createResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GrService Gr Service}'. + * + * 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.MARTE_Foundations.GRM.GrService + * @generated + */ + public Adapter createGrServiceAdapter() { + 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; + } + +} //SW_ResourceCoreAdapterFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/util/SW_ResourceCoreResourceFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/util/SW_ResourceCoreResourceFactoryImpl.java new file mode 100644 index 00000000000..afb100cbc37 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/util/SW_ResourceCoreResourceFactoryImpl.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.MARTE_DesignModel.SRM.SW_ResourceCore.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; + +import org.eclipse.emf.ecore.xmi.XMLResource; + +/** + * + * The Resource Factory associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.util.SW_ResourceCoreResourceImpl + * @generated + */ +public class SW_ResourceCoreResourceFactoryImpl extends ResourceFactoryImpl { + /** + * Creates an instance of the resource factory. + * + * + * @generated + */ + public SW_ResourceCoreResourceFactoryImpl() { + super(); + } + + /** + * Creates an instance of the resource. + * + * + * @generated + */ + @Override + public Resource createResource(URI uri) { + XMLResource result = new SW_ResourceCoreResourceImpl(uri); + result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + + result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); + return result; + } + +} //SW_ResourceCoreResourceFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/util/SW_ResourceCoreResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/util/SW_ResourceCoreResourceImpl.java new file mode 100644 index 00000000000..d893710928a --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/util/SW_ResourceCoreResourceImpl.java @@ -0,0 +1,39 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_ResourceCore.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; + +/** + * + * The Resource associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.util.SW_ResourceCoreResourceFactoryImpl + * @generated + */ +public class SW_ResourceCoreResourceImpl extends XMLResourceImpl { + /** + * Creates an instance of the resource. + * + * + * @param uri the URI of the new resource. + * @generated + */ + public SW_ResourceCoreResourceImpl(URI uri) { + super(uri); + } + +} //SW_ResourceCoreResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/util/SW_ResourceCoreSwitch.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/util/SW_ResourceCoreSwitch.java new file mode 100644 index 00000000000..e8a9dcd4777 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/util/SW_ResourceCoreSwitch.java @@ -0,0 +1,193 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_ResourceCore.util; + +import java.util.List; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.*; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GrService; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource; + +/** + * + * 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.MARTE_DesignModel.SRM.SW_ResourceCore.SW_ResourceCorePackage + * @generated + */ +public class SW_ResourceCoreSwitch { + /** + * The cached model package + * + * + * @generated + */ + protected static SW_ResourceCorePackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public SW_ResourceCoreSwitch() { + if (modelPackage == null) { + modelPackage = SW_ResourceCorePackage.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 SW_ResourceCorePackage.SW_RESOURCE: { + SwResource swResource = (SwResource)theEObject; + T result = caseSwResource(swResource); + if (result == null) result = caseResource(swResource); + if (result == null) result = defaultCase(theEObject); + return result; + } + case SW_ResourceCorePackage.SW_ACCESS_SERVICE: { + SwAccessService swAccessService = (SwAccessService)theEObject; + T result = caseSwAccessService(swAccessService); + if (result == null) result = caseGrService(swAccessService); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Sw Resource'. + * + * 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 'Sw Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSwResource(SwResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Sw Access Service'. + * + * 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 'Sw Access Service'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSwAccessService(SwAccessService object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Resource'. + * + * 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 'Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseResource(Resource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Gr Service'. + * + * 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 'Gr Service'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseGrService(GrService 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; + } + +} //SW_ResourceCoreSwitch diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/util/SW_ResourceCoreXMLProcessor.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/util/SW_ResourceCoreXMLProcessor.java new file mode 100644 index 00000000000..bde83d6d1bf --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_ResourceCore/util/SW_ResourceCoreXMLProcessor.java @@ -0,0 +1,61 @@ +/***************************************************************************** + * 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.MARTE_DesignModel.SRM.SW_ResourceCore.util; + +import java.util.Map; + +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.xmi.util.XMLProcessor; + +import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_ResourceCore.SW_ResourceCorePackage; + +/** + * This class contains helper methods to serialize and deserialize XML documents + * + * + * @generated + */ +public class SW_ResourceCoreXMLProcessor extends XMLProcessor { + + /** + * Public constructor to instantiate the helper. + * + * + * @generated + */ + public SW_ResourceCoreXMLProcessor() { + super((EPackage.Registry.INSTANCE)); + SW_ResourceCorePackage.eINSTANCE.eClass(); + } + + /** + * Register for "*" and "xml" file extensions the SW_ResourceCoreResourceFactoryImpl factory. + * + * + * @generated + */ + @Override + protected Map getRegistrations() { + if (registrations == null) { + super.getRegistrations(); + registrations.put(XML_EXTENSION, new SW_ResourceCoreResourceFactoryImpl()); + registrations.put(STAR_EXTENSION, new SW_ResourceCoreResourceFactoryImpl()); + } + return registrations; + } + +} //SW_ResourceCoreXMLProcessor diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/AllocFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/AllocFactory.java new file mode 100644 index 00000000000..5ca179383ea --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/AllocFactory.java @@ -0,0 +1,89 @@ +/***************************************************************************** + * 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.MARTE_Foundations.Alloc; + +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.MARTE_Foundations.Alloc.AllocPackage + * @generated + */ +public interface AllocFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + AllocFactory eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AllocFactoryImpl.init(); + + /** + * Returns a new object of class 'Allocated'. + * + * + * @return a new object of class 'Allocated'. + * @generated + */ + Allocated createAllocated(); + + /** + * Returns a new object of class 'Allocate Activity Group'. + * + * + * @return a new object of class 'Allocate Activity Group'. + * @generated + */ + AllocateActivityGroup createAllocateActivityGroup(); + + /** + * Returns a new object of class 'Nfp Refine'. + * + * + * @return a new object of class 'Nfp Refine'. + * @generated + */ + NfpRefine createNfpRefine(); + + /** + * Returns a new object of class 'Assign'. + * + * + * @return a new object of class 'Assign'. + * @generated + */ + Assign createAssign(); + + /** + * Returns a new object of class 'Allocate'. + * + * + * @return a new object of class 'Allocate'. + * @generated + */ + Allocate createAllocate(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + AllocPackage getAllocPackage(); + +} //AllocFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/AllocPackage.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/AllocPackage.java new file mode 100644 index 00000000000..8b2d4e008ef --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/AllocPackage.java @@ -0,0 +1,944 @@ +/***************************************************************************** + * 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.MARTE_Foundations.Alloc; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +/** + * + * 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.MARTE_Foundations.Alloc.AllocFactory + * @model kind="package" + * @generated + */ +public interface AllocPackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "Alloc"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "http://www.eclipse.org/papyrus/Alloc/1"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "Alloc"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + AllocPackage eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AllocPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AllocatedImpl Allocated}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AllocatedImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AllocPackageImpl#getAllocated() + * @generated + */ + int ALLOCATED = 0; + + /** + * The feature id for the 'Base Named Element' reference. + * + * + * @generated + * @ordered + */ + int ALLOCATED__BASE_NAMED_ELEMENT = 0; + + /** + * The feature id for the 'Allocated To' reference list. + * + * + * @generated + * @ordered + */ + int ALLOCATED__ALLOCATED_TO = 1; + + /** + * The feature id for the 'Allocated From' reference list. + * + * + * @generated + * @ordered + */ + int ALLOCATED__ALLOCATED_FROM = 2; + + /** + * The feature id for the 'Kind' attribute. + * + * + * @generated + * @ordered + */ + int ALLOCATED__KIND = 3; + + /** + * The number of structural features of the 'Allocated' class. + * + * + * @generated + * @ordered + */ + int ALLOCATED_FEATURE_COUNT = 4; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AllocateActivityGroupImpl Allocate Activity Group}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AllocateActivityGroupImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AllocPackageImpl#getAllocateActivityGroup() + * @generated + */ + int ALLOCATE_ACTIVITY_GROUP = 1; + + /** + * The feature id for the 'Is Unique' attribute. + * + * + * @generated + * @ordered + */ + int ALLOCATE_ACTIVITY_GROUP__IS_UNIQUE = 0; + + /** + * The feature id for the 'Base Activity Partition' reference. + * + * + * @generated + * @ordered + */ + int ALLOCATE_ACTIVITY_GROUP__BASE_ACTIVITY_PARTITION = 1; + + /** + * The number of structural features of the 'Allocate Activity Group' class. + * + * + * @generated + * @ordered + */ + int ALLOCATE_ACTIVITY_GROUP_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.NfpRefineImpl Nfp Refine}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.NfpRefineImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AllocPackageImpl#getNfpRefine() + * @generated + */ + int NFP_REFINE = 2; + + /** + * The feature id for the 'Base Dependency' reference. + * + * + * @generated + * @ordered + */ + int NFP_REFINE__BASE_DEPENDENCY = 0; + + /** + * The feature id for the 'Constraint' reference list. + * + * + * @generated + * @ordered + */ + int NFP_REFINE__CONSTRAINT = 1; + + /** + * The number of structural features of the 'Nfp Refine' class. + * + * + * @generated + * @ordered + */ + int NFP_REFINE_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AssignImpl Assign}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AssignImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AllocPackageImpl#getAssign() + * @generated + */ + int ASSIGN = 3; + + /** + * The feature id for the 'Kind' attribute. + * + * + * @generated + * @ordered + */ + int ASSIGN__KIND = 0; + + /** + * The feature id for the 'Nature' attribute. + * + * + * @generated + * @ordered + */ + int ASSIGN__NATURE = 1; + + /** + * The feature id for the 'Implied Constraint' reference list. + * + * + * @generated + * @ordered + */ + int ASSIGN__IMPLIED_CONSTRAINT = 2; + + /** + * The feature id for the 'From' reference list. + * + * + * @generated + * @ordered + */ + int ASSIGN__FROM = 3; + + /** + * The feature id for the 'To' reference list. + * + * + * @generated + * @ordered + */ + int ASSIGN__TO = 4; + + /** + * The feature id for the 'Base Comment' reference. + * + * + * @generated + * @ordered + */ + int ASSIGN__BASE_COMMENT = 5; + + /** + * The number of structural features of the 'Assign' class. + * + * + * @generated + * @ordered + */ + int ASSIGN_FEATURE_COUNT = 6; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AllocateImpl Allocate}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AllocateImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AllocPackageImpl#getAllocate() + * @generated + */ + int ALLOCATE = 4; + + /** + * The feature id for the 'Kind' attribute. + * + * + * @generated + * @ordered + */ + int ALLOCATE__KIND = 0; + + /** + * The feature id for the 'Nature' attribute. + * + * + * @generated + * @ordered + */ + int ALLOCATE__NATURE = 1; + + /** + * The feature id for the 'Base Abstraction' reference. + * + * + * @generated + * @ordered + */ + int ALLOCATE__BASE_ABSTRACTION = 2; + + /** + * The feature id for the 'Implied Constraint' reference list. + * + * + * @generated + * @ordered + */ + int ALLOCATE__IMPLIED_CONSTRAINT = 3; + + /** + * The number of structural features of the 'Allocate' class. + * + * + * @generated + * @ordered + */ + int ALLOCATE_FEATURE_COUNT = 4; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocationEndKind Allocation End Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocationEndKind + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AllocPackageImpl#getAllocationEndKind() + * @generated + */ + int ALLOCATION_END_KIND = 5; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocationNature Allocation Nature}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocationNature + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AllocPackageImpl#getAllocationNature() + * @generated + */ + int ALLOCATION_NATURE = 6; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocationKind Allocation Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocationKind + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AllocPackageImpl#getAllocationKind() + * @generated + */ + int ALLOCATION_KIND = 7; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AssignmentKind Assignment Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AssignmentKind + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AllocPackageImpl#getAssignmentKind() + * @generated + */ + int ASSIGNMENT_KIND = 8; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AssignmentNature Assignment Nature}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AssignmentNature + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AllocPackageImpl#getAssignmentNature() + * @generated + */ + int ASSIGNMENT_NATURE = 9; + + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Allocated Allocated}'. + * + * + * @return the meta object for class 'Allocated'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Allocated + * @generated + */ + EClass getAllocated(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Allocated#getBase_NamedElement Base Named Element}'. + * + * + * @return the meta object for the reference 'Base Named Element'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Allocated#getBase_NamedElement() + * @see #getAllocated() + * @generated + */ + EReference getAllocated_Base_NamedElement(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Allocated#getAllocatedTo Allocated To}'. + * + * + * @return the meta object for the reference list 'Allocated To'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Allocated#getAllocatedTo() + * @see #getAllocated() + * @generated + */ + EReference getAllocated_AllocatedTo(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Allocated#getAllocatedFrom Allocated From}'. + * + * + * @return the meta object for the reference list 'Allocated From'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Allocated#getAllocatedFrom() + * @see #getAllocated() + * @generated + */ + EReference getAllocated_AllocatedFrom(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Allocated#getKind Kind}'. + * + * + * @return the meta object for the attribute 'Kind'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Allocated#getKind() + * @see #getAllocated() + * @generated + */ + EAttribute getAllocated_Kind(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocateActivityGroup Allocate Activity Group}'. + * + * + * @return the meta object for class 'Allocate Activity Group'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocateActivityGroup + * @generated + */ + EClass getAllocateActivityGroup(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocateActivityGroup#isIsUnique Is Unique}'. + * + * + * @return the meta object for the attribute 'Is Unique'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocateActivityGroup#isIsUnique() + * @see #getAllocateActivityGroup() + * @generated + */ + EAttribute getAllocateActivityGroup_IsUnique(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocateActivityGroup#getBase_ActivityPartition Base Activity Partition}'. + * + * + * @return the meta object for the reference 'Base Activity Partition'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocateActivityGroup#getBase_ActivityPartition() + * @see #getAllocateActivityGroup() + * @generated + */ + EReference getAllocateActivityGroup_Base_ActivityPartition(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.NfpRefine Nfp Refine}'. + * + * + * @return the meta object for class 'Nfp Refine'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.NfpRefine + * @generated + */ + EClass getNfpRefine(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.NfpRefine#getBase_Dependency Base Dependency}'. + * + * + * @return the meta object for the reference 'Base Dependency'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.NfpRefine#getBase_Dependency() + * @see #getNfpRefine() + * @generated + */ + EReference getNfpRefine_Base_Dependency(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.NfpRefine#getConstraint Constraint}'. + * + * + * @return the meta object for the reference list 'Constraint'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.NfpRefine#getConstraint() + * @see #getNfpRefine() + * @generated + */ + EReference getNfpRefine_Constraint(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Assign Assign}'. + * + * + * @return the meta object for class 'Assign'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Assign + * @generated + */ + EClass getAssign(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Assign#getKind Kind}'. + * + * + * @return the meta object for the attribute 'Kind'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Assign#getKind() + * @see #getAssign() + * @generated + */ + EAttribute getAssign_Kind(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Assign#getNature Nature}'. + * + * + * @return the meta object for the attribute 'Nature'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Assign#getNature() + * @see #getAssign() + * @generated + */ + EAttribute getAssign_Nature(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Assign#getImpliedConstraint Implied Constraint}'. + * + * + * @return the meta object for the reference list 'Implied Constraint'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Assign#getImpliedConstraint() + * @see #getAssign() + * @generated + */ + EReference getAssign_ImpliedConstraint(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Assign#getFrom From}'. + * + * + * @return the meta object for the reference list 'From'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Assign#getFrom() + * @see #getAssign() + * @generated + */ + EReference getAssign_From(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Assign#getTo To}'. + * + * + * @return the meta object for the reference list 'To'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Assign#getTo() + * @see #getAssign() + * @generated + */ + EReference getAssign_To(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Assign#getBase_Comment Base Comment}'. + * + * + * @return the meta object for the reference 'Base Comment'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Assign#getBase_Comment() + * @see #getAssign() + * @generated + */ + EReference getAssign_Base_Comment(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Allocate Allocate}'. + * + * + * @return the meta object for class 'Allocate'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Allocate + * @generated + */ + EClass getAllocate(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Allocate#getKind Kind}'. + * + * + * @return the meta object for the attribute 'Kind'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Allocate#getKind() + * @see #getAllocate() + * @generated + */ + EAttribute getAllocate_Kind(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Allocate#getNature Nature}'. + * + * + * @return the meta object for the attribute 'Nature'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Allocate#getNature() + * @see #getAllocate() + * @generated + */ + EAttribute getAllocate_Nature(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Allocate#getBase_Abstraction Base Abstraction}'. + * + * + * @return the meta object for the reference 'Base Abstraction'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Allocate#getBase_Abstraction() + * @see #getAllocate() + * @generated + */ + EReference getAllocate_Base_Abstraction(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Allocate#getImpliedConstraint Implied Constraint}'. + * + * + * @return the meta object for the reference list 'Implied Constraint'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Allocate#getImpliedConstraint() + * @see #getAllocate() + * @generated + */ + EReference getAllocate_ImpliedConstraint(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocationEndKind Allocation End Kind}'. + * + * + * @return the meta object for enum 'Allocation End Kind'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocationEndKind + * @generated + */ + EEnum getAllocationEndKind(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocationNature Allocation Nature}'. + * + * + * @return the meta object for enum 'Allocation Nature'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocationNature + * @generated + */ + EEnum getAllocationNature(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocationKind Allocation Kind}'. + * + * + * @return the meta object for enum 'Allocation Kind'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocationKind + * @generated + */ + EEnum getAllocationKind(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AssignmentKind Assignment Kind}'. + * + * + * @return the meta object for enum 'Assignment Kind'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AssignmentKind + * @generated + */ + EEnum getAssignmentKind(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AssignmentNature Assignment Nature}'. + * + * + * @return the meta object for enum 'Assignment Nature'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AssignmentNature + * @generated + */ + EEnum getAssignmentNature(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + AllocFactory getAllocFactory(); + + /** + * + * 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.MARTE_Foundations.Alloc.impl.AllocatedImpl Allocated}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AllocatedImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AllocPackageImpl#getAllocated() + * @generated + */ + EClass ALLOCATED = eINSTANCE.getAllocated(); + + /** + * The meta object literal for the 'Base Named Element' reference feature. + * + * + * @generated + */ + EReference ALLOCATED__BASE_NAMED_ELEMENT = eINSTANCE.getAllocated_Base_NamedElement(); + + /** + * The meta object literal for the 'Allocated To' reference list feature. + * + * + * @generated + */ + EReference ALLOCATED__ALLOCATED_TO = eINSTANCE.getAllocated_AllocatedTo(); + + /** + * The meta object literal for the 'Allocated From' reference list feature. + * + * + * @generated + */ + EReference ALLOCATED__ALLOCATED_FROM = eINSTANCE.getAllocated_AllocatedFrom(); + + /** + * The meta object literal for the 'Kind' attribute feature. + * + * + * @generated + */ + EAttribute ALLOCATED__KIND = eINSTANCE.getAllocated_Kind(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AllocateActivityGroupImpl Allocate Activity Group}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AllocateActivityGroupImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AllocPackageImpl#getAllocateActivityGroup() + * @generated + */ + EClass ALLOCATE_ACTIVITY_GROUP = eINSTANCE.getAllocateActivityGroup(); + + /** + * The meta object literal for the 'Is Unique' attribute feature. + * + * + * @generated + */ + EAttribute ALLOCATE_ACTIVITY_GROUP__IS_UNIQUE = eINSTANCE.getAllocateActivityGroup_IsUnique(); + + /** + * The meta object literal for the 'Base Activity Partition' reference feature. + * + * + * @generated + */ + EReference ALLOCATE_ACTIVITY_GROUP__BASE_ACTIVITY_PARTITION = eINSTANCE.getAllocateActivityGroup_Base_ActivityPartition(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.NfpRefineImpl Nfp Refine}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.NfpRefineImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AllocPackageImpl#getNfpRefine() + * @generated + */ + EClass NFP_REFINE = eINSTANCE.getNfpRefine(); + + /** + * The meta object literal for the 'Base Dependency' reference feature. + * + * + * @generated + */ + EReference NFP_REFINE__BASE_DEPENDENCY = eINSTANCE.getNfpRefine_Base_Dependency(); + + /** + * The meta object literal for the 'Constraint' reference list feature. + * + * + * @generated + */ + EReference NFP_REFINE__CONSTRAINT = eINSTANCE.getNfpRefine_Constraint(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AssignImpl Assign}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AssignImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AllocPackageImpl#getAssign() + * @generated + */ + EClass ASSIGN = eINSTANCE.getAssign(); + + /** + * The meta object literal for the 'Kind' attribute feature. + * + * + * @generated + */ + EAttribute ASSIGN__KIND = eINSTANCE.getAssign_Kind(); + + /** + * The meta object literal for the 'Nature' attribute feature. + * + * + * @generated + */ + EAttribute ASSIGN__NATURE = eINSTANCE.getAssign_Nature(); + + /** + * The meta object literal for the 'Implied Constraint' reference list feature. + * + * + * @generated + */ + EReference ASSIGN__IMPLIED_CONSTRAINT = eINSTANCE.getAssign_ImpliedConstraint(); + + /** + * The meta object literal for the 'From' reference list feature. + * + * + * @generated + */ + EReference ASSIGN__FROM = eINSTANCE.getAssign_From(); + + /** + * The meta object literal for the 'To' reference list feature. + * + * + * @generated + */ + EReference ASSIGN__TO = eINSTANCE.getAssign_To(); + + /** + * The meta object literal for the 'Base Comment' reference feature. + * + * + * @generated + */ + EReference ASSIGN__BASE_COMMENT = eINSTANCE.getAssign_Base_Comment(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AllocateImpl Allocate}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AllocateImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AllocPackageImpl#getAllocate() + * @generated + */ + EClass ALLOCATE = eINSTANCE.getAllocate(); + + /** + * The meta object literal for the 'Kind' attribute feature. + * + * + * @generated + */ + EAttribute ALLOCATE__KIND = eINSTANCE.getAllocate_Kind(); + + /** + * The meta object literal for the 'Nature' attribute feature. + * + * + * @generated + */ + EAttribute ALLOCATE__NATURE = eINSTANCE.getAllocate_Nature(); + + /** + * The meta object literal for the 'Base Abstraction' reference feature. + * + * + * @generated + */ + EReference ALLOCATE__BASE_ABSTRACTION = eINSTANCE.getAllocate_Base_Abstraction(); + + /** + * The meta object literal for the 'Implied Constraint' reference list feature. + * + * + * @generated + */ + EReference ALLOCATE__IMPLIED_CONSTRAINT = eINSTANCE.getAllocate_ImpliedConstraint(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocationEndKind Allocation End Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocationEndKind + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AllocPackageImpl#getAllocationEndKind() + * @generated + */ + EEnum ALLOCATION_END_KIND = eINSTANCE.getAllocationEndKind(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocationNature Allocation Nature}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocationNature + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AllocPackageImpl#getAllocationNature() + * @generated + */ + EEnum ALLOCATION_NATURE = eINSTANCE.getAllocationNature(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocationKind Allocation Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocationKind + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AllocPackageImpl#getAllocationKind() + * @generated + */ + EEnum ALLOCATION_KIND = eINSTANCE.getAllocationKind(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AssignmentKind Assignment Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AssignmentKind + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AllocPackageImpl#getAssignmentKind() + * @generated + */ + EEnum ASSIGNMENT_KIND = eINSTANCE.getAssignmentKind(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AssignmentNature Assignment Nature}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AssignmentNature + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AllocPackageImpl#getAssignmentNature() + * @generated + */ + EEnum ASSIGNMENT_NATURE = eINSTANCE.getAssignmentNature(); + + } + +} //AllocPackage diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/Allocate.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/Allocate.java new file mode 100644 index 00000000000..29d1a4bf72e --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/Allocate.java @@ -0,0 +1,144 @@ +/***************************************************************************** + * 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.MARTE_Foundations.Alloc; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpConstraint; + +import org.eclipse.uml2.uml.Abstraction; + +/** + * + * A representation of the model object 'Allocate'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Allocate#getKind Kind}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Allocate#getNature Nature}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Allocate#getBase_Abstraction Base Abstraction}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Allocate#getImpliedConstraint Implied Constraint}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocPackage#getAllocate() + * @model + * @generated + */ +public interface Allocate extends EObject { + /** + * Returns the value of the 'Kind' attribute. + * The literals are from the enumeration {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocationKind}. + * + *

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

+ * + * @return the value of the 'Kind' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocationKind + * @see #setKind(AllocationKind) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocPackage#getAllocate_Kind() + * @model unique="false" ordered="false" + * @generated + */ + AllocationKind getKind(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Allocate#getKind Kind}' attribute. + * + * + * @param value the new value of the 'Kind' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocationKind + * @see #getKind() + * @generated + */ + void setKind(AllocationKind value); + + /** + * Returns the value of the 'Nature' attribute. + * The literals are from the enumeration {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocationNature}. + * + *

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

+ * + * @return the value of the 'Nature' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocationNature + * @see #setNature(AllocationNature) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocPackage#getAllocate_Nature() + * @model unique="false" ordered="false" + * @generated + */ + AllocationNature getNature(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Allocate#getNature Nature}' attribute. + * + * + * @param value the new value of the 'Nature' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocationNature + * @see #getNature() + * @generated + */ + void setNature(AllocationNature value); + + /** + * Returns the value of the 'Base Abstraction' reference. + * + *

+ * If the meaning of the 'Base Abstraction' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Abstraction' reference. + * @see #setBase_Abstraction(Abstraction) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocPackage#getAllocate_Base_Abstraction() + * @model required="true" ordered="false" + * @generated + */ + Abstraction getBase_Abstraction(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Allocate#getBase_Abstraction Base Abstraction}' reference. + * + * + * @param value the new value of the 'Base Abstraction' reference. + * @see #getBase_Abstraction() + * @generated + */ + void setBase_Abstraction(Abstraction value); + + /** + * Returns the value of the 'Implied Constraint' reference list. + * The list contents are of type {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpConstraint}. + * + *

+ * If the meaning of the 'Implied Constraint' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Implied Constraint' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocPackage#getAllocate_ImpliedConstraint() + * @model ordered="false" + * @generated + */ + EList getImpliedConstraint(); + +} // Allocate diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/AllocateActivityGroup.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/AllocateActivityGroup.java new file mode 100644 index 00000000000..b1f17c7f772 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/AllocateActivityGroup.java @@ -0,0 +1,91 @@ +/***************************************************************************** + * 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.MARTE_Foundations.Alloc; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.uml2.uml.ActivityPartition; + +/** + * + * A representation of the model object 'Allocate Activity Group'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocateActivityGroup#isIsUnique Is Unique}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocateActivityGroup#getBase_ActivityPartition Base Activity Partition}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocPackage#getAllocateActivityGroup() + * @model + * @generated + */ +public interface AllocateActivityGroup extends EObject { + /** + * Returns the value of the 'Is Unique' attribute. + * The default value is "false". + * + *

+ * If the meaning of the 'Is Unique' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Is Unique' attribute. + * @see #setIsUnique(boolean) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocPackage#getAllocateActivityGroup_IsUnique() + * @model default="false" unique="false" dataType="org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.Boolean" ordered="false" + * @generated + */ + boolean isIsUnique(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocateActivityGroup#isIsUnique Is Unique}' attribute. + * + * + * @param value the new value of the 'Is Unique' attribute. + * @see #isIsUnique() + * @generated + */ + void setIsUnique(boolean value); + + /** + * Returns the value of the 'Base Activity Partition' reference. + * + *

+ * If the meaning of the 'Base Activity Partition' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Activity Partition' reference. + * @see #setBase_ActivityPartition(ActivityPartition) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocPackage#getAllocateActivityGroup_Base_ActivityPartition() + * @model required="true" ordered="false" + * @generated + */ + ActivityPartition getBase_ActivityPartition(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocateActivityGroup#getBase_ActivityPartition Base Activity Partition}' reference. + * + * + * @param value the new value of the 'Base Activity Partition' reference. + * @see #getBase_ActivityPartition() + * @generated + */ + void setBase_ActivityPartition(ActivityPartition value); + +} // AllocateActivityGroup diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/Allocated.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/Allocated.java new file mode 100644 index 00000000000..4157f2a8163 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/Allocated.java @@ -0,0 +1,129 @@ +/***************************************************************************** + * 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.MARTE_Foundations.Alloc; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.uml2.uml.NamedElement; + +/** + * + * A representation of the model object 'Allocated'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Allocated#getBase_NamedElement Base Named Element}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Allocated#getAllocatedTo Allocated To}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Allocated#getAllocatedFrom Allocated From}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Allocated#getKind Kind}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocPackage#getAllocated() + * @model + * @generated + */ +public interface Allocated extends EObject { + /** + * Returns the value of the 'Base Named Element' reference. + * + *

+ * If the meaning of the 'Base Named Element' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Named Element' reference. + * @see #setBase_NamedElement(NamedElement) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocPackage#getAllocated_Base_NamedElement() + * @model required="true" ordered="false" + * @generated + */ + NamedElement getBase_NamedElement(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Allocated#getBase_NamedElement Base Named Element}' reference. + * + * + * @param value the new value of the 'Base Named Element' reference. + * @see #getBase_NamedElement() + * @generated + */ + void setBase_NamedElement(NamedElement value); + + /** + * Returns the value of the 'Allocated To' reference list. + * The list contents are of type {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Allocated}. + * + *

+ * If the meaning of the 'Allocated To' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Allocated To' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocPackage#getAllocated_AllocatedTo() + * @model transient="true" volatile="true" derived="true" ordered="false" + * @generated + */ + EList getAllocatedTo(); + + /** + * Returns the value of the 'Allocated From' reference list. + * The list contents are of type {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Allocated}. + * + *

+ * If the meaning of the 'Allocated From' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Allocated From' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocPackage#getAllocated_AllocatedFrom() + * @model transient="true" volatile="true" derived="true" ordered="false" + * @generated + */ + EList getAllocatedFrom(); + + /** + * Returns the value of the 'Kind' attribute. + * The literals are from the enumeration {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocationEndKind}. + * + *

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

+ * + * @return the value of the 'Kind' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocationEndKind + * @see #setKind(AllocationEndKind) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocPackage#getAllocated_Kind() + * @model unique="false" ordered="false" + * @generated + */ + AllocationEndKind getKind(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Allocated#getKind Kind}' attribute. + * + * + * @param value the new value of the 'Kind' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocationEndKind + * @see #getKind() + * @generated + */ + void setKind(AllocationEndKind value); + +} // Allocated diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/AllocationEndKind.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/AllocationEndKind.java new file mode 100644 index 00000000000..ca02f49467e --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/AllocationEndKind.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.MARTE_Foundations.Alloc; + +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 'Allocation End Kind', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocPackage#getAllocationEndKind() + * @model + * @generated + */ +public enum AllocationEndKind implements Enumerator { + /** + * The 'Undef' literal object. + * + * + * @see #UNDEF_VALUE + * @generated + * @ordered + */ + UNDEF(0, "undef", "undef"), + + /** + * The 'Application' literal object. + * + * + * @see #APPLICATION_VALUE + * @generated + * @ordered + */ + APPLICATION(1, "application", "application"), + + /** + * The 'Execution Platform' literal object. + * + * + * @see #EXECUTION_PLATFORM_VALUE + * @generated + * @ordered + */ + EXECUTION_PLATFORM(2, "executionPlatform", "executionPlatform"), + + /** + * The 'Both' literal object. + * + * + * @see #BOTH_VALUE + * @generated + * @ordered + */ + BOTH(3, "both", "both"); + + /** + * 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 = 0; + + /** + * The 'Application' literal value. + * + *

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

+ * + * @see #APPLICATION + * @model name="application" + * @generated + * @ordered + */ + public static final int APPLICATION_VALUE = 1; + + /** + * The 'Execution Platform' literal value. + * + *

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

+ * + * @see #EXECUTION_PLATFORM + * @model name="executionPlatform" + * @generated + * @ordered + */ + public static final int EXECUTION_PLATFORM_VALUE = 2; + + /** + * The 'Both' literal value. + * + *

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

+ * + * @see #BOTH + * @model name="both" + * @generated + * @ordered + */ + public static final int BOTH_VALUE = 3; + + /** + * An array of all the 'Allocation End Kind' enumerators. + * + * + * @generated + */ + private static final AllocationEndKind[] VALUES_ARRAY = + new AllocationEndKind[] { + UNDEF, + APPLICATION, + EXECUTION_PLATFORM, + BOTH, + }; + + /** + * A public read-only list of all the 'Allocation End Kind' enumerators. + * + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Allocation End Kind' literal with the specified literal value. + * + * + * @generated + */ + public static AllocationEndKind get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + AllocationEndKind result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Allocation End Kind' literal with the specified name. + * + * + * @generated + */ + public static AllocationEndKind getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + AllocationEndKind result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Allocation End Kind' literal with the specified integer value. + * + * + * @generated + */ + public static AllocationEndKind get(int value) { + switch (value) { + case UNDEF_VALUE: return UNDEF; + case APPLICATION_VALUE: return APPLICATION; + case EXECUTION_PLATFORM_VALUE: return EXECUTION_PLATFORM; + case BOTH_VALUE: return BOTH; + } + 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 AllocationEndKind(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; + } + +} //AllocationEndKind diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/AllocationKind.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/AllocationKind.java new file mode 100644 index 00000000000..d64e1d0735c --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/AllocationKind.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.MARTE_Foundations.Alloc; + +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 'Allocation Kind', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocPackage#getAllocationKind() + * @model + * @generated + */ +public enum AllocationKind implements Enumerator { + /** + * The 'Structural' literal object. + * + * + * @see #STRUCTURAL_VALUE + * @generated + * @ordered + */ + STRUCTURAL(0, "structural", "structural"), + + /** + * The 'Behavioral' literal object. + * + * + * @see #BEHAVIORAL_VALUE + * @generated + * @ordered + */ + BEHAVIORAL(1, "behavioral", "behavioral"), + + /** + * The 'Hybrid' literal object. + * + * + * @see #HYBRID_VALUE + * @generated + * @ordered + */ + HYBRID(2, "hybrid", "hybrid"); + + /** + * The 'Structural' literal value. + * + *

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

+ * + * @see #STRUCTURAL + * @model name="structural" + * @generated + * @ordered + */ + public static final int STRUCTURAL_VALUE = 0; + + /** + * The 'Behavioral' literal value. + * + *

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

+ * + * @see #BEHAVIORAL + * @model name="behavioral" + * @generated + * @ordered + */ + public static final int BEHAVIORAL_VALUE = 1; + + /** + * The 'Hybrid' literal value. + * + *

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

+ * + * @see #HYBRID + * @model name="hybrid" + * @generated + * @ordered + */ + public static final int HYBRID_VALUE = 2; + + /** + * An array of all the 'Allocation Kind' enumerators. + * + * + * @generated + */ + private static final AllocationKind[] VALUES_ARRAY = + new AllocationKind[] { + STRUCTURAL, + BEHAVIORAL, + HYBRID, + }; + + /** + * A public read-only list of all the 'Allocation Kind' enumerators. + * + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Allocation Kind' literal with the specified literal value. + * + * + * @generated + */ + public static AllocationKind get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + AllocationKind result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Allocation Kind' literal with the specified name. + * + * + * @generated + */ + public static AllocationKind getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + AllocationKind result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Allocation Kind' literal with the specified integer value. + * + * + * @generated + */ + public static AllocationKind get(int value) { + switch (value) { + case STRUCTURAL_VALUE: return STRUCTURAL; + case BEHAVIORAL_VALUE: return BEHAVIORAL; + case HYBRID_VALUE: return HYBRID; + } + 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 AllocationKind(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; + } + +} //AllocationKind diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/AllocationNature.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/AllocationNature.java new file mode 100644 index 00000000000..01f20bebe92 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/AllocationNature.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.MARTE_Foundations.Alloc; + +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 'Allocation Nature', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocPackage#getAllocationNature() + * @model + * @generated + */ +public enum AllocationNature implements Enumerator { + /** + * The 'Spatial Distribution' literal object. + * + * + * @see #SPATIAL_DISTRIBUTION_VALUE + * @generated + * @ordered + */ + SPATIAL_DISTRIBUTION(0, "spatialDistribution", "spatialDistribution"), + + /** + * The 'Time Scheduling' literal object. + * + * + * @see #TIME_SCHEDULING_VALUE + * @generated + * @ordered + */ + TIME_SCHEDULING(1, "timeScheduling", "timeScheduling"); + + /** + * The 'Spatial Distribution' literal value. + * + *

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

+ * + * @see #SPATIAL_DISTRIBUTION + * @model name="spatialDistribution" + * @generated + * @ordered + */ + public static final int SPATIAL_DISTRIBUTION_VALUE = 0; + + /** + * The 'Time Scheduling' literal value. + * + *

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

+ * + * @see #TIME_SCHEDULING + * @model name="timeScheduling" + * @generated + * @ordered + */ + public static final int TIME_SCHEDULING_VALUE = 1; + + /** + * An array of all the 'Allocation Nature' enumerators. + * + * + * @generated + */ + private static final AllocationNature[] VALUES_ARRAY = + new AllocationNature[] { + SPATIAL_DISTRIBUTION, + TIME_SCHEDULING, + }; + + /** + * A public read-only list of all the 'Allocation Nature' enumerators. + * + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Allocation Nature' literal with the specified literal value. + * + * + * @generated + */ + public static AllocationNature get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + AllocationNature result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Allocation Nature' literal with the specified name. + * + * + * @generated + */ + public static AllocationNature getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + AllocationNature result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Allocation Nature' literal with the specified integer value. + * + * + * @generated + */ + public static AllocationNature get(int value) { + switch (value) { + case SPATIAL_DISTRIBUTION_VALUE: return SPATIAL_DISTRIBUTION; + case TIME_SCHEDULING_VALUE: return TIME_SCHEDULING; + } + 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 AllocationNature(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; + } + +} //AllocationNature diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/Assign.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/Assign.java new file mode 100644 index 00000000000..a2f400102e7 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/Assign.java @@ -0,0 +1,179 @@ +/***************************************************************************** + * 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.MARTE_Foundations.Alloc; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpConstraint; + +import org.eclipse.uml2.uml.Comment; +import org.eclipse.uml2.uml.Element; + +/** + * + * A representation of the model object 'Assign'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Assign#getKind Kind}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Assign#getNature Nature}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Assign#getImpliedConstraint Implied Constraint}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Assign#getFrom From}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Assign#getTo To}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Assign#getBase_Comment Base Comment}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocPackage#getAssign() + * @model + * @generated + */ +public interface Assign extends EObject { + /** + * Returns the value of the 'Kind' attribute. + * The literals are from the enumeration {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AssignmentKind}. + * + *

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

+ * + * @return the value of the 'Kind' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AssignmentKind + * @see #setKind(AssignmentKind) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocPackage#getAssign_Kind() + * @model unique="false" required="true" ordered="false" + * @generated + */ + AssignmentKind getKind(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Assign#getKind Kind}' attribute. + * + * + * @param value the new value of the 'Kind' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AssignmentKind + * @see #getKind() + * @generated + */ + void setKind(AssignmentKind value); + + /** + * Returns the value of the 'Nature' attribute. + * The literals are from the enumeration {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AssignmentNature}. + * + *

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

+ * + * @return the value of the 'Nature' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AssignmentNature + * @see #setNature(AssignmentNature) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocPackage#getAssign_Nature() + * @model unique="false" required="true" ordered="false" + * @generated + */ + AssignmentNature getNature(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Assign#getNature Nature}' attribute. + * + * + * @param value the new value of the 'Nature' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AssignmentNature + * @see #getNature() + * @generated + */ + void setNature(AssignmentNature value); + + /** + * Returns the value of the 'Implied Constraint' reference list. + * The list contents are of type {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpConstraint}. + * + *

+ * If the meaning of the 'Implied Constraint' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Implied Constraint' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocPackage#getAssign_ImpliedConstraint() + * @model ordered="false" + * @generated + */ + EList getImpliedConstraint(); + + /** + * Returns the value of the 'From' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.Element}. + * + *

+ * If the meaning of the 'From' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'From' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocPackage#getAssign_From() + * @model required="true" ordered="false" + * @generated + */ + EList getFrom(); + + /** + * Returns the value of the 'To' reference list. + * The list contents are of type {@link org.eclipse.uml2.uml.Element}. + * + *

+ * If the meaning of the 'To' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'To' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocPackage#getAssign_To() + * @model required="true" ordered="false" + * @generated + */ + EList getTo(); + + /** + * Returns the value of the 'Base Comment' reference. + * + *

+ * If the meaning of the 'Base Comment' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Comment' reference. + * @see #setBase_Comment(Comment) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocPackage#getAssign_Base_Comment() + * @model required="true" ordered="false" + * @generated + */ + Comment getBase_Comment(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Assign#getBase_Comment Base Comment}' reference. + * + * + * @param value the new value of the 'Base Comment' reference. + * @see #getBase_Comment() + * @generated + */ + void setBase_Comment(Comment value); + +} // Assign diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/AssignmentKind.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/AssignmentKind.java new file mode 100644 index 00000000000..46cbc38c8b9 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/AssignmentKind.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.MARTE_Foundations.Alloc; + +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 'Assignment Kind', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocPackage#getAssignmentKind() + * @model + * @generated + */ +public enum AssignmentKind implements Enumerator { + /** + * The 'Structural' literal object. + * + * + * @see #STRUCTURAL_VALUE + * @generated + * @ordered + */ + STRUCTURAL(0, "structural", "structural"), + + /** + * The 'Behavioral' literal object. + * + * + * @see #BEHAVIORAL_VALUE + * @generated + * @ordered + */ + BEHAVIORAL(1, "behavioral", "behavioral"), + + /** + * The 'Hybrid' literal object. + * + * + * @see #HYBRID_VALUE + * @generated + * @ordered + */ + HYBRID(2, "hybrid", "hybrid"); + + /** + * The 'Structural' literal value. + * + *

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

+ * + * @see #STRUCTURAL + * @model name="structural" + * @generated + * @ordered + */ + public static final int STRUCTURAL_VALUE = 0; + + /** + * The 'Behavioral' literal value. + * + *

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

+ * + * @see #BEHAVIORAL + * @model name="behavioral" + * @generated + * @ordered + */ + public static final int BEHAVIORAL_VALUE = 1; + + /** + * The 'Hybrid' literal value. + * + *

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

+ * + * @see #HYBRID + * @model name="hybrid" + * @generated + * @ordered + */ + public static final int HYBRID_VALUE = 2; + + /** + * An array of all the 'Assignment Kind' enumerators. + * + * + * @generated + */ + private static final AssignmentKind[] VALUES_ARRAY = + new AssignmentKind[] { + STRUCTURAL, + BEHAVIORAL, + HYBRID, + }; + + /** + * A public read-only list of all the 'Assignment Kind' enumerators. + * + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Assignment Kind' literal with the specified literal value. + * + * + * @generated + */ + public static AssignmentKind get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + AssignmentKind result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Assignment Kind' literal with the specified name. + * + * + * @generated + */ + public static AssignmentKind getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + AssignmentKind result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Assignment Kind' literal with the specified integer value. + * + * + * @generated + */ + public static AssignmentKind get(int value) { + switch (value) { + case STRUCTURAL_VALUE: return STRUCTURAL; + case BEHAVIORAL_VALUE: return BEHAVIORAL; + case HYBRID_VALUE: return HYBRID; + } + 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 AssignmentKind(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; + } + +} //AssignmentKind diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/AssignmentNature.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/AssignmentNature.java new file mode 100644 index 00000000000..593811a121d --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/AssignmentNature.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.MARTE_Foundations.Alloc; + +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 'Assignment Nature', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocPackage#getAssignmentNature() + * @model + * @generated + */ +public enum AssignmentNature implements Enumerator { + /** + * The 'Spatial Distribution' literal object. + * + * + * @see #SPATIAL_DISTRIBUTION_VALUE + * @generated + * @ordered + */ + SPATIAL_DISTRIBUTION(0, "spatialDistribution", "spatialDistribution"), + + /** + * The 'Time Scheduling' literal object. + * + * + * @see #TIME_SCHEDULING_VALUE + * @generated + * @ordered + */ + TIME_SCHEDULING(1, "timeScheduling", "timeScheduling"); + + /** + * The 'Spatial Distribution' literal value. + * + *

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

+ * + * @see #SPATIAL_DISTRIBUTION + * @model name="spatialDistribution" + * @generated + * @ordered + */ + public static final int SPATIAL_DISTRIBUTION_VALUE = 0; + + /** + * The 'Time Scheduling' literal value. + * + *

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

+ * + * @see #TIME_SCHEDULING + * @model name="timeScheduling" + * @generated + * @ordered + */ + public static final int TIME_SCHEDULING_VALUE = 1; + + /** + * An array of all the 'Assignment Nature' enumerators. + * + * + * @generated + */ + private static final AssignmentNature[] VALUES_ARRAY = + new AssignmentNature[] { + SPATIAL_DISTRIBUTION, + TIME_SCHEDULING, + }; + + /** + * A public read-only list of all the 'Assignment Nature' enumerators. + * + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Assignment Nature' literal with the specified literal value. + * + * + * @generated + */ + public static AssignmentNature get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + AssignmentNature result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Assignment Nature' literal with the specified name. + * + * + * @generated + */ + public static AssignmentNature getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + AssignmentNature result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Assignment Nature' literal with the specified integer value. + * + * + * @generated + */ + public static AssignmentNature get(int value) { + switch (value) { + case SPATIAL_DISTRIBUTION_VALUE: return SPATIAL_DISTRIBUTION; + case TIME_SCHEDULING_VALUE: return TIME_SCHEDULING; + } + 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 AssignmentNature(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; + } + +} //AssignmentNature diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/NfpRefine.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/NfpRefine.java new file mode 100644 index 00000000000..48b8f2ad5f2 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/NfpRefine.java @@ -0,0 +1,84 @@ +/***************************************************************************** + * 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.MARTE_Foundations.Alloc; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpConstraint; + +import org.eclipse.uml2.uml.Dependency; + +/** + * + * A representation of the model object 'Nfp Refine'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.NfpRefine#getBase_Dependency Base Dependency}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.NfpRefine#getConstraint Constraint}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocPackage#getNfpRefine() + * @model + * @generated + */ +public interface NfpRefine extends EObject { + /** + * Returns the value of the 'Base Dependency' reference. + * + *

+ * If the meaning of the 'Base Dependency' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Dependency' reference. + * @see #setBase_Dependency(Dependency) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocPackage#getNfpRefine_Base_Dependency() + * @model required="true" ordered="false" + * @generated + */ + Dependency getBase_Dependency(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.NfpRefine#getBase_Dependency Base Dependency}' reference. + * + * + * @param value the new value of the 'Base Dependency' reference. + * @see #getBase_Dependency() + * @generated + */ + void setBase_Dependency(Dependency value); + + /** + * Returns the value of the 'Constraint' reference list. + * The list contents are of type {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpConstraint}. + * + *

+ * If the meaning of the 'Constraint' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Constraint' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocPackage#getNfpRefine_Constraint() + * @model ordered="false" + * @generated + */ + EList getConstraint(); + +} // NfpRefine diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/impl/AllocFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/impl/AllocFactoryImpl.java new file mode 100644 index 00000000000..e9fdf15d315 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/impl/AllocFactoryImpl.java @@ -0,0 +1,297 @@ +/***************************************************************************** + * 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.MARTE_Foundations.Alloc.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.MARTE_Foundations.Alloc.*; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class AllocFactoryImpl extends EFactoryImpl implements AllocFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static AllocFactory init() { + try { + AllocFactory theAllocFactory = (AllocFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/Alloc/1"); + if (theAllocFactory != null) { + return theAllocFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new AllocFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public AllocFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case AllocPackage.ALLOCATED: return createAllocated(); + case AllocPackage.ALLOCATE_ACTIVITY_GROUP: return createAllocateActivityGroup(); + case AllocPackage.NFP_REFINE: return createNfpRefine(); + case AllocPackage.ASSIGN: return createAssign(); + case AllocPackage.ALLOCATE: return createAllocate(); + 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 AllocPackage.ALLOCATION_END_KIND: + return createAllocationEndKindFromString(eDataType, initialValue); + case AllocPackage.ALLOCATION_NATURE: + return createAllocationNatureFromString(eDataType, initialValue); + case AllocPackage.ALLOCATION_KIND: + return createAllocationKindFromString(eDataType, initialValue); + case AllocPackage.ASSIGNMENT_KIND: + return createAssignmentKindFromString(eDataType, initialValue); + case AllocPackage.ASSIGNMENT_NATURE: + return createAssignmentNatureFromString(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 AllocPackage.ALLOCATION_END_KIND: + return convertAllocationEndKindToString(eDataType, instanceValue); + case AllocPackage.ALLOCATION_NATURE: + return convertAllocationNatureToString(eDataType, instanceValue); + case AllocPackage.ALLOCATION_KIND: + return convertAllocationKindToString(eDataType, instanceValue); + case AllocPackage.ASSIGNMENT_KIND: + return convertAssignmentKindToString(eDataType, instanceValue); + case AllocPackage.ASSIGNMENT_NATURE: + return convertAssignmentNatureToString(eDataType, instanceValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public Allocated createAllocated() { + AllocatedImpl allocated = new AllocatedImpl(); + return allocated; + } + + /** + * + * + * @generated + */ + public AllocateActivityGroup createAllocateActivityGroup() { + AllocateActivityGroupImpl allocateActivityGroup = new AllocateActivityGroupImpl(); + return allocateActivityGroup; + } + + /** + * + * + * @generated + */ + public NfpRefine createNfpRefine() { + NfpRefineImpl nfpRefine = new NfpRefineImpl(); + return nfpRefine; + } + + /** + * + * + * @generated + */ + public Assign createAssign() { + AssignImpl assign = new AssignImpl(); + return assign; + } + + /** + * + * + * @generated + */ + public Allocate createAllocate() { + AllocateImpl allocate = new AllocateImpl(); + return allocate; + } + + /** + * + * + * @generated + */ + public AllocationEndKind createAllocationEndKindFromString(EDataType eDataType, String initialValue) { + AllocationEndKind result = AllocationEndKind.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertAllocationEndKindToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public AllocationNature createAllocationNatureFromString(EDataType eDataType, String initialValue) { + AllocationNature result = AllocationNature.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertAllocationNatureToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public AllocationKind createAllocationKindFromString(EDataType eDataType, String initialValue) { + AllocationKind result = AllocationKind.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertAllocationKindToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public AssignmentKind createAssignmentKindFromString(EDataType eDataType, String initialValue) { + AssignmentKind result = AssignmentKind.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertAssignmentKindToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public AssignmentNature createAssignmentNatureFromString(EDataType eDataType, String initialValue) { + AssignmentNature result = AssignmentNature.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertAssignmentNatureToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public AllocPackage getAllocPackage() { + return (AllocPackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static AllocPackage getPackage() { + return AllocPackage.eINSTANCE; + } + +} //AllocFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/impl/AllocPackageImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/impl/AllocPackageImpl.java new file mode 100644 index 00000000000..7938de04c74 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/impl/AllocPackageImpl.java @@ -0,0 +1,830 @@ +/***************************************************************************** + * 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.MARTE_Foundations.Alloc.impl; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +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.AllocFactory; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocPackage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Allocate; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocateActivityGroup; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Allocated; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocationEndKind; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocationKind; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocationNature; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Assign; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AssignmentKind; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AssignmentNature; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.NfpRefine; + +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.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 AllocPackageImpl extends EPackageImpl implements AllocPackage { + /** + * + * + * @generated + */ + private EClass allocatedEClass = null; + + /** + * + * + * @generated + */ + private EClass allocateActivityGroupEClass = null; + + /** + * + * + * @generated + */ + private EClass nfpRefineEClass = null; + + /** + * + * + * @generated + */ + private EClass assignEClass = null; + + /** + * + * + * @generated + */ + private EClass allocateEClass = null; + + /** + * + * + * @generated + */ + private EEnum allocationEndKindEEnum = null; + + /** + * + * + * @generated + */ + private EEnum allocationNatureEEnum = null; + + /** + * + * + * @generated + */ + private EEnum allocationKindEEnum = null; + + /** + * + * + * @generated + */ + private EEnum assignmentKindEEnum = null; + + /** + * + * + * @generated + */ + private EEnum assignmentNatureEEnum = 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.MARTE_Foundations.Alloc.AllocPackage#eNS_URI + * @see #init() + * @generated + */ + private AllocPackageImpl() { + super(eNS_URI, AllocFactory.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 AllocPackage#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 AllocPackage init() { + if (isInited) return (AllocPackage)EPackage.Registry.INSTANCE.getEPackage(AllocPackage.eNS_URI); + + // Obtain or create and register package + AllocPackageImpl theAllocPackage = (AllocPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof AllocPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new AllocPackageImpl()); + + 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); + 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); + 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 + theAllocPackage.createPackageContents(); + theMARTEPackage.createPackageContents(); + theNFPsPackage.createPackageContents(); + theCoreElementsPackage.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(); + theMARTE_PrimitivesTypesPackage.createPackageContents(); + + // Initialize created meta-data + theAllocPackage.initializePackageContents(); + theMARTEPackage.initializePackageContents(); + theNFPsPackage.initializePackageContents(); + theCoreElementsPackage.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(); + theMARTE_PrimitivesTypesPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theAllocPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(AllocPackage.eNS_URI, theAllocPackage); + return theAllocPackage; + } + + /** + * + * + * @generated + */ + public EClass getAllocated() { + return allocatedEClass; + } + + /** + * + * + * @generated + */ + public EReference getAllocated_Base_NamedElement() { + return (EReference)allocatedEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getAllocated_AllocatedTo() { + return (EReference)allocatedEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getAllocated_AllocatedFrom() { + return (EReference)allocatedEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getAllocated_Kind() { + return (EAttribute)allocatedEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EClass getAllocateActivityGroup() { + return allocateActivityGroupEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getAllocateActivityGroup_IsUnique() { + return (EAttribute)allocateActivityGroupEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getAllocateActivityGroup_Base_ActivityPartition() { + return (EReference)allocateActivityGroupEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getNfpRefine() { + return nfpRefineEClass; + } + + /** + * + * + * @generated + */ + public EReference getNfpRefine_Base_Dependency() { + return (EReference)nfpRefineEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getNfpRefine_Constraint() { + return (EReference)nfpRefineEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getAssign() { + return assignEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getAssign_Kind() { + return (EAttribute)assignEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getAssign_Nature() { + return (EAttribute)assignEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getAssign_ImpliedConstraint() { + return (EReference)assignEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getAssign_From() { + return (EReference)assignEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EReference getAssign_To() { + return (EReference)assignEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EReference getAssign_Base_Comment() { + return (EReference)assignEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EClass getAllocate() { + return allocateEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getAllocate_Kind() { + return (EAttribute)allocateEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getAllocate_Nature() { + return (EAttribute)allocateEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getAllocate_Base_Abstraction() { + return (EReference)allocateEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getAllocate_ImpliedConstraint() { + return (EReference)allocateEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EEnum getAllocationEndKind() { + return allocationEndKindEEnum; + } + + /** + * + * + * @generated + */ + public EEnum getAllocationNature() { + return allocationNatureEEnum; + } + + /** + * + * + * @generated + */ + public EEnum getAllocationKind() { + return allocationKindEEnum; + } + + /** + * + * + * @generated + */ + public EEnum getAssignmentKind() { + return assignmentKindEEnum; + } + + /** + * + * + * @generated + */ + public EEnum getAssignmentNature() { + return assignmentNatureEEnum; + } + + /** + * + * + * @generated + */ + public AllocFactory getAllocFactory() { + return (AllocFactory)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 + allocatedEClass = createEClass(ALLOCATED); + createEReference(allocatedEClass, ALLOCATED__BASE_NAMED_ELEMENT); + createEReference(allocatedEClass, ALLOCATED__ALLOCATED_TO); + createEReference(allocatedEClass, ALLOCATED__ALLOCATED_FROM); + createEAttribute(allocatedEClass, ALLOCATED__KIND); + + allocateActivityGroupEClass = createEClass(ALLOCATE_ACTIVITY_GROUP); + createEAttribute(allocateActivityGroupEClass, ALLOCATE_ACTIVITY_GROUP__IS_UNIQUE); + createEReference(allocateActivityGroupEClass, ALLOCATE_ACTIVITY_GROUP__BASE_ACTIVITY_PARTITION); + + nfpRefineEClass = createEClass(NFP_REFINE); + createEReference(nfpRefineEClass, NFP_REFINE__BASE_DEPENDENCY); + createEReference(nfpRefineEClass, NFP_REFINE__CONSTRAINT); + + assignEClass = createEClass(ASSIGN); + createEAttribute(assignEClass, ASSIGN__KIND); + createEAttribute(assignEClass, ASSIGN__NATURE); + createEReference(assignEClass, ASSIGN__IMPLIED_CONSTRAINT); + createEReference(assignEClass, ASSIGN__FROM); + createEReference(assignEClass, ASSIGN__TO); + createEReference(assignEClass, ASSIGN__BASE_COMMENT); + + allocateEClass = createEClass(ALLOCATE); + createEAttribute(allocateEClass, ALLOCATE__KIND); + createEAttribute(allocateEClass, ALLOCATE__NATURE); + createEReference(allocateEClass, ALLOCATE__BASE_ABSTRACTION); + createEReference(allocateEClass, ALLOCATE__IMPLIED_CONSTRAINT); + + // Create enums + allocationEndKindEEnum = createEEnum(ALLOCATION_END_KIND); + allocationNatureEEnum = createEEnum(ALLOCATION_NATURE); + allocationKindEEnum = createEEnum(ALLOCATION_KIND); + assignmentKindEEnum = createEEnum(ASSIGNMENT_KIND); + assignmentNatureEEnum = createEEnum(ASSIGNMENT_NATURE); + } + + /** + * + * + * @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 + UMLPackage theUMLPackage = (UMLPackage)EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI); + MARTE_PrimitivesTypesPackage theMARTE_PrimitivesTypesPackage = (MARTE_PrimitivesTypesPackage)EPackage.Registry.INSTANCE.getEPackage(MARTE_PrimitivesTypesPackage.eNS_URI); + NFPsPackage theNFPsPackage = (NFPsPackage)EPackage.Registry.INSTANCE.getEPackage(NFPsPackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + + // Initialize classes and features; add operations and parameters + initEClass(allocatedEClass, Allocated.class, "Allocated", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getAllocated_Base_NamedElement(), theUMLPackage.getNamedElement(), null, "base_NamedElement", null, 1, 1, Allocated.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getAllocated_AllocatedTo(), this.getAllocated(), null, "allocatedTo", null, 0, -1, Allocated.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, IS_DERIVED, !IS_ORDERED); + initEReference(getAllocated_AllocatedFrom(), this.getAllocated(), null, "allocatedFrom", null, 0, -1, Allocated.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, IS_DERIVED, !IS_ORDERED); + initEAttribute(getAllocated_Kind(), this.getAllocationEndKind(), "kind", null, 0, 1, Allocated.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(allocateActivityGroupEClass, AllocateActivityGroup.class, "AllocateActivityGroup", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getAllocateActivityGroup_IsUnique(), theMARTE_PrimitivesTypesPackage.getBoolean(), "isUnique", "false", 0, 1, AllocateActivityGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getAllocateActivityGroup_Base_ActivityPartition(), theUMLPackage.getActivityPartition(), null, "base_ActivityPartition", null, 1, 1, AllocateActivityGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(nfpRefineEClass, NfpRefine.class, "NfpRefine", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getNfpRefine_Base_Dependency(), theUMLPackage.getDependency(), null, "base_Dependency", null, 1, 1, NfpRefine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getNfpRefine_Constraint(), theNFPsPackage.getNfpConstraint(), null, "constraint", null, 0, -1, NfpRefine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(assignEClass, Assign.class, "Assign", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getAssign_Kind(), this.getAssignmentKind(), "kind", null, 1, 1, Assign.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getAssign_Nature(), this.getAssignmentNature(), "nature", null, 1, 1, Assign.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getAssign_ImpliedConstraint(), theNFPsPackage.getNfpConstraint(), null, "impliedConstraint", null, 0, -1, Assign.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getAssign_From(), theUMLPackage.getElement(), null, "from", null, 1, -1, Assign.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getAssign_To(), theUMLPackage.getElement(), null, "to", null, 1, -1, Assign.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getAssign_Base_Comment(), theUMLPackage.getComment(), null, "base_Comment", null, 1, 1, Assign.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(allocateEClass, Allocate.class, "Allocate", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getAllocate_Kind(), this.getAllocationKind(), "kind", null, 0, 1, Allocate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getAllocate_Nature(), this.getAllocationNature(), "nature", null, 0, 1, Allocate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getAllocate_Base_Abstraction(), theUMLPackage.getAbstraction(), null, "base_Abstraction", null, 1, 1, Allocate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getAllocate_ImpliedConstraint(), theNFPsPackage.getNfpConstraint(), null, "impliedConstraint", null, 0, -1, Allocate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + // Initialize enums and add enum literals + initEEnum(allocationEndKindEEnum, AllocationEndKind.class, "AllocationEndKind"); + addEEnumLiteral(allocationEndKindEEnum, AllocationEndKind.UNDEF); + addEEnumLiteral(allocationEndKindEEnum, AllocationEndKind.APPLICATION); + addEEnumLiteral(allocationEndKindEEnum, AllocationEndKind.EXECUTION_PLATFORM); + addEEnumLiteral(allocationEndKindEEnum, AllocationEndKind.BOTH); + + initEEnum(allocationNatureEEnum, AllocationNature.class, "AllocationNature"); + addEEnumLiteral(allocationNatureEEnum, AllocationNature.SPATIAL_DISTRIBUTION); + addEEnumLiteral(allocationNatureEEnum, AllocationNature.TIME_SCHEDULING); + + initEEnum(allocationKindEEnum, AllocationKind.class, "AllocationKind"); + addEEnumLiteral(allocationKindEEnum, AllocationKind.STRUCTURAL); + addEEnumLiteral(allocationKindEEnum, AllocationKind.BEHAVIORAL); + addEEnumLiteral(allocationKindEEnum, AllocationKind.HYBRID); + + initEEnum(assignmentKindEEnum, AssignmentKind.class, "AssignmentKind"); + addEEnumLiteral(assignmentKindEEnum, AssignmentKind.STRUCTURAL); + addEEnumLiteral(assignmentKindEEnum, AssignmentKind.BEHAVIORAL); + addEEnumLiteral(assignmentKindEEnum, AssignmentKind.HYBRID); + + initEEnum(assignmentNatureEEnum, AssignmentNature.class, "AssignmentNature"); + addEEnumLiteral(assignmentNatureEEnum, AssignmentNature.SPATIAL_DISTRIBUTION); + addEEnumLiteral(assignmentNatureEEnum, AssignmentNature.TIME_SCHEDULING); + } + +} //AllocPackageImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/impl/AllocateActivityGroupImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/impl/AllocateActivityGroupImpl.java new file mode 100644 index 00000000000..61e8530a6ab --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/impl/AllocateActivityGroupImpl.java @@ -0,0 +1,237 @@ +/***************************************************************************** + * 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.MARTE_Foundations.Alloc.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocPackage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocateActivityGroup; + +import org.eclipse.uml2.uml.ActivityPartition; + +/** + * + * An implementation of the model object 'Allocate Activity Group'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AllocateActivityGroupImpl#isIsUnique Is Unique}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AllocateActivityGroupImpl#getBase_ActivityPartition Base Activity Partition}
  • + *
+ *

+ * + * @generated + */ +public class AllocateActivityGroupImpl extends EObjectImpl implements AllocateActivityGroup { + /** + * The default value of the '{@link #isIsUnique() Is Unique}' attribute. + * + * + * @see #isIsUnique() + * @generated + * @ordered + */ + protected static final boolean IS_UNIQUE_EDEFAULT = false; + + /** + * The cached value of the '{@link #isIsUnique() Is Unique}' attribute. + * + * + * @see #isIsUnique() + * @generated + * @ordered + */ + protected boolean isUnique = IS_UNIQUE_EDEFAULT; + + /** + * The cached value of the '{@link #getBase_ActivityPartition() Base Activity Partition}' reference. + * + * + * @see #getBase_ActivityPartition() + * @generated + * @ordered + */ + protected ActivityPartition base_ActivityPartition; + + /** + * + * + * @generated + */ + protected AllocateActivityGroupImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return AllocPackage.Literals.ALLOCATE_ACTIVITY_GROUP; + } + + /** + * + * + * @generated + */ + public boolean isIsUnique() { + return isUnique; + } + + /** + * + * + * @generated + */ + public void setIsUnique(boolean newIsUnique) { + boolean oldIsUnique = isUnique; + isUnique = newIsUnique; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, AllocPackage.ALLOCATE_ACTIVITY_GROUP__IS_UNIQUE, oldIsUnique, isUnique)); + } + + /** + * + * + * @generated + */ + public ActivityPartition getBase_ActivityPartition() { + if (base_ActivityPartition != null && base_ActivityPartition.eIsProxy()) { + InternalEObject oldBase_ActivityPartition = (InternalEObject)base_ActivityPartition; + base_ActivityPartition = (ActivityPartition)eResolveProxy(oldBase_ActivityPartition); + if (base_ActivityPartition != oldBase_ActivityPartition) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, AllocPackage.ALLOCATE_ACTIVITY_GROUP__BASE_ACTIVITY_PARTITION, oldBase_ActivityPartition, base_ActivityPartition)); + } + } + return base_ActivityPartition; + } + + /** + * + * + * @generated + */ + public ActivityPartition basicGetBase_ActivityPartition() { + return base_ActivityPartition; + } + + /** + * + * + * @generated + */ + public void setBase_ActivityPartition(ActivityPartition newBase_ActivityPartition) { + ActivityPartition oldBase_ActivityPartition = base_ActivityPartition; + base_ActivityPartition = newBase_ActivityPartition; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, AllocPackage.ALLOCATE_ACTIVITY_GROUP__BASE_ACTIVITY_PARTITION, oldBase_ActivityPartition, base_ActivityPartition)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case AllocPackage.ALLOCATE_ACTIVITY_GROUP__IS_UNIQUE: + return isIsUnique(); + case AllocPackage.ALLOCATE_ACTIVITY_GROUP__BASE_ACTIVITY_PARTITION: + if (resolve) return getBase_ActivityPartition(); + return basicGetBase_ActivityPartition(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case AllocPackage.ALLOCATE_ACTIVITY_GROUP__IS_UNIQUE: + setIsUnique((Boolean)newValue); + return; + case AllocPackage.ALLOCATE_ACTIVITY_GROUP__BASE_ACTIVITY_PARTITION: + setBase_ActivityPartition((ActivityPartition)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case AllocPackage.ALLOCATE_ACTIVITY_GROUP__IS_UNIQUE: + setIsUnique(IS_UNIQUE_EDEFAULT); + return; + case AllocPackage.ALLOCATE_ACTIVITY_GROUP__BASE_ACTIVITY_PARTITION: + setBase_ActivityPartition((ActivityPartition)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case AllocPackage.ALLOCATE_ACTIVITY_GROUP__IS_UNIQUE: + return isUnique != IS_UNIQUE_EDEFAULT; + case AllocPackage.ALLOCATE_ACTIVITY_GROUP__BASE_ACTIVITY_PARTITION: + return base_ActivityPartition != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (isUnique: "); + result.append(isUnique); + result.append(')'); + return result.toString(); + } + +} //AllocateActivityGroupImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/impl/AllocateImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/impl/AllocateImpl.java new file mode 100644 index 00000000000..aee16735e87 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/impl/AllocateImpl.java @@ -0,0 +1,336 @@ +/***************************************************************************** + * 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.MARTE_Foundations.Alloc.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectResolvingEList; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocPackage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Allocate; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocationKind; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocationNature; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpConstraint; + +import org.eclipse.uml2.uml.Abstraction; + +/** + * + * An implementation of the model object 'Allocate'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AllocateImpl#getKind Kind}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AllocateImpl#getNature Nature}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AllocateImpl#getBase_Abstraction Base Abstraction}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AllocateImpl#getImpliedConstraint Implied Constraint}
  • + *
+ *

+ * + * @generated + */ +public class AllocateImpl extends EObjectImpl implements Allocate { + /** + * The default value of the '{@link #getKind() Kind}' attribute. + * + * + * @see #getKind() + * @generated + * @ordered + */ + protected static final AllocationKind KIND_EDEFAULT = AllocationKind.STRUCTURAL; + + /** + * The cached value of the '{@link #getKind() Kind}' attribute. + * + * + * @see #getKind() + * @generated + * @ordered + */ + protected AllocationKind kind = KIND_EDEFAULT; + + /** + * The default value of the '{@link #getNature() Nature}' attribute. + * + * + * @see #getNature() + * @generated + * @ordered + */ + protected static final AllocationNature NATURE_EDEFAULT = AllocationNature.SPATIAL_DISTRIBUTION; + + /** + * The cached value of the '{@link #getNature() Nature}' attribute. + * + * + * @see #getNature() + * @generated + * @ordered + */ + protected AllocationNature nature = NATURE_EDEFAULT; + + /** + * The cached value of the '{@link #getBase_Abstraction() Base Abstraction}' reference. + * + * + * @see #getBase_Abstraction() + * @generated + * @ordered + */ + protected Abstraction base_Abstraction; + + /** + * The cached value of the '{@link #getImpliedConstraint() Implied Constraint}' reference list. + * + * + * @see #getImpliedConstraint() + * @generated + * @ordered + */ + protected EList impliedConstraint; + + /** + * + * + * @generated + */ + protected AllocateImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return AllocPackage.Literals.ALLOCATE; + } + + /** + * + * + * @generated + */ + public AllocationKind getKind() { + return kind; + } + + /** + * + * + * @generated + */ + public void setKind(AllocationKind newKind) { + AllocationKind oldKind = kind; + kind = newKind == null ? KIND_EDEFAULT : newKind; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, AllocPackage.ALLOCATE__KIND, oldKind, kind)); + } + + /** + * + * + * @generated + */ + public AllocationNature getNature() { + return nature; + } + + /** + * + * + * @generated + */ + public void setNature(AllocationNature newNature) { + AllocationNature oldNature = nature; + nature = newNature == null ? NATURE_EDEFAULT : newNature; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, AllocPackage.ALLOCATE__NATURE, oldNature, nature)); + } + + /** + * + * + * @generated + */ + public Abstraction getBase_Abstraction() { + if (base_Abstraction != null && base_Abstraction.eIsProxy()) { + InternalEObject oldBase_Abstraction = (InternalEObject)base_Abstraction; + base_Abstraction = (Abstraction)eResolveProxy(oldBase_Abstraction); + if (base_Abstraction != oldBase_Abstraction) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, AllocPackage.ALLOCATE__BASE_ABSTRACTION, oldBase_Abstraction, base_Abstraction)); + } + } + return base_Abstraction; + } + + /** + * + * + * @generated + */ + public Abstraction basicGetBase_Abstraction() { + return base_Abstraction; + } + + /** + * + * + * @generated + */ + public void setBase_Abstraction(Abstraction newBase_Abstraction) { + Abstraction oldBase_Abstraction = base_Abstraction; + base_Abstraction = newBase_Abstraction; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, AllocPackage.ALLOCATE__BASE_ABSTRACTION, oldBase_Abstraction, base_Abstraction)); + } + + /** + * + * + * @generated + */ + public EList getImpliedConstraint() { + if (impliedConstraint == null) { + impliedConstraint = new EObjectResolvingEList(NfpConstraint.class, this, AllocPackage.ALLOCATE__IMPLIED_CONSTRAINT); + } + return impliedConstraint; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case AllocPackage.ALLOCATE__KIND: + return getKind(); + case AllocPackage.ALLOCATE__NATURE: + return getNature(); + case AllocPackage.ALLOCATE__BASE_ABSTRACTION: + if (resolve) return getBase_Abstraction(); + return basicGetBase_Abstraction(); + case AllocPackage.ALLOCATE__IMPLIED_CONSTRAINT: + return getImpliedConstraint(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case AllocPackage.ALLOCATE__KIND: + setKind((AllocationKind)newValue); + return; + case AllocPackage.ALLOCATE__NATURE: + setNature((AllocationNature)newValue); + return; + case AllocPackage.ALLOCATE__BASE_ABSTRACTION: + setBase_Abstraction((Abstraction)newValue); + return; + case AllocPackage.ALLOCATE__IMPLIED_CONSTRAINT: + getImpliedConstraint().clear(); + getImpliedConstraint().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case AllocPackage.ALLOCATE__KIND: + setKind(KIND_EDEFAULT); + return; + case AllocPackage.ALLOCATE__NATURE: + setNature(NATURE_EDEFAULT); + return; + case AllocPackage.ALLOCATE__BASE_ABSTRACTION: + setBase_Abstraction((Abstraction)null); + return; + case AllocPackage.ALLOCATE__IMPLIED_CONSTRAINT: + getImpliedConstraint().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case AllocPackage.ALLOCATE__KIND: + return kind != KIND_EDEFAULT; + case AllocPackage.ALLOCATE__NATURE: + return nature != NATURE_EDEFAULT; + case AllocPackage.ALLOCATE__BASE_ABSTRACTION: + return base_Abstraction != null; + case AllocPackage.ALLOCATE__IMPLIED_CONSTRAINT: + return impliedConstraint != null && !impliedConstraint.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (kind: "); + result.append(kind); + result.append(", nature: "); + result.append(nature); + result.append(')'); + return result.toString(); + } + +} //AllocateImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/impl/AllocatedImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/impl/AllocatedImpl.java new file mode 100644 index 00000000000..5413826891e --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/impl/AllocatedImpl.java @@ -0,0 +1,359 @@ +/***************************************************************************** + * 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.MARTE_Foundations.Alloc.impl; + +import java.util.Collection; +import java.util.Iterator; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.BasicEList; +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; +import org.eclipse.emf.ecore.util.BasicInternalEList; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocPackage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Allocate; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Allocated; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocationEndKind; +import org.eclipse.papyrus.umlutils.ElementUtil; + +import org.eclipse.uml2.uml.Dependency; +import org.eclipse.uml2.uml.DirectedRelationship; +import org.eclipse.uml2.uml.Element; +import org.eclipse.uml2.uml.NamedElement; + +/** + * + * An implementation of the model object 'Allocated'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AllocatedImpl#getBase_NamedElement Base Named Element}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AllocatedImpl#getAllocatedTo Allocated To}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AllocatedImpl#getAllocatedFrom Allocated From}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AllocatedImpl#getKind Kind}
  • + *
+ *

+ * + * @generated + */ +public class AllocatedImpl extends EObjectImpl implements Allocated { + /** + * The cached value of the '{@link #getBase_NamedElement() Base Named Element}' reference. + * + * + * @see #getBase_NamedElement() + * @generated + * @ordered + */ + protected NamedElement base_NamedElement; + + /** + * The default value of the '{@link #getKind() Kind}' attribute. + * + * + * @see #getKind() + * @generated + * @ordered + */ + protected static final AllocationEndKind KIND_EDEFAULT = AllocationEndKind.UNDEF; + + /** + * The cached value of the '{@link #getKind() Kind}' attribute. + * + * + * @see #getKind() + * @generated + * @ordered + */ + protected AllocationEndKind kind = KIND_EDEFAULT; + + /** + * + * + * @generated + */ + protected AllocatedImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return AllocPackage.Literals.ALLOCATED; + } + + /** + * + * + * @generated + */ + public NamedElement getBase_NamedElement() { + if (base_NamedElement != null && base_NamedElement.eIsProxy()) { + InternalEObject oldBase_NamedElement = (InternalEObject)base_NamedElement; + base_NamedElement = (NamedElement)eResolveProxy(oldBase_NamedElement); + if (base_NamedElement != oldBase_NamedElement) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, AllocPackage.ALLOCATED__BASE_NAMED_ELEMENT, oldBase_NamedElement, base_NamedElement)); + } + } + return base_NamedElement; + } + + /** + * + * + * @generated + */ + public NamedElement basicGetBase_NamedElement() { + return base_NamedElement; + } + + /** + * + * + * @generated + */ + public void setBase_NamedElement(NamedElement newBase_NamedElement) { + NamedElement oldBase_NamedElement = base_NamedElement; + base_NamedElement = newBase_NamedElement; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, AllocPackage.ALLOCATED__BASE_NAMED_ELEMENT, oldBase_NamedElement, base_NamedElement)); + } + + /** + * + * + * @generated NOT + */ + public EList getAllocatedTo() { + // TODO: implement this method to return the 'Allocated To' reference list + // Ensure that you remove @generated or mark it @generated NOT + // The list is expected to implement org.eclipse.emf.ecore.util.InternalEList and org.eclipse.emf.ecore.EStructuralFeature.Setting + // so it's likely that an appropriate subclass of org.eclipse.emf.ecore.util.EcoreEList should be used. + // throw new UnsupportedOperationException(); + + EList allocatedTo = new BasicEList(); + + if(getBase_NamedElement() != null) { + Iterator absIter = getBase_NamedElement().getClientDependencies().iterator(); + while(absIter.hasNext()) { + Dependency currentDependency = absIter.next(); + Allocate currentAllocate = (Allocate) ElementUtil. + hasStereotype(currentDependency, AllocPackage.eINSTANCE.getAllocate()); + if(currentAllocate != null) { + EList targets = currentAllocate.getBase_Abstraction().getTargets(); + Iterator it = targets.iterator(); + while (it.hasNext()) { + Element currentElt = it.next(); + Allocated currentAllocated = (Allocated) ElementUtil. + hasStereotype(currentElt, AllocPackage.eINSTANCE.getAllocated()); + if(currentAllocated != null) { + allocatedTo.add(currentAllocated); + } + } + } + } + } + + return new BasicInternalEList( + Allocated.class, + allocatedTo.size(), + allocatedTo.toArray()); + + } + + /** + * + * + * @generated NOT + */ + public EList getAllocatedFrom() { + // TODO: implement this method to return the 'Allocated From' reference list + // Ensure that you remove @generated or mark it @generated NOT + // The list is expected to implement org.eclipse.emf.ecore.util.InternalEList and org.eclipse.emf.ecore.EStructuralFeature.Setting + // so it's likely that an appropriate subclass of org.eclipse.emf.ecore.util.EcoreEList should be used. + // throw new UnsupportedOperationException(); + + EList allocatedFrom = new BasicEList(); + + if(getBase_NamedElement() != null) { + Iterator absIter = getBase_NamedElement().getTargetDirectedRelationships().iterator(); + while(absIter.hasNext()) { + DirectedRelationship currentDependency = absIter.next(); + Allocate currentAllocate = (Allocate) ElementUtil. + hasStereotype(currentDependency, AllocPackage.eINSTANCE.getAllocate()); + if(currentAllocate != null) { + EList sources = currentAllocate.getBase_Abstraction().getSources(); + Iterator it = sources.iterator(); + while (it.hasNext()) { + Element currentElt = it.next(); + Allocated currentAllocated = (Allocated) ElementUtil. + hasStereotype(currentElt, AllocPackage.eINSTANCE.getAllocated()); + if(currentAllocated != null) { + allocatedFrom.add(currentAllocated); + } + } + } + } + } + + return new BasicInternalEList( + Allocated.class, + allocatedFrom.size(), + allocatedFrom.toArray()); + + } + + /** + * + * + * @generated + */ + public AllocationEndKind getKind() { + return kind; + } + + /** + * + * + * @generated + */ + public void setKind(AllocationEndKind newKind) { + AllocationEndKind oldKind = kind; + kind = newKind == null ? KIND_EDEFAULT : newKind; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, AllocPackage.ALLOCATED__KIND, oldKind, kind)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case AllocPackage.ALLOCATED__BASE_NAMED_ELEMENT: + if (resolve) return getBase_NamedElement(); + return basicGetBase_NamedElement(); + case AllocPackage.ALLOCATED__ALLOCATED_TO: + return getAllocatedTo(); + case AllocPackage.ALLOCATED__ALLOCATED_FROM: + return getAllocatedFrom(); + case AllocPackage.ALLOCATED__KIND: + return getKind(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case AllocPackage.ALLOCATED__BASE_NAMED_ELEMENT: + setBase_NamedElement((NamedElement)newValue); + return; + case AllocPackage.ALLOCATED__ALLOCATED_TO: + getAllocatedTo().clear(); + getAllocatedTo().addAll((Collection)newValue); + return; + case AllocPackage.ALLOCATED__ALLOCATED_FROM: + getAllocatedFrom().clear(); + getAllocatedFrom().addAll((Collection)newValue); + return; + case AllocPackage.ALLOCATED__KIND: + setKind((AllocationEndKind)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case AllocPackage.ALLOCATED__BASE_NAMED_ELEMENT: + setBase_NamedElement((NamedElement)null); + return; + case AllocPackage.ALLOCATED__ALLOCATED_TO: + getAllocatedTo().clear(); + return; + case AllocPackage.ALLOCATED__ALLOCATED_FROM: + getAllocatedFrom().clear(); + return; + case AllocPackage.ALLOCATED__KIND: + setKind(KIND_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case AllocPackage.ALLOCATED__BASE_NAMED_ELEMENT: + return base_NamedElement != null; + case AllocPackage.ALLOCATED__ALLOCATED_TO: + return !getAllocatedTo().isEmpty(); + case AllocPackage.ALLOCATED__ALLOCATED_FROM: + return !getAllocatedFrom().isEmpty(); + case AllocPackage.ALLOCATED__KIND: + return kind != KIND_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (kind: "); + result.append(kind); + result.append(')'); + return result.toString(); + } + +} //AllocatedImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/impl/AssignImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/impl/AssignImpl.java new file mode 100644 index 00000000000..c0b62f3f493 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/impl/AssignImpl.java @@ -0,0 +1,405 @@ +/***************************************************************************** + * 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.MARTE_Foundations.Alloc.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectResolvingEList; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocPackage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Assign; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AssignmentKind; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AssignmentNature; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpConstraint; + +import org.eclipse.uml2.uml.Comment; +import org.eclipse.uml2.uml.Element; + +/** + * + * An implementation of the model object 'Assign'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AssignImpl#getKind Kind}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AssignImpl#getNature Nature}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AssignImpl#getImpliedConstraint Implied Constraint}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AssignImpl#getFrom From}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AssignImpl#getTo To}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.AssignImpl#getBase_Comment Base Comment}
  • + *
+ *

+ * + * @generated + */ +public class AssignImpl extends EObjectImpl implements Assign { + /** + * The default value of the '{@link #getKind() Kind}' attribute. + * + * + * @see #getKind() + * @generated + * @ordered + */ + protected static final AssignmentKind KIND_EDEFAULT = AssignmentKind.STRUCTURAL; + + /** + * The cached value of the '{@link #getKind() Kind}' attribute. + * + * + * @see #getKind() + * @generated + * @ordered + */ + protected AssignmentKind kind = KIND_EDEFAULT; + + /** + * The default value of the '{@link #getNature() Nature}' attribute. + * + * + * @see #getNature() + * @generated + * @ordered + */ + protected static final AssignmentNature NATURE_EDEFAULT = AssignmentNature.SPATIAL_DISTRIBUTION; + + /** + * The cached value of the '{@link #getNature() Nature}' attribute. + * + * + * @see #getNature() + * @generated + * @ordered + */ + protected AssignmentNature nature = NATURE_EDEFAULT; + + /** + * The cached value of the '{@link #getImpliedConstraint() Implied Constraint}' reference list. + * + * + * @see #getImpliedConstraint() + * @generated + * @ordered + */ + protected EList impliedConstraint; + + /** + * The cached value of the '{@link #getFrom() From}' reference list. + * + * + * @see #getFrom() + * @generated + * @ordered + */ + protected EList from; + + /** + * The cached value of the '{@link #getTo() To}' reference list. + * + * + * @see #getTo() + * @generated + * @ordered + */ + protected EList to; + + /** + * The cached value of the '{@link #getBase_Comment() Base Comment}' reference. + * + * + * @see #getBase_Comment() + * @generated + * @ordered + */ + protected Comment base_Comment; + + /** + * + * + * @generated + */ + protected AssignImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return AllocPackage.Literals.ASSIGN; + } + + /** + * + * + * @generated + */ + public AssignmentKind getKind() { + return kind; + } + + /** + * + * + * @generated + */ + public void setKind(AssignmentKind newKind) { + AssignmentKind oldKind = kind; + kind = newKind == null ? KIND_EDEFAULT : newKind; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, AllocPackage.ASSIGN__KIND, oldKind, kind)); + } + + /** + * + * + * @generated + */ + public AssignmentNature getNature() { + return nature; + } + + /** + * + * + * @generated + */ + public void setNature(AssignmentNature newNature) { + AssignmentNature oldNature = nature; + nature = newNature == null ? NATURE_EDEFAULT : newNature; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, AllocPackage.ASSIGN__NATURE, oldNature, nature)); + } + + /** + * + * + * @generated + */ + public EList getImpliedConstraint() { + if (impliedConstraint == null) { + impliedConstraint = new EObjectResolvingEList(NfpConstraint.class, this, AllocPackage.ASSIGN__IMPLIED_CONSTRAINT); + } + return impliedConstraint; + } + + /** + * + * + * @generated + */ + public EList getFrom() { + if (from == null) { + from = new EObjectResolvingEList(Element.class, this, AllocPackage.ASSIGN__FROM); + } + return from; + } + + /** + * + * + * @generated + */ + public EList getTo() { + if (to == null) { + to = new EObjectResolvingEList(Element.class, this, AllocPackage.ASSIGN__TO); + } + return to; + } + + /** + * + * + * @generated + */ + public Comment getBase_Comment() { + if (base_Comment != null && base_Comment.eIsProxy()) { + InternalEObject oldBase_Comment = (InternalEObject)base_Comment; + base_Comment = (Comment)eResolveProxy(oldBase_Comment); + if (base_Comment != oldBase_Comment) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, AllocPackage.ASSIGN__BASE_COMMENT, oldBase_Comment, base_Comment)); + } + } + return base_Comment; + } + + /** + * + * + * @generated + */ + public Comment basicGetBase_Comment() { + return base_Comment; + } + + /** + * + * + * @generated + */ + public void setBase_Comment(Comment newBase_Comment) { + Comment oldBase_Comment = base_Comment; + base_Comment = newBase_Comment; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, AllocPackage.ASSIGN__BASE_COMMENT, oldBase_Comment, base_Comment)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case AllocPackage.ASSIGN__KIND: + return getKind(); + case AllocPackage.ASSIGN__NATURE: + return getNature(); + case AllocPackage.ASSIGN__IMPLIED_CONSTRAINT: + return getImpliedConstraint(); + case AllocPackage.ASSIGN__FROM: + return getFrom(); + case AllocPackage.ASSIGN__TO: + return getTo(); + case AllocPackage.ASSIGN__BASE_COMMENT: + if (resolve) return getBase_Comment(); + return basicGetBase_Comment(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case AllocPackage.ASSIGN__KIND: + setKind((AssignmentKind)newValue); + return; + case AllocPackage.ASSIGN__NATURE: + setNature((AssignmentNature)newValue); + return; + case AllocPackage.ASSIGN__IMPLIED_CONSTRAINT: + getImpliedConstraint().clear(); + getImpliedConstraint().addAll((Collection)newValue); + return; + case AllocPackage.ASSIGN__FROM: + getFrom().clear(); + getFrom().addAll((Collection)newValue); + return; + case AllocPackage.ASSIGN__TO: + getTo().clear(); + getTo().addAll((Collection)newValue); + return; + case AllocPackage.ASSIGN__BASE_COMMENT: + setBase_Comment((Comment)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case AllocPackage.ASSIGN__KIND: + setKind(KIND_EDEFAULT); + return; + case AllocPackage.ASSIGN__NATURE: + setNature(NATURE_EDEFAULT); + return; + case AllocPackage.ASSIGN__IMPLIED_CONSTRAINT: + getImpliedConstraint().clear(); + return; + case AllocPackage.ASSIGN__FROM: + getFrom().clear(); + return; + case AllocPackage.ASSIGN__TO: + getTo().clear(); + return; + case AllocPackage.ASSIGN__BASE_COMMENT: + setBase_Comment((Comment)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case AllocPackage.ASSIGN__KIND: + return kind != KIND_EDEFAULT; + case AllocPackage.ASSIGN__NATURE: + return nature != NATURE_EDEFAULT; + case AllocPackage.ASSIGN__IMPLIED_CONSTRAINT: + return impliedConstraint != null && !impliedConstraint.isEmpty(); + case AllocPackage.ASSIGN__FROM: + return from != null && !from.isEmpty(); + case AllocPackage.ASSIGN__TO: + return to != null && !to.isEmpty(); + case AllocPackage.ASSIGN__BASE_COMMENT: + return base_Comment != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (kind: "); + result.append(kind); + result.append(", nature: "); + result.append(nature); + result.append(')'); + return result.toString(); + } + +} //AssignImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/impl/NfpRefineImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/impl/NfpRefineImpl.java new file mode 100644 index 00000000000..a818f77e9b1 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/impl/NfpRefineImpl.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.MARTE_Foundations.Alloc.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectResolvingEList; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocPackage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.NfpRefine; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpConstraint; + +import org.eclipse.uml2.uml.Dependency; + +/** + * + * An implementation of the model object 'Nfp Refine'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.NfpRefineImpl#getBase_Dependency Base Dependency}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.impl.NfpRefineImpl#getConstraint Constraint}
  • + *
+ *

+ * + * @generated + */ +public class NfpRefineImpl extends EObjectImpl implements NfpRefine { + /** + * The cached value of the '{@link #getBase_Dependency() Base Dependency}' reference. + * + * + * @see #getBase_Dependency() + * @generated + * @ordered + */ + protected Dependency base_Dependency; + + /** + * The cached value of the '{@link #getConstraint() Constraint}' reference list. + * + * + * @see #getConstraint() + * @generated + * @ordered + */ + protected EList constraint; + + /** + * + * + * @generated + */ + protected NfpRefineImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return AllocPackage.Literals.NFP_REFINE; + } + + /** + * + * + * @generated + */ + public Dependency getBase_Dependency() { + if (base_Dependency != null && base_Dependency.eIsProxy()) { + InternalEObject oldBase_Dependency = (InternalEObject)base_Dependency; + base_Dependency = (Dependency)eResolveProxy(oldBase_Dependency); + if (base_Dependency != oldBase_Dependency) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, AllocPackage.NFP_REFINE__BASE_DEPENDENCY, oldBase_Dependency, base_Dependency)); + } + } + return base_Dependency; + } + + /** + * + * + * @generated + */ + public Dependency basicGetBase_Dependency() { + return base_Dependency; + } + + /** + * + * + * @generated + */ + public void setBase_Dependency(Dependency newBase_Dependency) { + Dependency oldBase_Dependency = base_Dependency; + base_Dependency = newBase_Dependency; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, AllocPackage.NFP_REFINE__BASE_DEPENDENCY, oldBase_Dependency, base_Dependency)); + } + + /** + * + * + * @generated + */ + public EList getConstraint() { + if (constraint == null) { + constraint = new EObjectResolvingEList(NfpConstraint.class, this, AllocPackage.NFP_REFINE__CONSTRAINT); + } + return constraint; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case AllocPackage.NFP_REFINE__BASE_DEPENDENCY: + if (resolve) return getBase_Dependency(); + return basicGetBase_Dependency(); + case AllocPackage.NFP_REFINE__CONSTRAINT: + return getConstraint(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case AllocPackage.NFP_REFINE__BASE_DEPENDENCY: + setBase_Dependency((Dependency)newValue); + return; + case AllocPackage.NFP_REFINE__CONSTRAINT: + getConstraint().clear(); + getConstraint().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case AllocPackage.NFP_REFINE__BASE_DEPENDENCY: + setBase_Dependency((Dependency)null); + return; + case AllocPackage.NFP_REFINE__CONSTRAINT: + getConstraint().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case AllocPackage.NFP_REFINE__BASE_DEPENDENCY: + return base_Dependency != null; + case AllocPackage.NFP_REFINE__CONSTRAINT: + return constraint != null && !constraint.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //NfpRefineImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/util/AllocAdapterFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/util/AllocAdapterFactory.java new file mode 100644 index 00000000000..30aa2009aee --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/util/AllocAdapterFactory.java @@ -0,0 +1,203 @@ +/***************************************************************************** + * 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.MARTE_Foundations.Alloc.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.MARTE_Foundations.Alloc.*; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocPackage + * @generated + */ +public class AllocAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * @generated + */ + protected static AllocPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public AllocAdapterFactory() { + if (modelPackage == null) { + modelPackage = AllocPackage.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 AllocSwitch modelSwitch = + new AllocSwitch() { + @Override + public Adapter caseAllocated(Allocated object) { + return createAllocatedAdapter(); + } + @Override + public Adapter caseAllocateActivityGroup(AllocateActivityGroup object) { + return createAllocateActivityGroupAdapter(); + } + @Override + public Adapter caseNfpRefine(NfpRefine object) { + return createNfpRefineAdapter(); + } + @Override + public Adapter caseAssign(Assign object) { + return createAssignAdapter(); + } + @Override + public Adapter caseAllocate(Allocate object) { + return createAllocateAdapter(); + } + @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.MARTE_Foundations.Alloc.Allocated Allocated}'. + * + * 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.MARTE_Foundations.Alloc.Allocated + * @generated + */ + public Adapter createAllocatedAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocateActivityGroup Allocate Activity Group}'. + * + * 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.MARTE_Foundations.Alloc.AllocateActivityGroup + * @generated + */ + public Adapter createAllocateActivityGroupAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.NfpRefine Nfp Refine}'. + * + * 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.MARTE_Foundations.Alloc.NfpRefine + * @generated + */ + public Adapter createNfpRefineAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Assign Assign}'. + * + * 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.MARTE_Foundations.Alloc.Assign + * @generated + */ + public Adapter createAssignAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.Allocate Allocate}'. + * + * 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.MARTE_Foundations.Alloc.Allocate + * @generated + */ + public Adapter createAllocateAdapter() { + 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; + } + +} //AllocAdapterFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/util/AllocResourceFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/util/AllocResourceFactoryImpl.java new file mode 100644 index 00000000000..83ba6e511ae --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/util/AllocResourceFactoryImpl.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.MARTE_Foundations.Alloc.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; + +import org.eclipse.emf.ecore.xmi.XMLResource; + +/** + * + * The Resource Factory associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.util.AllocResourceImpl + * @generated + */ +public class AllocResourceFactoryImpl extends ResourceFactoryImpl { + /** + * Creates an instance of the resource factory. + * + * + * @generated + */ + public AllocResourceFactoryImpl() { + super(); + } + + /** + * Creates an instance of the resource. + * + * + * @generated + */ + @Override + public Resource createResource(URI uri) { + XMLResource result = new AllocResourceImpl(uri); + result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + + result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); + return result; + } + +} //AllocResourceFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/util/AllocResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/util/AllocResourceImpl.java new file mode 100644 index 00000000000..0edfc3fc59f --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/util/AllocResourceImpl.java @@ -0,0 +1,39 @@ +/***************************************************************************** + * 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.MARTE_Foundations.Alloc.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; + +/** + * + * The Resource associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.util.AllocResourceFactoryImpl + * @generated + */ +public class AllocResourceImpl extends XMLResourceImpl { + /** + * Creates an instance of the resource. + * + * + * @param uri the URI of the new resource. + * @generated + */ + public AllocResourceImpl(URI uri) { + super(uri); + } + +} //AllocResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/util/AllocSwitch.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/util/AllocSwitch.java new file mode 100644 index 00000000000..ad61bd1bdc0 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/util/AllocSwitch.java @@ -0,0 +1,221 @@ +/***************************************************************************** + * 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.MARTE_Foundations.Alloc.util; + +import java.util.List; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.*; + +/** + * + * 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.MARTE_Foundations.Alloc.AllocPackage + * @generated + */ +public class AllocSwitch { + /** + * The cached model package + * + * + * @generated + */ + protected static AllocPackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public AllocSwitch() { + if (modelPackage == null) { + modelPackage = AllocPackage.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 AllocPackage.ALLOCATED: { + Allocated allocated = (Allocated)theEObject; + T result = caseAllocated(allocated); + if (result == null) result = defaultCase(theEObject); + return result; + } + case AllocPackage.ALLOCATE_ACTIVITY_GROUP: { + AllocateActivityGroup allocateActivityGroup = (AllocateActivityGroup)theEObject; + T result = caseAllocateActivityGroup(allocateActivityGroup); + if (result == null) result = defaultCase(theEObject); + return result; + } + case AllocPackage.NFP_REFINE: { + NfpRefine nfpRefine = (NfpRefine)theEObject; + T result = caseNfpRefine(nfpRefine); + if (result == null) result = defaultCase(theEObject); + return result; + } + case AllocPackage.ASSIGN: { + Assign assign = (Assign)theEObject; + T result = caseAssign(assign); + if (result == null) result = defaultCase(theEObject); + return result; + } + case AllocPackage.ALLOCATE: { + Allocate allocate = (Allocate)theEObject; + T result = caseAllocate(allocate); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Allocated'. + * + * 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 'Allocated'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseAllocated(Allocated object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Allocate Activity Group'. + * + * 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 'Allocate Activity Group'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseAllocateActivityGroup(AllocateActivityGroup object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Nfp Refine'. + * + * 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 'Nfp Refine'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseNfpRefine(NfpRefine object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Assign'. + * + * 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 'Assign'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseAssign(Assign object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Allocate'. + * + * 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 'Allocate'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseAllocate(Allocate 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; + } + +} //AllocSwitch diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/util/AllocXMLProcessor.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/util/AllocXMLProcessor.java new file mode 100644 index 00000000000..6740c9614b4 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Alloc/util/AllocXMLProcessor.java @@ -0,0 +1,61 @@ +/***************************************************************************** + * 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.MARTE_Foundations.Alloc.util; + +import java.util.Map; + +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.xmi.util.XMLProcessor; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Alloc.AllocPackage; + +/** + * This class contains helper methods to serialize and deserialize XML documents + * + * + * @generated + */ +public class AllocXMLProcessor extends XMLProcessor { + + /** + * Public constructor to instantiate the helper. + * + * + * @generated + */ + public AllocXMLProcessor() { + super((EPackage.Registry.INSTANCE)); + AllocPackage.eINSTANCE.eClass(); + } + + /** + * Register for "*" and "xml" file extensions the AllocResourceFactoryImpl factory. + * + * + * @generated + */ + @Override + protected Map getRegistrations() { + if (registrations == null) { + super.getRegistrations(); + registrations.put(XML_EXTENSION, new AllocResourceFactoryImpl()); + registrations.put(STAR_EXTENSION, new AllocResourceFactoryImpl()); + } + return registrations; + } + +} //AllocXMLProcessor diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/Configuration.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/Configuration.java new file mode 100644 index 00000000000..cbd887e6bf7 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/Configuration.java @@ -0,0 +1,109 @@ +/***************************************************************************** + * 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.MARTE_Foundations.CoreElements; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.uml2.uml.StructuredClassifier; + +/** + * + * A representation of the model object 'Configuration'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.Configuration#getBase_StructuredClassifier Base Structured Classifier}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.Configuration#getBase_Package Base Package}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.Configuration#getMode Mode}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.CoreElementsPackage#getConfiguration() + * @model + * @generated + */ +public interface Configuration extends EObject { + /** + * Returns the value of the 'Base Structured Classifier' reference. + * + *

+ * If the meaning of the 'Base Structured Classifier' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Structured Classifier' reference. + * @see #setBase_StructuredClassifier(StructuredClassifier) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.CoreElementsPackage#getConfiguration_Base_StructuredClassifier() + * @model required="true" ordered="false" + * @generated + */ + StructuredClassifier getBase_StructuredClassifier(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.Configuration#getBase_StructuredClassifier Base Structured Classifier}' reference. + * + * + * @param value the new value of the 'Base Structured Classifier' reference. + * @see #getBase_StructuredClassifier() + * @generated + */ + void setBase_StructuredClassifier(StructuredClassifier value); + + /** + * Returns the value of the 'Base Package' reference. + * + *

+ * If the meaning of the 'Base Package' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Package' reference. + * @see #setBase_Package(org.eclipse.uml2.uml.Package) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.CoreElementsPackage#getConfiguration_Base_Package() + * @model required="true" ordered="false" + * @generated + */ + org.eclipse.uml2.uml.Package getBase_Package(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.Configuration#getBase_Package Base Package}' reference. + * + * + * @param value the new value of the 'Base Package' reference. + * @see #getBase_Package() + * @generated + */ + void setBase_Package(org.eclipse.uml2.uml.Package value); + + /** + * Returns the value of the 'Mode' reference list. + * The list contents are of type {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.Mode}. + * + *

+ * If the meaning of the 'Mode' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Mode' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.CoreElementsPackage#getConfiguration_Mode() + * @model ordered="false" + * @generated + */ + EList getMode(); + +} // Configuration diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/CoreElementsFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/CoreElementsFactory.java new file mode 100644 index 00000000000..cc805aef174 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/CoreElementsFactory.java @@ -0,0 +1,80 @@ +/***************************************************************************** + * 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.MARTE_Foundations.CoreElements; + +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.MARTE_Foundations.CoreElements.CoreElementsPackage + * @generated + */ +public interface CoreElementsFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + CoreElementsFactory eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.impl.CoreElementsFactoryImpl.init(); + + /** + * Returns a new object of class 'Mode Transition'. + * + * + * @return a new object of class 'Mode Transition'. + * @generated + */ + ModeTransition createModeTransition(); + + /** + * Returns a new object of class 'Mode Behavior'. + * + * + * @return a new object of class 'Mode Behavior'. + * @generated + */ + ModeBehavior createModeBehavior(); + + /** + * Returns a new object of class 'Configuration'. + * + * + * @return a new object of class 'Configuration'. + * @generated + */ + Configuration createConfiguration(); + + /** + * Returns a new object of class 'Mode'. + * + * + * @return a new object of class 'Mode'. + * @generated + */ + Mode createMode(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + CoreElementsPackage getCoreElementsPackage(); + +} //CoreElementsFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/CoreElementsPackage.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/CoreElementsPackage.java new file mode 100644 index 00000000000..b5cd90b9f13 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/CoreElementsPackage.java @@ -0,0 +1,417 @@ +/***************************************************************************** + * 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.MARTE_Foundations.CoreElements; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +/** + * + * 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.MARTE_Foundations.CoreElements.CoreElementsFactory + * @model kind="package" + * @generated + */ +public interface CoreElementsPackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "CoreElements"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "http://www.eclipse.org/papyrus/CoreElements/1"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "CoreElements"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + CoreElementsPackage eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.impl.CoreElementsPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.impl.ModeTransitionImpl Mode Transition}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.impl.ModeTransitionImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.impl.CoreElementsPackageImpl#getModeTransition() + * @generated + */ + int MODE_TRANSITION = 0; + + /** + * The feature id for the 'Base Transition' reference. + * + * + * @generated + * @ordered + */ + int MODE_TRANSITION__BASE_TRANSITION = 0; + + /** + * The number of structural features of the 'Mode Transition' class. + * + * + * @generated + * @ordered + */ + int MODE_TRANSITION_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.impl.ModeBehaviorImpl Mode Behavior}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.impl.ModeBehaviorImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.impl.CoreElementsPackageImpl#getModeBehavior() + * @generated + */ + int MODE_BEHAVIOR = 1; + + /** + * The feature id for the 'Base State Machine' reference. + * + * + * @generated + * @ordered + */ + int MODE_BEHAVIOR__BASE_STATE_MACHINE = 0; + + /** + * The number of structural features of the 'Mode Behavior' class. + * + * + * @generated + * @ordered + */ + int MODE_BEHAVIOR_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.impl.ConfigurationImpl Configuration}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.impl.ConfigurationImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.impl.CoreElementsPackageImpl#getConfiguration() + * @generated + */ + int CONFIGURATION = 2; + + /** + * The feature id for the 'Base Structured Classifier' reference. + * + * + * @generated + * @ordered + */ + int CONFIGURATION__BASE_STRUCTURED_CLASSIFIER = 0; + + /** + * The feature id for the 'Base Package' reference. + * + * + * @generated + * @ordered + */ + int CONFIGURATION__BASE_PACKAGE = 1; + + /** + * The feature id for the 'Mode' reference list. + * + * + * @generated + * @ordered + */ + int CONFIGURATION__MODE = 2; + + /** + * The number of structural features of the 'Configuration' class. + * + * + * @generated + * @ordered + */ + int CONFIGURATION_FEATURE_COUNT = 3; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.impl.ModeImpl Mode}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.impl.ModeImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.impl.CoreElementsPackageImpl#getMode() + * @generated + */ + int MODE = 3; + + /** + * The feature id for the 'Base State' reference. + * + * + * @generated + * @ordered + */ + int MODE__BASE_STATE = 0; + + /** + * The number of structural features of the 'Mode' class. + * + * + * @generated + * @ordered + */ + int MODE_FEATURE_COUNT = 1; + + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.ModeTransition Mode Transition}'. + * + * + * @return the meta object for class 'Mode Transition'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.ModeTransition + * @generated + */ + EClass getModeTransition(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.ModeTransition#getBase_Transition Base Transition}'. + * + * + * @return the meta object for the reference 'Base Transition'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.ModeTransition#getBase_Transition() + * @see #getModeTransition() + * @generated + */ + EReference getModeTransition_Base_Transition(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.ModeBehavior Mode Behavior}'. + * + * + * @return the meta object for class 'Mode Behavior'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.ModeBehavior + * @generated + */ + EClass getModeBehavior(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.ModeBehavior#getBase_StateMachine Base State Machine}'. + * + * + * @return the meta object for the reference 'Base State Machine'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.ModeBehavior#getBase_StateMachine() + * @see #getModeBehavior() + * @generated + */ + EReference getModeBehavior_Base_StateMachine(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.Configuration Configuration}'. + * + * + * @return the meta object for class 'Configuration'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.Configuration + * @generated + */ + EClass getConfiguration(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.Configuration#getBase_StructuredClassifier Base Structured Classifier}'. + * + * + * @return the meta object for the reference 'Base Structured Classifier'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.Configuration#getBase_StructuredClassifier() + * @see #getConfiguration() + * @generated + */ + EReference getConfiguration_Base_StructuredClassifier(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.Configuration#getBase_Package Base Package}'. + * + * + * @return the meta object for the reference 'Base Package'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.Configuration#getBase_Package() + * @see #getConfiguration() + * @generated + */ + EReference getConfiguration_Base_Package(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.Configuration#getMode Mode}'. + * + * + * @return the meta object for the reference list 'Mode'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.Configuration#getMode() + * @see #getConfiguration() + * @generated + */ + EReference getConfiguration_Mode(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.Mode Mode}'. + * + * + * @return the meta object for class 'Mode'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.Mode + * @generated + */ + EClass getMode(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.Mode#getBase_State Base State}'. + * + * + * @return the meta object for the reference 'Base State'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.Mode#getBase_State() + * @see #getMode() + * @generated + */ + EReference getMode_Base_State(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + CoreElementsFactory getCoreElementsFactory(); + + /** + * + * 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.MARTE_Foundations.CoreElements.impl.ModeTransitionImpl Mode Transition}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.impl.ModeTransitionImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.impl.CoreElementsPackageImpl#getModeTransition() + * @generated + */ + EClass MODE_TRANSITION = eINSTANCE.getModeTransition(); + + /** + * The meta object literal for the 'Base Transition' reference feature. + * + * + * @generated + */ + EReference MODE_TRANSITION__BASE_TRANSITION = eINSTANCE.getModeTransition_Base_Transition(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.impl.ModeBehaviorImpl Mode Behavior}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.impl.ModeBehaviorImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.impl.CoreElementsPackageImpl#getModeBehavior() + * @generated + */ + EClass MODE_BEHAVIOR = eINSTANCE.getModeBehavior(); + + /** + * The meta object literal for the 'Base State Machine' reference feature. + * + * + * @generated + */ + EReference MODE_BEHAVIOR__BASE_STATE_MACHINE = eINSTANCE.getModeBehavior_Base_StateMachine(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.impl.ConfigurationImpl Configuration}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.impl.ConfigurationImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.impl.CoreElementsPackageImpl#getConfiguration() + * @generated + */ + EClass CONFIGURATION = eINSTANCE.getConfiguration(); + + /** + * The meta object literal for the 'Base Structured Classifier' reference feature. + * + * + * @generated + */ + EReference CONFIGURATION__BASE_STRUCTURED_CLASSIFIER = eINSTANCE.getConfiguration_Base_StructuredClassifier(); + + /** + * The meta object literal for the 'Base Package' reference feature. + * + * + * @generated + */ + EReference CONFIGURATION__BASE_PACKAGE = eINSTANCE.getConfiguration_Base_Package(); + + /** + * The meta object literal for the 'Mode' reference list feature. + * + * + * @generated + */ + EReference CONFIGURATION__MODE = eINSTANCE.getConfiguration_Mode(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.impl.ModeImpl Mode}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.impl.ModeImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.impl.CoreElementsPackageImpl#getMode() + * @generated + */ + EClass MODE = eINSTANCE.getMode(); + + /** + * The meta object literal for the 'Base State' reference feature. + * + * + * @generated + */ + EReference MODE__BASE_STATE = eINSTANCE.getMode_Base_State(); + + } + +} //CoreElementsPackage diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/Mode.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/Mode.java new file mode 100644 index 00000000000..23fb1aa0c3a --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/Mode.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.MARTE_Foundations.CoreElements; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.uml2.uml.State; + +/** + * + * A representation of the model object 'Mode'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.Mode#getBase_State Base State}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.CoreElementsPackage#getMode() + * @model + * @generated + */ +public interface Mode extends EObject { + /** + * Returns the value of the 'Base State' reference. + * + *

+ * If the meaning of the 'Base State' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base State' reference. + * @see #setBase_State(State) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.CoreElementsPackage#getMode_Base_State() + * @model required="true" ordered="false" + * @generated + */ + State getBase_State(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.Mode#getBase_State Base State}' reference. + * + * + * @param value the new value of the 'Base State' reference. + * @see #getBase_State() + * @generated + */ + void setBase_State(State value); + +} // Mode diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/ModeBehavior.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/ModeBehavior.java new file mode 100644 index 00000000000..485860d564d --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/ModeBehavior.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.MARTE_Foundations.CoreElements; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.uml2.uml.StateMachine; + +/** + * + * A representation of the model object 'Mode Behavior'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.ModeBehavior#getBase_StateMachine Base State Machine}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.CoreElementsPackage#getModeBehavior() + * @model + * @generated + */ +public interface ModeBehavior extends EObject { + /** + * Returns the value of the 'Base State Machine' reference. + * + *

+ * If the meaning of the 'Base State Machine' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base State Machine' reference. + * @see #setBase_StateMachine(StateMachine) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.CoreElementsPackage#getModeBehavior_Base_StateMachine() + * @model required="true" ordered="false" + * @generated + */ + StateMachine getBase_StateMachine(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.ModeBehavior#getBase_StateMachine Base State Machine}' reference. + * + * + * @param value the new value of the 'Base State Machine' reference. + * @see #getBase_StateMachine() + * @generated + */ + void setBase_StateMachine(StateMachine value); + +} // ModeBehavior diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/ModeTransition.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/ModeTransition.java new file mode 100644 index 00000000000..3ecaa6aaf80 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/ModeTransition.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.MARTE_Foundations.CoreElements; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.uml2.uml.Transition; + +/** + * + * A representation of the model object 'Mode Transition'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.ModeTransition#getBase_Transition Base Transition}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.CoreElementsPackage#getModeTransition() + * @model + * @generated + */ +public interface ModeTransition extends EObject { + /** + * Returns the value of the 'Base Transition' reference. + * + *

+ * If the meaning of the 'Base Transition' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Transition' reference. + * @see #setBase_Transition(Transition) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.CoreElementsPackage#getModeTransition_Base_Transition() + * @model required="true" ordered="false" + * @generated + */ + Transition getBase_Transition(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.ModeTransition#getBase_Transition Base Transition}' reference. + * + * + * @param value the new value of the 'Base Transition' reference. + * @see #getBase_Transition() + * @generated + */ + void setBase_Transition(Transition value); + +} // ModeTransition diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/impl/ConfigurationImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/impl/ConfigurationImpl.java new file mode 100644 index 00000000000..9e281658ee7 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/impl/ConfigurationImpl.java @@ -0,0 +1,271 @@ +/***************************************************************************** + * 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.MARTE_Foundations.CoreElements.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectResolvingEList; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.Configuration; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.CoreElementsPackage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.Mode; + +import org.eclipse.uml2.uml.StructuredClassifier; + +/** + * + * An implementation of the model object 'Configuration'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.impl.ConfigurationImpl#getBase_StructuredClassifier Base Structured Classifier}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.impl.ConfigurationImpl#getBase_Package Base Package}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.impl.ConfigurationImpl#getMode Mode}
  • + *
+ *

+ * + * @generated + */ +public class ConfigurationImpl extends EObjectImpl implements Configuration { + /** + * The cached value of the '{@link #getBase_StructuredClassifier() Base Structured Classifier}' reference. + * + * + * @see #getBase_StructuredClassifier() + * @generated + * @ordered + */ + protected StructuredClassifier base_StructuredClassifier; + + /** + * The cached value of the '{@link #getBase_Package() Base Package}' reference. + * + * + * @see #getBase_Package() + * @generated + * @ordered + */ + protected org.eclipse.uml2.uml.Package base_Package; + + /** + * The cached value of the '{@link #getMode() Mode}' reference list. + * + * + * @see #getMode() + * @generated + * @ordered + */ + protected EList mode; + + /** + * + * + * @generated + */ + protected ConfigurationImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return CoreElementsPackage.Literals.CONFIGURATION; + } + + /** + * + * + * @generated + */ + public StructuredClassifier getBase_StructuredClassifier() { + if (base_StructuredClassifier != null && base_StructuredClassifier.eIsProxy()) { + InternalEObject oldBase_StructuredClassifier = (InternalEObject)base_StructuredClassifier; + base_StructuredClassifier = (StructuredClassifier)eResolveProxy(oldBase_StructuredClassifier); + if (base_StructuredClassifier != oldBase_StructuredClassifier) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, CoreElementsPackage.CONFIGURATION__BASE_STRUCTURED_CLASSIFIER, oldBase_StructuredClassifier, base_StructuredClassifier)); + } + } + return base_StructuredClassifier; + } + + /** + * + * + * @generated + */ + public StructuredClassifier basicGetBase_StructuredClassifier() { + return base_StructuredClassifier; + } + + /** + * + * + * @generated + */ + public void setBase_StructuredClassifier(StructuredClassifier newBase_StructuredClassifier) { + StructuredClassifier oldBase_StructuredClassifier = base_StructuredClassifier; + base_StructuredClassifier = newBase_StructuredClassifier; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CoreElementsPackage.CONFIGURATION__BASE_STRUCTURED_CLASSIFIER, oldBase_StructuredClassifier, base_StructuredClassifier)); + } + + /** + * + * + * @generated + */ + public org.eclipse.uml2.uml.Package getBase_Package() { + if (base_Package != null && base_Package.eIsProxy()) { + InternalEObject oldBase_Package = (InternalEObject)base_Package; + base_Package = (org.eclipse.uml2.uml.Package)eResolveProxy(oldBase_Package); + if (base_Package != oldBase_Package) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, CoreElementsPackage.CONFIGURATION__BASE_PACKAGE, oldBase_Package, base_Package)); + } + } + return base_Package; + } + + /** + * + * + * @generated + */ + public org.eclipse.uml2.uml.Package basicGetBase_Package() { + return base_Package; + } + + /** + * + * + * @generated + */ + public void setBase_Package(org.eclipse.uml2.uml.Package newBase_Package) { + org.eclipse.uml2.uml.Package oldBase_Package = base_Package; + base_Package = newBase_Package; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CoreElementsPackage.CONFIGURATION__BASE_PACKAGE, oldBase_Package, base_Package)); + } + + /** + * + * + * @generated + */ + public EList getMode() { + if (mode == null) { + mode = new EObjectResolvingEList(Mode.class, this, CoreElementsPackage.CONFIGURATION__MODE); + } + return mode; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case CoreElementsPackage.CONFIGURATION__BASE_STRUCTURED_CLASSIFIER: + if (resolve) return getBase_StructuredClassifier(); + return basicGetBase_StructuredClassifier(); + case CoreElementsPackage.CONFIGURATION__BASE_PACKAGE: + if (resolve) return getBase_Package(); + return basicGetBase_Package(); + case CoreElementsPackage.CONFIGURATION__MODE: + return getMode(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case CoreElementsPackage.CONFIGURATION__BASE_STRUCTURED_CLASSIFIER: + setBase_StructuredClassifier((StructuredClassifier)newValue); + return; + case CoreElementsPackage.CONFIGURATION__BASE_PACKAGE: + setBase_Package((org.eclipse.uml2.uml.Package)newValue); + return; + case CoreElementsPackage.CONFIGURATION__MODE: + getMode().clear(); + getMode().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case CoreElementsPackage.CONFIGURATION__BASE_STRUCTURED_CLASSIFIER: + setBase_StructuredClassifier((StructuredClassifier)null); + return; + case CoreElementsPackage.CONFIGURATION__BASE_PACKAGE: + setBase_Package((org.eclipse.uml2.uml.Package)null); + return; + case CoreElementsPackage.CONFIGURATION__MODE: + getMode().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case CoreElementsPackage.CONFIGURATION__BASE_STRUCTURED_CLASSIFIER: + return base_StructuredClassifier != null; + case CoreElementsPackage.CONFIGURATION__BASE_PACKAGE: + return base_Package != null; + case CoreElementsPackage.CONFIGURATION__MODE: + return mode != null && !mode.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //ConfigurationImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/impl/CoreElementsFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/impl/CoreElementsFactoryImpl.java new file mode 100644 index 00000000000..aadad84a47e --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/impl/CoreElementsFactoryImpl.java @@ -0,0 +1,139 @@ +/***************************************************************************** + * 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.MARTE_Foundations.CoreElements.impl; + +import org.eclipse.emf.ecore.EClass; +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.MARTE_Foundations.CoreElements.*; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class CoreElementsFactoryImpl extends EFactoryImpl implements CoreElementsFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static CoreElementsFactory init() { + try { + CoreElementsFactory theCoreElementsFactory = (CoreElementsFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/CoreElements/1"); + if (theCoreElementsFactory != null) { + return theCoreElementsFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new CoreElementsFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public CoreElementsFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case CoreElementsPackage.MODE_TRANSITION: return createModeTransition(); + case CoreElementsPackage.MODE_BEHAVIOR: return createModeBehavior(); + case CoreElementsPackage.CONFIGURATION: return createConfiguration(); + case CoreElementsPackage.MODE: return createMode(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public ModeTransition createModeTransition() { + ModeTransitionImpl modeTransition = new ModeTransitionImpl(); + return modeTransition; + } + + /** + * + * + * @generated + */ + public ModeBehavior createModeBehavior() { + ModeBehaviorImpl modeBehavior = new ModeBehaviorImpl(); + return modeBehavior; + } + + /** + * + * + * @generated + */ + public Configuration createConfiguration() { + ConfigurationImpl configuration = new ConfigurationImpl(); + return configuration; + } + + /** + * + * + * @generated + */ + public Mode createMode() { + ModeImpl mode = new ModeImpl(); + return mode; + } + + /** + * + * + * @generated + */ + public CoreElementsPackage getCoreElementsPackage() { + return (CoreElementsPackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static CoreElementsPackage getPackage() { + return CoreElementsPackage.eINSTANCE; + } + +} //CoreElementsFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/impl/CoreElementsPackageImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/impl/CoreElementsPackageImpl.java new file mode 100644 index 00000000000..f691605b22b --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/impl/CoreElementsPackageImpl.java @@ -0,0 +1,556 @@ +/***************************************************************************** + * 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.MARTE_Foundations.CoreElements.impl; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +import org.eclipse.emf.ecore.impl.EPackageImpl; + +import org.eclipse.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.Configuration; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.CoreElementsFactory; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.CoreElementsPackage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.Mode; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.ModeBehavior; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.ModeTransition; + +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.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 CoreElementsPackageImpl extends EPackageImpl implements CoreElementsPackage { + /** + * + * + * @generated + */ + private EClass modeTransitionEClass = null; + + /** + * + * + * @generated + */ + private EClass modeBehaviorEClass = null; + + /** + * + * + * @generated + */ + private EClass configurationEClass = null; + + /** + * + * + * @generated + */ + private EClass modeEClass = 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.MARTE_Foundations.CoreElements.CoreElementsPackage#eNS_URI + * @see #init() + * @generated + */ + private CoreElementsPackageImpl() { + super(eNS_URI, CoreElementsFactory.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 CoreElementsPackage#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 CoreElementsPackage init() { + if (isInited) return (CoreElementsPackage)EPackage.Registry.INSTANCE.getEPackage(CoreElementsPackage.eNS_URI); + + // Obtain or create and register package + CoreElementsPackageImpl theCoreElementsPackage = (CoreElementsPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof CoreElementsPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new CoreElementsPackageImpl()); + + 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); + 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); + 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 + theCoreElementsPackage.createPackageContents(); + theMARTEPackage.createPackageContents(); + theNFPsPackage.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(); + theMARTE_PrimitivesTypesPackage.createPackageContents(); + + // Initialize created meta-data + theCoreElementsPackage.initializePackageContents(); + theMARTEPackage.initializePackageContents(); + theNFPsPackage.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(); + theMARTE_PrimitivesTypesPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theCoreElementsPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(CoreElementsPackage.eNS_URI, theCoreElementsPackage); + return theCoreElementsPackage; + } + + /** + * + * + * @generated + */ + public EClass getModeTransition() { + return modeTransitionEClass; + } + + /** + * + * + * @generated + */ + public EReference getModeTransition_Base_Transition() { + return (EReference)modeTransitionEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getModeBehavior() { + return modeBehaviorEClass; + } + + /** + * + * + * @generated + */ + public EReference getModeBehavior_Base_StateMachine() { + return (EReference)modeBehaviorEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getConfiguration() { + return configurationEClass; + } + + /** + * + * + * @generated + */ + public EReference getConfiguration_Base_StructuredClassifier() { + return (EReference)configurationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getConfiguration_Base_Package() { + return (EReference)configurationEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getConfiguration_Mode() { + return (EReference)configurationEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getMode() { + return modeEClass; + } + + /** + * + * + * @generated + */ + public EReference getMode_Base_State() { + return (EReference)modeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public CoreElementsFactory getCoreElementsFactory() { + return (CoreElementsFactory)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 + modeTransitionEClass = createEClass(MODE_TRANSITION); + createEReference(modeTransitionEClass, MODE_TRANSITION__BASE_TRANSITION); + + modeBehaviorEClass = createEClass(MODE_BEHAVIOR); + createEReference(modeBehaviorEClass, MODE_BEHAVIOR__BASE_STATE_MACHINE); + + configurationEClass = createEClass(CONFIGURATION); + createEReference(configurationEClass, CONFIGURATION__BASE_STRUCTURED_CLASSIFIER); + createEReference(configurationEClass, CONFIGURATION__BASE_PACKAGE); + createEReference(configurationEClass, CONFIGURATION__MODE); + + modeEClass = createEClass(MODE); + createEReference(modeEClass, MODE__BASE_STATE); + } + + /** + * + * + * @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 + UMLPackage theUMLPackage = (UMLPackage)EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + + // Initialize classes and features; add operations and parameters + initEClass(modeTransitionEClass, ModeTransition.class, "ModeTransition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getModeTransition_Base_Transition(), theUMLPackage.getTransition(), null, "base_Transition", null, 1, 1, ModeTransition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(modeBehaviorEClass, ModeBehavior.class, "ModeBehavior", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getModeBehavior_Base_StateMachine(), theUMLPackage.getStateMachine(), null, "base_StateMachine", null, 1, 1, ModeBehavior.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(configurationEClass, Configuration.class, "Configuration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getConfiguration_Base_StructuredClassifier(), theUMLPackage.getStructuredClassifier(), null, "base_StructuredClassifier", null, 1, 1, Configuration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getConfiguration_Base_Package(), theUMLPackage.getPackage(), null, "base_Package", null, 1, 1, Configuration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getConfiguration_Mode(), this.getMode(), null, "mode", null, 0, -1, Configuration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(modeEClass, Mode.class, "Mode", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getMode_Base_State(), theUMLPackage.getState(), null, "base_State", null, 1, 1, Mode.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + } + +} //CoreElementsPackageImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/impl/ModeBehaviorImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/impl/ModeBehaviorImpl.java new file mode 100644 index 00000000000..6369b8b2371 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/impl/ModeBehaviorImpl.java @@ -0,0 +1,169 @@ +/***************************************************************************** + * 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.MARTE_Foundations.CoreElements.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.CoreElementsPackage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.ModeBehavior; + +import org.eclipse.uml2.uml.StateMachine; + +/** + * + * An implementation of the model object 'Mode Behavior'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.impl.ModeBehaviorImpl#getBase_StateMachine Base State Machine}
  • + *
+ *

+ * + * @generated + */ +public class ModeBehaviorImpl extends EObjectImpl implements ModeBehavior { + /** + * The cached value of the '{@link #getBase_StateMachine() Base State Machine}' reference. + * + * + * @see #getBase_StateMachine() + * @generated + * @ordered + */ + protected StateMachine base_StateMachine; + + /** + * + * + * @generated + */ + protected ModeBehaviorImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return CoreElementsPackage.Literals.MODE_BEHAVIOR; + } + + /** + * + * + * @generated + */ + public StateMachine getBase_StateMachine() { + if (base_StateMachine != null && base_StateMachine.eIsProxy()) { + InternalEObject oldBase_StateMachine = (InternalEObject)base_StateMachine; + base_StateMachine = (StateMachine)eResolveProxy(oldBase_StateMachine); + if (base_StateMachine != oldBase_StateMachine) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, CoreElementsPackage.MODE_BEHAVIOR__BASE_STATE_MACHINE, oldBase_StateMachine, base_StateMachine)); + } + } + return base_StateMachine; + } + + /** + * + * + * @generated + */ + public StateMachine basicGetBase_StateMachine() { + return base_StateMachine; + } + + /** + * + * + * @generated + */ + public void setBase_StateMachine(StateMachine newBase_StateMachine) { + StateMachine oldBase_StateMachine = base_StateMachine; + base_StateMachine = newBase_StateMachine; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CoreElementsPackage.MODE_BEHAVIOR__BASE_STATE_MACHINE, oldBase_StateMachine, base_StateMachine)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case CoreElementsPackage.MODE_BEHAVIOR__BASE_STATE_MACHINE: + if (resolve) return getBase_StateMachine(); + return basicGetBase_StateMachine(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case CoreElementsPackage.MODE_BEHAVIOR__BASE_STATE_MACHINE: + setBase_StateMachine((StateMachine)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case CoreElementsPackage.MODE_BEHAVIOR__BASE_STATE_MACHINE: + setBase_StateMachine((StateMachine)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case CoreElementsPackage.MODE_BEHAVIOR__BASE_STATE_MACHINE: + return base_StateMachine != null; + } + return super.eIsSet(featureID); + } + +} //ModeBehaviorImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/impl/ModeImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/impl/ModeImpl.java new file mode 100644 index 00000000000..ab97c618cf2 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/impl/ModeImpl.java @@ -0,0 +1,169 @@ +/***************************************************************************** + * 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.MARTE_Foundations.CoreElements.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.CoreElementsPackage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.Mode; + +import org.eclipse.uml2.uml.State; + +/** + * + * An implementation of the model object 'Mode'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.impl.ModeImpl#getBase_State Base State}
  • + *
+ *

+ * + * @generated + */ +public class ModeImpl extends EObjectImpl implements Mode { + /** + * The cached value of the '{@link #getBase_State() Base State}' reference. + * + * + * @see #getBase_State() + * @generated + * @ordered + */ + protected State base_State; + + /** + * + * + * @generated + */ + protected ModeImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return CoreElementsPackage.Literals.MODE; + } + + /** + * + * + * @generated + */ + public State getBase_State() { + if (base_State != null && base_State.eIsProxy()) { + InternalEObject oldBase_State = (InternalEObject)base_State; + base_State = (State)eResolveProxy(oldBase_State); + if (base_State != oldBase_State) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, CoreElementsPackage.MODE__BASE_STATE, oldBase_State, base_State)); + } + } + return base_State; + } + + /** + * + * + * @generated + */ + public State basicGetBase_State() { + return base_State; + } + + /** + * + * + * @generated + */ + public void setBase_State(State newBase_State) { + State oldBase_State = base_State; + base_State = newBase_State; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CoreElementsPackage.MODE__BASE_STATE, oldBase_State, base_State)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case CoreElementsPackage.MODE__BASE_STATE: + if (resolve) return getBase_State(); + return basicGetBase_State(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case CoreElementsPackage.MODE__BASE_STATE: + setBase_State((State)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case CoreElementsPackage.MODE__BASE_STATE: + setBase_State((State)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case CoreElementsPackage.MODE__BASE_STATE: + return base_State != null; + } + return super.eIsSet(featureID); + } + +} //ModeImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/impl/ModeTransitionImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/impl/ModeTransitionImpl.java new file mode 100644 index 00000000000..26b74d90433 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/impl/ModeTransitionImpl.java @@ -0,0 +1,169 @@ +/***************************************************************************** + * 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.MARTE_Foundations.CoreElements.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.CoreElementsPackage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.ModeTransition; + +import org.eclipse.uml2.uml.Transition; + +/** + * + * An implementation of the model object 'Mode Transition'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.impl.ModeTransitionImpl#getBase_Transition Base Transition}
  • + *
+ *

+ * + * @generated + */ +public class ModeTransitionImpl extends EObjectImpl implements ModeTransition { + /** + * The cached value of the '{@link #getBase_Transition() Base Transition}' reference. + * + * + * @see #getBase_Transition() + * @generated + * @ordered + */ + protected Transition base_Transition; + + /** + * + * + * @generated + */ + protected ModeTransitionImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return CoreElementsPackage.Literals.MODE_TRANSITION; + } + + /** + * + * + * @generated + */ + public Transition getBase_Transition() { + if (base_Transition != null && base_Transition.eIsProxy()) { + InternalEObject oldBase_Transition = (InternalEObject)base_Transition; + base_Transition = (Transition)eResolveProxy(oldBase_Transition); + if (base_Transition != oldBase_Transition) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, CoreElementsPackage.MODE_TRANSITION__BASE_TRANSITION, oldBase_Transition, base_Transition)); + } + } + return base_Transition; + } + + /** + * + * + * @generated + */ + public Transition basicGetBase_Transition() { + return base_Transition; + } + + /** + * + * + * @generated + */ + public void setBase_Transition(Transition newBase_Transition) { + Transition oldBase_Transition = base_Transition; + base_Transition = newBase_Transition; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CoreElementsPackage.MODE_TRANSITION__BASE_TRANSITION, oldBase_Transition, base_Transition)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case CoreElementsPackage.MODE_TRANSITION__BASE_TRANSITION: + if (resolve) return getBase_Transition(); + return basicGetBase_Transition(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case CoreElementsPackage.MODE_TRANSITION__BASE_TRANSITION: + setBase_Transition((Transition)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case CoreElementsPackage.MODE_TRANSITION__BASE_TRANSITION: + setBase_Transition((Transition)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case CoreElementsPackage.MODE_TRANSITION__BASE_TRANSITION: + return base_Transition != null; + } + return super.eIsSet(featureID); + } + +} //ModeTransitionImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/util/CoreElementsAdapterFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/util/CoreElementsAdapterFactory.java new file mode 100644 index 00000000000..7374e3e0452 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/util/CoreElementsAdapterFactory.java @@ -0,0 +1,185 @@ +/***************************************************************************** + * 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.MARTE_Foundations.CoreElements.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.MARTE_Foundations.CoreElements.*; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.CoreElementsPackage + * @generated + */ +public class CoreElementsAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * @generated + */ + protected static CoreElementsPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public CoreElementsAdapterFactory() { + if (modelPackage == null) { + modelPackage = CoreElementsPackage.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 CoreElementsSwitch modelSwitch = + new CoreElementsSwitch() { + @Override + public Adapter caseModeTransition(ModeTransition object) { + return createModeTransitionAdapter(); + } + @Override + public Adapter caseModeBehavior(ModeBehavior object) { + return createModeBehaviorAdapter(); + } + @Override + public Adapter caseConfiguration(Configuration object) { + return createConfigurationAdapter(); + } + @Override + public Adapter caseMode(Mode object) { + return createModeAdapter(); + } + @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.MARTE_Foundations.CoreElements.ModeTransition Mode Transition}'. + * + * 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.MARTE_Foundations.CoreElements.ModeTransition + * @generated + */ + public Adapter createModeTransitionAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.ModeBehavior Mode Behavior}'. + * + * 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.MARTE_Foundations.CoreElements.ModeBehavior + * @generated + */ + public Adapter createModeBehaviorAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.Configuration Configuration}'. + * + * 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.MARTE_Foundations.CoreElements.Configuration + * @generated + */ + public Adapter createConfigurationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.Mode Mode}'. + * + * 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.MARTE_Foundations.CoreElements.Mode + * @generated + */ + public Adapter createModeAdapter() { + 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; + } + +} //CoreElementsAdapterFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/util/CoreElementsResourceFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/util/CoreElementsResourceFactoryImpl.java new file mode 100644 index 00000000000..fcf3623e6e0 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/util/CoreElementsResourceFactoryImpl.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.MARTE_Foundations.CoreElements.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; + +import org.eclipse.emf.ecore.xmi.XMLResource; + +/** + * + * The Resource Factory associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.util.CoreElementsResourceImpl + * @generated + */ +public class CoreElementsResourceFactoryImpl extends ResourceFactoryImpl { + /** + * Creates an instance of the resource factory. + * + * + * @generated + */ + public CoreElementsResourceFactoryImpl() { + super(); + } + + /** + * Creates an instance of the resource. + * + * + * @generated + */ + @Override + public Resource createResource(URI uri) { + XMLResource result = new CoreElementsResourceImpl(uri); + result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + + result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); + return result; + } + +} //CoreElementsResourceFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/util/CoreElementsResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/util/CoreElementsResourceImpl.java new file mode 100644 index 00000000000..af4d2038ccb --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/util/CoreElementsResourceImpl.java @@ -0,0 +1,39 @@ +/***************************************************************************** + * 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.MARTE_Foundations.CoreElements.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; + +/** + * + * The Resource associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.util.CoreElementsResourceFactoryImpl + * @generated + */ +public class CoreElementsResourceImpl extends XMLResourceImpl { + /** + * Creates an instance of the resource. + * + * + * @param uri the URI of the new resource. + * @generated + */ + public CoreElementsResourceImpl(URI uri) { + super(uri); + } + +} //CoreElementsResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/util/CoreElementsSwitch.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/util/CoreElementsSwitch.java new file mode 100644 index 00000000000..17f852ed65b --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/util/CoreElementsSwitch.java @@ -0,0 +1,200 @@ +/***************************************************************************** + * 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.MARTE_Foundations.CoreElements.util; + +import java.util.List; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.*; + +/** + * + * 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.MARTE_Foundations.CoreElements.CoreElementsPackage + * @generated + */ +public class CoreElementsSwitch { + /** + * The cached model package + * + * + * @generated + */ + protected static CoreElementsPackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public CoreElementsSwitch() { + if (modelPackage == null) { + modelPackage = CoreElementsPackage.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 CoreElementsPackage.MODE_TRANSITION: { + ModeTransition modeTransition = (ModeTransition)theEObject; + T result = caseModeTransition(modeTransition); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CoreElementsPackage.MODE_BEHAVIOR: { + ModeBehavior modeBehavior = (ModeBehavior)theEObject; + T result = caseModeBehavior(modeBehavior); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CoreElementsPackage.CONFIGURATION: { + Configuration configuration = (Configuration)theEObject; + T result = caseConfiguration(configuration); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CoreElementsPackage.MODE: { + Mode mode = (Mode)theEObject; + T result = caseMode(mode); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Mode Transition'. + * + * 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 'Mode Transition'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseModeTransition(ModeTransition object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Mode Behavior'. + * + * 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 'Mode Behavior'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseModeBehavior(ModeBehavior object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Configuration'. + * + * 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 'Configuration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseConfiguration(Configuration object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Mode'. + * + * 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 'Mode'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseMode(Mode 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; + } + +} //CoreElementsSwitch diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/util/CoreElementsXMLProcessor.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/util/CoreElementsXMLProcessor.java new file mode 100644 index 00000000000..50fa50fa030 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/CoreElements/util/CoreElementsXMLProcessor.java @@ -0,0 +1,61 @@ +/***************************************************************************** + * 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.MARTE_Foundations.CoreElements.util; + +import java.util.Map; + +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.xmi.util.XMLProcessor; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.CoreElementsPackage; + +/** + * This class contains helper methods to serialize and deserialize XML documents + * + * + * @generated + */ +public class CoreElementsXMLProcessor extends XMLProcessor { + + /** + * Public constructor to instantiate the helper. + * + * + * @generated + */ + public CoreElementsXMLProcessor() { + super((EPackage.Registry.INSTANCE)); + CoreElementsPackage.eINSTANCE.eClass(); + } + + /** + * Register for "*" and "xml" file extensions the CoreElementsResourceFactoryImpl factory. + * + * + * @generated + */ + @Override + protected Map getRegistrations() { + if (registrations == null) { + super.getRegistrations(); + registrations.put(XML_EXTENSION, new CoreElementsResourceFactoryImpl()); + registrations.put(STAR_EXTENSION, new CoreElementsResourceFactoryImpl()); + } + return registrations; + } + +} //CoreElementsXMLProcessor diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/Acquire.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/Acquire.java new file mode 100644 index 00000000000..e4f4e1002f8 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/Acquire.java @@ -0,0 +1,60 @@ +/***************************************************************************** + * 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.MARTE_Foundations.GRM; + + +/** + * + * A representation of the model object 'Acquire'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Acquire#isIsBlocking Is Blocking}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getAcquire() + * @model + * @generated + */ +public interface Acquire extends GrService { + /** + * Returns the value of the 'Is Blocking' attribute. + * + *

+ * If the meaning of the 'Is Blocking' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Is Blocking' attribute. + * @see #setIsBlocking(boolean) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getAcquire_IsBlocking() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.Boolean" ordered="false" + * @generated + */ + boolean isIsBlocking(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Acquire#isIsBlocking Is Blocking}' attribute. + * + * + * @param value the new value of the 'Is Blocking' attribute. + * @see #isIsBlocking() + * @generated + */ + void setIsBlocking(boolean value); + +} // Acquire diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/ClockResource.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/ClockResource.java new file mode 100644 index 00000000000..196d3c71bc1 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/ClockResource.java @@ -0,0 +1,28 @@ +/***************************************************************************** + * 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.MARTE_Foundations.GRM; + + +/** + * + * A representation of the model object 'Clock Resource'. + * + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getClockResource() + * @model + * @generated + */ +public interface ClockResource extends TimingResource { +} // ClockResource diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/CommunicationEndPoint.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/CommunicationEndPoint.java new file mode 100644 index 00000000000..5625152933e --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/CommunicationEndPoint.java @@ -0,0 +1,60 @@ +/***************************************************************************** + * 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.MARTE_Foundations.GRM; + + +/** + * + * A representation of the model object 'Communication End Point'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationEndPoint#getPacketSize Packet Size}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getCommunicationEndPoint() + * @model + * @generated + */ +public interface CommunicationEndPoint extends Resource { + /** + * Returns the value of the 'Packet Size' attribute. + * + *

+ * If the meaning of the 'Packet Size' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Packet Size' attribute. + * @see #setPacketSize(String) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getCommunicationEndPoint_PacketSize() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Integer" ordered="false" + * @generated + */ + String getPacketSize(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationEndPoint#getPacketSize Packet Size}' attribute. + * + * + * @param value the new value of the 'Packet Size' attribute. + * @see #getPacketSize() + * @generated + */ + void setPacketSize(String value); + +} // CommunicationEndPoint diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/CommunicationMedia.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/CommunicationMedia.java new file mode 100644 index 00000000000..4d0217f7d67 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/CommunicationMedia.java @@ -0,0 +1,173 @@ +/***************************************************************************** + * 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.MARTE_Foundations.GRM; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.TransmModeKind; + +import org.eclipse.uml2.uml.Connector; + +/** + * + * A representation of the model object 'Communication Media'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationMedia#getElementSize Element Size}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationMedia#getBase_Connector Base Connector}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationMedia#getTransmMode Transm Mode}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationMedia#getBlockT Block T}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationMedia#getPacketT Packet T}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationMedia#getCapacity Capacity}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getCommunicationMedia() + * @model + * @generated + */ +public interface CommunicationMedia extends ProcessingResource { + /** + * Returns the value of the 'Element Size' attribute. + * + *

+ * If the meaning of the 'Element Size' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Element Size' attribute. + * @see #setElementSize(String) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getCommunicationMedia_ElementSize() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Integer" ordered="false" + * @generated + */ + String getElementSize(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationMedia#getElementSize Element Size}' attribute. + * + * + * @param value the new value of the 'Element Size' attribute. + * @see #getElementSize() + * @generated + */ + void setElementSize(String value); + + /** + * Returns the value of the 'Base Connector' reference. + * + *

+ * If the meaning of the 'Base Connector' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Connector' reference. + * @see #setBase_Connector(Connector) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getCommunicationMedia_Base_Connector() + * @model required="true" ordered="false" + * @generated + */ + Connector getBase_Connector(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationMedia#getBase_Connector Base Connector}' reference. + * + * + * @param value the new value of the 'Base Connector' reference. + * @see #getBase_Connector() + * @generated + */ + void setBase_Connector(Connector value); + + /** + * Returns the value of the 'Transm Mode' attribute. + * The literals are from the enumeration {@link org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.TransmModeKind}. + * + *

+ * If the meaning of the 'Transm Mode' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Transm Mode' attribute. + * @see org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.TransmModeKind + * @see #setTransmMode(TransmModeKind) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getCommunicationMedia_TransmMode() + * @model unique="false" ordered="false" + * @generated + */ + TransmModeKind getTransmMode(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationMedia#getTransmMode Transm Mode}' attribute. + * + * + * @param value the new value of the 'Transm Mode' attribute. + * @see org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.TransmModeKind + * @see #getTransmMode() + * @generated + */ + void setTransmMode(TransmModeKind value); + + /** + * Returns the value of the 'Block T' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Block T' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Block T' attribute list. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getCommunicationMedia_BlockT() + * @model dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Duration" ordered="false" + * @generated + */ + EList getBlockT(); + + /** + * Returns the value of the 'Packet T' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Packet T' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Packet T' attribute list. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getCommunicationMedia_PacketT() + * @model dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Duration" ordered="false" + * @generated + */ + EList getPacketT(); + + /** + * Returns the value of the 'Capacity' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Capacity' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Capacity' attribute list. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getCommunicationMedia_Capacity() + * @model dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_DataTxRate" ordered="false" + * @generated + */ + EList getCapacity(); + +} // CommunicationMedia diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/ComputingResource.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/ComputingResource.java new file mode 100644 index 00000000000..e8bd41c0e43 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/ComputingResource.java @@ -0,0 +1,28 @@ +/***************************************************************************** + * 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.MARTE_Foundations.GRM; + + +/** + * + * A representation of the model object 'Computing Resource'. + * + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getComputingResource() + * @model + * @generated + */ +public interface ComputingResource extends ProcessingResource { +} // ComputingResource diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/ConcurrencyResource.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/ConcurrencyResource.java new file mode 100644 index 00000000000..25fd2b16469 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/ConcurrencyResource.java @@ -0,0 +1,28 @@ +/***************************************************************************** + * 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.MARTE_Foundations.GRM; + + +/** + * + * A representation of the model object 'Concurrency Resource'. + * + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getConcurrencyResource() + * @model + * @generated + */ +public interface ConcurrencyResource extends Resource { +} // ConcurrencyResource diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/DeviceResource.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/DeviceResource.java new file mode 100644 index 00000000000..62f6b783fb8 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/DeviceResource.java @@ -0,0 +1,28 @@ +/***************************************************************************** + * 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.MARTE_Foundations.GRM; + + +/** + * + * A representation of the model object 'Device Resource'. + * + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getDeviceResource() + * @model + * @generated + */ +public interface DeviceResource extends ProcessingResource { +} // DeviceResource diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/GRMFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/GRMFactory.java new file mode 100644 index 00000000000..cd7b97d48ac --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/GRMFactory.java @@ -0,0 +1,224 @@ +/***************************************************************************** + * 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.MARTE_Foundations.GRM; + +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.MARTE_Foundations.GRM.GRMPackage + * @generated + */ +public interface GRMFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + GRMFactory eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GRMFactoryImpl.init(); + + /** + * Returns a new object of class 'Resource'. + * + * + * @return a new object of class 'Resource'. + * @generated + */ + Resource createResource(); + + /** + * Returns a new object of class 'Storage Resource'. + * + * + * @return a new object of class 'Storage Resource'. + * @generated + */ + StorageResource createStorageResource(); + + /** + * Returns a new object of class 'Communication End Point'. + * + * + * @return a new object of class 'Communication End Point'. + * @generated + */ + CommunicationEndPoint createCommunicationEndPoint(); + + /** + * Returns a new object of class 'Synchronization Resource'. + * + * + * @return a new object of class 'Synchronization Resource'. + * @generated + */ + SynchronizationResource createSynchronizationResource(); + + /** + * Returns a new object of class 'Concurrency Resource'. + * + * + * @return a new object of class 'Concurrency Resource'. + * @generated + */ + ConcurrencyResource createConcurrencyResource(); + + /** + * Returns a new object of class 'Scheduler'. + * + * + * @return a new object of class 'Scheduler'. + * @generated + */ + Scheduler createScheduler(); + + /** + * Returns a new object of class 'Processing Resource'. + * + * + * @return a new object of class 'Processing Resource'. + * @generated + */ + ProcessingResource createProcessingResource(); + + /** + * Returns a new object of class 'Computing Resource'. + * + * + * @return a new object of class 'Computing Resource'. + * @generated + */ + ComputingResource createComputingResource(); + + /** + * Returns a new object of class 'Mutual Exclusion Resource'. + * + * + * @return a new object of class 'Mutual Exclusion Resource'. + * @generated + */ + MutualExclusionResource createMutualExclusionResource(); + + /** + * Returns a new object of class 'Schedulable Resource'. + * + * + * @return a new object of class 'Schedulable Resource'. + * @generated + */ + SchedulableResource createSchedulableResource(); + + /** + * Returns a new object of class 'Secondary Scheduler'. + * + * + * @return a new object of class 'Secondary Scheduler'. + * @generated + */ + SecondaryScheduler createSecondaryScheduler(); + + /** + * Returns a new object of class 'Communication Media'. + * + * + * @return a new object of class 'Communication Media'. + * @generated + */ + CommunicationMedia createCommunicationMedia(); + + /** + * Returns a new object of class 'Device Resource'. + * + * + * @return a new object of class 'Device Resource'. + * @generated + */ + DeviceResource createDeviceResource(); + + /** + * Returns a new object of class 'Timing Resource'. + * + * + * @return a new object of class 'Timing Resource'. + * @generated + */ + TimingResource createTimingResource(); + + /** + * Returns a new object of class 'Clock Resource'. + * + * + * @return a new object of class 'Clock Resource'. + * @generated + */ + ClockResource createClockResource(); + + /** + * Returns a new object of class 'Timer Resource'. + * + * + * @return a new object of class 'Timer Resource'. + * @generated + */ + TimerResource createTimerResource(); + + /** + * Returns a new object of class 'Gr Service'. + * + * + * @return a new object of class 'Gr Service'. + * @generated + */ + GrService createGrService(); + + /** + * Returns a new object of class 'Release'. + * + * + * @return a new object of class 'Release'. + * @generated + */ + Release createRelease(); + + /** + * Returns a new object of class 'Acquire'. + * + * + * @return a new object of class 'Acquire'. + * @generated + */ + Acquire createAcquire(); + + /** + * Returns a new object of class 'Resource Usage'. + * + * + * @return a new object of class 'Resource Usage'. + * @generated + */ + ResourceUsage createResourceUsage(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + GRMPackage getGRMPackage(); + +} //GRMFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/GRMPackage.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/GRMPackage.java new file mode 100644 index 00000000000..2104e94786a --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/GRMPackage.java @@ -0,0 +1,3644 @@ +/***************************************************************************** + * 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.MARTE_Foundations.GRM; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +/** + * + * 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.MARTE_Foundations.GRM.GRMFactory + * @model kind="package" + * @generated + */ +public interface GRMPackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "GRM"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "http://www.eclipse.org/papyrus/GRM/1"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "GRM"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + GRMPackage eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GRMPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ResourceImpl Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GRMPackageImpl#getResource() + * @generated + */ + int RESOURCE = 0; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int RESOURCE__RES_MULT = 0; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int RESOURCE__IS_PROTECTED = 1; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int RESOURCE__IS_ACTIVE = 2; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int RESOURCE__BASE_PROPERTY = 3; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int RESOURCE__BASE_INSTANCE_SPECIFICATION = 4; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int RESOURCE__BASE_CLASSIFIER = 5; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int RESOURCE__BASE_LIFELINE = 6; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int RESOURCE__BASE_CONNECTABLE_ELEMENT = 7; + + /** + * The number of structural features of the 'Resource' class. + * + * + * @generated + * @ordered + */ + int RESOURCE_FEATURE_COUNT = 8; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.StorageResourceImpl Storage Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.StorageResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GRMPackageImpl#getStorageResource() + * @generated + */ + int STORAGE_RESOURCE = 1; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int STORAGE_RESOURCE__RES_MULT = RESOURCE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int STORAGE_RESOURCE__IS_PROTECTED = RESOURCE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int STORAGE_RESOURCE__IS_ACTIVE = RESOURCE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int STORAGE_RESOURCE__BASE_PROPERTY = RESOURCE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int STORAGE_RESOURCE__BASE_INSTANCE_SPECIFICATION = RESOURCE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int STORAGE_RESOURCE__BASE_CLASSIFIER = RESOURCE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int STORAGE_RESOURCE__BASE_LIFELINE = RESOURCE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int STORAGE_RESOURCE__BASE_CONNECTABLE_ELEMENT = RESOURCE__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Element Size' attribute. + * + * + * @generated + * @ordered + */ + int STORAGE_RESOURCE__ELEMENT_SIZE = RESOURCE_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Storage Resource' class. + * + * + * @generated + * @ordered + */ + int STORAGE_RESOURCE_FEATURE_COUNT = RESOURCE_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.CommunicationEndPointImpl Communication End Point}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.CommunicationEndPointImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GRMPackageImpl#getCommunicationEndPoint() + * @generated + */ + int COMMUNICATION_END_POINT = 2; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int COMMUNICATION_END_POINT__RES_MULT = RESOURCE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int COMMUNICATION_END_POINT__IS_PROTECTED = RESOURCE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int COMMUNICATION_END_POINT__IS_ACTIVE = RESOURCE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int COMMUNICATION_END_POINT__BASE_PROPERTY = RESOURCE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int COMMUNICATION_END_POINT__BASE_INSTANCE_SPECIFICATION = RESOURCE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int COMMUNICATION_END_POINT__BASE_CLASSIFIER = RESOURCE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int COMMUNICATION_END_POINT__BASE_LIFELINE = RESOURCE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int COMMUNICATION_END_POINT__BASE_CONNECTABLE_ELEMENT = RESOURCE__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Packet Size' attribute. + * + * + * @generated + * @ordered + */ + int COMMUNICATION_END_POINT__PACKET_SIZE = RESOURCE_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Communication End Point' class. + * + * + * @generated + * @ordered + */ + int COMMUNICATION_END_POINT_FEATURE_COUNT = RESOURCE_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.SynchronizationResourceImpl Synchronization Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.SynchronizationResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GRMPackageImpl#getSynchronizationResource() + * @generated + */ + int SYNCHRONIZATION_RESOURCE = 3; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int SYNCHRONIZATION_RESOURCE__RES_MULT = RESOURCE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int SYNCHRONIZATION_RESOURCE__IS_PROTECTED = RESOURCE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int SYNCHRONIZATION_RESOURCE__IS_ACTIVE = RESOURCE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int SYNCHRONIZATION_RESOURCE__BASE_PROPERTY = RESOURCE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int SYNCHRONIZATION_RESOURCE__BASE_INSTANCE_SPECIFICATION = RESOURCE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int SYNCHRONIZATION_RESOURCE__BASE_CLASSIFIER = RESOURCE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int SYNCHRONIZATION_RESOURCE__BASE_LIFELINE = RESOURCE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int SYNCHRONIZATION_RESOURCE__BASE_CONNECTABLE_ELEMENT = RESOURCE__BASE_CONNECTABLE_ELEMENT; + + /** + * The number of structural features of the 'Synchronization Resource' class. + * + * + * @generated + * @ordered + */ + int SYNCHRONIZATION_RESOURCE_FEATURE_COUNT = RESOURCE_FEATURE_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ConcurrencyResourceImpl Concurrency Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ConcurrencyResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GRMPackageImpl#getConcurrencyResource() + * @generated + */ + int CONCURRENCY_RESOURCE = 4; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int CONCURRENCY_RESOURCE__RES_MULT = RESOURCE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int CONCURRENCY_RESOURCE__IS_PROTECTED = RESOURCE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int CONCURRENCY_RESOURCE__IS_ACTIVE = RESOURCE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int CONCURRENCY_RESOURCE__BASE_PROPERTY = RESOURCE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int CONCURRENCY_RESOURCE__BASE_INSTANCE_SPECIFICATION = RESOURCE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int CONCURRENCY_RESOURCE__BASE_CLASSIFIER = RESOURCE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int CONCURRENCY_RESOURCE__BASE_LIFELINE = RESOURCE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int CONCURRENCY_RESOURCE__BASE_CONNECTABLE_ELEMENT = RESOURCE__BASE_CONNECTABLE_ELEMENT; + + /** + * The number of structural features of the 'Concurrency Resource' class. + * + * + * @generated + * @ordered + */ + int CONCURRENCY_RESOURCE_FEATURE_COUNT = RESOURCE_FEATURE_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.SchedulerImpl Scheduler}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.SchedulerImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GRMPackageImpl#getScheduler() + * @generated + */ + int SCHEDULER = 5; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int SCHEDULER__RES_MULT = RESOURCE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int SCHEDULER__IS_PROTECTED = RESOURCE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int SCHEDULER__IS_ACTIVE = RESOURCE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int SCHEDULER__BASE_PROPERTY = RESOURCE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int SCHEDULER__BASE_INSTANCE_SPECIFICATION = RESOURCE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int SCHEDULER__BASE_CLASSIFIER = RESOURCE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int SCHEDULER__BASE_LIFELINE = RESOURCE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int SCHEDULER__BASE_CONNECTABLE_ELEMENT = RESOURCE__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Is Preemptible' attribute. + * + * + * @generated + * @ordered + */ + int SCHEDULER__IS_PREEMPTIBLE = RESOURCE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Sched Policy' attribute. + * + * + * @generated + * @ordered + */ + int SCHEDULER__SCHED_POLICY = RESOURCE_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Other Sched Policy' attribute. + * + * + * @generated + * @ordered + */ + int SCHEDULER__OTHER_SCHED_POLICY = RESOURCE_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Schedule' attribute. + * + * + * @generated + * @ordered + */ + int SCHEDULER__SCHEDULE = RESOURCE_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Processing Units' reference list. + * + * + * @generated + * @ordered + */ + int SCHEDULER__PROCESSING_UNITS = RESOURCE_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Host' reference. + * + * + * @generated + * @ordered + */ + int SCHEDULER__HOST = RESOURCE_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Protected Shared Resources' reference list. + * + * + * @generated + * @ordered + */ + int SCHEDULER__PROTECTED_SHARED_RESOURCES = RESOURCE_FEATURE_COUNT + 6; + + /** + * The feature id for the 'Schedulable Resources' reference list. + * + * + * @generated + * @ordered + */ + int SCHEDULER__SCHEDULABLE_RESOURCES = RESOURCE_FEATURE_COUNT + 7; + + /** + * The number of structural features of the 'Scheduler' class. + * + * + * @generated + * @ordered + */ + int SCHEDULER_FEATURE_COUNT = RESOURCE_FEATURE_COUNT + 8; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ProcessingResourceImpl Processing Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ProcessingResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GRMPackageImpl#getProcessingResource() + * @generated + */ + int PROCESSING_RESOURCE = 6; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int PROCESSING_RESOURCE__RES_MULT = RESOURCE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int PROCESSING_RESOURCE__IS_PROTECTED = RESOURCE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int PROCESSING_RESOURCE__IS_ACTIVE = RESOURCE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int PROCESSING_RESOURCE__BASE_PROPERTY = RESOURCE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int PROCESSING_RESOURCE__BASE_INSTANCE_SPECIFICATION = RESOURCE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int PROCESSING_RESOURCE__BASE_CLASSIFIER = RESOURCE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int PROCESSING_RESOURCE__BASE_LIFELINE = RESOURCE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int PROCESSING_RESOURCE__BASE_CONNECTABLE_ELEMENT = RESOURCE__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Speed Factor' attribute. + * + * + * @generated + * @ordered + */ + int PROCESSING_RESOURCE__SPEED_FACTOR = RESOURCE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Main Scheduler' reference. + * + * + * @generated + * @ordered + */ + int PROCESSING_RESOURCE__MAIN_SCHEDULER = RESOURCE_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Processing Resource' class. + * + * + * @generated + * @ordered + */ + int PROCESSING_RESOURCE_FEATURE_COUNT = RESOURCE_FEATURE_COUNT + 2; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ComputingResourceImpl Computing Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ComputingResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GRMPackageImpl#getComputingResource() + * @generated + */ + int COMPUTING_RESOURCE = 7; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int COMPUTING_RESOURCE__RES_MULT = PROCESSING_RESOURCE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int COMPUTING_RESOURCE__IS_PROTECTED = PROCESSING_RESOURCE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int COMPUTING_RESOURCE__IS_ACTIVE = PROCESSING_RESOURCE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int COMPUTING_RESOURCE__BASE_PROPERTY = PROCESSING_RESOURCE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int COMPUTING_RESOURCE__BASE_INSTANCE_SPECIFICATION = PROCESSING_RESOURCE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int COMPUTING_RESOURCE__BASE_CLASSIFIER = PROCESSING_RESOURCE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int COMPUTING_RESOURCE__BASE_LIFELINE = PROCESSING_RESOURCE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int COMPUTING_RESOURCE__BASE_CONNECTABLE_ELEMENT = PROCESSING_RESOURCE__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Speed Factor' attribute. + * + * + * @generated + * @ordered + */ + int COMPUTING_RESOURCE__SPEED_FACTOR = PROCESSING_RESOURCE__SPEED_FACTOR; + + /** + * The feature id for the 'Main Scheduler' reference. + * + * + * @generated + * @ordered + */ + int COMPUTING_RESOURCE__MAIN_SCHEDULER = PROCESSING_RESOURCE__MAIN_SCHEDULER; + + /** + * The number of structural features of the 'Computing Resource' class. + * + * + * @generated + * @ordered + */ + int COMPUTING_RESOURCE_FEATURE_COUNT = PROCESSING_RESOURCE_FEATURE_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.MutualExclusionResourceImpl Mutual Exclusion Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.MutualExclusionResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GRMPackageImpl#getMutualExclusionResource() + * @generated + */ + int MUTUAL_EXCLUSION_RESOURCE = 8; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int MUTUAL_EXCLUSION_RESOURCE__RES_MULT = RESOURCE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int MUTUAL_EXCLUSION_RESOURCE__IS_PROTECTED = RESOURCE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int MUTUAL_EXCLUSION_RESOURCE__IS_ACTIVE = RESOURCE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int MUTUAL_EXCLUSION_RESOURCE__BASE_PROPERTY = RESOURCE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int MUTUAL_EXCLUSION_RESOURCE__BASE_INSTANCE_SPECIFICATION = RESOURCE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int MUTUAL_EXCLUSION_RESOURCE__BASE_CLASSIFIER = RESOURCE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int MUTUAL_EXCLUSION_RESOURCE__BASE_LIFELINE = RESOURCE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int MUTUAL_EXCLUSION_RESOURCE__BASE_CONNECTABLE_ELEMENT = RESOURCE__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Protect Kind' attribute. + * + * + * @generated + * @ordered + */ + int MUTUAL_EXCLUSION_RESOURCE__PROTECT_KIND = RESOURCE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Ceiling' attribute. + * + * + * @generated + * @ordered + */ + int MUTUAL_EXCLUSION_RESOURCE__CEILING = RESOURCE_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Other Protect Protocol' attribute. + * + * + * @generated + * @ordered + */ + int MUTUAL_EXCLUSION_RESOURCE__OTHER_PROTECT_PROTOCOL = RESOURCE_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Scheduler' reference. + * + * + * @generated + * @ordered + */ + int MUTUAL_EXCLUSION_RESOURCE__SCHEDULER = RESOURCE_FEATURE_COUNT + 3; + + /** + * The number of structural features of the 'Mutual Exclusion Resource' class. + * + * + * @generated + * @ordered + */ + int MUTUAL_EXCLUSION_RESOURCE_FEATURE_COUNT = RESOURCE_FEATURE_COUNT + 4; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.SchedulableResourceImpl Schedulable Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.SchedulableResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GRMPackageImpl#getSchedulableResource() + * @generated + */ + int SCHEDULABLE_RESOURCE = 9; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int SCHEDULABLE_RESOURCE__RES_MULT = RESOURCE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int SCHEDULABLE_RESOURCE__IS_PROTECTED = RESOURCE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int SCHEDULABLE_RESOURCE__IS_ACTIVE = RESOURCE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int SCHEDULABLE_RESOURCE__BASE_PROPERTY = RESOURCE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int SCHEDULABLE_RESOURCE__BASE_INSTANCE_SPECIFICATION = RESOURCE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int SCHEDULABLE_RESOURCE__BASE_CLASSIFIER = RESOURCE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int SCHEDULABLE_RESOURCE__BASE_LIFELINE = RESOURCE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int SCHEDULABLE_RESOURCE__BASE_CONNECTABLE_ELEMENT = RESOURCE__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Sched Params' attribute list. + * + * + * @generated + * @ordered + */ + int SCHEDULABLE_RESOURCE__SCHED_PARAMS = RESOURCE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Dependent Scheduler' reference. + * + * + * @generated + * @ordered + */ + int SCHEDULABLE_RESOURCE__DEPENDENT_SCHEDULER = RESOURCE_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Host' reference. + * + * + * @generated + * @ordered + */ + int SCHEDULABLE_RESOURCE__HOST = RESOURCE_FEATURE_COUNT + 2; + + /** + * The number of structural features of the 'Schedulable Resource' class. + * + * + * @generated + * @ordered + */ + int SCHEDULABLE_RESOURCE_FEATURE_COUNT = RESOURCE_FEATURE_COUNT + 3; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.SecondarySchedulerImpl Secondary Scheduler}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.SecondarySchedulerImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GRMPackageImpl#getSecondaryScheduler() + * @generated + */ + int SECONDARY_SCHEDULER = 10; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int SECONDARY_SCHEDULER__RES_MULT = SCHEDULER__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int SECONDARY_SCHEDULER__IS_PROTECTED = SCHEDULER__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int SECONDARY_SCHEDULER__IS_ACTIVE = SCHEDULER__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int SECONDARY_SCHEDULER__BASE_PROPERTY = SCHEDULER__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int SECONDARY_SCHEDULER__BASE_INSTANCE_SPECIFICATION = SCHEDULER__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int SECONDARY_SCHEDULER__BASE_CLASSIFIER = SCHEDULER__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int SECONDARY_SCHEDULER__BASE_LIFELINE = SCHEDULER__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int SECONDARY_SCHEDULER__BASE_CONNECTABLE_ELEMENT = SCHEDULER__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Is Preemptible' attribute. + * + * + * @generated + * @ordered + */ + int SECONDARY_SCHEDULER__IS_PREEMPTIBLE = SCHEDULER__IS_PREEMPTIBLE; + + /** + * The feature id for the 'Sched Policy' attribute. + * + * + * @generated + * @ordered + */ + int SECONDARY_SCHEDULER__SCHED_POLICY = SCHEDULER__SCHED_POLICY; + + /** + * The feature id for the 'Other Sched Policy' attribute. + * + * + * @generated + * @ordered + */ + int SECONDARY_SCHEDULER__OTHER_SCHED_POLICY = SCHEDULER__OTHER_SCHED_POLICY; + + /** + * The feature id for the 'Schedule' attribute. + * + * + * @generated + * @ordered + */ + int SECONDARY_SCHEDULER__SCHEDULE = SCHEDULER__SCHEDULE; + + /** + * The feature id for the 'Processing Units' reference list. + * + * + * @generated + * @ordered + */ + int SECONDARY_SCHEDULER__PROCESSING_UNITS = SCHEDULER__PROCESSING_UNITS; + + /** + * The feature id for the 'Host' reference. + * + * + * @generated + * @ordered + */ + int SECONDARY_SCHEDULER__HOST = SCHEDULER__HOST; + + /** + * The feature id for the 'Protected Shared Resources' reference list. + * + * + * @generated + * @ordered + */ + int SECONDARY_SCHEDULER__PROTECTED_SHARED_RESOURCES = SCHEDULER__PROTECTED_SHARED_RESOURCES; + + /** + * The feature id for the 'Schedulable Resources' reference list. + * + * + * @generated + * @ordered + */ + int SECONDARY_SCHEDULER__SCHEDULABLE_RESOURCES = SCHEDULER__SCHEDULABLE_RESOURCES; + + /** + * The feature id for the 'Virtual Processing Units' reference list. + * + * + * @generated + * @ordered + */ + int SECONDARY_SCHEDULER__VIRTUAL_PROCESSING_UNITS = SCHEDULER_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Secondary Scheduler' class. + * + * + * @generated + * @ordered + */ + int SECONDARY_SCHEDULER_FEATURE_COUNT = SCHEDULER_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.CommunicationMediaImpl Communication Media}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.CommunicationMediaImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GRMPackageImpl#getCommunicationMedia() + * @generated + */ + int COMMUNICATION_MEDIA = 11; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int COMMUNICATION_MEDIA__RES_MULT = PROCESSING_RESOURCE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int COMMUNICATION_MEDIA__IS_PROTECTED = PROCESSING_RESOURCE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int COMMUNICATION_MEDIA__IS_ACTIVE = PROCESSING_RESOURCE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int COMMUNICATION_MEDIA__BASE_PROPERTY = PROCESSING_RESOURCE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int COMMUNICATION_MEDIA__BASE_INSTANCE_SPECIFICATION = PROCESSING_RESOURCE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int COMMUNICATION_MEDIA__BASE_CLASSIFIER = PROCESSING_RESOURCE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int COMMUNICATION_MEDIA__BASE_LIFELINE = PROCESSING_RESOURCE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int COMMUNICATION_MEDIA__BASE_CONNECTABLE_ELEMENT = PROCESSING_RESOURCE__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Speed Factor' attribute. + * + * + * @generated + * @ordered + */ + int COMMUNICATION_MEDIA__SPEED_FACTOR = PROCESSING_RESOURCE__SPEED_FACTOR; + + /** + * The feature id for the 'Main Scheduler' reference. + * + * + * @generated + * @ordered + */ + int COMMUNICATION_MEDIA__MAIN_SCHEDULER = PROCESSING_RESOURCE__MAIN_SCHEDULER; + + /** + * The feature id for the 'Element Size' attribute. + * + * + * @generated + * @ordered + */ + int COMMUNICATION_MEDIA__ELEMENT_SIZE = PROCESSING_RESOURCE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Base Connector' reference. + * + * + * @generated + * @ordered + */ + int COMMUNICATION_MEDIA__BASE_CONNECTOR = PROCESSING_RESOURCE_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Transm Mode' attribute. + * + * + * @generated + * @ordered + */ + int COMMUNICATION_MEDIA__TRANSM_MODE = PROCESSING_RESOURCE_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Block T' attribute list. + * + * + * @generated + * @ordered + */ + int COMMUNICATION_MEDIA__BLOCK_T = PROCESSING_RESOURCE_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Packet T' attribute list. + * + * + * @generated + * @ordered + */ + int COMMUNICATION_MEDIA__PACKET_T = PROCESSING_RESOURCE_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Capacity' attribute list. + * + * + * @generated + * @ordered + */ + int COMMUNICATION_MEDIA__CAPACITY = PROCESSING_RESOURCE_FEATURE_COUNT + 5; + + /** + * The number of structural features of the 'Communication Media' class. + * + * + * @generated + * @ordered + */ + int COMMUNICATION_MEDIA_FEATURE_COUNT = PROCESSING_RESOURCE_FEATURE_COUNT + 6; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.DeviceResourceImpl Device Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.DeviceResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GRMPackageImpl#getDeviceResource() + * @generated + */ + int DEVICE_RESOURCE = 12; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int DEVICE_RESOURCE__RES_MULT = PROCESSING_RESOURCE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int DEVICE_RESOURCE__IS_PROTECTED = PROCESSING_RESOURCE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int DEVICE_RESOURCE__IS_ACTIVE = PROCESSING_RESOURCE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int DEVICE_RESOURCE__BASE_PROPERTY = PROCESSING_RESOURCE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int DEVICE_RESOURCE__BASE_INSTANCE_SPECIFICATION = PROCESSING_RESOURCE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int DEVICE_RESOURCE__BASE_CLASSIFIER = PROCESSING_RESOURCE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int DEVICE_RESOURCE__BASE_LIFELINE = PROCESSING_RESOURCE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int DEVICE_RESOURCE__BASE_CONNECTABLE_ELEMENT = PROCESSING_RESOURCE__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Speed Factor' attribute. + * + * + * @generated + * @ordered + */ + int DEVICE_RESOURCE__SPEED_FACTOR = PROCESSING_RESOURCE__SPEED_FACTOR; + + /** + * The feature id for the 'Main Scheduler' reference. + * + * + * @generated + * @ordered + */ + int DEVICE_RESOURCE__MAIN_SCHEDULER = PROCESSING_RESOURCE__MAIN_SCHEDULER; + + /** + * The number of structural features of the 'Device Resource' class. + * + * + * @generated + * @ordered + */ + int DEVICE_RESOURCE_FEATURE_COUNT = PROCESSING_RESOURCE_FEATURE_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.TimingResourceImpl Timing Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.TimingResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GRMPackageImpl#getTimingResource() + * @generated + */ + int TIMING_RESOURCE = 13; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int TIMING_RESOURCE__RES_MULT = RESOURCE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int TIMING_RESOURCE__IS_PROTECTED = RESOURCE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int TIMING_RESOURCE__IS_ACTIVE = RESOURCE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int TIMING_RESOURCE__BASE_PROPERTY = RESOURCE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int TIMING_RESOURCE__BASE_INSTANCE_SPECIFICATION = RESOURCE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int TIMING_RESOURCE__BASE_CLASSIFIER = RESOURCE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int TIMING_RESOURCE__BASE_LIFELINE = RESOURCE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int TIMING_RESOURCE__BASE_CONNECTABLE_ELEMENT = RESOURCE__BASE_CONNECTABLE_ELEMENT; + + /** + * The number of structural features of the 'Timing Resource' class. + * + * + * @generated + * @ordered + */ + int TIMING_RESOURCE_FEATURE_COUNT = RESOURCE_FEATURE_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ClockResourceImpl Clock Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ClockResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GRMPackageImpl#getClockResource() + * @generated + */ + int CLOCK_RESOURCE = 14; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int CLOCK_RESOURCE__RES_MULT = TIMING_RESOURCE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int CLOCK_RESOURCE__IS_PROTECTED = TIMING_RESOURCE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int CLOCK_RESOURCE__IS_ACTIVE = TIMING_RESOURCE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int CLOCK_RESOURCE__BASE_PROPERTY = TIMING_RESOURCE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int CLOCK_RESOURCE__BASE_INSTANCE_SPECIFICATION = TIMING_RESOURCE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int CLOCK_RESOURCE__BASE_CLASSIFIER = TIMING_RESOURCE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int CLOCK_RESOURCE__BASE_LIFELINE = TIMING_RESOURCE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int CLOCK_RESOURCE__BASE_CONNECTABLE_ELEMENT = TIMING_RESOURCE__BASE_CONNECTABLE_ELEMENT; + + /** + * The number of structural features of the 'Clock Resource' class. + * + * + * @generated + * @ordered + */ + int CLOCK_RESOURCE_FEATURE_COUNT = TIMING_RESOURCE_FEATURE_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.TimerResourceImpl Timer Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.TimerResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GRMPackageImpl#getTimerResource() + * @generated + */ + int TIMER_RESOURCE = 15; + + /** + * The feature id for the 'Res Mult' attribute. + * + * + * @generated + * @ordered + */ + int TIMER_RESOURCE__RES_MULT = TIMING_RESOURCE__RES_MULT; + + /** + * The feature id for the 'Is Protected' attribute. + * + * + * @generated + * @ordered + */ + int TIMER_RESOURCE__IS_PROTECTED = TIMING_RESOURCE__IS_PROTECTED; + + /** + * The feature id for the 'Is Active' attribute. + * + * + * @generated + * @ordered + */ + int TIMER_RESOURCE__IS_ACTIVE = TIMING_RESOURCE__IS_ACTIVE; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int TIMER_RESOURCE__BASE_PROPERTY = TIMING_RESOURCE__BASE_PROPERTY; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int TIMER_RESOURCE__BASE_INSTANCE_SPECIFICATION = TIMING_RESOURCE__BASE_INSTANCE_SPECIFICATION; + + /** + * The feature id for the 'Base Classifier' reference. + * + * + * @generated + * @ordered + */ + int TIMER_RESOURCE__BASE_CLASSIFIER = TIMING_RESOURCE__BASE_CLASSIFIER; + + /** + * The feature id for the 'Base Lifeline' reference. + * + * + * @generated + * @ordered + */ + int TIMER_RESOURCE__BASE_LIFELINE = TIMING_RESOURCE__BASE_LIFELINE; + + /** + * The feature id for the 'Base Connectable Element' reference. + * + * + * @generated + * @ordered + */ + int TIMER_RESOURCE__BASE_CONNECTABLE_ELEMENT = TIMING_RESOURCE__BASE_CONNECTABLE_ELEMENT; + + /** + * The feature id for the 'Duration' attribute. + * + * + * @generated + * @ordered + */ + int TIMER_RESOURCE__DURATION = TIMING_RESOURCE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Is Periodic' attribute. + * + * + * @generated + * @ordered + */ + int TIMER_RESOURCE__IS_PERIODIC = TIMING_RESOURCE_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Timer Resource' class. + * + * + * @generated + * @ordered + */ + int TIMER_RESOURCE_FEATURE_COUNT = TIMING_RESOURCE_FEATURE_COUNT + 2; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GrServiceImpl Gr Service}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GrServiceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GRMPackageImpl#getGrService() + * @generated + */ + int GR_SERVICE = 16; + + /** + * The feature id for the 'Owner' reference. + * + * + * @generated + * @ordered + */ + int GR_SERVICE__OWNER = 0; + + /** + * The feature id for the 'Base Execution Specification' reference. + * + * + * @generated + * @ordered + */ + int GR_SERVICE__BASE_EXECUTION_SPECIFICATION = 1; + + /** + * The feature id for the 'Base Behavioral Feature' reference. + * + * + * @generated + * @ordered + */ + int GR_SERVICE__BASE_BEHAVIORAL_FEATURE = 2; + + /** + * The feature id for the 'Base Behavior' reference. + * + * + * @generated + * @ordered + */ + int GR_SERVICE__BASE_BEHAVIOR = 3; + + /** + * The feature id for the 'Base Collaboration' reference. + * + * + * @generated + * @ordered + */ + int GR_SERVICE__BASE_COLLABORATION = 4; + + /** + * The feature id for the 'Base Collaboration Use' reference. + * + * + * @generated + * @ordered + */ + int GR_SERVICE__BASE_COLLABORATION_USE = 5; + + /** + * The number of structural features of the 'Gr Service' class. + * + * + * @generated + * @ordered + */ + int GR_SERVICE_FEATURE_COUNT = 6; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ReleaseImpl Release}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ReleaseImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GRMPackageImpl#getRelease() + * @generated + */ + int RELEASE = 17; + + /** + * The feature id for the 'Owner' reference. + * + * + * @generated + * @ordered + */ + int RELEASE__OWNER = GR_SERVICE__OWNER; + + /** + * The feature id for the 'Base Execution Specification' reference. + * + * + * @generated + * @ordered + */ + int RELEASE__BASE_EXECUTION_SPECIFICATION = GR_SERVICE__BASE_EXECUTION_SPECIFICATION; + + /** + * The feature id for the 'Base Behavioral Feature' reference. + * + * + * @generated + * @ordered + */ + int RELEASE__BASE_BEHAVIORAL_FEATURE = GR_SERVICE__BASE_BEHAVIORAL_FEATURE; + + /** + * The feature id for the 'Base Behavior' reference. + * + * + * @generated + * @ordered + */ + int RELEASE__BASE_BEHAVIOR = GR_SERVICE__BASE_BEHAVIOR; + + /** + * The feature id for the 'Base Collaboration' reference. + * + * + * @generated + * @ordered + */ + int RELEASE__BASE_COLLABORATION = GR_SERVICE__BASE_COLLABORATION; + + /** + * The feature id for the 'Base Collaboration Use' reference. + * + * + * @generated + * @ordered + */ + int RELEASE__BASE_COLLABORATION_USE = GR_SERVICE__BASE_COLLABORATION_USE; + + /** + * The number of structural features of the 'Release' class. + * + * + * @generated + * @ordered + */ + int RELEASE_FEATURE_COUNT = GR_SERVICE_FEATURE_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.AcquireImpl Acquire}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.AcquireImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GRMPackageImpl#getAcquire() + * @generated + */ + int ACQUIRE = 18; + + /** + * The feature id for the 'Owner' reference. + * + * + * @generated + * @ordered + */ + int ACQUIRE__OWNER = GR_SERVICE__OWNER; + + /** + * The feature id for the 'Base Execution Specification' reference. + * + * + * @generated + * @ordered + */ + int ACQUIRE__BASE_EXECUTION_SPECIFICATION = GR_SERVICE__BASE_EXECUTION_SPECIFICATION; + + /** + * The feature id for the 'Base Behavioral Feature' reference. + * + * + * @generated + * @ordered + */ + int ACQUIRE__BASE_BEHAVIORAL_FEATURE = GR_SERVICE__BASE_BEHAVIORAL_FEATURE; + + /** + * The feature id for the 'Base Behavior' reference. + * + * + * @generated + * @ordered + */ + int ACQUIRE__BASE_BEHAVIOR = GR_SERVICE__BASE_BEHAVIOR; + + /** + * The feature id for the 'Base Collaboration' reference. + * + * + * @generated + * @ordered + */ + int ACQUIRE__BASE_COLLABORATION = GR_SERVICE__BASE_COLLABORATION; + + /** + * The feature id for the 'Base Collaboration Use' reference. + * + * + * @generated + * @ordered + */ + int ACQUIRE__BASE_COLLABORATION_USE = GR_SERVICE__BASE_COLLABORATION_USE; + + /** + * The feature id for the 'Is Blocking' attribute. + * + * + * @generated + * @ordered + */ + int ACQUIRE__IS_BLOCKING = GR_SERVICE_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Acquire' class. + * + * + * @generated + * @ordered + */ + int ACQUIRE_FEATURE_COUNT = GR_SERVICE_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ResourceUsageImpl Resource Usage}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ResourceUsageImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GRMPackageImpl#getResourceUsage() + * @generated + */ + int RESOURCE_USAGE = 19; + + /** + * The feature id for the 'Exec Time' attribute list. + * + * + * @generated + * @ordered + */ + int RESOURCE_USAGE__EXEC_TIME = 0; + + /** + * The feature id for the 'Allocated Memory' attribute list. + * + * + * @generated + * @ordered + */ + int RESOURCE_USAGE__ALLOCATED_MEMORY = 1; + + /** + * The feature id for the 'Used Memory' attribute list. + * + * + * @generated + * @ordered + */ + int RESOURCE_USAGE__USED_MEMORY = 2; + + /** + * The feature id for the 'Power Peak' attribute list. + * + * + * @generated + * @ordered + */ + int RESOURCE_USAGE__POWER_PEAK = 3; + + /** + * The feature id for the 'Energy' attribute list. + * + * + * @generated + * @ordered + */ + int RESOURCE_USAGE__ENERGY = 4; + + /** + * The feature id for the 'Base Named Element' reference. + * + * + * @generated + * @ordered + */ + int RESOURCE_USAGE__BASE_NAMED_ELEMENT = 5; + + /** + * The feature id for the 'Sub Usage' reference list. + * + * + * @generated + * @ordered + */ + int RESOURCE_USAGE__SUB_USAGE = 6; + + /** + * The feature id for the 'Used Resources' reference list. + * + * + * @generated + * @ordered + */ + int RESOURCE_USAGE__USED_RESOURCES = 7; + + /** + * The feature id for the 'Msg Size' attribute list. + * + * + * @generated + * @ordered + */ + int RESOURCE_USAGE__MSG_SIZE = 8; + + /** + * The number of structural features of the 'Resource Usage' class. + * + * + * @generated + * @ordered + */ + int RESOURCE_USAGE_FEATURE_COUNT = 9; + + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource Resource}'. + * + * + * @return the meta object for class 'Resource'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource + * @generated + */ + EClass getResource(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource#getResMult Res Mult}'. + * + * + * @return the meta object for the attribute 'Res Mult'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource#getResMult() + * @see #getResource() + * @generated + */ + EAttribute getResource_ResMult(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource#isIsProtected Is Protected}'. + * + * + * @return the meta object for the attribute 'Is Protected'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource#isIsProtected() + * @see #getResource() + * @generated + */ + EAttribute getResource_IsProtected(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource#isIsActive Is Active}'. + * + * + * @return the meta object for the attribute 'Is Active'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource#isIsActive() + * @see #getResource() + * @generated + */ + EAttribute getResource_IsActive(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource#getBase_Property Base Property}'. + * + * + * @return the meta object for the reference 'Base Property'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource#getBase_Property() + * @see #getResource() + * @generated + */ + EReference getResource_Base_Property(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource#getBase_InstanceSpecification Base Instance Specification}'. + * + * + * @return the meta object for the reference 'Base Instance Specification'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource#getBase_InstanceSpecification() + * @see #getResource() + * @generated + */ + EReference getResource_Base_InstanceSpecification(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource#getBase_Classifier Base Classifier}'. + * + * + * @return the meta object for the reference 'Base Classifier'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource#getBase_Classifier() + * @see #getResource() + * @generated + */ + EReference getResource_Base_Classifier(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource#getBase_Lifeline Base Lifeline}'. + * + * + * @return the meta object for the reference 'Base Lifeline'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource#getBase_Lifeline() + * @see #getResource() + * @generated + */ + EReference getResource_Base_Lifeline(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource#getBase_ConnectableElement Base Connectable Element}'. + * + * + * @return the meta object for the reference 'Base Connectable Element'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource#getBase_ConnectableElement() + * @see #getResource() + * @generated + */ + EReference getResource_Base_ConnectableElement(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.StorageResource Storage Resource}'. + * + * + * @return the meta object for class 'Storage Resource'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.StorageResource + * @generated + */ + EClass getStorageResource(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.StorageResource#getElementSize Element Size}'. + * + * + * @return the meta object for the attribute 'Element Size'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.StorageResource#getElementSize() + * @see #getStorageResource() + * @generated + */ + EAttribute getStorageResource_ElementSize(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationEndPoint Communication End Point}'. + * + * + * @return the meta object for class 'Communication End Point'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationEndPoint + * @generated + */ + EClass getCommunicationEndPoint(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationEndPoint#getPacketSize Packet Size}'. + * + * + * @return the meta object for the attribute 'Packet Size'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationEndPoint#getPacketSize() + * @see #getCommunicationEndPoint() + * @generated + */ + EAttribute getCommunicationEndPoint_PacketSize(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SynchronizationResource Synchronization Resource}'. + * + * + * @return the meta object for class 'Synchronization Resource'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SynchronizationResource + * @generated + */ + EClass getSynchronizationResource(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ConcurrencyResource Concurrency Resource}'. + * + * + * @return the meta object for class 'Concurrency Resource'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ConcurrencyResource + * @generated + */ + EClass getConcurrencyResource(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler Scheduler}'. + * + * + * @return the meta object for class 'Scheduler'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler + * @generated + */ + EClass getScheduler(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler#isIsPreemptible Is Preemptible}'. + * + * + * @return the meta object for the attribute 'Is Preemptible'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler#isIsPreemptible() + * @see #getScheduler() + * @generated + */ + EAttribute getScheduler_IsPreemptible(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler#getSchedPolicy Sched Policy}'. + * + * + * @return the meta object for the attribute 'Sched Policy'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler#getSchedPolicy() + * @see #getScheduler() + * @generated + */ + EAttribute getScheduler_SchedPolicy(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler#getOtherSchedPolicy Other Sched Policy}'. + * + * + * @return the meta object for the attribute 'Other Sched Policy'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler#getOtherSchedPolicy() + * @see #getScheduler() + * @generated + */ + EAttribute getScheduler_OtherSchedPolicy(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler#getSchedule Schedule}'. + * + * + * @return the meta object for the attribute 'Schedule'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler#getSchedule() + * @see #getScheduler() + * @generated + */ + EAttribute getScheduler_Schedule(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler#getProcessingUnits Processing Units}'. + * + * + * @return the meta object for the reference list 'Processing Units'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler#getProcessingUnits() + * @see #getScheduler() + * @generated + */ + EReference getScheduler_ProcessingUnits(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler#getHost Host}'. + * + * + * @return the meta object for the reference 'Host'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler#getHost() + * @see #getScheduler() + * @generated + */ + EReference getScheduler_Host(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler#getProtectedSharedResources Protected Shared Resources}'. + * + * + * @return the meta object for the reference list 'Protected Shared Resources'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler#getProtectedSharedResources() + * @see #getScheduler() + * @generated + */ + EReference getScheduler_ProtectedSharedResources(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler#getSchedulableResources Schedulable Resources}'. + * + * + * @return the meta object for the reference list 'Schedulable Resources'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler#getSchedulableResources() + * @see #getScheduler() + * @generated + */ + EReference getScheduler_SchedulableResources(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ProcessingResource Processing Resource}'. + * + * + * @return the meta object for class 'Processing Resource'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ProcessingResource + * @generated + */ + EClass getProcessingResource(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ProcessingResource#getSpeedFactor Speed Factor}'. + * + * + * @return the meta object for the attribute 'Speed Factor'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ProcessingResource#getSpeedFactor() + * @see #getProcessingResource() + * @generated + */ + EAttribute getProcessingResource_SpeedFactor(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ProcessingResource#getMainScheduler Main Scheduler}'. + * + * + * @return the meta object for the reference 'Main Scheduler'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ProcessingResource#getMainScheduler() + * @see #getProcessingResource() + * @generated + */ + EReference getProcessingResource_MainScheduler(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ComputingResource Computing Resource}'. + * + * + * @return the meta object for class 'Computing Resource'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ComputingResource + * @generated + */ + EClass getComputingResource(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.MutualExclusionResource Mutual Exclusion Resource}'. + * + * + * @return the meta object for class 'Mutual Exclusion Resource'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.MutualExclusionResource + * @generated + */ + EClass getMutualExclusionResource(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.MutualExclusionResource#getProtectKind Protect Kind}'. + * + * + * @return the meta object for the attribute 'Protect Kind'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.MutualExclusionResource#getProtectKind() + * @see #getMutualExclusionResource() + * @generated + */ + EAttribute getMutualExclusionResource_ProtectKind(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.MutualExclusionResource#getCeiling Ceiling}'. + * + * + * @return the meta object for the attribute 'Ceiling'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.MutualExclusionResource#getCeiling() + * @see #getMutualExclusionResource() + * @generated + */ + EAttribute getMutualExclusionResource_Ceiling(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.MutualExclusionResource#getOtherProtectProtocol Other Protect Protocol}'. + * + * + * @return the meta object for the attribute 'Other Protect Protocol'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.MutualExclusionResource#getOtherProtectProtocol() + * @see #getMutualExclusionResource() + * @generated + */ + EAttribute getMutualExclusionResource_OtherProtectProtocol(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.MutualExclusionResource#getScheduler Scheduler}'. + * + * + * @return the meta object for the reference 'Scheduler'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.MutualExclusionResource#getScheduler() + * @see #getMutualExclusionResource() + * @generated + */ + EReference getMutualExclusionResource_Scheduler(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SchedulableResource Schedulable Resource}'. + * + * + * @return the meta object for class 'Schedulable Resource'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SchedulableResource + * @generated + */ + EClass getSchedulableResource(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SchedulableResource#getSchedParams Sched Params}'. + * + * + * @return the meta object for the attribute list 'Sched Params'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SchedulableResource#getSchedParams() + * @see #getSchedulableResource() + * @generated + */ + EAttribute getSchedulableResource_SchedParams(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SchedulableResource#getDependentScheduler Dependent Scheduler}'. + * + * + * @return the meta object for the reference 'Dependent Scheduler'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SchedulableResource#getDependentScheduler() + * @see #getSchedulableResource() + * @generated + */ + EReference getSchedulableResource_DependentScheduler(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SchedulableResource#getHost Host}'. + * + * + * @return the meta object for the reference 'Host'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SchedulableResource#getHost() + * @see #getSchedulableResource() + * @generated + */ + EReference getSchedulableResource_Host(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SecondaryScheduler Secondary Scheduler}'. + * + * + * @return the meta object for class 'Secondary Scheduler'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SecondaryScheduler + * @generated + */ + EClass getSecondaryScheduler(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SecondaryScheduler#getVirtualProcessingUnits Virtual Processing Units}'. + * + * + * @return the meta object for the reference list 'Virtual Processing Units'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SecondaryScheduler#getVirtualProcessingUnits() + * @see #getSecondaryScheduler() + * @generated + */ + EReference getSecondaryScheduler_VirtualProcessingUnits(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationMedia Communication Media}'. + * + * + * @return the meta object for class 'Communication Media'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationMedia + * @generated + */ + EClass getCommunicationMedia(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationMedia#getElementSize Element Size}'. + * + * + * @return the meta object for the attribute 'Element Size'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationMedia#getElementSize() + * @see #getCommunicationMedia() + * @generated + */ + EAttribute getCommunicationMedia_ElementSize(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationMedia#getBase_Connector Base Connector}'. + * + * + * @return the meta object for the reference 'Base Connector'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationMedia#getBase_Connector() + * @see #getCommunicationMedia() + * @generated + */ + EReference getCommunicationMedia_Base_Connector(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationMedia#getTransmMode Transm Mode}'. + * + * + * @return the meta object for the attribute 'Transm Mode'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationMedia#getTransmMode() + * @see #getCommunicationMedia() + * @generated + */ + EAttribute getCommunicationMedia_TransmMode(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationMedia#getBlockT Block T}'. + * + * + * @return the meta object for the attribute list 'Block T'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationMedia#getBlockT() + * @see #getCommunicationMedia() + * @generated + */ + EAttribute getCommunicationMedia_BlockT(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationMedia#getPacketT Packet T}'. + * + * + * @return the meta object for the attribute list 'Packet T'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationMedia#getPacketT() + * @see #getCommunicationMedia() + * @generated + */ + EAttribute getCommunicationMedia_PacketT(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationMedia#getCapacity Capacity}'. + * + * + * @return the meta object for the attribute list 'Capacity'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationMedia#getCapacity() + * @see #getCommunicationMedia() + * @generated + */ + EAttribute getCommunicationMedia_Capacity(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.DeviceResource Device Resource}'. + * + * + * @return the meta object for class 'Device Resource'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.DeviceResource + * @generated + */ + EClass getDeviceResource(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.TimingResource Timing Resource}'. + * + * + * @return the meta object for class 'Timing Resource'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.TimingResource + * @generated + */ + EClass getTimingResource(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ClockResource Clock Resource}'. + * + * + * @return the meta object for class 'Clock Resource'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ClockResource + * @generated + */ + EClass getClockResource(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.TimerResource Timer Resource}'. + * + * + * @return the meta object for class 'Timer Resource'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.TimerResource + * @generated + */ + EClass getTimerResource(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.TimerResource#getDuration Duration}'. + * + * + * @return the meta object for the attribute 'Duration'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.TimerResource#getDuration() + * @see #getTimerResource() + * @generated + */ + EAttribute getTimerResource_Duration(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.TimerResource#isIsPeriodic Is Periodic}'. + * + * + * @return the meta object for the attribute 'Is Periodic'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.TimerResource#isIsPeriodic() + * @see #getTimerResource() + * @generated + */ + EAttribute getTimerResource_IsPeriodic(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GrService Gr Service}'. + * + * + * @return the meta object for class 'Gr Service'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GrService + * @generated + */ + EClass getGrService(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GrService#getOwner Owner}'. + * + * + * @return the meta object for the reference 'Owner'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GrService#getOwner() + * @see #getGrService() + * @generated + */ + EReference getGrService_Owner(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GrService#getBase_ExecutionSpecification Base Execution Specification}'. + * + * + * @return the meta object for the reference 'Base Execution Specification'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GrService#getBase_ExecutionSpecification() + * @see #getGrService() + * @generated + */ + EReference getGrService_Base_ExecutionSpecification(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GrService#getBase_BehavioralFeature Base Behavioral Feature}'. + * + * + * @return the meta object for the reference 'Base Behavioral Feature'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GrService#getBase_BehavioralFeature() + * @see #getGrService() + * @generated + */ + EReference getGrService_Base_BehavioralFeature(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GrService#getBase_Behavior Base Behavior}'. + * + * + * @return the meta object for the reference 'Base Behavior'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GrService#getBase_Behavior() + * @see #getGrService() + * @generated + */ + EReference getGrService_Base_Behavior(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GrService#getBase_Collaboration Base Collaboration}'. + * + * + * @return the meta object for the reference 'Base Collaboration'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GrService#getBase_Collaboration() + * @see #getGrService() + * @generated + */ + EReference getGrService_Base_Collaboration(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GrService#getBase_CollaborationUse Base Collaboration Use}'. + * + * + * @return the meta object for the reference 'Base Collaboration Use'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GrService#getBase_CollaborationUse() + * @see #getGrService() + * @generated + */ + EReference getGrService_Base_CollaborationUse(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Release Release}'. + * + * + * @return the meta object for class 'Release'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Release + * @generated + */ + EClass getRelease(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Acquire Acquire}'. + * + * + * @return the meta object for class 'Acquire'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Acquire + * @generated + */ + EClass getAcquire(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Acquire#isIsBlocking Is Blocking}'. + * + * + * @return the meta object for the attribute 'Is Blocking'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Acquire#isIsBlocking() + * @see #getAcquire() + * @generated + */ + EAttribute getAcquire_IsBlocking(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ResourceUsage Resource Usage}'. + * + * + * @return the meta object for class 'Resource Usage'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ResourceUsage + * @generated + */ + EClass getResourceUsage(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ResourceUsage#getExecTime Exec Time}'. + * + * + * @return the meta object for the attribute list 'Exec Time'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ResourceUsage#getExecTime() + * @see #getResourceUsage() + * @generated + */ + EAttribute getResourceUsage_ExecTime(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ResourceUsage#getAllocatedMemory Allocated Memory}'. + * + * + * @return the meta object for the attribute list 'Allocated Memory'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ResourceUsage#getAllocatedMemory() + * @see #getResourceUsage() + * @generated + */ + EAttribute getResourceUsage_AllocatedMemory(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ResourceUsage#getUsedMemory Used Memory}'. + * + * + * @return the meta object for the attribute list 'Used Memory'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ResourceUsage#getUsedMemory() + * @see #getResourceUsage() + * @generated + */ + EAttribute getResourceUsage_UsedMemory(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ResourceUsage#getPowerPeak Power Peak}'. + * + * + * @return the meta object for the attribute list 'Power Peak'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ResourceUsage#getPowerPeak() + * @see #getResourceUsage() + * @generated + */ + EAttribute getResourceUsage_PowerPeak(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ResourceUsage#getEnergy Energy}'. + * + * + * @return the meta object for the attribute list 'Energy'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ResourceUsage#getEnergy() + * @see #getResourceUsage() + * @generated + */ + EAttribute getResourceUsage_Energy(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ResourceUsage#getBase_NamedElement Base Named Element}'. + * + * + * @return the meta object for the reference 'Base Named Element'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ResourceUsage#getBase_NamedElement() + * @see #getResourceUsage() + * @generated + */ + EReference getResourceUsage_Base_NamedElement(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ResourceUsage#getSubUsage Sub Usage}'. + * + * + * @return the meta object for the reference list 'Sub Usage'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ResourceUsage#getSubUsage() + * @see #getResourceUsage() + * @generated + */ + EReference getResourceUsage_SubUsage(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ResourceUsage#getUsedResources Used Resources}'. + * + * + * @return the meta object for the reference list 'Used Resources'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ResourceUsage#getUsedResources() + * @see #getResourceUsage() + * @generated + */ + EReference getResourceUsage_UsedResources(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ResourceUsage#getMsgSize Msg Size}'. + * + * + * @return the meta object for the attribute list 'Msg Size'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ResourceUsage#getMsgSize() + * @see #getResourceUsage() + * @generated + */ + EAttribute getResourceUsage_MsgSize(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + GRMFactory getGRMFactory(); + + /** + * + * 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.MARTE_Foundations.GRM.impl.ResourceImpl Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GRMPackageImpl#getResource() + * @generated + */ + EClass RESOURCE = eINSTANCE.getResource(); + + /** + * The meta object literal for the 'Res Mult' attribute feature. + * + * + * @generated + */ + EAttribute RESOURCE__RES_MULT = eINSTANCE.getResource_ResMult(); + + /** + * The meta object literal for the 'Is Protected' attribute feature. + * + * + * @generated + */ + EAttribute RESOURCE__IS_PROTECTED = eINSTANCE.getResource_IsProtected(); + + /** + * The meta object literal for the 'Is Active' attribute feature. + * + * + * @generated + */ + EAttribute RESOURCE__IS_ACTIVE = eINSTANCE.getResource_IsActive(); + + /** + * The meta object literal for the 'Base Property' reference feature. + * + * + * @generated + */ + EReference RESOURCE__BASE_PROPERTY = eINSTANCE.getResource_Base_Property(); + + /** + * The meta object literal for the 'Base Instance Specification' reference feature. + * + * + * @generated + */ + EReference RESOURCE__BASE_INSTANCE_SPECIFICATION = eINSTANCE.getResource_Base_InstanceSpecification(); + + /** + * The meta object literal for the 'Base Classifier' reference feature. + * + * + * @generated + */ + EReference RESOURCE__BASE_CLASSIFIER = eINSTANCE.getResource_Base_Classifier(); + + /** + * The meta object literal for the 'Base Lifeline' reference feature. + * + * + * @generated + */ + EReference RESOURCE__BASE_LIFELINE = eINSTANCE.getResource_Base_Lifeline(); + + /** + * The meta object literal for the 'Base Connectable Element' reference feature. + * + * + * @generated + */ + EReference RESOURCE__BASE_CONNECTABLE_ELEMENT = eINSTANCE.getResource_Base_ConnectableElement(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.StorageResourceImpl Storage Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.StorageResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GRMPackageImpl#getStorageResource() + * @generated + */ + EClass STORAGE_RESOURCE = eINSTANCE.getStorageResource(); + + /** + * The meta object literal for the 'Element Size' attribute feature. + * + * + * @generated + */ + EAttribute STORAGE_RESOURCE__ELEMENT_SIZE = eINSTANCE.getStorageResource_ElementSize(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.CommunicationEndPointImpl Communication End Point}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.CommunicationEndPointImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GRMPackageImpl#getCommunicationEndPoint() + * @generated + */ + EClass COMMUNICATION_END_POINT = eINSTANCE.getCommunicationEndPoint(); + + /** + * The meta object literal for the 'Packet Size' attribute feature. + * + * + * @generated + */ + EAttribute COMMUNICATION_END_POINT__PACKET_SIZE = eINSTANCE.getCommunicationEndPoint_PacketSize(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.SynchronizationResourceImpl Synchronization Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.SynchronizationResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GRMPackageImpl#getSynchronizationResource() + * @generated + */ + EClass SYNCHRONIZATION_RESOURCE = eINSTANCE.getSynchronizationResource(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ConcurrencyResourceImpl Concurrency Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ConcurrencyResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GRMPackageImpl#getConcurrencyResource() + * @generated + */ + EClass CONCURRENCY_RESOURCE = eINSTANCE.getConcurrencyResource(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.SchedulerImpl Scheduler}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.SchedulerImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GRMPackageImpl#getScheduler() + * @generated + */ + EClass SCHEDULER = eINSTANCE.getScheduler(); + + /** + * The meta object literal for the 'Is Preemptible' attribute feature. + * + * + * @generated + */ + EAttribute SCHEDULER__IS_PREEMPTIBLE = eINSTANCE.getScheduler_IsPreemptible(); + + /** + * The meta object literal for the 'Sched Policy' attribute feature. + * + * + * @generated + */ + EAttribute SCHEDULER__SCHED_POLICY = eINSTANCE.getScheduler_SchedPolicy(); + + /** + * The meta object literal for the 'Other Sched Policy' attribute feature. + * + * + * @generated + */ + EAttribute SCHEDULER__OTHER_SCHED_POLICY = eINSTANCE.getScheduler_OtherSchedPolicy(); + + /** + * The meta object literal for the 'Schedule' attribute feature. + * + * + * @generated + */ + EAttribute SCHEDULER__SCHEDULE = eINSTANCE.getScheduler_Schedule(); + + /** + * The meta object literal for the 'Processing Units' reference list feature. + * + * + * @generated + */ + EReference SCHEDULER__PROCESSING_UNITS = eINSTANCE.getScheduler_ProcessingUnits(); + + /** + * The meta object literal for the 'Host' reference feature. + * + * + * @generated + */ + EReference SCHEDULER__HOST = eINSTANCE.getScheduler_Host(); + + /** + * The meta object literal for the 'Protected Shared Resources' reference list feature. + * + * + * @generated + */ + EReference SCHEDULER__PROTECTED_SHARED_RESOURCES = eINSTANCE.getScheduler_ProtectedSharedResources(); + + /** + * The meta object literal for the 'Schedulable Resources' reference list feature. + * + * + * @generated + */ + EReference SCHEDULER__SCHEDULABLE_RESOURCES = eINSTANCE.getScheduler_SchedulableResources(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ProcessingResourceImpl Processing Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ProcessingResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GRMPackageImpl#getProcessingResource() + * @generated + */ + EClass PROCESSING_RESOURCE = eINSTANCE.getProcessingResource(); + + /** + * The meta object literal for the 'Speed Factor' attribute feature. + * + * + * @generated + */ + EAttribute PROCESSING_RESOURCE__SPEED_FACTOR = eINSTANCE.getProcessingResource_SpeedFactor(); + + /** + * The meta object literal for the 'Main Scheduler' reference feature. + * + * + * @generated + */ + EReference PROCESSING_RESOURCE__MAIN_SCHEDULER = eINSTANCE.getProcessingResource_MainScheduler(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ComputingResourceImpl Computing Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ComputingResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GRMPackageImpl#getComputingResource() + * @generated + */ + EClass COMPUTING_RESOURCE = eINSTANCE.getComputingResource(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.MutualExclusionResourceImpl Mutual Exclusion Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.MutualExclusionResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GRMPackageImpl#getMutualExclusionResource() + * @generated + */ + EClass MUTUAL_EXCLUSION_RESOURCE = eINSTANCE.getMutualExclusionResource(); + + /** + * The meta object literal for the 'Protect Kind' attribute feature. + * + * + * @generated + */ + EAttribute MUTUAL_EXCLUSION_RESOURCE__PROTECT_KIND = eINSTANCE.getMutualExclusionResource_ProtectKind(); + + /** + * The meta object literal for the 'Ceiling' attribute feature. + * + * + * @generated + */ + EAttribute MUTUAL_EXCLUSION_RESOURCE__CEILING = eINSTANCE.getMutualExclusionResource_Ceiling(); + + /** + * The meta object literal for the 'Other Protect Protocol' attribute feature. + * + * + * @generated + */ + EAttribute MUTUAL_EXCLUSION_RESOURCE__OTHER_PROTECT_PROTOCOL = eINSTANCE.getMutualExclusionResource_OtherProtectProtocol(); + + /** + * The meta object literal for the 'Scheduler' reference feature. + * + * + * @generated + */ + EReference MUTUAL_EXCLUSION_RESOURCE__SCHEDULER = eINSTANCE.getMutualExclusionResource_Scheduler(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.SchedulableResourceImpl Schedulable Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.SchedulableResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GRMPackageImpl#getSchedulableResource() + * @generated + */ + EClass SCHEDULABLE_RESOURCE = eINSTANCE.getSchedulableResource(); + + /** + * The meta object literal for the 'Sched Params' attribute list feature. + * + * + * @generated + */ + EAttribute SCHEDULABLE_RESOURCE__SCHED_PARAMS = eINSTANCE.getSchedulableResource_SchedParams(); + + /** + * The meta object literal for the 'Dependent Scheduler' reference feature. + * + * + * @generated + */ + EReference SCHEDULABLE_RESOURCE__DEPENDENT_SCHEDULER = eINSTANCE.getSchedulableResource_DependentScheduler(); + + /** + * The meta object literal for the 'Host' reference feature. + * + * + * @generated + */ + EReference SCHEDULABLE_RESOURCE__HOST = eINSTANCE.getSchedulableResource_Host(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.SecondarySchedulerImpl Secondary Scheduler}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.SecondarySchedulerImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GRMPackageImpl#getSecondaryScheduler() + * @generated + */ + EClass SECONDARY_SCHEDULER = eINSTANCE.getSecondaryScheduler(); + + /** + * The meta object literal for the 'Virtual Processing Units' reference list feature. + * + * + * @generated + */ + EReference SECONDARY_SCHEDULER__VIRTUAL_PROCESSING_UNITS = eINSTANCE.getSecondaryScheduler_VirtualProcessingUnits(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.CommunicationMediaImpl Communication Media}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.CommunicationMediaImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GRMPackageImpl#getCommunicationMedia() + * @generated + */ + EClass COMMUNICATION_MEDIA = eINSTANCE.getCommunicationMedia(); + + /** + * The meta object literal for the 'Element Size' attribute feature. + * + * + * @generated + */ + EAttribute COMMUNICATION_MEDIA__ELEMENT_SIZE = eINSTANCE.getCommunicationMedia_ElementSize(); + + /** + * The meta object literal for the 'Base Connector' reference feature. + * + * + * @generated + */ + EReference COMMUNICATION_MEDIA__BASE_CONNECTOR = eINSTANCE.getCommunicationMedia_Base_Connector(); + + /** + * The meta object literal for the 'Transm Mode' attribute feature. + * + * + * @generated + */ + EAttribute COMMUNICATION_MEDIA__TRANSM_MODE = eINSTANCE.getCommunicationMedia_TransmMode(); + + /** + * The meta object literal for the 'Block T' attribute list feature. + * + * + * @generated + */ + EAttribute COMMUNICATION_MEDIA__BLOCK_T = eINSTANCE.getCommunicationMedia_BlockT(); + + /** + * The meta object literal for the 'Packet T' attribute list feature. + * + * + * @generated + */ + EAttribute COMMUNICATION_MEDIA__PACKET_T = eINSTANCE.getCommunicationMedia_PacketT(); + + /** + * The meta object literal for the 'Capacity' attribute list feature. + * + * + * @generated + */ + EAttribute COMMUNICATION_MEDIA__CAPACITY = eINSTANCE.getCommunicationMedia_Capacity(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.DeviceResourceImpl Device Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.DeviceResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GRMPackageImpl#getDeviceResource() + * @generated + */ + EClass DEVICE_RESOURCE = eINSTANCE.getDeviceResource(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.TimingResourceImpl Timing Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.TimingResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GRMPackageImpl#getTimingResource() + * @generated + */ + EClass TIMING_RESOURCE = eINSTANCE.getTimingResource(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ClockResourceImpl Clock Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ClockResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GRMPackageImpl#getClockResource() + * @generated + */ + EClass CLOCK_RESOURCE = eINSTANCE.getClockResource(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.TimerResourceImpl Timer Resource}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.TimerResourceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GRMPackageImpl#getTimerResource() + * @generated + */ + EClass TIMER_RESOURCE = eINSTANCE.getTimerResource(); + + /** + * The meta object literal for the 'Duration' attribute feature. + * + * + * @generated + */ + EAttribute TIMER_RESOURCE__DURATION = eINSTANCE.getTimerResource_Duration(); + + /** + * The meta object literal for the 'Is Periodic' attribute feature. + * + * + * @generated + */ + EAttribute TIMER_RESOURCE__IS_PERIODIC = eINSTANCE.getTimerResource_IsPeriodic(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GrServiceImpl Gr Service}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GrServiceImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GRMPackageImpl#getGrService() + * @generated + */ + EClass GR_SERVICE = eINSTANCE.getGrService(); + + /** + * The meta object literal for the 'Owner' reference feature. + * + * + * @generated + */ + EReference GR_SERVICE__OWNER = eINSTANCE.getGrService_Owner(); + + /** + * The meta object literal for the 'Base Execution Specification' reference feature. + * + * + * @generated + */ + EReference GR_SERVICE__BASE_EXECUTION_SPECIFICATION = eINSTANCE.getGrService_Base_ExecutionSpecification(); + + /** + * The meta object literal for the 'Base Behavioral Feature' reference feature. + * + * + * @generated + */ + EReference GR_SERVICE__BASE_BEHAVIORAL_FEATURE = eINSTANCE.getGrService_Base_BehavioralFeature(); + + /** + * The meta object literal for the 'Base Behavior' reference feature. + * + * + * @generated + */ + EReference GR_SERVICE__BASE_BEHAVIOR = eINSTANCE.getGrService_Base_Behavior(); + + /** + * The meta object literal for the 'Base Collaboration' reference feature. + * + * + * @generated + */ + EReference GR_SERVICE__BASE_COLLABORATION = eINSTANCE.getGrService_Base_Collaboration(); + + /** + * The meta object literal for the 'Base Collaboration Use' reference feature. + * + * + * @generated + */ + EReference GR_SERVICE__BASE_COLLABORATION_USE = eINSTANCE.getGrService_Base_CollaborationUse(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ReleaseImpl Release}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ReleaseImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GRMPackageImpl#getRelease() + * @generated + */ + EClass RELEASE = eINSTANCE.getRelease(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.AcquireImpl Acquire}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.AcquireImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GRMPackageImpl#getAcquire() + * @generated + */ + EClass ACQUIRE = eINSTANCE.getAcquire(); + + /** + * The meta object literal for the 'Is Blocking' attribute feature. + * + * + * @generated + */ + EAttribute ACQUIRE__IS_BLOCKING = eINSTANCE.getAcquire_IsBlocking(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ResourceUsageImpl Resource Usage}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ResourceUsageImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GRMPackageImpl#getResourceUsage() + * @generated + */ + EClass RESOURCE_USAGE = eINSTANCE.getResourceUsage(); + + /** + * The meta object literal for the 'Exec Time' attribute list feature. + * + * + * @generated + */ + EAttribute RESOURCE_USAGE__EXEC_TIME = eINSTANCE.getResourceUsage_ExecTime(); + + /** + * The meta object literal for the 'Allocated Memory' attribute list feature. + * + * + * @generated + */ + EAttribute RESOURCE_USAGE__ALLOCATED_MEMORY = eINSTANCE.getResourceUsage_AllocatedMemory(); + + /** + * The meta object literal for the 'Used Memory' attribute list feature. + * + * + * @generated + */ + EAttribute RESOURCE_USAGE__USED_MEMORY = eINSTANCE.getResourceUsage_UsedMemory(); + + /** + * The meta object literal for the 'Power Peak' attribute list feature. + * + * + * @generated + */ + EAttribute RESOURCE_USAGE__POWER_PEAK = eINSTANCE.getResourceUsage_PowerPeak(); + + /** + * The meta object literal for the 'Energy' attribute list feature. + * + * + * @generated + */ + EAttribute RESOURCE_USAGE__ENERGY = eINSTANCE.getResourceUsage_Energy(); + + /** + * The meta object literal for the 'Base Named Element' reference feature. + * + * + * @generated + */ + EReference RESOURCE_USAGE__BASE_NAMED_ELEMENT = eINSTANCE.getResourceUsage_Base_NamedElement(); + + /** + * The meta object literal for the 'Sub Usage' reference list feature. + * + * + * @generated + */ + EReference RESOURCE_USAGE__SUB_USAGE = eINSTANCE.getResourceUsage_SubUsage(); + + /** + * The meta object literal for the 'Used Resources' reference list feature. + * + * + * @generated + */ + EReference RESOURCE_USAGE__USED_RESOURCES = eINSTANCE.getResourceUsage_UsedResources(); + + /** + * The meta object literal for the 'Msg Size' attribute list feature. + * + * + * @generated + */ + EAttribute RESOURCE_USAGE__MSG_SIZE = eINSTANCE.getResourceUsage_MsgSize(); + + } + +} //GRMPackage diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/GrService.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/GrService.java new file mode 100644 index 00000000000..878de210111 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/GrService.java @@ -0,0 +1,202 @@ +/***************************************************************************** + * 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.MARTE_Foundations.GRM; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.uml2.uml.Behavior; +import org.eclipse.uml2.uml.BehavioralFeature; +import org.eclipse.uml2.uml.Collaboration; +import org.eclipse.uml2.uml.CollaborationUse; +import org.eclipse.uml2.uml.ExecutionSpecification; + +/** + * + * A representation of the model object 'Gr Service'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GrService#getOwner Owner}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GrService#getBase_ExecutionSpecification Base Execution Specification}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GrService#getBase_BehavioralFeature Base Behavioral Feature}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GrService#getBase_Behavior Base Behavior}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GrService#getBase_Collaboration Base Collaboration}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GrService#getBase_CollaborationUse Base Collaboration Use}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getGrService() + * @model + * @generated + */ +public interface GrService extends EObject { + /** + * Returns the value of the 'Owner' reference. + * + *

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

+ * + * @return the value of the 'Owner' reference. + * @see #setOwner(Resource) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getGrService_Owner() + * @model ordered="false" + * @generated + */ + Resource getOwner(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GrService#getOwner Owner}' reference. + * + * + * @param value the new value of the 'Owner' reference. + * @see #getOwner() + * @generated + */ + void setOwner(Resource value); + + /** + * Returns the value of the 'Base Execution Specification' reference. + * + *

+ * If the meaning of the 'Base Execution Specification' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Execution Specification' reference. + * @see #setBase_ExecutionSpecification(ExecutionSpecification) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getGrService_Base_ExecutionSpecification() + * @model required="true" ordered="false" + * @generated + */ + ExecutionSpecification getBase_ExecutionSpecification(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GrService#getBase_ExecutionSpecification Base Execution Specification}' reference. + * + * + * @param value the new value of the 'Base Execution Specification' reference. + * @see #getBase_ExecutionSpecification() + * @generated + */ + void setBase_ExecutionSpecification(ExecutionSpecification value); + + /** + * Returns the value of the 'Base Behavioral Feature' reference. + * + *

+ * If the meaning of the 'Base Behavioral Feature' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Behavioral Feature' reference. + * @see #setBase_BehavioralFeature(BehavioralFeature) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getGrService_Base_BehavioralFeature() + * @model required="true" ordered="false" + * @generated + */ + BehavioralFeature getBase_BehavioralFeature(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GrService#getBase_BehavioralFeature Base Behavioral Feature}' reference. + * + * + * @param value the new value of the 'Base Behavioral Feature' reference. + * @see #getBase_BehavioralFeature() + * @generated + */ + void setBase_BehavioralFeature(BehavioralFeature value); + + /** + * Returns the value of the 'Base Behavior' reference. + * + *

+ * If the meaning of the 'Base Behavior' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Behavior' reference. + * @see #setBase_Behavior(Behavior) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getGrService_Base_Behavior() + * @model required="true" ordered="false" + * @generated + */ + Behavior getBase_Behavior(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GrService#getBase_Behavior Base Behavior}' reference. + * + * + * @param value the new value of the 'Base Behavior' reference. + * @see #getBase_Behavior() + * @generated + */ + void setBase_Behavior(Behavior value); + + /** + * Returns the value of the 'Base Collaboration' reference. + * + *

+ * If the meaning of the 'Base Collaboration' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Collaboration' reference. + * @see #setBase_Collaboration(Collaboration) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getGrService_Base_Collaboration() + * @model required="true" ordered="false" + * @generated + */ + Collaboration getBase_Collaboration(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GrService#getBase_Collaboration Base Collaboration}' reference. + * + * + * @param value the new value of the 'Base Collaboration' reference. + * @see #getBase_Collaboration() + * @generated + */ + void setBase_Collaboration(Collaboration value); + + /** + * Returns the value of the 'Base Collaboration Use' reference. + * + *

+ * If the meaning of the 'Base Collaboration Use' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Collaboration Use' reference. + * @see #setBase_CollaborationUse(CollaborationUse) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getGrService_Base_CollaborationUse() + * @model required="true" ordered="false" + * @generated + */ + CollaborationUse getBase_CollaborationUse(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GrService#getBase_CollaborationUse Base Collaboration Use}' reference. + * + * + * @param value the new value of the 'Base Collaboration Use' reference. + * @see #getBase_CollaborationUse() + * @generated + */ + void setBase_CollaborationUse(CollaborationUse value); + +} // GrService diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/MutualExclusionResource.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/MutualExclusionResource.java new file mode 100644 index 00000000000..f8e15ae36be --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/MutualExclusionResource.java @@ -0,0 +1,148 @@ +/***************************************************************************** + * 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.MARTE_Foundations.GRM; + +import org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.ProtectProtocolKind; + +/** + * + * A representation of the model object 'Mutual Exclusion Resource'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.MutualExclusionResource#getProtectKind Protect Kind}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.MutualExclusionResource#getCeiling Ceiling}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.MutualExclusionResource#getOtherProtectProtocol Other Protect Protocol}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.MutualExclusionResource#getScheduler Scheduler}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getMutualExclusionResource() + * @model + * @generated + */ +public interface MutualExclusionResource extends Resource { + /** + * Returns the value of the 'Protect Kind' attribute. + * The default value is "PriorityInheritance". + * The literals are from the enumeration {@link org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.ProtectProtocolKind}. + * + *

+ * If the meaning of the 'Protect Kind' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Protect Kind' attribute. + * @see org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.ProtectProtocolKind + * @see #setProtectKind(ProtectProtocolKind) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getMutualExclusionResource_ProtectKind() + * @model default="PriorityInheritance" unique="false" ordered="false" + * @generated + */ + ProtectProtocolKind getProtectKind(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.MutualExclusionResource#getProtectKind Protect Kind}' attribute. + * + * + * @param value the new value of the 'Protect Kind' attribute. + * @see org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.ProtectProtocolKind + * @see #getProtectKind() + * @generated + */ + void setProtectKind(ProtectProtocolKind value); + + /** + * Returns the value of the 'Ceiling' attribute. + * + *

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

+ * + * @return the value of the 'Ceiling' attribute. + * @see #setCeiling(String) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getMutualExclusionResource_Ceiling() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Integer" ordered="false" + * @generated + */ + String getCeiling(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.MutualExclusionResource#getCeiling Ceiling}' attribute. + * + * + * @param value the new value of the 'Ceiling' attribute. + * @see #getCeiling() + * @generated + */ + void setCeiling(String value); + + /** + * Returns the value of the 'Other Protect Protocol' attribute. + * + *

+ * If the meaning of the 'Other Protect Protocol' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Other Protect Protocol' attribute. + * @see #setOtherProtectProtocol(String) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getMutualExclusionResource_OtherProtectProtocol() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.String" ordered="false" + * @generated + */ + String getOtherProtectProtocol(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.MutualExclusionResource#getOtherProtectProtocol Other Protect Protocol}' attribute. + * + * + * @param value the new value of the 'Other Protect Protocol' attribute. + * @see #getOtherProtectProtocol() + * @generated + */ + void setOtherProtectProtocol(String value); + + /** + * Returns the value of the 'Scheduler' reference. + * It is bidirectional and its opposite is '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler#getProtectedSharedResources Protected Shared Resources}'. + * + *

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

+ * + * @return the value of the 'Scheduler' reference. + * @see #setScheduler(Scheduler) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getMutualExclusionResource_Scheduler() + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler#getProtectedSharedResources + * @model opposite="protectedSharedResources" ordered="false" + * @generated + */ + Scheduler getScheduler(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.MutualExclusionResource#getScheduler Scheduler}' reference. + * + * + * @param value the new value of the 'Scheduler' reference. + * @see #getScheduler() + * @generated + */ + void setScheduler(Scheduler value); + +} // MutualExclusionResource diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/ProcessingResource.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/ProcessingResource.java new file mode 100644 index 00000000000..eda10f805e0 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/ProcessingResource.java @@ -0,0 +1,88 @@ +/***************************************************************************** + * 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.MARTE_Foundations.GRM; + + +/** + * + * A representation of the model object 'Processing Resource'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ProcessingResource#getSpeedFactor Speed Factor}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ProcessingResource#getMainScheduler Main Scheduler}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getProcessingResource() + * @model + * @generated + */ +public interface ProcessingResource extends Resource { + /** + * Returns the value of the 'Speed Factor' attribute. + * The default value is "1.0". + * + *

+ * If the meaning of the 'Speed Factor' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Speed Factor' attribute. + * @see #setSpeedFactor(String) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getProcessingResource_SpeedFactor() + * @model default="1.0" unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Real" ordered="false" + * @generated + */ + String getSpeedFactor(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ProcessingResource#getSpeedFactor Speed Factor}' attribute. + * + * + * @param value the new value of the 'Speed Factor' attribute. + * @see #getSpeedFactor() + * @generated + */ + void setSpeedFactor(String value); + + /** + * Returns the value of the 'Main Scheduler' reference. + * + *

+ * If the meaning of the 'Main Scheduler' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Main Scheduler' reference. + * @see #setMainScheduler(Scheduler) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getProcessingResource_MainScheduler() + * @model ordered="false" + * @generated + */ + Scheduler getMainScheduler(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ProcessingResource#getMainScheduler Main Scheduler}' reference. + * + * + * @param value the new value of the 'Main Scheduler' reference. + * @see #getMainScheduler() + * @generated + */ + void setMainScheduler(Scheduler value); + +} // ProcessingResource diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/Release.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/Release.java new file mode 100644 index 00000000000..57e1a75e183 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/Release.java @@ -0,0 +1,28 @@ +/***************************************************************************** + * 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.MARTE_Foundations.GRM; + + +/** + * + * A representation of the model object 'Release'. + * + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getRelease() + * @model + * @generated + */ +public interface Release extends GrService { +} // Release diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/Resource.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/Resource.java new file mode 100644 index 00000000000..a41aeb76583 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/Resource.java @@ -0,0 +1,257 @@ +/***************************************************************************** + * 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.MARTE_Foundations.GRM; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.uml2.uml.Classifier; +import org.eclipse.uml2.uml.ConnectableElement; +import org.eclipse.uml2.uml.InstanceSpecification; +import org.eclipse.uml2.uml.Lifeline; +import org.eclipse.uml2.uml.Property; + +/** + * + * A representation of the model object 'Resource'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource#getResMult Res Mult}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource#isIsProtected Is Protected}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource#isIsActive Is Active}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource#getBase_Property Base Property}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource#getBase_InstanceSpecification Base Instance Specification}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource#getBase_Classifier Base Classifier}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource#getBase_Lifeline Base Lifeline}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource#getBase_ConnectableElement Base Connectable Element}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getResource() + * @model + * @generated + */ +public interface Resource extends EObject { + /** + * Returns the value of the 'Res Mult' attribute. + * The default value is "1". + * + *

+ * If the meaning of the 'Res Mult' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Res Mult' attribute. + * @see #setResMult(String) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getResource_ResMult() + * @model default="1" unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Integer" ordered="false" + * @generated + */ + String getResMult(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource#getResMult Res Mult}' attribute. + * + * + * @param value the new value of the 'Res Mult' attribute. + * @see #getResMult() + * @generated + */ + void setResMult(String value); + + /** + * Returns the value of the 'Is Protected' attribute. + * + *

+ * If the meaning of the 'Is Protected' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Is Protected' attribute. + * @see #setIsProtected(boolean) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getResource_IsProtected() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.Boolean" ordered="false" + * @generated + */ + boolean isIsProtected(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource#isIsProtected Is Protected}' attribute. + * + * + * @param value the new value of the 'Is Protected' attribute. + * @see #isIsProtected() + * @generated + */ + void setIsProtected(boolean value); + + /** + * Returns the value of the 'Is Active' attribute. + * + *

+ * If the meaning of the 'Is Active' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Is Active' attribute. + * @see #setIsActive(boolean) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getResource_IsActive() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.Boolean" ordered="false" + * @generated + */ + boolean isIsActive(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource#isIsActive Is Active}' attribute. + * + * + * @param value the new value of the 'Is Active' attribute. + * @see #isIsActive() + * @generated + */ + void setIsActive(boolean value); + + /** + * Returns the value of the 'Base Property' reference. + * + *

+ * If the meaning of the 'Base Property' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Property' reference. + * @see #setBase_Property(Property) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getResource_Base_Property() + * @model required="true" ordered="false" + * @generated + */ + Property getBase_Property(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource#getBase_Property Base Property}' reference. + * + * + * @param value the new value of the 'Base Property' reference. + * @see #getBase_Property() + * @generated + */ + void setBase_Property(Property value); + + /** + * Returns the value of the 'Base Instance Specification' reference. + * + *

+ * If the meaning of the 'Base Instance Specification' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Instance Specification' reference. + * @see #setBase_InstanceSpecification(InstanceSpecification) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getResource_Base_InstanceSpecification() + * @model required="true" ordered="false" + * @generated + */ + InstanceSpecification getBase_InstanceSpecification(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource#getBase_InstanceSpecification Base Instance Specification}' reference. + * + * + * @param value the new value of the 'Base Instance Specification' reference. + * @see #getBase_InstanceSpecification() + * @generated + */ + void setBase_InstanceSpecification(InstanceSpecification value); + + /** + * Returns the value of the 'Base Classifier' reference. + * + *

+ * If the meaning of the 'Base Classifier' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Classifier' reference. + * @see #setBase_Classifier(Classifier) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getResource_Base_Classifier() + * @model required="true" ordered="false" + * @generated + */ + Classifier getBase_Classifier(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource#getBase_Classifier Base Classifier}' reference. + * + * + * @param value the new value of the 'Base Classifier' reference. + * @see #getBase_Classifier() + * @generated + */ + void setBase_Classifier(Classifier value); + + /** + * Returns the value of the 'Base Lifeline' reference. + * + *

+ * If the meaning of the 'Base Lifeline' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Lifeline' reference. + * @see #setBase_Lifeline(Lifeline) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getResource_Base_Lifeline() + * @model required="true" ordered="false" + * @generated + */ + Lifeline getBase_Lifeline(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource#getBase_Lifeline Base Lifeline}' reference. + * + * + * @param value the new value of the 'Base Lifeline' reference. + * @see #getBase_Lifeline() + * @generated + */ + void setBase_Lifeline(Lifeline value); + + /** + * Returns the value of the 'Base Connectable Element' reference. + * + *

+ * If the meaning of the 'Base Connectable Element' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Connectable Element' reference. + * @see #setBase_ConnectableElement(ConnectableElement) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getResource_Base_ConnectableElement() + * @model required="true" ordered="false" + * @generated + */ + ConnectableElement getBase_ConnectableElement(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource#getBase_ConnectableElement Base Connectable Element}' reference. + * + * + * @param value the new value of the 'Base Connectable Element' reference. + * @see #getBase_ConnectableElement() + * @generated + */ + void setBase_ConnectableElement(ConnectableElement value); + +} // Resource diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/ResourceUsage.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/ResourceUsage.java new file mode 100644 index 00000000000..f4fbc58feaa --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/ResourceUsage.java @@ -0,0 +1,201 @@ +/***************************************************************************** + * 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.MARTE_Foundations.GRM; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.uml2.uml.NamedElement; + +/** + * + * A representation of the model object 'Resource Usage'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ResourceUsage#getExecTime Exec Time}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ResourceUsage#getAllocatedMemory Allocated Memory}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ResourceUsage#getUsedMemory Used Memory}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ResourceUsage#getPowerPeak Power Peak}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ResourceUsage#getEnergy Energy}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ResourceUsage#getBase_NamedElement Base Named Element}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ResourceUsage#getSubUsage Sub Usage}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ResourceUsage#getUsedResources Used Resources}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ResourceUsage#getMsgSize Msg Size}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getResourceUsage() + * @model + * @generated + */ +public interface ResourceUsage extends EObject { + /** + * Returns the value of the 'Exec Time' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Exec Time' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Exec Time' attribute list. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getResourceUsage_ExecTime() + * @model dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Duration" + * @generated + */ + EList getExecTime(); + + /** + * Returns the value of the 'Allocated Memory' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Allocated Memory' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Allocated Memory' attribute list. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getResourceUsage_AllocatedMemory() + * @model dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_DataSize" + * @generated + */ + EList getAllocatedMemory(); + + /** + * Returns the value of the 'Used Memory' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Used Memory' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Used Memory' attribute list. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getResourceUsage_UsedMemory() + * @model dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_DataSize" + * @generated + */ + EList getUsedMemory(); + + /** + * Returns the value of the 'Power Peak' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Power Peak' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Power Peak' attribute list. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getResourceUsage_PowerPeak() + * @model dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Power" + * @generated + */ + EList getPowerPeak(); + + /** + * Returns the value of the 'Energy' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Energy' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Energy' attribute list. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getResourceUsage_Energy() + * @model dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Energy" + * @generated + */ + EList getEnergy(); + + /** + * Returns the value of the 'Base Named Element' reference. + * + *

+ * If the meaning of the 'Base Named Element' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Named Element' reference. + * @see #setBase_NamedElement(NamedElement) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getResourceUsage_Base_NamedElement() + * @model required="true" ordered="false" + * @generated + */ + NamedElement getBase_NamedElement(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ResourceUsage#getBase_NamedElement Base Named Element}' reference. + * + * + * @param value the new value of the 'Base Named Element' reference. + * @see #getBase_NamedElement() + * @generated + */ + void setBase_NamedElement(NamedElement value); + + /** + * Returns the value of the 'Sub Usage' reference list. + * The list contents are of type {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ResourceUsage}. + * + *

+ * If the meaning of the 'Sub Usage' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Sub Usage' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getResourceUsage_SubUsage() + * @model ordered="false" + * @generated + */ + EList getSubUsage(); + + /** + * Returns the value of the 'Used Resources' reference list. + * The list contents are of type {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource}. + * + *

+ * If the meaning of the 'Used Resources' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Used Resources' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getResourceUsage_UsedResources() + * @model + * @generated + */ + EList getUsedResources(); + + /** + * Returns the value of the 'Msg Size' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Msg Size' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Msg Size' attribute list. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getResourceUsage_MsgSize() + * @model dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_DataSize" + * @generated + */ + EList getMsgSize(); + +} // ResourceUsage diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/SchedulableResource.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/SchedulableResource.java new file mode 100644 index 00000000000..e6d39227324 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/SchedulableResource.java @@ -0,0 +1,109 @@ +/***************************************************************************** + * 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.MARTE_Foundations.GRM; + +import org.eclipse.emf.common.util.EList; + +/** + * + * A representation of the model object 'Schedulable Resource'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SchedulableResource#getSchedParams Sched Params}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SchedulableResource#getDependentScheduler Dependent Scheduler}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SchedulableResource#getHost Host}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getSchedulableResource() + * @model + * @generated + */ +public interface SchedulableResource extends Resource { + /** + * Returns the value of the 'Sched Params' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Sched Params' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Sched Params' attribute list. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getSchedulableResource_SchedParams() + * @model dataType="org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.SchedParameters" ordered="false" + * @generated + */ + EList getSchedParams(); + + /** + * Returns the value of the 'Dependent Scheduler' reference. + * It is bidirectional and its opposite is '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SecondaryScheduler#getVirtualProcessingUnits Virtual Processing Units}'. + * + *

+ * If the meaning of the 'Dependent Scheduler' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Dependent Scheduler' reference. + * @see #setDependentScheduler(SecondaryScheduler) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getSchedulableResource_DependentScheduler() + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SecondaryScheduler#getVirtualProcessingUnits + * @model opposite="virtualProcessingUnits" ordered="false" + * @generated + */ + SecondaryScheduler getDependentScheduler(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SchedulableResource#getDependentScheduler Dependent Scheduler}' reference. + * + * + * @param value the new value of the 'Dependent Scheduler' reference. + * @see #getDependentScheduler() + * @generated + */ + void setDependentScheduler(SecondaryScheduler value); + + /** + * Returns the value of the 'Host' reference. + * It is bidirectional and its opposite is '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler#getSchedulableResources Schedulable Resources}'. + * + *

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

+ * + * @return the value of the 'Host' reference. + * @see #setHost(Scheduler) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getSchedulableResource_Host() + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler#getSchedulableResources + * @model opposite="schedulableResources" ordered="false" + * @generated + */ + Scheduler getHost(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SchedulableResource#getHost Host}' reference. + * + * + * @param value the new value of the 'Host' reference. + * @see #getHost() + * @generated + */ + void setHost(Scheduler value); + +} // SchedulableResource diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/Scheduler.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/Scheduler.java new file mode 100644 index 00000000000..3a719f15879 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/Scheduler.java @@ -0,0 +1,231 @@ +/***************************************************************************** + * 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.MARTE_Foundations.GRM; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.SchedPolicyKind; + +/** + * + * A representation of the model object 'Scheduler'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler#isIsPreemptible Is Preemptible}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler#getSchedPolicy Sched Policy}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler#getOtherSchedPolicy Other Sched Policy}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler#getSchedule Schedule}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler#getProcessingUnits Processing Units}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler#getHost Host}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler#getProtectedSharedResources Protected Shared Resources}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler#getSchedulableResources Schedulable Resources}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getScheduler() + * @model + * @generated + */ +public interface Scheduler extends Resource { + /** + * Returns the value of the 'Is Preemptible' attribute. + * The default value is "true". + * + *

+ * If the meaning of the 'Is Preemptible' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Is Preemptible' attribute. + * @see #setIsPreemptible(boolean) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getScheduler_IsPreemptible() + * @model default="true" unique="false" dataType="org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.Boolean" ordered="false" + * @generated + */ + boolean isIsPreemptible(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler#isIsPreemptible Is Preemptible}' attribute. + * + * + * @param value the new value of the 'Is Preemptible' attribute. + * @see #isIsPreemptible() + * @generated + */ + void setIsPreemptible(boolean value); + + /** + * Returns the value of the 'Sched Policy' attribute. + * The default value is "FixedPriority". + * The literals are from the enumeration {@link org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.SchedPolicyKind}. + * + *

+ * If the meaning of the 'Sched Policy' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Sched Policy' attribute. + * @see org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.SchedPolicyKind + * @see #setSchedPolicy(SchedPolicyKind) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getScheduler_SchedPolicy() + * @model default="FixedPriority" unique="false" ordered="false" + * @generated + */ + SchedPolicyKind getSchedPolicy(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler#getSchedPolicy Sched Policy}' attribute. + * + * + * @param value the new value of the 'Sched Policy' attribute. + * @see org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.SchedPolicyKind + * @see #getSchedPolicy() + * @generated + */ + void setSchedPolicy(SchedPolicyKind value); + + /** + * Returns the value of the 'Other Sched Policy' attribute. + * + *

+ * If the meaning of the 'Other Sched Policy' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Other Sched Policy' attribute. + * @see #setOtherSchedPolicy(String) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getScheduler_OtherSchedPolicy() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.String" ordered="false" + * @generated + */ + String getOtherSchedPolicy(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler#getOtherSchedPolicy Other Sched Policy}' attribute. + * + * + * @param value the new value of the 'Other Sched Policy' attribute. + * @see #getOtherSchedPolicy() + * @generated + */ + void setOtherSchedPolicy(String value); + + /** + * Returns the value of the 'Schedule' attribute. + * + *

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

+ * + * @return the value of the 'Schedule' attribute. + * @see #setSchedule(String) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getScheduler_Schedule() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.ScheduleSpecification" ordered="false" + * @generated + */ + String getSchedule(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler#getSchedule Schedule}' attribute. + * + * + * @param value the new value of the 'Schedule' attribute. + * @see #getSchedule() + * @generated + */ + void setSchedule(String value); + + /** + * Returns the value of the 'Processing Units' reference list. + * The list contents are of type {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ProcessingResource}. + * + *

+ * If the meaning of the 'Processing Units' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Processing Units' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getScheduler_ProcessingUnits() + * @model ordered="false" + * @generated + */ + EList getProcessingUnits(); + + /** + * Returns the value of the 'Host' reference. + * + *

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

+ * + * @return the value of the 'Host' reference. + * @see #setHost(ComputingResource) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getScheduler_Host() + * @model ordered="false" + * @generated + */ + ComputingResource getHost(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler#getHost Host}' reference. + * + * + * @param value the new value of the 'Host' reference. + * @see #getHost() + * @generated + */ + void setHost(ComputingResource value); + + /** + * Returns the value of the 'Protected Shared Resources' reference list. + * The list contents are of type {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.MutualExclusionResource}. + * It is bidirectional and its opposite is '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.MutualExclusionResource#getScheduler Scheduler}'. + * + *

+ * If the meaning of the 'Protected Shared Resources' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Protected Shared Resources' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getScheduler_ProtectedSharedResources() + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.MutualExclusionResource#getScheduler + * @model opposite="scheduler" ordered="false" + * @generated + */ + EList getProtectedSharedResources(); + + /** + * Returns the value of the 'Schedulable Resources' reference list. + * The list contents are of type {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SchedulableResource}. + * It is bidirectional and its opposite is '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SchedulableResource#getHost Host}'. + * + *

+ * If the meaning of the 'Schedulable Resources' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Schedulable Resources' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getScheduler_SchedulableResources() + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SchedulableResource#getHost + * @model opposite="host" ordered="false" + * @generated + */ + EList getSchedulableResources(); + +} // Scheduler diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/SecondaryScheduler.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/SecondaryScheduler.java new file mode 100644 index 00000000000..a86fb129c32 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/SecondaryScheduler.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.MARTE_Foundations.GRM; + +import org.eclipse.emf.common.util.EList; + +/** + * + * A representation of the model object 'Secondary Scheduler'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SecondaryScheduler#getVirtualProcessingUnits Virtual Processing Units}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getSecondaryScheduler() + * @model + * @generated + */ +public interface SecondaryScheduler extends Scheduler { + /** + * Returns the value of the 'Virtual Processing Units' reference list. + * The list contents are of type {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SchedulableResource}. + * It is bidirectional and its opposite is '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SchedulableResource#getDependentScheduler Dependent Scheduler}'. + * + *

+ * If the meaning of the 'Virtual Processing Units' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Virtual Processing Units' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getSecondaryScheduler_VirtualProcessingUnits() + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SchedulableResource#getDependentScheduler + * @model opposite="dependentScheduler" ordered="false" + * @generated + */ + EList getVirtualProcessingUnits(); + +} // SecondaryScheduler diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/StorageResource.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/StorageResource.java new file mode 100644 index 00000000000..ed7025df271 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/StorageResource.java @@ -0,0 +1,60 @@ +/***************************************************************************** + * 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.MARTE_Foundations.GRM; + + +/** + * + * A representation of the model object 'Storage Resource'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.StorageResource#getElementSize Element Size}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getStorageResource() + * @model + * @generated + */ +public interface StorageResource extends Resource { + /** + * Returns the value of the 'Element Size' attribute. + * + *

+ * If the meaning of the 'Element Size' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Element Size' attribute. + * @see #setElementSize(String) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getStorageResource_ElementSize() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Integer" ordered="false" + * @generated + */ + String getElementSize(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.StorageResource#getElementSize Element Size}' attribute. + * + * + * @param value the new value of the 'Element Size' attribute. + * @see #getElementSize() + * @generated + */ + void setElementSize(String value); + +} // StorageResource diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/SynchronizationResource.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/SynchronizationResource.java new file mode 100644 index 00000000000..82e124cb57e --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/SynchronizationResource.java @@ -0,0 +1,28 @@ +/***************************************************************************** + * 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.MARTE_Foundations.GRM; + + +/** + * + * A representation of the model object 'Synchronization Resource'. + * + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getSynchronizationResource() + * @model + * @generated + */ +public interface SynchronizationResource extends Resource { +} // SynchronizationResource diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/TimerResource.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/TimerResource.java new file mode 100644 index 00000000000..b19584101a7 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/TimerResource.java @@ -0,0 +1,87 @@ +/***************************************************************************** + * 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.MARTE_Foundations.GRM; + + +/** + * + * A representation of the model object 'Timer Resource'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.TimerResource#getDuration Duration}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.TimerResource#isIsPeriodic Is Periodic}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getTimerResource() + * @model + * @generated + */ +public interface TimerResource extends TimingResource { + /** + * Returns the value of the 'Duration' attribute. + * + *

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

+ * + * @return the value of the 'Duration' attribute. + * @see #setDuration(String) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getTimerResource_Duration() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.BasicNFP_Types.NFP_Duration" ordered="false" + * @generated + */ + String getDuration(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.TimerResource#getDuration Duration}' attribute. + * + * + * @param value the new value of the 'Duration' attribute. + * @see #getDuration() + * @generated + */ + void setDuration(String value); + + /** + * Returns the value of the 'Is Periodic' attribute. + * + *

+ * If the meaning of the 'Is Periodic' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Is Periodic' attribute. + * @see #setIsPeriodic(boolean) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getTimerResource_IsPeriodic() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.Boolean" ordered="false" + * @generated + */ + boolean isIsPeriodic(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.TimerResource#isIsPeriodic Is Periodic}' attribute. + * + * + * @param value the new value of the 'Is Periodic' attribute. + * @see #isIsPeriodic() + * @generated + */ + void setIsPeriodic(boolean value); + +} // TimerResource diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/TimingResource.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/TimingResource.java new file mode 100644 index 00000000000..f79cdf0d036 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/TimingResource.java @@ -0,0 +1,28 @@ +/***************************************************************************** + * 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.MARTE_Foundations.GRM; + + +/** + * + * A representation of the model object 'Timing Resource'. + * + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage#getTimingResource() + * @model + * @generated + */ +public interface TimingResource extends Resource { +} // TimingResource diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/AcquireImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/AcquireImpl.java new file mode 100644 index 00000000000..8d0afc6ef83 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/AcquireImpl.java @@ -0,0 +1,173 @@ +/***************************************************************************** + * 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.MARTE_Foundations.GRM.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Acquire; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage; + +/** + * + * An implementation of the model object 'Acquire'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.AcquireImpl#isIsBlocking Is Blocking}
  • + *
+ *

+ * + * @generated + */ +public class AcquireImpl extends GrServiceImpl implements Acquire { + /** + * The default value of the '{@link #isIsBlocking() Is Blocking}' attribute. + * + * + * @see #isIsBlocking() + * @generated + * @ordered + */ + protected static final boolean IS_BLOCKING_EDEFAULT = false; + + /** + * The cached value of the '{@link #isIsBlocking() Is Blocking}' attribute. + * + * + * @see #isIsBlocking() + * @generated + * @ordered + */ + protected boolean isBlocking = IS_BLOCKING_EDEFAULT; + + /** + * + * + * @generated + */ + protected AcquireImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return GRMPackage.Literals.ACQUIRE; + } + + /** + * + * + * @generated + */ + public boolean isIsBlocking() { + return isBlocking; + } + + /** + * + * + * @generated + */ + public void setIsBlocking(boolean newIsBlocking) { + boolean oldIsBlocking = isBlocking; + isBlocking = newIsBlocking; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GRMPackage.ACQUIRE__IS_BLOCKING, oldIsBlocking, isBlocking)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case GRMPackage.ACQUIRE__IS_BLOCKING: + return isIsBlocking(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case GRMPackage.ACQUIRE__IS_BLOCKING: + setIsBlocking((Boolean)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case GRMPackage.ACQUIRE__IS_BLOCKING: + setIsBlocking(IS_BLOCKING_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case GRMPackage.ACQUIRE__IS_BLOCKING: + return isBlocking != IS_BLOCKING_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (isBlocking: "); + result.append(isBlocking); + result.append(')'); + return result.toString(); + } + +} //AcquireImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/ClockResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/ClockResourceImpl.java new file mode 100644 index 00000000000..0f98e408778 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/ClockResourceImpl.java @@ -0,0 +1,50 @@ +/***************************************************************************** + * 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.MARTE_Foundations.GRM.impl; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ClockResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage; + +/** + * + * An implementation of the model object 'Clock Resource'. + * + *

+ *

+ * + * @generated + */ +public class ClockResourceImpl extends TimingResourceImpl implements ClockResource { + /** + * + * + * @generated + */ + protected ClockResourceImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return GRMPackage.Literals.CLOCK_RESOURCE; + } + +} //ClockResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/CommunicationEndPointImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/CommunicationEndPointImpl.java new file mode 100644 index 00000000000..d9852d54622 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/CommunicationEndPointImpl.java @@ -0,0 +1,173 @@ +/***************************************************************************** + * 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.MARTE_Foundations.GRM.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationEndPoint; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage; + +/** + * + * An implementation of the model object 'Communication End Point'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.CommunicationEndPointImpl#getPacketSize Packet Size}
  • + *
+ *

+ * + * @generated + */ +public class CommunicationEndPointImpl extends ResourceImpl implements CommunicationEndPoint { + /** + * The default value of the '{@link #getPacketSize() Packet Size}' attribute. + * + * + * @see #getPacketSize() + * @generated + * @ordered + */ + protected static final String PACKET_SIZE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPacketSize() Packet Size}' attribute. + * + * + * @see #getPacketSize() + * @generated + * @ordered + */ + protected String packetSize = PACKET_SIZE_EDEFAULT; + + /** + * + * + * @generated + */ + protected CommunicationEndPointImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return GRMPackage.Literals.COMMUNICATION_END_POINT; + } + + /** + * + * + * @generated + */ + public String getPacketSize() { + return packetSize; + } + + /** + * + * + * @generated + */ + public void setPacketSize(String newPacketSize) { + String oldPacketSize = packetSize; + packetSize = newPacketSize; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GRMPackage.COMMUNICATION_END_POINT__PACKET_SIZE, oldPacketSize, packetSize)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case GRMPackage.COMMUNICATION_END_POINT__PACKET_SIZE: + return getPacketSize(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case GRMPackage.COMMUNICATION_END_POINT__PACKET_SIZE: + setPacketSize((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case GRMPackage.COMMUNICATION_END_POINT__PACKET_SIZE: + setPacketSize(PACKET_SIZE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case GRMPackage.COMMUNICATION_END_POINT__PACKET_SIZE: + return PACKET_SIZE_EDEFAULT == null ? packetSize != null : !PACKET_SIZE_EDEFAULT.equals(packetSize); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (packetSize: "); + result.append(packetSize); + result.append(')'); + return result.toString(); + } + +} //CommunicationEndPointImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/CommunicationMediaImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/CommunicationMediaImpl.java new file mode 100644 index 00000000000..5e06e28da33 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/CommunicationMediaImpl.java @@ -0,0 +1,407 @@ +/***************************************************************************** + * 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.MARTE_Foundations.GRM.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EDataTypeUniqueEList; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationMedia; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage; + +import org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.TransmModeKind; + +import org.eclipse.uml2.uml.Connector; + +/** + * + * An implementation of the model object 'Communication Media'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.CommunicationMediaImpl#getElementSize Element Size}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.CommunicationMediaImpl#getBase_Connector Base Connector}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.CommunicationMediaImpl#getTransmMode Transm Mode}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.CommunicationMediaImpl#getBlockT Block T}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.CommunicationMediaImpl#getPacketT Packet T}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.CommunicationMediaImpl#getCapacity Capacity}
  • + *
+ *

+ * + * @generated + */ +public class CommunicationMediaImpl extends ProcessingResourceImpl implements CommunicationMedia { + /** + * The default value of the '{@link #getElementSize() Element Size}' attribute. + * + * + * @see #getElementSize() + * @generated + * @ordered + */ + protected static final String ELEMENT_SIZE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getElementSize() Element Size}' attribute. + * + * + * @see #getElementSize() + * @generated + * @ordered + */ + protected String elementSize = ELEMENT_SIZE_EDEFAULT; + + /** + * The cached value of the '{@link #getBase_Connector() Base Connector}' reference. + * + * + * @see #getBase_Connector() + * @generated + * @ordered + */ + protected Connector base_Connector; + + /** + * The default value of the '{@link #getTransmMode() Transm Mode}' attribute. + * + * + * @see #getTransmMode() + * @generated + * @ordered + */ + protected static final TransmModeKind TRANSM_MODE_EDEFAULT = TransmModeKind.SIMPLEX; + + /** + * The cached value of the '{@link #getTransmMode() Transm Mode}' attribute. + * + * + * @see #getTransmMode() + * @generated + * @ordered + */ + protected TransmModeKind transmMode = TRANSM_MODE_EDEFAULT; + + /** + * The cached value of the '{@link #getBlockT() Block T}' attribute list. + * + * + * @see #getBlockT() + * @generated + * @ordered + */ + protected EList blockT; + + /** + * The cached value of the '{@link #getPacketT() Packet T}' attribute list. + * + * + * @see #getPacketT() + * @generated + * @ordered + */ + protected EList packetT; + + /** + * The cached value of the '{@link #getCapacity() Capacity}' attribute list. + * + * + * @see #getCapacity() + * @generated + * @ordered + */ + protected EList capacity; + + /** + * + * + * @generated + */ + protected CommunicationMediaImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return GRMPackage.Literals.COMMUNICATION_MEDIA; + } + + /** + * + * + * @generated + */ + public String getElementSize() { + return elementSize; + } + + /** + * + * + * @generated + */ + public void setElementSize(String newElementSize) { + String oldElementSize = elementSize; + elementSize = newElementSize; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GRMPackage.COMMUNICATION_MEDIA__ELEMENT_SIZE, oldElementSize, elementSize)); + } + + /** + * + * + * @generated + */ + public Connector getBase_Connector() { + if (base_Connector != null && base_Connector.eIsProxy()) { + InternalEObject oldBase_Connector = (InternalEObject)base_Connector; + base_Connector = (Connector)eResolveProxy(oldBase_Connector); + if (base_Connector != oldBase_Connector) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GRMPackage.COMMUNICATION_MEDIA__BASE_CONNECTOR, oldBase_Connector, base_Connector)); + } + } + return base_Connector; + } + + /** + * + * + * @generated + */ + public Connector basicGetBase_Connector() { + return base_Connector; + } + + /** + * + * + * @generated + */ + public void setBase_Connector(Connector newBase_Connector) { + Connector oldBase_Connector = base_Connector; + base_Connector = newBase_Connector; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GRMPackage.COMMUNICATION_MEDIA__BASE_CONNECTOR, oldBase_Connector, base_Connector)); + } + + /** + * + * + * @generated + */ + public TransmModeKind getTransmMode() { + return transmMode; + } + + /** + * + * + * @generated + */ + public void setTransmMode(TransmModeKind newTransmMode) { + TransmModeKind oldTransmMode = transmMode; + transmMode = newTransmMode == null ? TRANSM_MODE_EDEFAULT : newTransmMode; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GRMPackage.COMMUNICATION_MEDIA__TRANSM_MODE, oldTransmMode, transmMode)); + } + + /** + * + * + * @generated + */ + public EList getBlockT() { + if (blockT == null) { + blockT = new EDataTypeUniqueEList(String.class, this, GRMPackage.COMMUNICATION_MEDIA__BLOCK_T); + } + return blockT; + } + + /** + * + * + * @generated + */ + public EList getPacketT() { + if (packetT == null) { + packetT = new EDataTypeUniqueEList(String.class, this, GRMPackage.COMMUNICATION_MEDIA__PACKET_T); + } + return packetT; + } + + /** + * + * + * @generated + */ + public EList getCapacity() { + if (capacity == null) { + capacity = new EDataTypeUniqueEList(String.class, this, GRMPackage.COMMUNICATION_MEDIA__CAPACITY); + } + return capacity; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case GRMPackage.COMMUNICATION_MEDIA__ELEMENT_SIZE: + return getElementSize(); + case GRMPackage.COMMUNICATION_MEDIA__BASE_CONNECTOR: + if (resolve) return getBase_Connector(); + return basicGetBase_Connector(); + case GRMPackage.COMMUNICATION_MEDIA__TRANSM_MODE: + return getTransmMode(); + case GRMPackage.COMMUNICATION_MEDIA__BLOCK_T: + return getBlockT(); + case GRMPackage.COMMUNICATION_MEDIA__PACKET_T: + return getPacketT(); + case GRMPackage.COMMUNICATION_MEDIA__CAPACITY: + return getCapacity(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case GRMPackage.COMMUNICATION_MEDIA__ELEMENT_SIZE: + setElementSize((String)newValue); + return; + case GRMPackage.COMMUNICATION_MEDIA__BASE_CONNECTOR: + setBase_Connector((Connector)newValue); + return; + case GRMPackage.COMMUNICATION_MEDIA__TRANSM_MODE: + setTransmMode((TransmModeKind)newValue); + return; + case GRMPackage.COMMUNICATION_MEDIA__BLOCK_T: + getBlockT().clear(); + getBlockT().addAll((Collection)newValue); + return; + case GRMPackage.COMMUNICATION_MEDIA__PACKET_T: + getPacketT().clear(); + getPacketT().addAll((Collection)newValue); + return; + case GRMPackage.COMMUNICATION_MEDIA__CAPACITY: + getCapacity().clear(); + getCapacity().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case GRMPackage.COMMUNICATION_MEDIA__ELEMENT_SIZE: + setElementSize(ELEMENT_SIZE_EDEFAULT); + return; + case GRMPackage.COMMUNICATION_MEDIA__BASE_CONNECTOR: + setBase_Connector((Connector)null); + return; + case GRMPackage.COMMUNICATION_MEDIA__TRANSM_MODE: + setTransmMode(TRANSM_MODE_EDEFAULT); + return; + case GRMPackage.COMMUNICATION_MEDIA__BLOCK_T: + getBlockT().clear(); + return; + case GRMPackage.COMMUNICATION_MEDIA__PACKET_T: + getPacketT().clear(); + return; + case GRMPackage.COMMUNICATION_MEDIA__CAPACITY: + getCapacity().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case GRMPackage.COMMUNICATION_MEDIA__ELEMENT_SIZE: + return ELEMENT_SIZE_EDEFAULT == null ? elementSize != null : !ELEMENT_SIZE_EDEFAULT.equals(elementSize); + case GRMPackage.COMMUNICATION_MEDIA__BASE_CONNECTOR: + return base_Connector != null; + case GRMPackage.COMMUNICATION_MEDIA__TRANSM_MODE: + return transmMode != TRANSM_MODE_EDEFAULT; + case GRMPackage.COMMUNICATION_MEDIA__BLOCK_T: + return blockT != null && !blockT.isEmpty(); + case GRMPackage.COMMUNICATION_MEDIA__PACKET_T: + return packetT != null && !packetT.isEmpty(); + case GRMPackage.COMMUNICATION_MEDIA__CAPACITY: + return capacity != null && !capacity.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (elementSize: "); + result.append(elementSize); + result.append(", transmMode: "); + result.append(transmMode); + result.append(", blockT: "); + result.append(blockT); + result.append(", packetT: "); + result.append(packetT); + result.append(", capacity: "); + result.append(capacity); + result.append(')'); + return result.toString(); + } + +} //CommunicationMediaImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/ComputingResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/ComputingResourceImpl.java new file mode 100644 index 00000000000..1c89db71b88 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/ComputingResourceImpl.java @@ -0,0 +1,50 @@ +/***************************************************************************** + * 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.MARTE_Foundations.GRM.impl; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ComputingResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage; + +/** + * + * An implementation of the model object 'Computing Resource'. + * + *

+ *

+ * + * @generated + */ +public class ComputingResourceImpl extends ProcessingResourceImpl implements ComputingResource { + /** + * + * + * @generated + */ + protected ComputingResourceImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return GRMPackage.Literals.COMPUTING_RESOURCE; + } + +} //ComputingResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/ConcurrencyResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/ConcurrencyResourceImpl.java new file mode 100644 index 00000000000..2be9d3e31e2 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/ConcurrencyResourceImpl.java @@ -0,0 +1,50 @@ +/***************************************************************************** + * 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.MARTE_Foundations.GRM.impl; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ConcurrencyResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage; + +/** + * + * An implementation of the model object 'Concurrency Resource'. + * + *

+ *

+ * + * @generated + */ +public class ConcurrencyResourceImpl extends ResourceImpl implements ConcurrencyResource { + /** + * + * + * @generated + */ + protected ConcurrencyResourceImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return GRMPackage.Literals.CONCURRENCY_RESOURCE; + } + +} //ConcurrencyResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/DeviceResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/DeviceResourceImpl.java new file mode 100644 index 00000000000..338e054facf --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/DeviceResourceImpl.java @@ -0,0 +1,50 @@ +/***************************************************************************** + * 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.MARTE_Foundations.GRM.impl; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.DeviceResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage; + +/** + * + * An implementation of the model object 'Device Resource'. + * + *

+ *

+ * + * @generated + */ +public class DeviceResourceImpl extends ProcessingResourceImpl implements DeviceResource { + /** + * + * + * @generated + */ + protected DeviceResourceImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return GRMPackage.Literals.DEVICE_RESOURCE; + } + +} //DeviceResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/GRMFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/GRMFactoryImpl.java new file mode 100644 index 00000000000..37d774328af --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/GRMFactoryImpl.java @@ -0,0 +1,315 @@ +/***************************************************************************** + * 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.MARTE_Foundations.GRM.impl; + +import org.eclipse.emf.ecore.EClass; +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.MARTE_Foundations.GRM.*; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class GRMFactoryImpl extends EFactoryImpl implements GRMFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static GRMFactory init() { + try { + GRMFactory theGRMFactory = (GRMFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/GRM/1"); + if (theGRMFactory != null) { + return theGRMFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new GRMFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public GRMFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case GRMPackage.RESOURCE: return createResource(); + case GRMPackage.STORAGE_RESOURCE: return createStorageResource(); + case GRMPackage.COMMUNICATION_END_POINT: return createCommunicationEndPoint(); + case GRMPackage.SYNCHRONIZATION_RESOURCE: return createSynchronizationResource(); + case GRMPackage.CONCURRENCY_RESOURCE: return createConcurrencyResource(); + case GRMPackage.SCHEDULER: return createScheduler(); + case GRMPackage.PROCESSING_RESOURCE: return createProcessingResource(); + case GRMPackage.COMPUTING_RESOURCE: return createComputingResource(); + case GRMPackage.MUTUAL_EXCLUSION_RESOURCE: return createMutualExclusionResource(); + case GRMPackage.SCHEDULABLE_RESOURCE: return createSchedulableResource(); + case GRMPackage.SECONDARY_SCHEDULER: return createSecondaryScheduler(); + case GRMPackage.COMMUNICATION_MEDIA: return createCommunicationMedia(); + case GRMPackage.DEVICE_RESOURCE: return createDeviceResource(); + case GRMPackage.TIMING_RESOURCE: return createTimingResource(); + case GRMPackage.CLOCK_RESOURCE: return createClockResource(); + case GRMPackage.TIMER_RESOURCE: return createTimerResource(); + case GRMPackage.GR_SERVICE: return createGrService(); + case GRMPackage.RELEASE: return createRelease(); + case GRMPackage.ACQUIRE: return createAcquire(); + case GRMPackage.RESOURCE_USAGE: return createResourceUsage(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public Resource createResource() { + ResourceImpl resource = new ResourceImpl(); + return resource; + } + + /** + * + * + * @generated + */ + public StorageResource createStorageResource() { + StorageResourceImpl storageResource = new StorageResourceImpl(); + return storageResource; + } + + /** + * + * + * @generated + */ + public CommunicationEndPoint createCommunicationEndPoint() { + CommunicationEndPointImpl communicationEndPoint = new CommunicationEndPointImpl(); + return communicationEndPoint; + } + + /** + * + * + * @generated + */ + public SynchronizationResource createSynchronizationResource() { + SynchronizationResourceImpl synchronizationResource = new SynchronizationResourceImpl(); + return synchronizationResource; + } + + /** + * + * + * @generated + */ + public ConcurrencyResource createConcurrencyResource() { + ConcurrencyResourceImpl concurrencyResource = new ConcurrencyResourceImpl(); + return concurrencyResource; + } + + /** + * + * + * @generated + */ + public Scheduler createScheduler() { + SchedulerImpl scheduler = new SchedulerImpl(); + return scheduler; + } + + /** + * + * + * @generated + */ + public ProcessingResource createProcessingResource() { + ProcessingResourceImpl processingResource = new ProcessingResourceImpl(); + return processingResource; + } + + /** + * + * + * @generated + */ + public ComputingResource createComputingResource() { + ComputingResourceImpl computingResource = new ComputingResourceImpl(); + return computingResource; + } + + /** + * + * + * @generated + */ + public MutualExclusionResource createMutualExclusionResource() { + MutualExclusionResourceImpl mutualExclusionResource = new MutualExclusionResourceImpl(); + return mutualExclusionResource; + } + + /** + * + * + * @generated + */ + public SchedulableResource createSchedulableResource() { + SchedulableResourceImpl schedulableResource = new SchedulableResourceImpl(); + return schedulableResource; + } + + /** + * + * + * @generated + */ + public SecondaryScheduler createSecondaryScheduler() { + SecondarySchedulerImpl secondaryScheduler = new SecondarySchedulerImpl(); + return secondaryScheduler; + } + + /** + * + * + * @generated + */ + public CommunicationMedia createCommunicationMedia() { + CommunicationMediaImpl communicationMedia = new CommunicationMediaImpl(); + return communicationMedia; + } + + /** + * + * + * @generated + */ + public DeviceResource createDeviceResource() { + DeviceResourceImpl deviceResource = new DeviceResourceImpl(); + return deviceResource; + } + + /** + * + * + * @generated + */ + public TimingResource createTimingResource() { + TimingResourceImpl timingResource = new TimingResourceImpl(); + return timingResource; + } + + /** + * + * + * @generated + */ + public ClockResource createClockResource() { + ClockResourceImpl clockResource = new ClockResourceImpl(); + return clockResource; + } + + /** + * + * + * @generated + */ + public TimerResource createTimerResource() { + TimerResourceImpl timerResource = new TimerResourceImpl(); + return timerResource; + } + + /** + * + * + * @generated + */ + public GrService createGrService() { + GrServiceImpl grService = new GrServiceImpl(); + return grService; + } + + /** + * + * + * @generated + */ + public Release createRelease() { + ReleaseImpl release = new ReleaseImpl(); + return release; + } + + /** + * + * + * @generated + */ + public Acquire createAcquire() { + AcquireImpl acquire = new AcquireImpl(); + return acquire; + } + + /** + * + * + * @generated + */ + public ResourceUsage createResourceUsage() { + ResourceUsageImpl resourceUsage = new ResourceUsageImpl(); + return resourceUsage; + } + + /** + * + * + * @generated + */ + public GRMPackage getGRMPackage() { + return (GRMPackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static GRMPackage getPackage() { + return GRMPackage.eINSTANCE; + } + +} //GRMFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/GRMPackageImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/GRMPackageImpl.java new file mode 100644 index 00000000000..5e0bbd98078 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/GRMPackageImpl.java @@ -0,0 +1,1420 @@ +/***************************************************************************** + * 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.MARTE_Foundations.GRM.impl; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +import org.eclipse.emf.ecore.impl.EPackageImpl; + +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.Acquire; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ClockResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationEndPoint; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationMedia; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ComputingResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ConcurrencyResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.DeviceResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMFactory; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GrService; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.MutualExclusionResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ProcessingResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Release; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ResourceUsage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SchedulableResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SecondaryScheduler; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.StorageResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SynchronizationResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.TimerResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.TimingResource; + +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.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 GRMPackageImpl extends EPackageImpl implements GRMPackage { + /** + * + * + * @generated + */ + private EClass resourceEClass = null; + + /** + * + * + * @generated + */ + private EClass storageResourceEClass = null; + + /** + * + * + * @generated + */ + private EClass communicationEndPointEClass = null; + + /** + * + * + * @generated + */ + private EClass synchronizationResourceEClass = null; + + /** + * + * + * @generated + */ + private EClass concurrencyResourceEClass = null; + + /** + * + * + * @generated + */ + private EClass schedulerEClass = null; + + /** + * + * + * @generated + */ + private EClass processingResourceEClass = null; + + /** + * + * + * @generated + */ + private EClass computingResourceEClass = null; + + /** + * + * + * @generated + */ + private EClass mutualExclusionResourceEClass = null; + + /** + * + * + * @generated + */ + private EClass schedulableResourceEClass = null; + + /** + * + * + * @generated + */ + private EClass secondarySchedulerEClass = null; + + /** + * + * + * @generated + */ + private EClass communicationMediaEClass = null; + + /** + * + * + * @generated + */ + private EClass deviceResourceEClass = null; + + /** + * + * + * @generated + */ + private EClass timingResourceEClass = null; + + /** + * + * + * @generated + */ + private EClass clockResourceEClass = null; + + /** + * + * + * @generated + */ + private EClass timerResourceEClass = null; + + /** + * + * + * @generated + */ + private EClass grServiceEClass = null; + + /** + * + * + * @generated + */ + private EClass releaseEClass = null; + + /** + * + * + * @generated + */ + private EClass acquireEClass = null; + + /** + * + * + * @generated + */ + private EClass resourceUsageEClass = 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.MARTE_Foundations.GRM.GRMPackage#eNS_URI + * @see #init() + * @generated + */ + private GRMPackageImpl() { + super(eNS_URI, GRMFactory.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 GRMPackage#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 GRMPackage init() { + if (isInited) return (GRMPackage)EPackage.Registry.INSTANCE.getEPackage(GRMPackage.eNS_URI); + + // Obtain or create and register package + GRMPackageImpl theGRMPackage = (GRMPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof GRMPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new GRMPackageImpl()); + + 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); + 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); + 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 + theGRMPackage.createPackageContents(); + theMARTEPackage.createPackageContents(); + theNFPsPackage.createPackageContents(); + theCoreElementsPackage.createPackageContents(); + theAllocPackage.createPackageContents(); + theTimePackage.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(); + theMARTE_PrimitivesTypesPackage.createPackageContents(); + + // Initialize created meta-data + theGRMPackage.initializePackageContents(); + theMARTEPackage.initializePackageContents(); + theNFPsPackage.initializePackageContents(); + theCoreElementsPackage.initializePackageContents(); + theAllocPackage.initializePackageContents(); + theTimePackage.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(); + theMARTE_PrimitivesTypesPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theGRMPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(GRMPackage.eNS_URI, theGRMPackage); + return theGRMPackage; + } + + /** + * + * + * @generated + */ + public EClass getResource() { + return resourceEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getResource_ResMult() { + return (EAttribute)resourceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getResource_IsProtected() { + return (EAttribute)resourceEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getResource_IsActive() { + return (EAttribute)resourceEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getResource_Base_Property() { + return (EReference)resourceEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EReference getResource_Base_InstanceSpecification() { + return (EReference)resourceEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EReference getResource_Base_Classifier() { + return (EReference)resourceEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EReference getResource_Base_Lifeline() { + return (EReference)resourceEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EReference getResource_Base_ConnectableElement() { + return (EReference)resourceEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EClass getStorageResource() { + return storageResourceEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getStorageResource_ElementSize() { + return (EAttribute)storageResourceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getCommunicationEndPoint() { + return communicationEndPointEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getCommunicationEndPoint_PacketSize() { + return (EAttribute)communicationEndPointEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getSynchronizationResource() { + return synchronizationResourceEClass; + } + + /** + * + * + * @generated + */ + public EClass getConcurrencyResource() { + return concurrencyResourceEClass; + } + + /** + * + * + * @generated + */ + public EClass getScheduler() { + return schedulerEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getScheduler_IsPreemptible() { + return (EAttribute)schedulerEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getScheduler_SchedPolicy() { + return (EAttribute)schedulerEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getScheduler_OtherSchedPolicy() { + return (EAttribute)schedulerEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getScheduler_Schedule() { + return (EAttribute)schedulerEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EReference getScheduler_ProcessingUnits() { + return (EReference)schedulerEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EReference getScheduler_Host() { + return (EReference)schedulerEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EReference getScheduler_ProtectedSharedResources() { + return (EReference)schedulerEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EReference getScheduler_SchedulableResources() { + return (EReference)schedulerEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EClass getProcessingResource() { + return processingResourceEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getProcessingResource_SpeedFactor() { + return (EAttribute)processingResourceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getProcessingResource_MainScheduler() { + return (EReference)processingResourceEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getComputingResource() { + return computingResourceEClass; + } + + /** + * + * + * @generated + */ + public EClass getMutualExclusionResource() { + return mutualExclusionResourceEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getMutualExclusionResource_ProtectKind() { + return (EAttribute)mutualExclusionResourceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getMutualExclusionResource_Ceiling() { + return (EAttribute)mutualExclusionResourceEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getMutualExclusionResource_OtherProtectProtocol() { + return (EAttribute)mutualExclusionResourceEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getMutualExclusionResource_Scheduler() { + return (EReference)mutualExclusionResourceEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EClass getSchedulableResource() { + return schedulableResourceEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSchedulableResource_SchedParams() { + return (EAttribute)schedulableResourceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getSchedulableResource_DependentScheduler() { + return (EReference)schedulableResourceEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getSchedulableResource_Host() { + return (EReference)schedulableResourceEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getSecondaryScheduler() { + return secondarySchedulerEClass; + } + + /** + * + * + * @generated + */ + public EReference getSecondaryScheduler_VirtualProcessingUnits() { + return (EReference)secondarySchedulerEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getCommunicationMedia() { + return communicationMediaEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getCommunicationMedia_ElementSize() { + return (EAttribute)communicationMediaEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getCommunicationMedia_Base_Connector() { + return (EReference)communicationMediaEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getCommunicationMedia_TransmMode() { + return (EAttribute)communicationMediaEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getCommunicationMedia_BlockT() { + return (EAttribute)communicationMediaEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getCommunicationMedia_PacketT() { + return (EAttribute)communicationMediaEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getCommunicationMedia_Capacity() { + return (EAttribute)communicationMediaEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EClass getDeviceResource() { + return deviceResourceEClass; + } + + /** + * + * + * @generated + */ + public EClass getTimingResource() { + return timingResourceEClass; + } + + /** + * + * + * @generated + */ + public EClass getClockResource() { + return clockResourceEClass; + } + + /** + * + * + * @generated + */ + public EClass getTimerResource() { + return timerResourceEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getTimerResource_Duration() { + return (EAttribute)timerResourceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getTimerResource_IsPeriodic() { + return (EAttribute)timerResourceEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getGrService() { + return grServiceEClass; + } + + /** + * + * + * @generated + */ + public EReference getGrService_Owner() { + return (EReference)grServiceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getGrService_Base_ExecutionSpecification() { + return (EReference)grServiceEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getGrService_Base_BehavioralFeature() { + return (EReference)grServiceEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getGrService_Base_Behavior() { + return (EReference)grServiceEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EReference getGrService_Base_Collaboration() { + return (EReference)grServiceEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EReference getGrService_Base_CollaborationUse() { + return (EReference)grServiceEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EClass getRelease() { + return releaseEClass; + } + + /** + * + * + * @generated + */ + public EClass getAcquire() { + return acquireEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getAcquire_IsBlocking() { + return (EAttribute)acquireEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getResourceUsage() { + return resourceUsageEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getResourceUsage_ExecTime() { + return (EAttribute)resourceUsageEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getResourceUsage_AllocatedMemory() { + return (EAttribute)resourceUsageEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getResourceUsage_UsedMemory() { + return (EAttribute)resourceUsageEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getResourceUsage_PowerPeak() { + return (EAttribute)resourceUsageEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getResourceUsage_Energy() { + return (EAttribute)resourceUsageEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EReference getResourceUsage_Base_NamedElement() { + return (EReference)resourceUsageEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EReference getResourceUsage_SubUsage() { + return (EReference)resourceUsageEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EReference getResourceUsage_UsedResources() { + return (EReference)resourceUsageEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EAttribute getResourceUsage_MsgSize() { + return (EAttribute)resourceUsageEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + public GRMFactory getGRMFactory() { + return (GRMFactory)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 + resourceEClass = createEClass(RESOURCE); + createEAttribute(resourceEClass, RESOURCE__RES_MULT); + createEAttribute(resourceEClass, RESOURCE__IS_PROTECTED); + createEAttribute(resourceEClass, RESOURCE__IS_ACTIVE); + createEReference(resourceEClass, RESOURCE__BASE_PROPERTY); + createEReference(resourceEClass, RESOURCE__BASE_INSTANCE_SPECIFICATION); + createEReference(resourceEClass, RESOURCE__BASE_CLASSIFIER); + createEReference(resourceEClass, RESOURCE__BASE_LIFELINE); + createEReference(resourceEClass, RESOURCE__BASE_CONNECTABLE_ELEMENT); + + storageResourceEClass = createEClass(STORAGE_RESOURCE); + createEAttribute(storageResourceEClass, STORAGE_RESOURCE__ELEMENT_SIZE); + + communicationEndPointEClass = createEClass(COMMUNICATION_END_POINT); + createEAttribute(communicationEndPointEClass, COMMUNICATION_END_POINT__PACKET_SIZE); + + synchronizationResourceEClass = createEClass(SYNCHRONIZATION_RESOURCE); + + concurrencyResourceEClass = createEClass(CONCURRENCY_RESOURCE); + + schedulerEClass = createEClass(SCHEDULER); + createEAttribute(schedulerEClass, SCHEDULER__IS_PREEMPTIBLE); + createEAttribute(schedulerEClass, SCHEDULER__SCHED_POLICY); + createEAttribute(schedulerEClass, SCHEDULER__OTHER_SCHED_POLICY); + createEAttribute(schedulerEClass, SCHEDULER__SCHEDULE); + createEReference(schedulerEClass, SCHEDULER__PROCESSING_UNITS); + createEReference(schedulerEClass, SCHEDULER__HOST); + createEReference(schedulerEClass, SCHEDULER__PROTECTED_SHARED_RESOURCES); + createEReference(schedulerEClass, SCHEDULER__SCHEDULABLE_RESOURCES); + + processingResourceEClass = createEClass(PROCESSING_RESOURCE); + createEAttribute(processingResourceEClass, PROCESSING_RESOURCE__SPEED_FACTOR); + createEReference(processingResourceEClass, PROCESSING_RESOURCE__MAIN_SCHEDULER); + + computingResourceEClass = createEClass(COMPUTING_RESOURCE); + + mutualExclusionResourceEClass = createEClass(MUTUAL_EXCLUSION_RESOURCE); + createEAttribute(mutualExclusionResourceEClass, MUTUAL_EXCLUSION_RESOURCE__PROTECT_KIND); + createEAttribute(mutualExclusionResourceEClass, MUTUAL_EXCLUSION_RESOURCE__CEILING); + createEAttribute(mutualExclusionResourceEClass, MUTUAL_EXCLUSION_RESOURCE__OTHER_PROTECT_PROTOCOL); + createEReference(mutualExclusionResourceEClass, MUTUAL_EXCLUSION_RESOURCE__SCHEDULER); + + schedulableResourceEClass = createEClass(SCHEDULABLE_RESOURCE); + createEAttribute(schedulableResourceEClass, SCHEDULABLE_RESOURCE__SCHED_PARAMS); + createEReference(schedulableResourceEClass, SCHEDULABLE_RESOURCE__DEPENDENT_SCHEDULER); + createEReference(schedulableResourceEClass, SCHEDULABLE_RESOURCE__HOST); + + secondarySchedulerEClass = createEClass(SECONDARY_SCHEDULER); + createEReference(secondarySchedulerEClass, SECONDARY_SCHEDULER__VIRTUAL_PROCESSING_UNITS); + + communicationMediaEClass = createEClass(COMMUNICATION_MEDIA); + createEAttribute(communicationMediaEClass, COMMUNICATION_MEDIA__ELEMENT_SIZE); + createEReference(communicationMediaEClass, COMMUNICATION_MEDIA__BASE_CONNECTOR); + createEAttribute(communicationMediaEClass, COMMUNICATION_MEDIA__TRANSM_MODE); + createEAttribute(communicationMediaEClass, COMMUNICATION_MEDIA__BLOCK_T); + createEAttribute(communicationMediaEClass, COMMUNICATION_MEDIA__PACKET_T); + createEAttribute(communicationMediaEClass, COMMUNICATION_MEDIA__CAPACITY); + + deviceResourceEClass = createEClass(DEVICE_RESOURCE); + + timingResourceEClass = createEClass(TIMING_RESOURCE); + + clockResourceEClass = createEClass(CLOCK_RESOURCE); + + timerResourceEClass = createEClass(TIMER_RESOURCE); + createEAttribute(timerResourceEClass, TIMER_RESOURCE__DURATION); + createEAttribute(timerResourceEClass, TIMER_RESOURCE__IS_PERIODIC); + + grServiceEClass = createEClass(GR_SERVICE); + createEReference(grServiceEClass, GR_SERVICE__OWNER); + createEReference(grServiceEClass, GR_SERVICE__BASE_EXECUTION_SPECIFICATION); + createEReference(grServiceEClass, GR_SERVICE__BASE_BEHAVIORAL_FEATURE); + createEReference(grServiceEClass, GR_SERVICE__BASE_BEHAVIOR); + createEReference(grServiceEClass, GR_SERVICE__BASE_COLLABORATION); + createEReference(grServiceEClass, GR_SERVICE__BASE_COLLABORATION_USE); + + releaseEClass = createEClass(RELEASE); + + acquireEClass = createEClass(ACQUIRE); + createEAttribute(acquireEClass, ACQUIRE__IS_BLOCKING); + + resourceUsageEClass = createEClass(RESOURCE_USAGE); + createEAttribute(resourceUsageEClass, RESOURCE_USAGE__EXEC_TIME); + createEAttribute(resourceUsageEClass, RESOURCE_USAGE__ALLOCATED_MEMORY); + createEAttribute(resourceUsageEClass, RESOURCE_USAGE__USED_MEMORY); + createEAttribute(resourceUsageEClass, RESOURCE_USAGE__POWER_PEAK); + createEAttribute(resourceUsageEClass, RESOURCE_USAGE__ENERGY); + createEReference(resourceUsageEClass, RESOURCE_USAGE__BASE_NAMED_ELEMENT); + createEReference(resourceUsageEClass, RESOURCE_USAGE__SUB_USAGE); + createEReference(resourceUsageEClass, RESOURCE_USAGE__USED_RESOURCES); + createEAttribute(resourceUsageEClass, RESOURCE_USAGE__MSG_SIZE); + } + + /** + * + * + * @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 + BasicNFP_TypesPackage theBasicNFP_TypesPackage = (BasicNFP_TypesPackage)EPackage.Registry.INSTANCE.getEPackage(BasicNFP_TypesPackage.eNS_URI); + MARTE_PrimitivesTypesPackage theMARTE_PrimitivesTypesPackage = (MARTE_PrimitivesTypesPackage)EPackage.Registry.INSTANCE.getEPackage(MARTE_PrimitivesTypesPackage.eNS_URI); + UMLPackage theUMLPackage = (UMLPackage)EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI); + GRM_BasicTypesPackage theGRM_BasicTypesPackage = (GRM_BasicTypesPackage)EPackage.Registry.INSTANCE.getEPackage(GRM_BasicTypesPackage.eNS_URI); + MARTE_DataTypesPackage theMARTE_DataTypesPackage = (MARTE_DataTypesPackage)EPackage.Registry.INSTANCE.getEPackage(MARTE_DataTypesPackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + storageResourceEClass.getESuperTypes().add(this.getResource()); + communicationEndPointEClass.getESuperTypes().add(this.getResource()); + synchronizationResourceEClass.getESuperTypes().add(this.getResource()); + concurrencyResourceEClass.getESuperTypes().add(this.getResource()); + schedulerEClass.getESuperTypes().add(this.getResource()); + processingResourceEClass.getESuperTypes().add(this.getResource()); + computingResourceEClass.getESuperTypes().add(this.getProcessingResource()); + mutualExclusionResourceEClass.getESuperTypes().add(this.getResource()); + schedulableResourceEClass.getESuperTypes().add(this.getResource()); + secondarySchedulerEClass.getESuperTypes().add(this.getScheduler()); + communicationMediaEClass.getESuperTypes().add(this.getProcessingResource()); + deviceResourceEClass.getESuperTypes().add(this.getProcessingResource()); + timingResourceEClass.getESuperTypes().add(this.getResource()); + clockResourceEClass.getESuperTypes().add(this.getTimingResource()); + timerResourceEClass.getESuperTypes().add(this.getTimingResource()); + releaseEClass.getESuperTypes().add(this.getGrService()); + acquireEClass.getESuperTypes().add(this.getGrService()); + + // Initialize classes and features; add operations and parameters + initEClass(resourceEClass, Resource.class, "Resource", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getResource_ResMult(), theBasicNFP_TypesPackage.getNFP_Integer(), "resMult", "1", 0, 1, Resource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getResource_IsProtected(), theMARTE_PrimitivesTypesPackage.getBoolean(), "isProtected", null, 0, 1, Resource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getResource_IsActive(), theMARTE_PrimitivesTypesPackage.getBoolean(), "isActive", null, 0, 1, Resource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getResource_Base_Property(), theUMLPackage.getProperty(), null, "base_Property", null, 1, 1, Resource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getResource_Base_InstanceSpecification(), theUMLPackage.getInstanceSpecification(), null, "base_InstanceSpecification", null, 1, 1, Resource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getResource_Base_Classifier(), theUMLPackage.getClassifier(), null, "base_Classifier", null, 1, 1, Resource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getResource_Base_Lifeline(), theUMLPackage.getLifeline(), null, "base_Lifeline", null, 1, 1, Resource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getResource_Base_ConnectableElement(), theUMLPackage.getConnectableElement(), null, "base_ConnectableElement", null, 1, 1, Resource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(storageResourceEClass, StorageResource.class, "StorageResource", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getStorageResource_ElementSize(), theBasicNFP_TypesPackage.getNFP_Integer(), "elementSize", null, 0, 1, StorageResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(communicationEndPointEClass, CommunicationEndPoint.class, "CommunicationEndPoint", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getCommunicationEndPoint_PacketSize(), theBasicNFP_TypesPackage.getNFP_Integer(), "packetSize", null, 0, 1, CommunicationEndPoint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(synchronizationResourceEClass, SynchronizationResource.class, "SynchronizationResource", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(concurrencyResourceEClass, ConcurrencyResource.class, "ConcurrencyResource", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(schedulerEClass, Scheduler.class, "Scheduler", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getScheduler_IsPreemptible(), theMARTE_PrimitivesTypesPackage.getBoolean(), "isPreemptible", "true", 0, 1, Scheduler.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getScheduler_SchedPolicy(), theGRM_BasicTypesPackage.getSchedPolicyKind(), "schedPolicy", "FixedPriority", 0, 1, Scheduler.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getScheduler_OtherSchedPolicy(), theMARTE_PrimitivesTypesPackage.getString(), "otherSchedPolicy", null, 0, 1, Scheduler.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getScheduler_Schedule(), theGRM_BasicTypesPackage.getScheduleSpecification(), "schedule", null, 0, 1, Scheduler.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getScheduler_ProcessingUnits(), this.getProcessingResource(), null, "processingUnits", null, 0, -1, Scheduler.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getScheduler_Host(), this.getComputingResource(), null, "host", null, 0, 1, Scheduler.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getScheduler_ProtectedSharedResources(), this.getMutualExclusionResource(), this.getMutualExclusionResource_Scheduler(), "protectedSharedResources", null, 0, -1, Scheduler.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getScheduler_SchedulableResources(), this.getSchedulableResource(), this.getSchedulableResource_Host(), "schedulableResources", null, 0, -1, Scheduler.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(processingResourceEClass, ProcessingResource.class, "ProcessingResource", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getProcessingResource_SpeedFactor(), theBasicNFP_TypesPackage.getNFP_Real(), "speedFactor", "1.0", 0, 1, ProcessingResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getProcessingResource_MainScheduler(), this.getScheduler(), null, "mainScheduler", null, 0, 1, ProcessingResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(computingResourceEClass, ComputingResource.class, "ComputingResource", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(mutualExclusionResourceEClass, MutualExclusionResource.class, "MutualExclusionResource", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getMutualExclusionResource_ProtectKind(), theGRM_BasicTypesPackage.getProtectProtocolKind(), "protectKind", "PriorityInheritance", 0, 1, MutualExclusionResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getMutualExclusionResource_Ceiling(), theBasicNFP_TypesPackage.getNFP_Integer(), "ceiling", null, 0, 1, MutualExclusionResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getMutualExclusionResource_OtherProtectProtocol(), theMARTE_PrimitivesTypesPackage.getString(), "otherProtectProtocol", null, 0, 1, MutualExclusionResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getMutualExclusionResource_Scheduler(), this.getScheduler(), this.getScheduler_ProtectedSharedResources(), "scheduler", null, 0, 1, MutualExclusionResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(schedulableResourceEClass, SchedulableResource.class, "SchedulableResource", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSchedulableResource_SchedParams(), theGRM_BasicTypesPackage.getSchedParameters(), "schedParams", null, 0, -1, SchedulableResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getSchedulableResource_DependentScheduler(), this.getSecondaryScheduler(), this.getSecondaryScheduler_VirtualProcessingUnits(), "dependentScheduler", null, 0, 1, SchedulableResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getSchedulableResource_Host(), this.getScheduler(), this.getScheduler_SchedulableResources(), "host", null, 0, 1, SchedulableResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(secondarySchedulerEClass, SecondaryScheduler.class, "SecondaryScheduler", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSecondaryScheduler_VirtualProcessingUnits(), this.getSchedulableResource(), this.getSchedulableResource_DependentScheduler(), "virtualProcessingUnits", null, 0, -1, SecondaryScheduler.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(communicationMediaEClass, CommunicationMedia.class, "CommunicationMedia", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getCommunicationMedia_ElementSize(), theBasicNFP_TypesPackage.getNFP_Integer(), "elementSize", null, 0, 1, CommunicationMedia.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getCommunicationMedia_Base_Connector(), theUMLPackage.getConnector(), null, "base_Connector", null, 1, 1, CommunicationMedia.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getCommunicationMedia_TransmMode(), theMARTE_DataTypesPackage.getTransmModeKind(), "transmMode", null, 0, 1, CommunicationMedia.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getCommunicationMedia_BlockT(), theBasicNFP_TypesPackage.getNFP_Duration(), "blockT", null, 0, -1, CommunicationMedia.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getCommunicationMedia_PacketT(), theBasicNFP_TypesPackage.getNFP_Duration(), "packetT", null, 0, -1, CommunicationMedia.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getCommunicationMedia_Capacity(), theBasicNFP_TypesPackage.getNFP_DataTxRate(), "capacity", null, 0, -1, CommunicationMedia.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(deviceResourceEClass, DeviceResource.class, "DeviceResource", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(timingResourceEClass, TimingResource.class, "TimingResource", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(clockResourceEClass, ClockResource.class, "ClockResource", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(timerResourceEClass, TimerResource.class, "TimerResource", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getTimerResource_Duration(), theBasicNFP_TypesPackage.getNFP_Duration(), "duration", null, 0, 1, TimerResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getTimerResource_IsPeriodic(), theMARTE_PrimitivesTypesPackage.getBoolean(), "isPeriodic", null, 0, 1, TimerResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(grServiceEClass, GrService.class, "GrService", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getGrService_Owner(), this.getResource(), null, "owner", null, 0, 1, GrService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getGrService_Base_ExecutionSpecification(), theUMLPackage.getExecutionSpecification(), null, "base_ExecutionSpecification", null, 1, 1, GrService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getGrService_Base_BehavioralFeature(), theUMLPackage.getBehavioralFeature(), null, "base_BehavioralFeature", null, 1, 1, GrService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getGrService_Base_Behavior(), theUMLPackage.getBehavior(), null, "base_Behavior", null, 1, 1, GrService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getGrService_Base_Collaboration(), theUMLPackage.getCollaboration(), null, "base_Collaboration", null, 1, 1, GrService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getGrService_Base_CollaborationUse(), theUMLPackage.getCollaborationUse(), null, "base_CollaborationUse", null, 1, 1, GrService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(releaseEClass, Release.class, "Release", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(acquireEClass, Acquire.class, "Acquire", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getAcquire_IsBlocking(), theMARTE_PrimitivesTypesPackage.getBoolean(), "isBlocking", null, 0, 1, Acquire.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(resourceUsageEClass, ResourceUsage.class, "ResourceUsage", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getResourceUsage_ExecTime(), theBasicNFP_TypesPackage.getNFP_Duration(), "execTime", null, 0, -1, ResourceUsage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getResourceUsage_AllocatedMemory(), theBasicNFP_TypesPackage.getNFP_DataSize(), "allocatedMemory", null, 0, -1, ResourceUsage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getResourceUsage_UsedMemory(), theBasicNFP_TypesPackage.getNFP_DataSize(), "usedMemory", null, 0, -1, ResourceUsage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getResourceUsage_PowerPeak(), theBasicNFP_TypesPackage.getNFP_Power(), "powerPeak", null, 0, -1, ResourceUsage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getResourceUsage_Energy(), theBasicNFP_TypesPackage.getNFP_Energy(), "energy", null, 0, -1, ResourceUsage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getResourceUsage_Base_NamedElement(), theUMLPackage.getNamedElement(), null, "base_NamedElement", null, 1, 1, ResourceUsage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getResourceUsage_SubUsage(), this.getResourceUsage(), null, "subUsage", null, 0, -1, ResourceUsage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getResourceUsage_UsedResources(), this.getResource(), null, "usedResources", null, 0, -1, ResourceUsage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getResourceUsage_MsgSize(), theBasicNFP_TypesPackage.getNFP_DataSize(), "msgSize", null, 0, -1, ResourceUsage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + } + +} //GRMPackageImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/GrServiceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/GrServiceImpl.java new file mode 100644 index 00000000000..9772844a244 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/GrServiceImpl.java @@ -0,0 +1,474 @@ +/***************************************************************************** + * 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.MARTE_Foundations.GRM.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GrService; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource; + +import org.eclipse.uml2.uml.Behavior; +import org.eclipse.uml2.uml.BehavioralFeature; +import org.eclipse.uml2.uml.Collaboration; +import org.eclipse.uml2.uml.CollaborationUse; +import org.eclipse.uml2.uml.ExecutionSpecification; + +/** + * + * An implementation of the model object 'Gr Service'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GrServiceImpl#getOwner Owner}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GrServiceImpl#getBase_ExecutionSpecification Base Execution Specification}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GrServiceImpl#getBase_BehavioralFeature Base Behavioral Feature}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GrServiceImpl#getBase_Behavior Base Behavior}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GrServiceImpl#getBase_Collaboration Base Collaboration}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.GrServiceImpl#getBase_CollaborationUse Base Collaboration Use}
  • + *
+ *

+ * + * @generated + */ +public class GrServiceImpl extends EObjectImpl implements GrService { + /** + * The cached value of the '{@link #getOwner() Owner}' reference. + * + * + * @see #getOwner() + * @generated + * @ordered + */ + protected Resource owner; + + /** + * The cached value of the '{@link #getBase_ExecutionSpecification() Base Execution Specification}' reference. + * + * + * @see #getBase_ExecutionSpecification() + * @generated + * @ordered + */ + protected ExecutionSpecification base_ExecutionSpecification; + + /** + * The cached value of the '{@link #getBase_BehavioralFeature() Base Behavioral Feature}' reference. + * + * + * @see #getBase_BehavioralFeature() + * @generated + * @ordered + */ + protected BehavioralFeature base_BehavioralFeature; + + /** + * The cached value of the '{@link #getBase_Behavior() Base Behavior}' reference. + * + * + * @see #getBase_Behavior() + * @generated + * @ordered + */ + protected Behavior base_Behavior; + + /** + * The cached value of the '{@link #getBase_Collaboration() Base Collaboration}' reference. + * + * + * @see #getBase_Collaboration() + * @generated + * @ordered + */ + protected Collaboration base_Collaboration; + + /** + * The cached value of the '{@link #getBase_CollaborationUse() Base Collaboration Use}' reference. + * + * + * @see #getBase_CollaborationUse() + * @generated + * @ordered + */ + protected CollaborationUse base_CollaborationUse; + + /** + * + * + * @generated + */ + protected GrServiceImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return GRMPackage.Literals.GR_SERVICE; + } + + /** + * + * + * @generated + */ + public Resource getOwner() { + if (owner != null && owner.eIsProxy()) { + InternalEObject oldOwner = (InternalEObject)owner; + owner = (Resource)eResolveProxy(oldOwner); + if (owner != oldOwner) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GRMPackage.GR_SERVICE__OWNER, oldOwner, owner)); + } + } + return owner; + } + + /** + * + * + * @generated + */ + public Resource basicGetOwner() { + return owner; + } + + /** + * + * + * @generated + */ + public void setOwner(Resource newOwner) { + Resource oldOwner = owner; + owner = newOwner; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GRMPackage.GR_SERVICE__OWNER, oldOwner, owner)); + } + + /** + * + * + * @generated + */ + public ExecutionSpecification getBase_ExecutionSpecification() { + if (base_ExecutionSpecification != null && base_ExecutionSpecification.eIsProxy()) { + InternalEObject oldBase_ExecutionSpecification = (InternalEObject)base_ExecutionSpecification; + base_ExecutionSpecification = (ExecutionSpecification)eResolveProxy(oldBase_ExecutionSpecification); + if (base_ExecutionSpecification != oldBase_ExecutionSpecification) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GRMPackage.GR_SERVICE__BASE_EXECUTION_SPECIFICATION, oldBase_ExecutionSpecification, base_ExecutionSpecification)); + } + } + return base_ExecutionSpecification; + } + + /** + * + * + * @generated + */ + public ExecutionSpecification basicGetBase_ExecutionSpecification() { + return base_ExecutionSpecification; + } + + /** + * + * + * @generated + */ + public void setBase_ExecutionSpecification(ExecutionSpecification newBase_ExecutionSpecification) { + ExecutionSpecification oldBase_ExecutionSpecification = base_ExecutionSpecification; + base_ExecutionSpecification = newBase_ExecutionSpecification; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GRMPackage.GR_SERVICE__BASE_EXECUTION_SPECIFICATION, oldBase_ExecutionSpecification, base_ExecutionSpecification)); + } + + /** + * + * + * @generated + */ + public BehavioralFeature getBase_BehavioralFeature() { + if (base_BehavioralFeature != null && base_BehavioralFeature.eIsProxy()) { + InternalEObject oldBase_BehavioralFeature = (InternalEObject)base_BehavioralFeature; + base_BehavioralFeature = (BehavioralFeature)eResolveProxy(oldBase_BehavioralFeature); + if (base_BehavioralFeature != oldBase_BehavioralFeature) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GRMPackage.GR_SERVICE__BASE_BEHAVIORAL_FEATURE, oldBase_BehavioralFeature, base_BehavioralFeature)); + } + } + return base_BehavioralFeature; + } + + /** + * + * + * @generated + */ + public BehavioralFeature basicGetBase_BehavioralFeature() { + return base_BehavioralFeature; + } + + /** + * + * + * @generated + */ + public void setBase_BehavioralFeature(BehavioralFeature newBase_BehavioralFeature) { + BehavioralFeature oldBase_BehavioralFeature = base_BehavioralFeature; + base_BehavioralFeature = newBase_BehavioralFeature; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GRMPackage.GR_SERVICE__BASE_BEHAVIORAL_FEATURE, oldBase_BehavioralFeature, base_BehavioralFeature)); + } + + /** + * + * + * @generated + */ + public Behavior getBase_Behavior() { + if (base_Behavior != null && base_Behavior.eIsProxy()) { + InternalEObject oldBase_Behavior = (InternalEObject)base_Behavior; + base_Behavior = (Behavior)eResolveProxy(oldBase_Behavior); + if (base_Behavior != oldBase_Behavior) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GRMPackage.GR_SERVICE__BASE_BEHAVIOR, oldBase_Behavior, base_Behavior)); + } + } + return base_Behavior; + } + + /** + * + * + * @generated + */ + public Behavior basicGetBase_Behavior() { + return base_Behavior; + } + + /** + * + * + * @generated + */ + public void setBase_Behavior(Behavior newBase_Behavior) { + Behavior oldBase_Behavior = base_Behavior; + base_Behavior = newBase_Behavior; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GRMPackage.GR_SERVICE__BASE_BEHAVIOR, oldBase_Behavior, base_Behavior)); + } + + /** + * + * + * @generated + */ + public Collaboration getBase_Collaboration() { + if (base_Collaboration != null && base_Collaboration.eIsProxy()) { + InternalEObject oldBase_Collaboration = (InternalEObject)base_Collaboration; + base_Collaboration = (Collaboration)eResolveProxy(oldBase_Collaboration); + if (base_Collaboration != oldBase_Collaboration) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GRMPackage.GR_SERVICE__BASE_COLLABORATION, oldBase_Collaboration, base_Collaboration)); + } + } + return base_Collaboration; + } + + /** + * + * + * @generated + */ + public Collaboration basicGetBase_Collaboration() { + return base_Collaboration; + } + + /** + * + * + * @generated + */ + public void setBase_Collaboration(Collaboration newBase_Collaboration) { + Collaboration oldBase_Collaboration = base_Collaboration; + base_Collaboration = newBase_Collaboration; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GRMPackage.GR_SERVICE__BASE_COLLABORATION, oldBase_Collaboration, base_Collaboration)); + } + + /** + * + * + * @generated + */ + public CollaborationUse getBase_CollaborationUse() { + if (base_CollaborationUse != null && base_CollaborationUse.eIsProxy()) { + InternalEObject oldBase_CollaborationUse = (InternalEObject)base_CollaborationUse; + base_CollaborationUse = (CollaborationUse)eResolveProxy(oldBase_CollaborationUse); + if (base_CollaborationUse != oldBase_CollaborationUse) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GRMPackage.GR_SERVICE__BASE_COLLABORATION_USE, oldBase_CollaborationUse, base_CollaborationUse)); + } + } + return base_CollaborationUse; + } + + /** + * + * + * @generated + */ + public CollaborationUse basicGetBase_CollaborationUse() { + return base_CollaborationUse; + } + + /** + * + * + * @generated + */ + public void setBase_CollaborationUse(CollaborationUse newBase_CollaborationUse) { + CollaborationUse oldBase_CollaborationUse = base_CollaborationUse; + base_CollaborationUse = newBase_CollaborationUse; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GRMPackage.GR_SERVICE__BASE_COLLABORATION_USE, oldBase_CollaborationUse, base_CollaborationUse)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case GRMPackage.GR_SERVICE__OWNER: + if (resolve) return getOwner(); + return basicGetOwner(); + case GRMPackage.GR_SERVICE__BASE_EXECUTION_SPECIFICATION: + if (resolve) return getBase_ExecutionSpecification(); + return basicGetBase_ExecutionSpecification(); + case GRMPackage.GR_SERVICE__BASE_BEHAVIORAL_FEATURE: + if (resolve) return getBase_BehavioralFeature(); + return basicGetBase_BehavioralFeature(); + case GRMPackage.GR_SERVICE__BASE_BEHAVIOR: + if (resolve) return getBase_Behavior(); + return basicGetBase_Behavior(); + case GRMPackage.GR_SERVICE__BASE_COLLABORATION: + if (resolve) return getBase_Collaboration(); + return basicGetBase_Collaboration(); + case GRMPackage.GR_SERVICE__BASE_COLLABORATION_USE: + if (resolve) return getBase_CollaborationUse(); + return basicGetBase_CollaborationUse(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case GRMPackage.GR_SERVICE__OWNER: + setOwner((Resource)newValue); + return; + case GRMPackage.GR_SERVICE__BASE_EXECUTION_SPECIFICATION: + setBase_ExecutionSpecification((ExecutionSpecification)newValue); + return; + case GRMPackage.GR_SERVICE__BASE_BEHAVIORAL_FEATURE: + setBase_BehavioralFeature((BehavioralFeature)newValue); + return; + case GRMPackage.GR_SERVICE__BASE_BEHAVIOR: + setBase_Behavior((Behavior)newValue); + return; + case GRMPackage.GR_SERVICE__BASE_COLLABORATION: + setBase_Collaboration((Collaboration)newValue); + return; + case GRMPackage.GR_SERVICE__BASE_COLLABORATION_USE: + setBase_CollaborationUse((CollaborationUse)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case GRMPackage.GR_SERVICE__OWNER: + setOwner((Resource)null); + return; + case GRMPackage.GR_SERVICE__BASE_EXECUTION_SPECIFICATION: + setBase_ExecutionSpecification((ExecutionSpecification)null); + return; + case GRMPackage.GR_SERVICE__BASE_BEHAVIORAL_FEATURE: + setBase_BehavioralFeature((BehavioralFeature)null); + return; + case GRMPackage.GR_SERVICE__BASE_BEHAVIOR: + setBase_Behavior((Behavior)null); + return; + case GRMPackage.GR_SERVICE__BASE_COLLABORATION: + setBase_Collaboration((Collaboration)null); + return; + case GRMPackage.GR_SERVICE__BASE_COLLABORATION_USE: + setBase_CollaborationUse((CollaborationUse)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case GRMPackage.GR_SERVICE__OWNER: + return owner != null; + case GRMPackage.GR_SERVICE__BASE_EXECUTION_SPECIFICATION: + return base_ExecutionSpecification != null; + case GRMPackage.GR_SERVICE__BASE_BEHAVIORAL_FEATURE: + return base_BehavioralFeature != null; + case GRMPackage.GR_SERVICE__BASE_BEHAVIOR: + return base_Behavior != null; + case GRMPackage.GR_SERVICE__BASE_COLLABORATION: + return base_Collaboration != null; + case GRMPackage.GR_SERVICE__BASE_COLLABORATION_USE: + return base_CollaborationUse != null; + } + return super.eIsSet(featureID); + } + +} //GrServiceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/MutualExclusionResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/MutualExclusionResourceImpl.java new file mode 100644 index 00000000000..2ffaafc83d6 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/MutualExclusionResourceImpl.java @@ -0,0 +1,398 @@ +/***************************************************************************** + * 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.MARTE_Foundations.GRM.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.MutualExclusionResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler; + +import org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.ProtectProtocolKind; + +/** + * + * An implementation of the model object 'Mutual Exclusion Resource'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.MutualExclusionResourceImpl#getProtectKind Protect Kind}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.MutualExclusionResourceImpl#getCeiling Ceiling}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.MutualExclusionResourceImpl#getOtherProtectProtocol Other Protect Protocol}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.MutualExclusionResourceImpl#getScheduler Scheduler}
  • + *
+ *

+ * + * @generated + */ +public class MutualExclusionResourceImpl extends ResourceImpl implements MutualExclusionResource { + /** + * The default value of the '{@link #getProtectKind() Protect Kind}' attribute. + * + * + * @see #getProtectKind() + * @generated + * @ordered + */ + protected static final ProtectProtocolKind PROTECT_KIND_EDEFAULT = ProtectProtocolKind.PRIORITY_INHERITANCE; + + /** + * The cached value of the '{@link #getProtectKind() Protect Kind}' attribute. + * + * + * @see #getProtectKind() + * @generated + * @ordered + */ + protected ProtectProtocolKind protectKind = PROTECT_KIND_EDEFAULT; + + /** + * The default value of the '{@link #getCeiling() Ceiling}' attribute. + * + * + * @see #getCeiling() + * @generated + * @ordered + */ + protected static final String CEILING_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCeiling() Ceiling}' attribute. + * + * + * @see #getCeiling() + * @generated + * @ordered + */ + protected String ceiling = CEILING_EDEFAULT; + + /** + * The default value of the '{@link #getOtherProtectProtocol() Other Protect Protocol}' attribute. + * + * + * @see #getOtherProtectProtocol() + * @generated + * @ordered + */ + protected static final String OTHER_PROTECT_PROTOCOL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getOtherProtectProtocol() Other Protect Protocol}' attribute. + * + * + * @see #getOtherProtectProtocol() + * @generated + * @ordered + */ + protected String otherProtectProtocol = OTHER_PROTECT_PROTOCOL_EDEFAULT; + + /** + * The cached value of the '{@link #getScheduler() Scheduler}' reference. + * + * + * @see #getScheduler() + * @generated + * @ordered + */ + protected Scheduler scheduler; + + /** + * + * + * @generated + */ + protected MutualExclusionResourceImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return GRMPackage.Literals.MUTUAL_EXCLUSION_RESOURCE; + } + + /** + * + * + * @generated + */ + public ProtectProtocolKind getProtectKind() { + return protectKind; + } + + /** + * + * + * @generated + */ + public void setProtectKind(ProtectProtocolKind newProtectKind) { + ProtectProtocolKind oldProtectKind = protectKind; + protectKind = newProtectKind == null ? PROTECT_KIND_EDEFAULT : newProtectKind; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GRMPackage.MUTUAL_EXCLUSION_RESOURCE__PROTECT_KIND, oldProtectKind, protectKind)); + } + + /** + * + * + * @generated + */ + public String getCeiling() { + return ceiling; + } + + /** + * + * + * @generated + */ + public void setCeiling(String newCeiling) { + String oldCeiling = ceiling; + ceiling = newCeiling; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GRMPackage.MUTUAL_EXCLUSION_RESOURCE__CEILING, oldCeiling, ceiling)); + } + + /** + * + * + * @generated + */ + public String getOtherProtectProtocol() { + return otherProtectProtocol; + } + + /** + * + * + * @generated + */ + public void setOtherProtectProtocol(String newOtherProtectProtocol) { + String oldOtherProtectProtocol = otherProtectProtocol; + otherProtectProtocol = newOtherProtectProtocol; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GRMPackage.MUTUAL_EXCLUSION_RESOURCE__OTHER_PROTECT_PROTOCOL, oldOtherProtectProtocol, otherProtectProtocol)); + } + + /** + * + * + * @generated + */ + public Scheduler getScheduler() { + if (scheduler != null && scheduler.eIsProxy()) { + InternalEObject oldScheduler = (InternalEObject)scheduler; + scheduler = (Scheduler)eResolveProxy(oldScheduler); + if (scheduler != oldScheduler) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GRMPackage.MUTUAL_EXCLUSION_RESOURCE__SCHEDULER, oldScheduler, scheduler)); + } + } + return scheduler; + } + + /** + * + * + * @generated + */ + public Scheduler basicGetScheduler() { + return scheduler; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetScheduler(Scheduler newScheduler, NotificationChain msgs) { + Scheduler oldScheduler = scheduler; + scheduler = newScheduler; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GRMPackage.MUTUAL_EXCLUSION_RESOURCE__SCHEDULER, oldScheduler, newScheduler); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setScheduler(Scheduler newScheduler) { + if (newScheduler != scheduler) { + NotificationChain msgs = null; + if (scheduler != null) + msgs = ((InternalEObject)scheduler).eInverseRemove(this, GRMPackage.SCHEDULER__PROTECTED_SHARED_RESOURCES, Scheduler.class, msgs); + if (newScheduler != null) + msgs = ((InternalEObject)newScheduler).eInverseAdd(this, GRMPackage.SCHEDULER__PROTECTED_SHARED_RESOURCES, Scheduler.class, msgs); + msgs = basicSetScheduler(newScheduler, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GRMPackage.MUTUAL_EXCLUSION_RESOURCE__SCHEDULER, newScheduler, newScheduler)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case GRMPackage.MUTUAL_EXCLUSION_RESOURCE__SCHEDULER: + if (scheduler != null) + msgs = ((InternalEObject)scheduler).eInverseRemove(this, GRMPackage.SCHEDULER__PROTECTED_SHARED_RESOURCES, Scheduler.class, msgs); + return basicSetScheduler((Scheduler)otherEnd, msgs); + } + return super.eInverseAdd(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case GRMPackage.MUTUAL_EXCLUSION_RESOURCE__SCHEDULER: + return basicSetScheduler(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case GRMPackage.MUTUAL_EXCLUSION_RESOURCE__PROTECT_KIND: + return getProtectKind(); + case GRMPackage.MUTUAL_EXCLUSION_RESOURCE__CEILING: + return getCeiling(); + case GRMPackage.MUTUAL_EXCLUSION_RESOURCE__OTHER_PROTECT_PROTOCOL: + return getOtherProtectProtocol(); + case GRMPackage.MUTUAL_EXCLUSION_RESOURCE__SCHEDULER: + if (resolve) return getScheduler(); + return basicGetScheduler(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case GRMPackage.MUTUAL_EXCLUSION_RESOURCE__PROTECT_KIND: + setProtectKind((ProtectProtocolKind)newValue); + return; + case GRMPackage.MUTUAL_EXCLUSION_RESOURCE__CEILING: + setCeiling((String)newValue); + return; + case GRMPackage.MUTUAL_EXCLUSION_RESOURCE__OTHER_PROTECT_PROTOCOL: + setOtherProtectProtocol((String)newValue); + return; + case GRMPackage.MUTUAL_EXCLUSION_RESOURCE__SCHEDULER: + setScheduler((Scheduler)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case GRMPackage.MUTUAL_EXCLUSION_RESOURCE__PROTECT_KIND: + setProtectKind(PROTECT_KIND_EDEFAULT); + return; + case GRMPackage.MUTUAL_EXCLUSION_RESOURCE__CEILING: + setCeiling(CEILING_EDEFAULT); + return; + case GRMPackage.MUTUAL_EXCLUSION_RESOURCE__OTHER_PROTECT_PROTOCOL: + setOtherProtectProtocol(OTHER_PROTECT_PROTOCOL_EDEFAULT); + return; + case GRMPackage.MUTUAL_EXCLUSION_RESOURCE__SCHEDULER: + setScheduler((Scheduler)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case GRMPackage.MUTUAL_EXCLUSION_RESOURCE__PROTECT_KIND: + return protectKind != PROTECT_KIND_EDEFAULT; + case GRMPackage.MUTUAL_EXCLUSION_RESOURCE__CEILING: + return CEILING_EDEFAULT == null ? ceiling != null : !CEILING_EDEFAULT.equals(ceiling); + case GRMPackage.MUTUAL_EXCLUSION_RESOURCE__OTHER_PROTECT_PROTOCOL: + return OTHER_PROTECT_PROTOCOL_EDEFAULT == null ? otherProtectProtocol != null : !OTHER_PROTECT_PROTOCOL_EDEFAULT.equals(otherProtectProtocol); + case GRMPackage.MUTUAL_EXCLUSION_RESOURCE__SCHEDULER: + return scheduler != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (protectKind: "); + result.append(protectKind); + result.append(", ceiling: "); + result.append(ceiling); + result.append(", otherProtectProtocol: "); + result.append(otherProtectProtocol); + result.append(')'); + return result.toString(); + } + +} //MutualExclusionResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/ProcessingResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/ProcessingResourceImpl.java new file mode 100644 index 00000000000..03f8edec578 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/ProcessingResourceImpl.java @@ -0,0 +1,235 @@ +/***************************************************************************** + * 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.MARTE_Foundations.GRM.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ProcessingResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler; + +/** + * + * An implementation of the model object 'Processing Resource'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ProcessingResourceImpl#getSpeedFactor Speed Factor}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ProcessingResourceImpl#getMainScheduler Main Scheduler}
  • + *
+ *

+ * + * @generated + */ +public class ProcessingResourceImpl extends ResourceImpl implements ProcessingResource { + /** + * The default value of the '{@link #getSpeedFactor() Speed Factor}' attribute. + * + * + * @see #getSpeedFactor() + * @generated + * @ordered + */ + protected static final String SPEED_FACTOR_EDEFAULT = "1.0"; + + /** + * The cached value of the '{@link #getSpeedFactor() Speed Factor}' attribute. + * + * + * @see #getSpeedFactor() + * @generated + * @ordered + */ + protected String speedFactor = SPEED_FACTOR_EDEFAULT; + + /** + * The cached value of the '{@link #getMainScheduler() Main Scheduler}' reference. + * + * + * @see #getMainScheduler() + * @generated + * @ordered + */ + protected Scheduler mainScheduler; + + /** + * + * + * @generated + */ + protected ProcessingResourceImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return GRMPackage.Literals.PROCESSING_RESOURCE; + } + + /** + * + * + * @generated + */ + public String getSpeedFactor() { + return speedFactor; + } + + /** + * + * + * @generated + */ + public void setSpeedFactor(String newSpeedFactor) { + String oldSpeedFactor = speedFactor; + speedFactor = newSpeedFactor; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GRMPackage.PROCESSING_RESOURCE__SPEED_FACTOR, oldSpeedFactor, speedFactor)); + } + + /** + * + * + * @generated + */ + public Scheduler getMainScheduler() { + if (mainScheduler != null && mainScheduler.eIsProxy()) { + InternalEObject oldMainScheduler = (InternalEObject)mainScheduler; + mainScheduler = (Scheduler)eResolveProxy(oldMainScheduler); + if (mainScheduler != oldMainScheduler) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GRMPackage.PROCESSING_RESOURCE__MAIN_SCHEDULER, oldMainScheduler, mainScheduler)); + } + } + return mainScheduler; + } + + /** + * + * + * @generated + */ + public Scheduler basicGetMainScheduler() { + return mainScheduler; + } + + /** + * + * + * @generated + */ + public void setMainScheduler(Scheduler newMainScheduler) { + Scheduler oldMainScheduler = mainScheduler; + mainScheduler = newMainScheduler; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GRMPackage.PROCESSING_RESOURCE__MAIN_SCHEDULER, oldMainScheduler, mainScheduler)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case GRMPackage.PROCESSING_RESOURCE__SPEED_FACTOR: + return getSpeedFactor(); + case GRMPackage.PROCESSING_RESOURCE__MAIN_SCHEDULER: + if (resolve) return getMainScheduler(); + return basicGetMainScheduler(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case GRMPackage.PROCESSING_RESOURCE__SPEED_FACTOR: + setSpeedFactor((String)newValue); + return; + case GRMPackage.PROCESSING_RESOURCE__MAIN_SCHEDULER: + setMainScheduler((Scheduler)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case GRMPackage.PROCESSING_RESOURCE__SPEED_FACTOR: + setSpeedFactor(SPEED_FACTOR_EDEFAULT); + return; + case GRMPackage.PROCESSING_RESOURCE__MAIN_SCHEDULER: + setMainScheduler((Scheduler)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case GRMPackage.PROCESSING_RESOURCE__SPEED_FACTOR: + return SPEED_FACTOR_EDEFAULT == null ? speedFactor != null : !SPEED_FACTOR_EDEFAULT.equals(speedFactor); + case GRMPackage.PROCESSING_RESOURCE__MAIN_SCHEDULER: + return mainScheduler != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (speedFactor: "); + result.append(speedFactor); + result.append(')'); + return result.toString(); + } + +} //ProcessingResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/ReleaseImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/ReleaseImpl.java new file mode 100644 index 00000000000..41fbf21a987 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/ReleaseImpl.java @@ -0,0 +1,50 @@ +/***************************************************************************** + * 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.MARTE_Foundations.GRM.impl; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Release; + +/** + * + * An implementation of the model object 'Release'. + * + *

+ *

+ * + * @generated + */ +public class ReleaseImpl extends GrServiceImpl implements Release { + /** + * + * + * @generated + */ + protected ReleaseImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return GRMPackage.Literals.RELEASE; + } + +} //ReleaseImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/ResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/ResourceImpl.java new file mode 100644 index 00000000000..44e5560a028 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/ResourceImpl.java @@ -0,0 +1,589 @@ +/***************************************************************************** + * 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.MARTE_Foundations.GRM.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource; + +import org.eclipse.uml2.uml.Classifier; +import org.eclipse.uml2.uml.ConnectableElement; +import org.eclipse.uml2.uml.InstanceSpecification; +import org.eclipse.uml2.uml.Lifeline; +import org.eclipse.uml2.uml.Property; + +/** + * + * An implementation of the model object 'Resource'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ResourceImpl#getResMult Res Mult}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ResourceImpl#isIsProtected Is Protected}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ResourceImpl#isIsActive Is Active}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ResourceImpl#getBase_Property Base Property}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ResourceImpl#getBase_InstanceSpecification Base Instance Specification}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ResourceImpl#getBase_Classifier Base Classifier}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ResourceImpl#getBase_Lifeline Base Lifeline}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ResourceImpl#getBase_ConnectableElement Base Connectable Element}
  • + *
+ *

+ * + * @generated + */ +public class ResourceImpl extends EObjectImpl implements Resource { + /** + * The default value of the '{@link #getResMult() Res Mult}' attribute. + * + * + * @see #getResMult() + * @generated + * @ordered + */ + protected static final String RES_MULT_EDEFAULT = "1"; + + /** + * The cached value of the '{@link #getResMult() Res Mult}' attribute. + * + * + * @see #getResMult() + * @generated + * @ordered + */ + protected String resMult = RES_MULT_EDEFAULT; + + /** + * The default value of the '{@link #isIsProtected() Is Protected}' attribute. + * + * + * @see #isIsProtected() + * @generated + * @ordered + */ + protected static final boolean IS_PROTECTED_EDEFAULT = false; + + /** + * The cached value of the '{@link #isIsProtected() Is Protected}' attribute. + * + * + * @see #isIsProtected() + * @generated + * @ordered + */ + protected boolean isProtected = IS_PROTECTED_EDEFAULT; + + /** + * The default value of the '{@link #isIsActive() Is Active}' attribute. + * + * + * @see #isIsActive() + * @generated + * @ordered + */ + protected static final boolean IS_ACTIVE_EDEFAULT = false; + + /** + * The cached value of the '{@link #isIsActive() Is Active}' attribute. + * + * + * @see #isIsActive() + * @generated + * @ordered + */ + protected boolean isActive = IS_ACTIVE_EDEFAULT; + + /** + * The cached value of the '{@link #getBase_Property() Base Property}' reference. + * + * + * @see #getBase_Property() + * @generated + * @ordered + */ + protected Property base_Property; + + /** + * The cached value of the '{@link #getBase_InstanceSpecification() Base Instance Specification}' reference. + * + * + * @see #getBase_InstanceSpecification() + * @generated + * @ordered + */ + protected InstanceSpecification base_InstanceSpecification; + + /** + * The cached value of the '{@link #getBase_Classifier() Base Classifier}' reference. + * + * + * @see #getBase_Classifier() + * @generated + * @ordered + */ + protected Classifier base_Classifier; + + /** + * The cached value of the '{@link #getBase_Lifeline() Base Lifeline}' reference. + * + * + * @see #getBase_Lifeline() + * @generated + * @ordered + */ + protected Lifeline base_Lifeline; + + /** + * The cached value of the '{@link #getBase_ConnectableElement() Base Connectable Element}' reference. + * + * + * @see #getBase_ConnectableElement() + * @generated + * @ordered + */ + protected ConnectableElement base_ConnectableElement; + + /** + * + * + * @generated + */ + protected ResourceImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return GRMPackage.Literals.RESOURCE; + } + + /** + * + * + * @generated + */ + public String getResMult() { + return resMult; + } + + /** + * + * + * @generated + */ + public void setResMult(String newResMult) { + String oldResMult = resMult; + resMult = newResMult; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GRMPackage.RESOURCE__RES_MULT, oldResMult, resMult)); + } + + /** + * + * + * @generated + */ + public boolean isIsProtected() { + return isProtected; + } + + /** + * + * + * @generated + */ + public void setIsProtected(boolean newIsProtected) { + boolean oldIsProtected = isProtected; + isProtected = newIsProtected; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GRMPackage.RESOURCE__IS_PROTECTED, oldIsProtected, isProtected)); + } + + /** + * + * + * @generated + */ + public boolean isIsActive() { + return isActive; + } + + /** + * + * + * @generated + */ + public void setIsActive(boolean newIsActive) { + boolean oldIsActive = isActive; + isActive = newIsActive; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GRMPackage.RESOURCE__IS_ACTIVE, oldIsActive, isActive)); + } + + /** + * + * + * @generated + */ + public Property getBase_Property() { + if (base_Property != null && base_Property.eIsProxy()) { + InternalEObject oldBase_Property = (InternalEObject)base_Property; + base_Property = (Property)eResolveProxy(oldBase_Property); + if (base_Property != oldBase_Property) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GRMPackage.RESOURCE__BASE_PROPERTY, oldBase_Property, base_Property)); + } + } + return base_Property; + } + + /** + * + * + * @generated + */ + public Property basicGetBase_Property() { + return base_Property; + } + + /** + * + * + * @generated + */ + public void setBase_Property(Property newBase_Property) { + Property oldBase_Property = base_Property; + base_Property = newBase_Property; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GRMPackage.RESOURCE__BASE_PROPERTY, oldBase_Property, base_Property)); + } + + /** + * + * + * @generated + */ + public InstanceSpecification getBase_InstanceSpecification() { + if (base_InstanceSpecification != null && base_InstanceSpecification.eIsProxy()) { + InternalEObject oldBase_InstanceSpecification = (InternalEObject)base_InstanceSpecification; + base_InstanceSpecification = (InstanceSpecification)eResolveProxy(oldBase_InstanceSpecification); + if (base_InstanceSpecification != oldBase_InstanceSpecification) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GRMPackage.RESOURCE__BASE_INSTANCE_SPECIFICATION, oldBase_InstanceSpecification, base_InstanceSpecification)); + } + } + return base_InstanceSpecification; + } + + /** + * + * + * @generated + */ + public InstanceSpecification basicGetBase_InstanceSpecification() { + return base_InstanceSpecification; + } + + /** + * + * + * @generated + */ + public void setBase_InstanceSpecification(InstanceSpecification newBase_InstanceSpecification) { + InstanceSpecification oldBase_InstanceSpecification = base_InstanceSpecification; + base_InstanceSpecification = newBase_InstanceSpecification; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GRMPackage.RESOURCE__BASE_INSTANCE_SPECIFICATION, oldBase_InstanceSpecification, base_InstanceSpecification)); + } + + /** + * + * + * @generated + */ + public Classifier getBase_Classifier() { + if (base_Classifier != null && base_Classifier.eIsProxy()) { + InternalEObject oldBase_Classifier = (InternalEObject)base_Classifier; + base_Classifier = (Classifier)eResolveProxy(oldBase_Classifier); + if (base_Classifier != oldBase_Classifier) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GRMPackage.RESOURCE__BASE_CLASSIFIER, oldBase_Classifier, base_Classifier)); + } + } + return base_Classifier; + } + + /** + * + * + * @generated + */ + public Classifier basicGetBase_Classifier() { + return base_Classifier; + } + + /** + * + * + * @generated + */ + public void setBase_Classifier(Classifier newBase_Classifier) { + Classifier oldBase_Classifier = base_Classifier; + base_Classifier = newBase_Classifier; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GRMPackage.RESOURCE__BASE_CLASSIFIER, oldBase_Classifier, base_Classifier)); + } + + /** + * + * + * @generated + */ + public Lifeline getBase_Lifeline() { + if (base_Lifeline != null && base_Lifeline.eIsProxy()) { + InternalEObject oldBase_Lifeline = (InternalEObject)base_Lifeline; + base_Lifeline = (Lifeline)eResolveProxy(oldBase_Lifeline); + if (base_Lifeline != oldBase_Lifeline) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GRMPackage.RESOURCE__BASE_LIFELINE, oldBase_Lifeline, base_Lifeline)); + } + } + return base_Lifeline; + } + + /** + * + * + * @generated + */ + public Lifeline basicGetBase_Lifeline() { + return base_Lifeline; + } + + /** + * + * + * @generated + */ + public void setBase_Lifeline(Lifeline newBase_Lifeline) { + Lifeline oldBase_Lifeline = base_Lifeline; + base_Lifeline = newBase_Lifeline; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GRMPackage.RESOURCE__BASE_LIFELINE, oldBase_Lifeline, base_Lifeline)); + } + + /** + * + * + * @generated + */ + public ConnectableElement getBase_ConnectableElement() { + if (base_ConnectableElement != null && base_ConnectableElement.eIsProxy()) { + InternalEObject oldBase_ConnectableElement = (InternalEObject)base_ConnectableElement; + base_ConnectableElement = (ConnectableElement)eResolveProxy(oldBase_ConnectableElement); + if (base_ConnectableElement != oldBase_ConnectableElement) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GRMPackage.RESOURCE__BASE_CONNECTABLE_ELEMENT, oldBase_ConnectableElement, base_ConnectableElement)); + } + } + return base_ConnectableElement; + } + + /** + * + * + * @generated + */ + public ConnectableElement basicGetBase_ConnectableElement() { + return base_ConnectableElement; + } + + /** + * + * + * @generated + */ + public void setBase_ConnectableElement(ConnectableElement newBase_ConnectableElement) { + ConnectableElement oldBase_ConnectableElement = base_ConnectableElement; + base_ConnectableElement = newBase_ConnectableElement; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GRMPackage.RESOURCE__BASE_CONNECTABLE_ELEMENT, oldBase_ConnectableElement, base_ConnectableElement)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case GRMPackage.RESOURCE__RES_MULT: + return getResMult(); + case GRMPackage.RESOURCE__IS_PROTECTED: + return isIsProtected(); + case GRMPackage.RESOURCE__IS_ACTIVE: + return isIsActive(); + case GRMPackage.RESOURCE__BASE_PROPERTY: + if (resolve) return getBase_Property(); + return basicGetBase_Property(); + case GRMPackage.RESOURCE__BASE_INSTANCE_SPECIFICATION: + if (resolve) return getBase_InstanceSpecification(); + return basicGetBase_InstanceSpecification(); + case GRMPackage.RESOURCE__BASE_CLASSIFIER: + if (resolve) return getBase_Classifier(); + return basicGetBase_Classifier(); + case GRMPackage.RESOURCE__BASE_LIFELINE: + if (resolve) return getBase_Lifeline(); + return basicGetBase_Lifeline(); + case GRMPackage.RESOURCE__BASE_CONNECTABLE_ELEMENT: + if (resolve) return getBase_ConnectableElement(); + return basicGetBase_ConnectableElement(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case GRMPackage.RESOURCE__RES_MULT: + setResMult((String)newValue); + return; + case GRMPackage.RESOURCE__IS_PROTECTED: + setIsProtected((Boolean)newValue); + return; + case GRMPackage.RESOURCE__IS_ACTIVE: + setIsActive((Boolean)newValue); + return; + case GRMPackage.RESOURCE__BASE_PROPERTY: + setBase_Property((Property)newValue); + return; + case GRMPackage.RESOURCE__BASE_INSTANCE_SPECIFICATION: + setBase_InstanceSpecification((InstanceSpecification)newValue); + return; + case GRMPackage.RESOURCE__BASE_CLASSIFIER: + setBase_Classifier((Classifier)newValue); + return; + case GRMPackage.RESOURCE__BASE_LIFELINE: + setBase_Lifeline((Lifeline)newValue); + return; + case GRMPackage.RESOURCE__BASE_CONNECTABLE_ELEMENT: + setBase_ConnectableElement((ConnectableElement)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case GRMPackage.RESOURCE__RES_MULT: + setResMult(RES_MULT_EDEFAULT); + return; + case GRMPackage.RESOURCE__IS_PROTECTED: + setIsProtected(IS_PROTECTED_EDEFAULT); + return; + case GRMPackage.RESOURCE__IS_ACTIVE: + setIsActive(IS_ACTIVE_EDEFAULT); + return; + case GRMPackage.RESOURCE__BASE_PROPERTY: + setBase_Property((Property)null); + return; + case GRMPackage.RESOURCE__BASE_INSTANCE_SPECIFICATION: + setBase_InstanceSpecification((InstanceSpecification)null); + return; + case GRMPackage.RESOURCE__BASE_CLASSIFIER: + setBase_Classifier((Classifier)null); + return; + case GRMPackage.RESOURCE__BASE_LIFELINE: + setBase_Lifeline((Lifeline)null); + return; + case GRMPackage.RESOURCE__BASE_CONNECTABLE_ELEMENT: + setBase_ConnectableElement((ConnectableElement)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case GRMPackage.RESOURCE__RES_MULT: + return RES_MULT_EDEFAULT == null ? resMult != null : !RES_MULT_EDEFAULT.equals(resMult); + case GRMPackage.RESOURCE__IS_PROTECTED: + return isProtected != IS_PROTECTED_EDEFAULT; + case GRMPackage.RESOURCE__IS_ACTIVE: + return isActive != IS_ACTIVE_EDEFAULT; + case GRMPackage.RESOURCE__BASE_PROPERTY: + return base_Property != null; + case GRMPackage.RESOURCE__BASE_INSTANCE_SPECIFICATION: + return base_InstanceSpecification != null; + case GRMPackage.RESOURCE__BASE_CLASSIFIER: + return base_Classifier != null; + case GRMPackage.RESOURCE__BASE_LIFELINE: + return base_Lifeline != null; + case GRMPackage.RESOURCE__BASE_CONNECTABLE_ELEMENT: + return base_ConnectableElement != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (resMult: "); + result.append(resMult); + result.append(", isProtected: "); + result.append(isProtected); + result.append(", isActive: "); + result.append(isActive); + result.append(')'); + return result.toString(); + } + +} //ResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/ResourceUsageImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/ResourceUsageImpl.java new file mode 100644 index 00000000000..3072da1661d --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/ResourceUsageImpl.java @@ -0,0 +1,476 @@ +/***************************************************************************** + * 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.MARTE_Foundations.GRM.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.ecore.util.EDataTypeUniqueEList; +import org.eclipse.emf.ecore.util.EObjectResolvingEList; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ResourceUsage; + +import org.eclipse.uml2.uml.NamedElement; + +/** + * + * An implementation of the model object 'Resource Usage'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ResourceUsageImpl#getExecTime Exec Time}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ResourceUsageImpl#getAllocatedMemory Allocated Memory}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ResourceUsageImpl#getUsedMemory Used Memory}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ResourceUsageImpl#getPowerPeak Power Peak}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ResourceUsageImpl#getEnergy Energy}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ResourceUsageImpl#getBase_NamedElement Base Named Element}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ResourceUsageImpl#getSubUsage Sub Usage}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ResourceUsageImpl#getUsedResources Used Resources}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ResourceUsageImpl#getMsgSize Msg Size}
  • + *
+ *

+ * + * @generated + */ +public class ResourceUsageImpl extends EObjectImpl implements ResourceUsage { + /** + * The cached value of the '{@link #getExecTime() Exec Time}' attribute list. + * + * + * @see #getExecTime() + * @generated + * @ordered + */ + protected EList execTime; + + /** + * The cached value of the '{@link #getAllocatedMemory() Allocated Memory}' attribute list. + * + * + * @see #getAllocatedMemory() + * @generated + * @ordered + */ + protected EList allocatedMemory; + + /** + * The cached value of the '{@link #getUsedMemory() Used Memory}' attribute list. + * + * + * @see #getUsedMemory() + * @generated + * @ordered + */ + protected EList usedMemory; + + /** + * The cached value of the '{@link #getPowerPeak() Power Peak}' attribute list. + * + * + * @see #getPowerPeak() + * @generated + * @ordered + */ + protected EList powerPeak; + + /** + * The cached value of the '{@link #getEnergy() Energy}' attribute list. + * + * + * @see #getEnergy() + * @generated + * @ordered + */ + protected EList energy; + + /** + * The cached value of the '{@link #getBase_NamedElement() Base Named Element}' reference. + * + * + * @see #getBase_NamedElement() + * @generated + * @ordered + */ + protected NamedElement base_NamedElement; + + /** + * The cached value of the '{@link #getSubUsage() Sub Usage}' reference list. + * + * + * @see #getSubUsage() + * @generated + * @ordered + */ + protected EList subUsage; + + /** + * The cached value of the '{@link #getUsedResources() Used Resources}' reference list. + * + * + * @see #getUsedResources() + * @generated + * @ordered + */ + protected EList usedResources; + + /** + * The cached value of the '{@link #getMsgSize() Msg Size}' attribute list. + * + * + * @see #getMsgSize() + * @generated + * @ordered + */ + protected EList msgSize; + + /** + * + * + * @generated + */ + protected ResourceUsageImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return GRMPackage.Literals.RESOURCE_USAGE; + } + + /** + * + * + * @generated + */ + public EList getExecTime() { + if (execTime == null) { + execTime = new EDataTypeUniqueEList(String.class, this, GRMPackage.RESOURCE_USAGE__EXEC_TIME); + } + return execTime; + } + + /** + * + * + * @generated + */ + public EList getAllocatedMemory() { + if (allocatedMemory == null) { + allocatedMemory = new EDataTypeUniqueEList(String.class, this, GRMPackage.RESOURCE_USAGE__ALLOCATED_MEMORY); + } + return allocatedMemory; + } + + /** + * + * + * @generated + */ + public EList getUsedMemory() { + if (usedMemory == null) { + usedMemory = new EDataTypeUniqueEList(String.class, this, GRMPackage.RESOURCE_USAGE__USED_MEMORY); + } + return usedMemory; + } + + /** + * + * + * @generated + */ + public EList getPowerPeak() { + if (powerPeak == null) { + powerPeak = new EDataTypeUniqueEList(String.class, this, GRMPackage.RESOURCE_USAGE__POWER_PEAK); + } + return powerPeak; + } + + /** + * + * + * @generated + */ + public EList getEnergy() { + if (energy == null) { + energy = new EDataTypeUniqueEList(String.class, this, GRMPackage.RESOURCE_USAGE__ENERGY); + } + return energy; + } + + /** + * + * + * @generated + */ + public NamedElement getBase_NamedElement() { + if (base_NamedElement != null && base_NamedElement.eIsProxy()) { + InternalEObject oldBase_NamedElement = (InternalEObject)base_NamedElement; + base_NamedElement = (NamedElement)eResolveProxy(oldBase_NamedElement); + if (base_NamedElement != oldBase_NamedElement) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GRMPackage.RESOURCE_USAGE__BASE_NAMED_ELEMENT, oldBase_NamedElement, base_NamedElement)); + } + } + return base_NamedElement; + } + + /** + * + * + * @generated + */ + public NamedElement basicGetBase_NamedElement() { + return base_NamedElement; + } + + /** + * + * + * @generated + */ + public void setBase_NamedElement(NamedElement newBase_NamedElement) { + NamedElement oldBase_NamedElement = base_NamedElement; + base_NamedElement = newBase_NamedElement; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GRMPackage.RESOURCE_USAGE__BASE_NAMED_ELEMENT, oldBase_NamedElement, base_NamedElement)); + } + + /** + * + * + * @generated + */ + public EList getSubUsage() { + if (subUsage == null) { + subUsage = new EObjectResolvingEList(ResourceUsage.class, this, GRMPackage.RESOURCE_USAGE__SUB_USAGE); + } + return subUsage; + } + + /** + * + * + * @generated + */ + public EList getUsedResources() { + if (usedResources == null) { + usedResources = new EObjectResolvingEList(Resource.class, this, GRMPackage.RESOURCE_USAGE__USED_RESOURCES); + } + return usedResources; + } + + /** + * + * + * @generated + */ + public EList getMsgSize() { + if (msgSize == null) { + msgSize = new EDataTypeUniqueEList(String.class, this, GRMPackage.RESOURCE_USAGE__MSG_SIZE); + } + return msgSize; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case GRMPackage.RESOURCE_USAGE__EXEC_TIME: + return getExecTime(); + case GRMPackage.RESOURCE_USAGE__ALLOCATED_MEMORY: + return getAllocatedMemory(); + case GRMPackage.RESOURCE_USAGE__USED_MEMORY: + return getUsedMemory(); + case GRMPackage.RESOURCE_USAGE__POWER_PEAK: + return getPowerPeak(); + case GRMPackage.RESOURCE_USAGE__ENERGY: + return getEnergy(); + case GRMPackage.RESOURCE_USAGE__BASE_NAMED_ELEMENT: + if (resolve) return getBase_NamedElement(); + return basicGetBase_NamedElement(); + case GRMPackage.RESOURCE_USAGE__SUB_USAGE: + return getSubUsage(); + case GRMPackage.RESOURCE_USAGE__USED_RESOURCES: + return getUsedResources(); + case GRMPackage.RESOURCE_USAGE__MSG_SIZE: + return getMsgSize(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case GRMPackage.RESOURCE_USAGE__EXEC_TIME: + getExecTime().clear(); + getExecTime().addAll((Collection)newValue); + return; + case GRMPackage.RESOURCE_USAGE__ALLOCATED_MEMORY: + getAllocatedMemory().clear(); + getAllocatedMemory().addAll((Collection)newValue); + return; + case GRMPackage.RESOURCE_USAGE__USED_MEMORY: + getUsedMemory().clear(); + getUsedMemory().addAll((Collection)newValue); + return; + case GRMPackage.RESOURCE_USAGE__POWER_PEAK: + getPowerPeak().clear(); + getPowerPeak().addAll((Collection)newValue); + return; + case GRMPackage.RESOURCE_USAGE__ENERGY: + getEnergy().clear(); + getEnergy().addAll((Collection)newValue); + return; + case GRMPackage.RESOURCE_USAGE__BASE_NAMED_ELEMENT: + setBase_NamedElement((NamedElement)newValue); + return; + case GRMPackage.RESOURCE_USAGE__SUB_USAGE: + getSubUsage().clear(); + getSubUsage().addAll((Collection)newValue); + return; + case GRMPackage.RESOURCE_USAGE__USED_RESOURCES: + getUsedResources().clear(); + getUsedResources().addAll((Collection)newValue); + return; + case GRMPackage.RESOURCE_USAGE__MSG_SIZE: + getMsgSize().clear(); + getMsgSize().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case GRMPackage.RESOURCE_USAGE__EXEC_TIME: + getExecTime().clear(); + return; + case GRMPackage.RESOURCE_USAGE__ALLOCATED_MEMORY: + getAllocatedMemory().clear(); + return; + case GRMPackage.RESOURCE_USAGE__USED_MEMORY: + getUsedMemory().clear(); + return; + case GRMPackage.RESOURCE_USAGE__POWER_PEAK: + getPowerPeak().clear(); + return; + case GRMPackage.RESOURCE_USAGE__ENERGY: + getEnergy().clear(); + return; + case GRMPackage.RESOURCE_USAGE__BASE_NAMED_ELEMENT: + setBase_NamedElement((NamedElement)null); + return; + case GRMPackage.RESOURCE_USAGE__SUB_USAGE: + getSubUsage().clear(); + return; + case GRMPackage.RESOURCE_USAGE__USED_RESOURCES: + getUsedResources().clear(); + return; + case GRMPackage.RESOURCE_USAGE__MSG_SIZE: + getMsgSize().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case GRMPackage.RESOURCE_USAGE__EXEC_TIME: + return execTime != null && !execTime.isEmpty(); + case GRMPackage.RESOURCE_USAGE__ALLOCATED_MEMORY: + return allocatedMemory != null && !allocatedMemory.isEmpty(); + case GRMPackage.RESOURCE_USAGE__USED_MEMORY: + return usedMemory != null && !usedMemory.isEmpty(); + case GRMPackage.RESOURCE_USAGE__POWER_PEAK: + return powerPeak != null && !powerPeak.isEmpty(); + case GRMPackage.RESOURCE_USAGE__ENERGY: + return energy != null && !energy.isEmpty(); + case GRMPackage.RESOURCE_USAGE__BASE_NAMED_ELEMENT: + return base_NamedElement != null; + case GRMPackage.RESOURCE_USAGE__SUB_USAGE: + return subUsage != null && !subUsage.isEmpty(); + case GRMPackage.RESOURCE_USAGE__USED_RESOURCES: + return usedResources != null && !usedResources.isEmpty(); + case GRMPackage.RESOURCE_USAGE__MSG_SIZE: + return msgSize != null && !msgSize.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (execTime: "); + result.append(execTime); + result.append(", allocatedMemory: "); + result.append(allocatedMemory); + result.append(", usedMemory: "); + result.append(usedMemory); + result.append(", powerPeak: "); + result.append(powerPeak); + result.append(", energy: "); + result.append(energy); + result.append(", msgSize: "); + result.append(msgSize); + result.append(')'); + return result.toString(); + } + +} //ResourceUsageImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/SchedulableResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/SchedulableResourceImpl.java new file mode 100644 index 00000000000..c20f2a862d3 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/SchedulableResourceImpl.java @@ -0,0 +1,366 @@ +/***************************************************************************** + * 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.MARTE_Foundations.GRM.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EDataTypeUniqueEList; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SchedulableResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SecondaryScheduler; + +/** + * + * An implementation of the model object 'Schedulable Resource'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.SchedulableResourceImpl#getSchedParams Sched Params}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.SchedulableResourceImpl#getDependentScheduler Dependent Scheduler}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.SchedulableResourceImpl#getHost Host}
  • + *
+ *

+ * + * @generated + */ +public class SchedulableResourceImpl extends ResourceImpl implements SchedulableResource { + /** + * The cached value of the '{@link #getSchedParams() Sched Params}' attribute list. + * + * + * @see #getSchedParams() + * @generated + * @ordered + */ + protected EList schedParams; + + /** + * The cached value of the '{@link #getDependentScheduler() Dependent Scheduler}' reference. + * + * + * @see #getDependentScheduler() + * @generated + * @ordered + */ + protected SecondaryScheduler dependentScheduler; + + /** + * The cached value of the '{@link #getHost() Host}' reference. + * + * + * @see #getHost() + * @generated + * @ordered + */ + protected Scheduler host; + + /** + * + * + * @generated + */ + protected SchedulableResourceImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return GRMPackage.Literals.SCHEDULABLE_RESOURCE; + } + + /** + * + * + * @generated + */ + public EList getSchedParams() { + if (schedParams == null) { + schedParams = new EDataTypeUniqueEList(String.class, this, GRMPackage.SCHEDULABLE_RESOURCE__SCHED_PARAMS); + } + return schedParams; + } + + /** + * + * + * @generated + */ + public SecondaryScheduler getDependentScheduler() { + if (dependentScheduler != null && dependentScheduler.eIsProxy()) { + InternalEObject oldDependentScheduler = (InternalEObject)dependentScheduler; + dependentScheduler = (SecondaryScheduler)eResolveProxy(oldDependentScheduler); + if (dependentScheduler != oldDependentScheduler) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GRMPackage.SCHEDULABLE_RESOURCE__DEPENDENT_SCHEDULER, oldDependentScheduler, dependentScheduler)); + } + } + return dependentScheduler; + } + + /** + * + * + * @generated + */ + public SecondaryScheduler basicGetDependentScheduler() { + return dependentScheduler; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetDependentScheduler(SecondaryScheduler newDependentScheduler, NotificationChain msgs) { + SecondaryScheduler oldDependentScheduler = dependentScheduler; + dependentScheduler = newDependentScheduler; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GRMPackage.SCHEDULABLE_RESOURCE__DEPENDENT_SCHEDULER, oldDependentScheduler, newDependentScheduler); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setDependentScheduler(SecondaryScheduler newDependentScheduler) { + if (newDependentScheduler != dependentScheduler) { + NotificationChain msgs = null; + if (dependentScheduler != null) + msgs = ((InternalEObject)dependentScheduler).eInverseRemove(this, GRMPackage.SECONDARY_SCHEDULER__VIRTUAL_PROCESSING_UNITS, SecondaryScheduler.class, msgs); + if (newDependentScheduler != null) + msgs = ((InternalEObject)newDependentScheduler).eInverseAdd(this, GRMPackage.SECONDARY_SCHEDULER__VIRTUAL_PROCESSING_UNITS, SecondaryScheduler.class, msgs); + msgs = basicSetDependentScheduler(newDependentScheduler, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GRMPackage.SCHEDULABLE_RESOURCE__DEPENDENT_SCHEDULER, newDependentScheduler, newDependentScheduler)); + } + + /** + * + * + * @generated + */ + public Scheduler getHost() { + if (host != null && host.eIsProxy()) { + InternalEObject oldHost = (InternalEObject)host; + host = (Scheduler)eResolveProxy(oldHost); + if (host != oldHost) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GRMPackage.SCHEDULABLE_RESOURCE__HOST, oldHost, host)); + } + } + return host; + } + + /** + * + * + * @generated + */ + public Scheduler basicGetHost() { + return host; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetHost(Scheduler newHost, NotificationChain msgs) { + Scheduler oldHost = host; + host = newHost; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GRMPackage.SCHEDULABLE_RESOURCE__HOST, oldHost, newHost); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setHost(Scheduler newHost) { + if (newHost != host) { + NotificationChain msgs = null; + if (host != null) + msgs = ((InternalEObject)host).eInverseRemove(this, GRMPackage.SCHEDULER__SCHEDULABLE_RESOURCES, Scheduler.class, msgs); + if (newHost != null) + msgs = ((InternalEObject)newHost).eInverseAdd(this, GRMPackage.SCHEDULER__SCHEDULABLE_RESOURCES, Scheduler.class, msgs); + msgs = basicSetHost(newHost, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GRMPackage.SCHEDULABLE_RESOURCE__HOST, newHost, newHost)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case GRMPackage.SCHEDULABLE_RESOURCE__DEPENDENT_SCHEDULER: + if (dependentScheduler != null) + msgs = ((InternalEObject)dependentScheduler).eInverseRemove(this, GRMPackage.SECONDARY_SCHEDULER__VIRTUAL_PROCESSING_UNITS, SecondaryScheduler.class, msgs); + return basicSetDependentScheduler((SecondaryScheduler)otherEnd, msgs); + case GRMPackage.SCHEDULABLE_RESOURCE__HOST: + if (host != null) + msgs = ((InternalEObject)host).eInverseRemove(this, GRMPackage.SCHEDULER__SCHEDULABLE_RESOURCES, Scheduler.class, msgs); + return basicSetHost((Scheduler)otherEnd, msgs); + } + return super.eInverseAdd(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case GRMPackage.SCHEDULABLE_RESOURCE__DEPENDENT_SCHEDULER: + return basicSetDependentScheduler(null, msgs); + case GRMPackage.SCHEDULABLE_RESOURCE__HOST: + return basicSetHost(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case GRMPackage.SCHEDULABLE_RESOURCE__SCHED_PARAMS: + return getSchedParams(); + case GRMPackage.SCHEDULABLE_RESOURCE__DEPENDENT_SCHEDULER: + if (resolve) return getDependentScheduler(); + return basicGetDependentScheduler(); + case GRMPackage.SCHEDULABLE_RESOURCE__HOST: + if (resolve) return getHost(); + return basicGetHost(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case GRMPackage.SCHEDULABLE_RESOURCE__SCHED_PARAMS: + getSchedParams().clear(); + getSchedParams().addAll((Collection)newValue); + return; + case GRMPackage.SCHEDULABLE_RESOURCE__DEPENDENT_SCHEDULER: + setDependentScheduler((SecondaryScheduler)newValue); + return; + case GRMPackage.SCHEDULABLE_RESOURCE__HOST: + setHost((Scheduler)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case GRMPackage.SCHEDULABLE_RESOURCE__SCHED_PARAMS: + getSchedParams().clear(); + return; + case GRMPackage.SCHEDULABLE_RESOURCE__DEPENDENT_SCHEDULER: + setDependentScheduler((SecondaryScheduler)null); + return; + case GRMPackage.SCHEDULABLE_RESOURCE__HOST: + setHost((Scheduler)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case GRMPackage.SCHEDULABLE_RESOURCE__SCHED_PARAMS: + return schedParams != null && !schedParams.isEmpty(); + case GRMPackage.SCHEDULABLE_RESOURCE__DEPENDENT_SCHEDULER: + return dependentScheduler != null; + case GRMPackage.SCHEDULABLE_RESOURCE__HOST: + return host != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (schedParams: "); + result.append(schedParams); + result.append(')'); + return result.toString(); + } + +} //SchedulableResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/SchedulerImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/SchedulerImpl.java new file mode 100644 index 00000000000..f299128c430 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/SchedulerImpl.java @@ -0,0 +1,547 @@ +/***************************************************************************** + * 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.MARTE_Foundations.GRM.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EObjectResolvingEList; +import org.eclipse.emf.ecore.util.EObjectWithInverseResolvingEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ComputingResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.MutualExclusionResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ProcessingResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SchedulableResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler; + +import org.eclipse.papyrus.MARTE_Library.GRM_BasicTypes.SchedPolicyKind; + +/** + * + * An implementation of the model object 'Scheduler'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.SchedulerImpl#isIsPreemptible Is Preemptible}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.SchedulerImpl#getSchedPolicy Sched Policy}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.SchedulerImpl#getOtherSchedPolicy Other Sched Policy}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.SchedulerImpl#getSchedule Schedule}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.SchedulerImpl#getProcessingUnits Processing Units}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.SchedulerImpl#getHost Host}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.SchedulerImpl#getProtectedSharedResources Protected Shared Resources}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.SchedulerImpl#getSchedulableResources Schedulable Resources}
  • + *
+ *

+ * + * @generated + */ +public class SchedulerImpl extends ResourceImpl implements Scheduler { + /** + * The default value of the '{@link #isIsPreemptible() Is Preemptible}' attribute. + * + * + * @see #isIsPreemptible() + * @generated + * @ordered + */ + protected static final boolean IS_PREEMPTIBLE_EDEFAULT = true; + + /** + * The cached value of the '{@link #isIsPreemptible() Is Preemptible}' attribute. + * + * + * @see #isIsPreemptible() + * @generated + * @ordered + */ + protected boolean isPreemptible = IS_PREEMPTIBLE_EDEFAULT; + + /** + * The default value of the '{@link #getSchedPolicy() Sched Policy}' attribute. + * + * + * @see #getSchedPolicy() + * @generated + * @ordered + */ + protected static final SchedPolicyKind SCHED_POLICY_EDEFAULT = SchedPolicyKind.FIXED_PRIORITY; + + /** + * The cached value of the '{@link #getSchedPolicy() Sched Policy}' attribute. + * + * + * @see #getSchedPolicy() + * @generated + * @ordered + */ + protected SchedPolicyKind schedPolicy = SCHED_POLICY_EDEFAULT; + + /** + * The default value of the '{@link #getOtherSchedPolicy() Other Sched Policy}' attribute. + * + * + * @see #getOtherSchedPolicy() + * @generated + * @ordered + */ + protected static final String OTHER_SCHED_POLICY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getOtherSchedPolicy() Other Sched Policy}' attribute. + * + * + * @see #getOtherSchedPolicy() + * @generated + * @ordered + */ + protected String otherSchedPolicy = OTHER_SCHED_POLICY_EDEFAULT; + + /** + * The default value of the '{@link #getSchedule() Schedule}' attribute. + * + * + * @see #getSchedule() + * @generated + * @ordered + */ + protected static final String SCHEDULE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSchedule() Schedule}' attribute. + * + * + * @see #getSchedule() + * @generated + * @ordered + */ + protected String schedule = SCHEDULE_EDEFAULT; + + /** + * The cached value of the '{@link #getProcessingUnits() Processing Units}' reference list. + * + * + * @see #getProcessingUnits() + * @generated + * @ordered + */ + protected EList processingUnits; + + /** + * The cached value of the '{@link #getHost() Host}' reference. + * + * + * @see #getHost() + * @generated + * @ordered + */ + protected ComputingResource host; + + /** + * The cached value of the '{@link #getProtectedSharedResources() Protected Shared Resources}' reference list. + * + * + * @see #getProtectedSharedResources() + * @generated + * @ordered + */ + protected EList protectedSharedResources; + + /** + * The cached value of the '{@link #getSchedulableResources() Schedulable Resources}' reference list. + * + * + * @see #getSchedulableResources() + * @generated + * @ordered + */ + protected EList schedulableResources; + + /** + * + * + * @generated + */ + protected SchedulerImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return GRMPackage.Literals.SCHEDULER; + } + + /** + * + * + * @generated + */ + public boolean isIsPreemptible() { + return isPreemptible; + } + + /** + * + * + * @generated + */ + public void setIsPreemptible(boolean newIsPreemptible) { + boolean oldIsPreemptible = isPreemptible; + isPreemptible = newIsPreemptible; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GRMPackage.SCHEDULER__IS_PREEMPTIBLE, oldIsPreemptible, isPreemptible)); + } + + /** + * + * + * @generated + */ + public SchedPolicyKind getSchedPolicy() { + return schedPolicy; + } + + /** + * + * + * @generated + */ + public void setSchedPolicy(SchedPolicyKind newSchedPolicy) { + SchedPolicyKind oldSchedPolicy = schedPolicy; + schedPolicy = newSchedPolicy == null ? SCHED_POLICY_EDEFAULT : newSchedPolicy; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GRMPackage.SCHEDULER__SCHED_POLICY, oldSchedPolicy, schedPolicy)); + } + + /** + * + * + * @generated + */ + public String getOtherSchedPolicy() { + return otherSchedPolicy; + } + + /** + * + * + * @generated + */ + public void setOtherSchedPolicy(String newOtherSchedPolicy) { + String oldOtherSchedPolicy = otherSchedPolicy; + otherSchedPolicy = newOtherSchedPolicy; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GRMPackage.SCHEDULER__OTHER_SCHED_POLICY, oldOtherSchedPolicy, otherSchedPolicy)); + } + + /** + * + * + * @generated + */ + public String getSchedule() { + return schedule; + } + + /** + * + * + * @generated + */ + public void setSchedule(String newSchedule) { + String oldSchedule = schedule; + schedule = newSchedule; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GRMPackage.SCHEDULER__SCHEDULE, oldSchedule, schedule)); + } + + /** + * + * + * @generated + */ + public EList getProcessingUnits() { + if (processingUnits == null) { + processingUnits = new EObjectResolvingEList(ProcessingResource.class, this, GRMPackage.SCHEDULER__PROCESSING_UNITS); + } + return processingUnits; + } + + /** + * + * + * @generated + */ + public ComputingResource getHost() { + if (host != null && host.eIsProxy()) { + InternalEObject oldHost = (InternalEObject)host; + host = (ComputingResource)eResolveProxy(oldHost); + if (host != oldHost) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GRMPackage.SCHEDULER__HOST, oldHost, host)); + } + } + return host; + } + + /** + * + * + * @generated + */ + public ComputingResource basicGetHost() { + return host; + } + + /** + * + * + * @generated + */ + public void setHost(ComputingResource newHost) { + ComputingResource oldHost = host; + host = newHost; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GRMPackage.SCHEDULER__HOST, oldHost, host)); + } + + /** + * + * + * @generated + */ + public EList getProtectedSharedResources() { + if (protectedSharedResources == null) { + protectedSharedResources = new EObjectWithInverseResolvingEList(MutualExclusionResource.class, this, GRMPackage.SCHEDULER__PROTECTED_SHARED_RESOURCES, GRMPackage.MUTUAL_EXCLUSION_RESOURCE__SCHEDULER); + } + return protectedSharedResources; + } + + /** + * + * + * @generated + */ + public EList getSchedulableResources() { + if (schedulableResources == null) { + schedulableResources = new EObjectWithInverseResolvingEList(SchedulableResource.class, this, GRMPackage.SCHEDULER__SCHEDULABLE_RESOURCES, GRMPackage.SCHEDULABLE_RESOURCE__HOST); + } + return schedulableResources; + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case GRMPackage.SCHEDULER__PROTECTED_SHARED_RESOURCES: + return ((InternalEList)(InternalEList)getProtectedSharedResources()).basicAdd(otherEnd, msgs); + case GRMPackage.SCHEDULER__SCHEDULABLE_RESOURCES: + return ((InternalEList)(InternalEList)getSchedulableResources()).basicAdd(otherEnd, msgs); + } + return super.eInverseAdd(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case GRMPackage.SCHEDULER__PROTECTED_SHARED_RESOURCES: + return ((InternalEList)getProtectedSharedResources()).basicRemove(otherEnd, msgs); + case GRMPackage.SCHEDULER__SCHEDULABLE_RESOURCES: + return ((InternalEList)getSchedulableResources()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case GRMPackage.SCHEDULER__IS_PREEMPTIBLE: + return isIsPreemptible(); + case GRMPackage.SCHEDULER__SCHED_POLICY: + return getSchedPolicy(); + case GRMPackage.SCHEDULER__OTHER_SCHED_POLICY: + return getOtherSchedPolicy(); + case GRMPackage.SCHEDULER__SCHEDULE: + return getSchedule(); + case GRMPackage.SCHEDULER__PROCESSING_UNITS: + return getProcessingUnits(); + case GRMPackage.SCHEDULER__HOST: + if (resolve) return getHost(); + return basicGetHost(); + case GRMPackage.SCHEDULER__PROTECTED_SHARED_RESOURCES: + return getProtectedSharedResources(); + case GRMPackage.SCHEDULER__SCHEDULABLE_RESOURCES: + return getSchedulableResources(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case GRMPackage.SCHEDULER__IS_PREEMPTIBLE: + setIsPreemptible((Boolean)newValue); + return; + case GRMPackage.SCHEDULER__SCHED_POLICY: + setSchedPolicy((SchedPolicyKind)newValue); + return; + case GRMPackage.SCHEDULER__OTHER_SCHED_POLICY: + setOtherSchedPolicy((String)newValue); + return; + case GRMPackage.SCHEDULER__SCHEDULE: + setSchedule((String)newValue); + return; + case GRMPackage.SCHEDULER__PROCESSING_UNITS: + getProcessingUnits().clear(); + getProcessingUnits().addAll((Collection)newValue); + return; + case GRMPackage.SCHEDULER__HOST: + setHost((ComputingResource)newValue); + return; + case GRMPackage.SCHEDULER__PROTECTED_SHARED_RESOURCES: + getProtectedSharedResources().clear(); + getProtectedSharedResources().addAll((Collection)newValue); + return; + case GRMPackage.SCHEDULER__SCHEDULABLE_RESOURCES: + getSchedulableResources().clear(); + getSchedulableResources().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case GRMPackage.SCHEDULER__IS_PREEMPTIBLE: + setIsPreemptible(IS_PREEMPTIBLE_EDEFAULT); + return; + case GRMPackage.SCHEDULER__SCHED_POLICY: + setSchedPolicy(SCHED_POLICY_EDEFAULT); + return; + case GRMPackage.SCHEDULER__OTHER_SCHED_POLICY: + setOtherSchedPolicy(OTHER_SCHED_POLICY_EDEFAULT); + return; + case GRMPackage.SCHEDULER__SCHEDULE: + setSchedule(SCHEDULE_EDEFAULT); + return; + case GRMPackage.SCHEDULER__PROCESSING_UNITS: + getProcessingUnits().clear(); + return; + case GRMPackage.SCHEDULER__HOST: + setHost((ComputingResource)null); + return; + case GRMPackage.SCHEDULER__PROTECTED_SHARED_RESOURCES: + getProtectedSharedResources().clear(); + return; + case GRMPackage.SCHEDULER__SCHEDULABLE_RESOURCES: + getSchedulableResources().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case GRMPackage.SCHEDULER__IS_PREEMPTIBLE: + return isPreemptible != IS_PREEMPTIBLE_EDEFAULT; + case GRMPackage.SCHEDULER__SCHED_POLICY: + return schedPolicy != SCHED_POLICY_EDEFAULT; + case GRMPackage.SCHEDULER__OTHER_SCHED_POLICY: + return OTHER_SCHED_POLICY_EDEFAULT == null ? otherSchedPolicy != null : !OTHER_SCHED_POLICY_EDEFAULT.equals(otherSchedPolicy); + case GRMPackage.SCHEDULER__SCHEDULE: + return SCHEDULE_EDEFAULT == null ? schedule != null : !SCHEDULE_EDEFAULT.equals(schedule); + case GRMPackage.SCHEDULER__PROCESSING_UNITS: + return processingUnits != null && !processingUnits.isEmpty(); + case GRMPackage.SCHEDULER__HOST: + return host != null; + case GRMPackage.SCHEDULER__PROTECTED_SHARED_RESOURCES: + return protectedSharedResources != null && !protectedSharedResources.isEmpty(); + case GRMPackage.SCHEDULER__SCHEDULABLE_RESOURCES: + return schedulableResources != null && !schedulableResources.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (isPreemptible: "); + result.append(isPreemptible); + result.append(", schedPolicy: "); + result.append(schedPolicy); + result.append(", otherSchedPolicy: "); + result.append(otherSchedPolicy); + result.append(", schedule: "); + result.append(schedule); + result.append(')'); + return result.toString(); + } + +} //SchedulerImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/SecondarySchedulerImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/SecondarySchedulerImpl.java new file mode 100644 index 00000000000..bd42eee3c74 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/SecondarySchedulerImpl.java @@ -0,0 +1,176 @@ +/***************************************************************************** + * 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.MARTE_Foundations.GRM.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.util.EObjectWithInverseResolvingEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SchedulableResource; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SecondaryScheduler; + +/** + * + * An implementation of the model object 'Secondary Scheduler'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.SecondarySchedulerImpl#getVirtualProcessingUnits Virtual Processing Units}
  • + *
+ *

+ * + * @generated + */ +public class SecondarySchedulerImpl extends SchedulerImpl implements SecondaryScheduler { + /** + * The cached value of the '{@link #getVirtualProcessingUnits() Virtual Processing Units}' reference list. + * + * + * @see #getVirtualProcessingUnits() + * @generated + * @ordered + */ + protected EList virtualProcessingUnits; + + /** + * + * + * @generated + */ + protected SecondarySchedulerImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return GRMPackage.Literals.SECONDARY_SCHEDULER; + } + + /** + * + * + * @generated + */ + public EList getVirtualProcessingUnits() { + if (virtualProcessingUnits == null) { + virtualProcessingUnits = new EObjectWithInverseResolvingEList(SchedulableResource.class, this, GRMPackage.SECONDARY_SCHEDULER__VIRTUAL_PROCESSING_UNITS, GRMPackage.SCHEDULABLE_RESOURCE__DEPENDENT_SCHEDULER); + } + return virtualProcessingUnits; + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case GRMPackage.SECONDARY_SCHEDULER__VIRTUAL_PROCESSING_UNITS: + return ((InternalEList)(InternalEList)getVirtualProcessingUnits()).basicAdd(otherEnd, msgs); + } + return super.eInverseAdd(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case GRMPackage.SECONDARY_SCHEDULER__VIRTUAL_PROCESSING_UNITS: + return ((InternalEList)getVirtualProcessingUnits()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case GRMPackage.SECONDARY_SCHEDULER__VIRTUAL_PROCESSING_UNITS: + return getVirtualProcessingUnits(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case GRMPackage.SECONDARY_SCHEDULER__VIRTUAL_PROCESSING_UNITS: + getVirtualProcessingUnits().clear(); + getVirtualProcessingUnits().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case GRMPackage.SECONDARY_SCHEDULER__VIRTUAL_PROCESSING_UNITS: + getVirtualProcessingUnits().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case GRMPackage.SECONDARY_SCHEDULER__VIRTUAL_PROCESSING_UNITS: + return virtualProcessingUnits != null && !virtualProcessingUnits.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //SecondarySchedulerImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/StorageResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/StorageResourceImpl.java new file mode 100644 index 00000000000..abc23b4cba9 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/StorageResourceImpl.java @@ -0,0 +1,173 @@ +/***************************************************************************** + * 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.MARTE_Foundations.GRM.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.StorageResource; + +/** + * + * An implementation of the model object 'Storage Resource'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.StorageResourceImpl#getElementSize Element Size}
  • + *
+ *

+ * + * @generated + */ +public class StorageResourceImpl extends ResourceImpl implements StorageResource { + /** + * The default value of the '{@link #getElementSize() Element Size}' attribute. + * + * + * @see #getElementSize() + * @generated + * @ordered + */ + protected static final String ELEMENT_SIZE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getElementSize() Element Size}' attribute. + * + * + * @see #getElementSize() + * @generated + * @ordered + */ + protected String elementSize = ELEMENT_SIZE_EDEFAULT; + + /** + * + * + * @generated + */ + protected StorageResourceImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return GRMPackage.Literals.STORAGE_RESOURCE; + } + + /** + * + * + * @generated + */ + public String getElementSize() { + return elementSize; + } + + /** + * + * + * @generated + */ + public void setElementSize(String newElementSize) { + String oldElementSize = elementSize; + elementSize = newElementSize; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GRMPackage.STORAGE_RESOURCE__ELEMENT_SIZE, oldElementSize, elementSize)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case GRMPackage.STORAGE_RESOURCE__ELEMENT_SIZE: + return getElementSize(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case GRMPackage.STORAGE_RESOURCE__ELEMENT_SIZE: + setElementSize((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case GRMPackage.STORAGE_RESOURCE__ELEMENT_SIZE: + setElementSize(ELEMENT_SIZE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case GRMPackage.STORAGE_RESOURCE__ELEMENT_SIZE: + return ELEMENT_SIZE_EDEFAULT == null ? elementSize != null : !ELEMENT_SIZE_EDEFAULT.equals(elementSize); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (elementSize: "); + result.append(elementSize); + result.append(')'); + return result.toString(); + } + +} //StorageResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/SynchronizationResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/SynchronizationResourceImpl.java new file mode 100644 index 00000000000..6050d82c8bf --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/SynchronizationResourceImpl.java @@ -0,0 +1,50 @@ +/***************************************************************************** + * 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.MARTE_Foundations.GRM.impl; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SynchronizationResource; + +/** + * + * An implementation of the model object 'Synchronization Resource'. + * + *

+ *

+ * + * @generated + */ +public class SynchronizationResourceImpl extends ResourceImpl implements SynchronizationResource { + /** + * + * + * @generated + */ + protected SynchronizationResourceImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return GRMPackage.Literals.SYNCHRONIZATION_RESOURCE; + } + +} //SynchronizationResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/TimerResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/TimerResourceImpl.java new file mode 100644 index 00000000000..49164eec77a --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/TimerResourceImpl.java @@ -0,0 +1,227 @@ +/***************************************************************************** + * 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.MARTE_Foundations.GRM.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.TimerResource; + +/** + * + * An implementation of the model object 'Timer Resource'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.TimerResourceImpl#getDuration Duration}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.TimerResourceImpl#isIsPeriodic Is Periodic}
  • + *
+ *

+ * + * @generated + */ +public class TimerResourceImpl extends TimingResourceImpl implements TimerResource { + /** + * The default value of the '{@link #getDuration() Duration}' attribute. + * + * + * @see #getDuration() + * @generated + * @ordered + */ + protected static final String DURATION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDuration() Duration}' attribute. + * + * + * @see #getDuration() + * @generated + * @ordered + */ + protected String duration = DURATION_EDEFAULT; + + /** + * The default value of the '{@link #isIsPeriodic() Is Periodic}' attribute. + * + * + * @see #isIsPeriodic() + * @generated + * @ordered + */ + protected static final boolean IS_PERIODIC_EDEFAULT = false; + + /** + * The cached value of the '{@link #isIsPeriodic() Is Periodic}' attribute. + * + * + * @see #isIsPeriodic() + * @generated + * @ordered + */ + protected boolean isPeriodic = IS_PERIODIC_EDEFAULT; + + /** + * + * + * @generated + */ + protected TimerResourceImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return GRMPackage.Literals.TIMER_RESOURCE; + } + + /** + * + * + * @generated + */ + public String getDuration() { + return duration; + } + + /** + * + * + * @generated + */ + public void setDuration(String newDuration) { + String oldDuration = duration; + duration = newDuration; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GRMPackage.TIMER_RESOURCE__DURATION, oldDuration, duration)); + } + + /** + * + * + * @generated + */ + public boolean isIsPeriodic() { + return isPeriodic; + } + + /** + * + * + * @generated + */ + public void setIsPeriodic(boolean newIsPeriodic) { + boolean oldIsPeriodic = isPeriodic; + isPeriodic = newIsPeriodic; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GRMPackage.TIMER_RESOURCE__IS_PERIODIC, oldIsPeriodic, isPeriodic)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case GRMPackage.TIMER_RESOURCE__DURATION: + return getDuration(); + case GRMPackage.TIMER_RESOURCE__IS_PERIODIC: + return isIsPeriodic(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case GRMPackage.TIMER_RESOURCE__DURATION: + setDuration((String)newValue); + return; + case GRMPackage.TIMER_RESOURCE__IS_PERIODIC: + setIsPeriodic((Boolean)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case GRMPackage.TIMER_RESOURCE__DURATION: + setDuration(DURATION_EDEFAULT); + return; + case GRMPackage.TIMER_RESOURCE__IS_PERIODIC: + setIsPeriodic(IS_PERIODIC_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case GRMPackage.TIMER_RESOURCE__DURATION: + return DURATION_EDEFAULT == null ? duration != null : !DURATION_EDEFAULT.equals(duration); + case GRMPackage.TIMER_RESOURCE__IS_PERIODIC: + return isPeriodic != IS_PERIODIC_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (duration: "); + result.append(duration); + result.append(", isPeriodic: "); + result.append(isPeriodic); + result.append(')'); + return result.toString(); + } + +} //TimerResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/TimingResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/TimingResourceImpl.java new file mode 100644 index 00000000000..f9e3014131e --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/TimingResourceImpl.java @@ -0,0 +1,50 @@ +/***************************************************************************** + * 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.MARTE_Foundations.GRM.impl; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.TimingResource; + +/** + * + * An implementation of the model object 'Timing Resource'. + * + *

+ *

+ * + * @generated + */ +public class TimingResourceImpl extends ResourceImpl implements TimingResource { + /** + * + * + * @generated + */ + protected TimingResourceImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return GRMPackage.Literals.TIMING_RESOURCE; + } + +} //TimingResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/util/GRMAdapterFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/util/GRMAdapterFactory.java new file mode 100644 index 00000000000..1171afc356c --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/util/GRMAdapterFactory.java @@ -0,0 +1,473 @@ +/***************************************************************************** + * 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.MARTE_Foundations.GRM.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.MARTE_Foundations.GRM.*; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage + * @generated + */ +public class GRMAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * @generated + */ + protected static GRMPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public GRMAdapterFactory() { + if (modelPackage == null) { + modelPackage = GRMPackage.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 GRMSwitch modelSwitch = + new GRMSwitch() { + @Override + public Adapter caseResource(Resource object) { + return createResourceAdapter(); + } + @Override + public Adapter caseStorageResource(StorageResource object) { + return createStorageResourceAdapter(); + } + @Override + public Adapter caseCommunicationEndPoint(CommunicationEndPoint object) { + return createCommunicationEndPointAdapter(); + } + @Override + public Adapter caseSynchronizationResource(SynchronizationResource object) { + return createSynchronizationResourceAdapter(); + } + @Override + public Adapter caseConcurrencyResource(ConcurrencyResource object) { + return createConcurrencyResourceAdapter(); + } + @Override + public Adapter caseScheduler(Scheduler object) { + return createSchedulerAdapter(); + } + @Override + public Adapter caseProcessingResource(ProcessingResource object) { + return createProcessingResourceAdapter(); + } + @Override + public Adapter caseComputingResource(ComputingResource object) { + return createComputingResourceAdapter(); + } + @Override + public Adapter caseMutualExclusionResource(MutualExclusionResource object) { + return createMutualExclusionResourceAdapter(); + } + @Override + public Adapter caseSchedulableResource(SchedulableResource object) { + return createSchedulableResourceAdapter(); + } + @Override + public Adapter caseSecondaryScheduler(SecondaryScheduler object) { + return createSecondarySchedulerAdapter(); + } + @Override + public Adapter caseCommunicationMedia(CommunicationMedia object) { + return createCommunicationMediaAdapter(); + } + @Override + public Adapter caseDeviceResource(DeviceResource object) { + return createDeviceResourceAdapter(); + } + @Override + public Adapter caseTimingResource(TimingResource object) { + return createTimingResourceAdapter(); + } + @Override + public Adapter caseClockResource(ClockResource object) { + return createClockResourceAdapter(); + } + @Override + public Adapter caseTimerResource(TimerResource object) { + return createTimerResourceAdapter(); + } + @Override + public Adapter caseGrService(GrService object) { + return createGrServiceAdapter(); + } + @Override + public Adapter caseRelease(Release object) { + return createReleaseAdapter(); + } + @Override + public Adapter caseAcquire(Acquire object) { + return createAcquireAdapter(); + } + @Override + public Adapter caseResourceUsage(ResourceUsage object) { + return createResourceUsageAdapter(); + } + @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.MARTE_Foundations.GRM.Resource Resource}'. + * + * 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.MARTE_Foundations.GRM.Resource + * @generated + */ + public Adapter createResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.StorageResource Storage Resource}'. + * + * 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.MARTE_Foundations.GRM.StorageResource + * @generated + */ + public Adapter createStorageResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationEndPoint Communication End Point}'. + * + * 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.MARTE_Foundations.GRM.CommunicationEndPoint + * @generated + */ + public Adapter createCommunicationEndPointAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SynchronizationResource Synchronization Resource}'. + * + * 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.MARTE_Foundations.GRM.SynchronizationResource + * @generated + */ + public Adapter createSynchronizationResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ConcurrencyResource Concurrency Resource}'. + * + * 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.MARTE_Foundations.GRM.ConcurrencyResource + * @generated + */ + public Adapter createConcurrencyResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler Scheduler}'. + * + * 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.MARTE_Foundations.GRM.Scheduler + * @generated + */ + public Adapter createSchedulerAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ProcessingResource Processing Resource}'. + * + * 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.MARTE_Foundations.GRM.ProcessingResource + * @generated + */ + public Adapter createProcessingResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ComputingResource Computing Resource}'. + * + * 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.MARTE_Foundations.GRM.ComputingResource + * @generated + */ + public Adapter createComputingResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.MutualExclusionResource Mutual Exclusion Resource}'. + * + * 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.MARTE_Foundations.GRM.MutualExclusionResource + * @generated + */ + public Adapter createMutualExclusionResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SchedulableResource Schedulable Resource}'. + * + * 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.MARTE_Foundations.GRM.SchedulableResource + * @generated + */ + public Adapter createSchedulableResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.SecondaryScheduler Secondary Scheduler}'. + * + * 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.MARTE_Foundations.GRM.SecondaryScheduler + * @generated + */ + public Adapter createSecondarySchedulerAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationMedia Communication Media}'. + * + * 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.MARTE_Foundations.GRM.CommunicationMedia + * @generated + */ + public Adapter createCommunicationMediaAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.DeviceResource Device Resource}'. + * + * 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.MARTE_Foundations.GRM.DeviceResource + * @generated + */ + public Adapter createDeviceResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.TimingResource Timing Resource}'. + * + * 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.MARTE_Foundations.GRM.TimingResource + * @generated + */ + public Adapter createTimingResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ClockResource Clock Resource}'. + * + * 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.MARTE_Foundations.GRM.ClockResource + * @generated + */ + public Adapter createClockResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.TimerResource Timer Resource}'. + * + * 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.MARTE_Foundations.GRM.TimerResource + * @generated + */ + public Adapter createTimerResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GrService Gr Service}'. + * + * 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.MARTE_Foundations.GRM.GrService + * @generated + */ + public Adapter createGrServiceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Release Release}'. + * + * 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.MARTE_Foundations.GRM.Release + * @generated + */ + public Adapter createReleaseAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Acquire Acquire}'. + * + * 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.MARTE_Foundations.GRM.Acquire + * @generated + */ + public Adapter createAcquireAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ResourceUsage Resource Usage}'. + * + * 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.MARTE_Foundations.GRM.ResourceUsage + * @generated + */ + public Adapter createResourceUsageAdapter() { + 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; + } + +} //GRMAdapterFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/util/GRMResourceFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/util/GRMResourceFactoryImpl.java new file mode 100644 index 00000000000..e0c317830fd --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/util/GRMResourceFactoryImpl.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.MARTE_Foundations.GRM.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; + +import org.eclipse.emf.ecore.xmi.XMLResource; + +/** + * + * The Resource Factory associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.util.GRMResourceImpl + * @generated + */ +public class GRMResourceFactoryImpl extends ResourceFactoryImpl { + /** + * Creates an instance of the resource factory. + * + * + * @generated + */ + public GRMResourceFactoryImpl() { + super(); + } + + /** + * Creates an instance of the resource. + * + * + * @generated + */ + @Override + public Resource createResource(URI uri) { + XMLResource result = new GRMResourceImpl(uri); + result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + + result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); + return result; + } + +} //GRMResourceFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/util/GRMResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/util/GRMResourceImpl.java new file mode 100644 index 00000000000..87c79769ad4 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/util/GRMResourceImpl.java @@ -0,0 +1,39 @@ +/***************************************************************************** + * 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.MARTE_Foundations.GRM.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; + +/** + * + * The Resource associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.util.GRMResourceFactoryImpl + * @generated + */ +public class GRMResourceImpl extends XMLResourceImpl { + /** + * Creates an instance of the resource. + * + * + * @param uri the URI of the new resource. + * @generated + */ + public GRMResourceImpl(URI uri) { + super(uri); + } + +} //GRMResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/util/GRMSwitch.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/util/GRMSwitch.java new file mode 100644 index 00000000000..6d473dd8fec --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/util/GRMSwitch.java @@ -0,0 +1,559 @@ +/***************************************************************************** + * 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.MARTE_Foundations.GRM.util; + +import java.util.List; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.*; + +/** + * + * 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.MARTE_Foundations.GRM.GRMPackage + * @generated + */ +public class GRMSwitch { + /** + * The cached model package + * + * + * @generated + */ + protected static GRMPackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public GRMSwitch() { + if (modelPackage == null) { + modelPackage = GRMPackage.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 GRMPackage.RESOURCE: { + Resource resource = (Resource)theEObject; + T result = caseResource(resource); + if (result == null) result = defaultCase(theEObject); + return result; + } + case GRMPackage.STORAGE_RESOURCE: { + StorageResource storageResource = (StorageResource)theEObject; + T result = caseStorageResource(storageResource); + if (result == null) result = caseResource(storageResource); + if (result == null) result = defaultCase(theEObject); + return result; + } + case GRMPackage.COMMUNICATION_END_POINT: { + CommunicationEndPoint communicationEndPoint = (CommunicationEndPoint)theEObject; + T result = caseCommunicationEndPoint(communicationEndPoint); + if (result == null) result = caseResource(communicationEndPoint); + if (result == null) result = defaultCase(theEObject); + return result; + } + case GRMPackage.SYNCHRONIZATION_RESOURCE: { + SynchronizationResource synchronizationResource = (SynchronizationResource)theEObject; + T result = caseSynchronizationResource(synchronizationResource); + if (result == null) result = caseResource(synchronizationResource); + if (result == null) result = defaultCase(theEObject); + return result; + } + case GRMPackage.CONCURRENCY_RESOURCE: { + ConcurrencyResource concurrencyResource = (ConcurrencyResource)theEObject; + T result = caseConcurrencyResource(concurrencyResource); + if (result == null) result = caseResource(concurrencyResource); + if (result == null) result = defaultCase(theEObject); + return result; + } + case GRMPackage.SCHEDULER: { + Scheduler scheduler = (Scheduler)theEObject; + T result = caseScheduler(scheduler); + if (result == null) result = caseResource(scheduler); + if (result == null) result = defaultCase(theEObject); + return result; + } + case GRMPackage.PROCESSING_RESOURCE: { + ProcessingResource processingResource = (ProcessingResource)theEObject; + T result = caseProcessingResource(processingResource); + if (result == null) result = caseResource(processingResource); + if (result == null) result = defaultCase(theEObject); + return result; + } + case GRMPackage.COMPUTING_RESOURCE: { + ComputingResource computingResource = (ComputingResource)theEObject; + T result = caseComputingResource(computingResource); + if (result == null) result = caseProcessingResource(computingResource); + if (result == null) result = caseResource(computingResource); + if (result == null) result = defaultCase(theEObject); + return result; + } + case GRMPackage.MUTUAL_EXCLUSION_RESOURCE: { + MutualExclusionResource mutualExclusionResource = (MutualExclusionResource)theEObject; + T result = caseMutualExclusionResource(mutualExclusionResource); + if (result == null) result = caseResource(mutualExclusionResource); + if (result == null) result = defaultCase(theEObject); + return result; + } + case GRMPackage.SCHEDULABLE_RESOURCE: { + SchedulableResource schedulableResource = (SchedulableResource)theEObject; + T result = caseSchedulableResource(schedulableResource); + if (result == null) result = caseResource(schedulableResource); + if (result == null) result = defaultCase(theEObject); + return result; + } + case GRMPackage.SECONDARY_SCHEDULER: { + SecondaryScheduler secondaryScheduler = (SecondaryScheduler)theEObject; + T result = caseSecondaryScheduler(secondaryScheduler); + if (result == null) result = caseScheduler(secondaryScheduler); + if (result == null) result = caseResource(secondaryScheduler); + if (result == null) result = defaultCase(theEObject); + return result; + } + case GRMPackage.COMMUNICATION_MEDIA: { + CommunicationMedia communicationMedia = (CommunicationMedia)theEObject; + T result = caseCommunicationMedia(communicationMedia); + if (result == null) result = caseProcessingResource(communicationMedia); + if (result == null) result = caseResource(communicationMedia); + if (result == null) result = defaultCase(theEObject); + return result; + } + case GRMPackage.DEVICE_RESOURCE: { + DeviceResource deviceResource = (DeviceResource)theEObject; + T result = caseDeviceResource(deviceResource); + if (result == null) result = caseProcessingResource(deviceResource); + if (result == null) result = caseResource(deviceResource); + if (result == null) result = defaultCase(theEObject); + return result; + } + case GRMPackage.TIMING_RESOURCE: { + TimingResource timingResource = (TimingResource)theEObject; + T result = caseTimingResource(timingResource); + if (result == null) result = caseResource(timingResource); + if (result == null) result = defaultCase(theEObject); + return result; + } + case GRMPackage.CLOCK_RESOURCE: { + ClockResource clockResource = (ClockResource)theEObject; + T result = caseClockResource(clockResource); + if (result == null) result = caseTimingResource(clockResource); + if (result == null) result = caseResource(clockResource); + if (result == null) result = defaultCase(theEObject); + return result; + } + case GRMPackage.TIMER_RESOURCE: { + TimerResource timerResource = (TimerResource)theEObject; + T result = caseTimerResource(timerResource); + if (result == null) result = caseTimingResource(timerResource); + if (result == null) result = caseResource(timerResource); + if (result == null) result = defaultCase(theEObject); + return result; + } + case GRMPackage.GR_SERVICE: { + GrService grService = (GrService)theEObject; + T result = caseGrService(grService); + if (result == null) result = defaultCase(theEObject); + return result; + } + case GRMPackage.RELEASE: { + Release release = (Release)theEObject; + T result = caseRelease(release); + if (result == null) result = caseGrService(release); + if (result == null) result = defaultCase(theEObject); + return result; + } + case GRMPackage.ACQUIRE: { + Acquire acquire = (Acquire)theEObject; + T result = caseAcquire(acquire); + if (result == null) result = caseGrService(acquire); + if (result == null) result = defaultCase(theEObject); + return result; + } + case GRMPackage.RESOURCE_USAGE: { + ResourceUsage resourceUsage = (ResourceUsage)theEObject; + T result = caseResourceUsage(resourceUsage); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Resource'. + * + * 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 'Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseResource(Resource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Storage Resource'. + * + * 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 'Storage Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseStorageResource(StorageResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Communication End Point'. + * + * 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 'Communication End Point'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCommunicationEndPoint(CommunicationEndPoint object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Synchronization Resource'. + * + * 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 'Synchronization Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSynchronizationResource(SynchronizationResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Concurrency Resource'. + * + * 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 'Concurrency Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseConcurrencyResource(ConcurrencyResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Scheduler'. + * + * 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 'Scheduler'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseScheduler(Scheduler object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Processing Resource'. + * + * 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 'Processing Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseProcessingResource(ProcessingResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Computing Resource'. + * + * 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 'Computing Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseComputingResource(ComputingResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Mutual Exclusion Resource'. + * + * 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 'Mutual Exclusion Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseMutualExclusionResource(MutualExclusionResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Schedulable Resource'. + * + * 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 'Schedulable Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSchedulableResource(SchedulableResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Secondary Scheduler'. + * + * 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 'Secondary Scheduler'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSecondaryScheduler(SecondaryScheduler object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Communication Media'. + * + * 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 'Communication Media'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCommunicationMedia(CommunicationMedia object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Device Resource'. + * + * 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 'Device Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDeviceResource(DeviceResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Timing Resource'. + * + * 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 'Timing Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseTimingResource(TimingResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Clock Resource'. + * + * 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 'Clock Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseClockResource(ClockResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Timer Resource'. + * + * 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 'Timer Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseTimerResource(TimerResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Gr Service'. + * + * 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 'Gr Service'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseGrService(GrService object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Release'. + * + * 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 'Release'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseRelease(Release object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Acquire'. + * + * 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 'Acquire'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseAcquire(Acquire object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Resource Usage'. + * + * 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 'Resource Usage'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseResourceUsage(ResourceUsage 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; + } + +} //GRMSwitch diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/util/GRMXMLProcessor.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/util/GRMXMLProcessor.java new file mode 100644 index 00000000000..c2fd7937a02 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/util/GRMXMLProcessor.java @@ -0,0 +1,61 @@ +/***************************************************************************** + * 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.MARTE_Foundations.GRM.util; + +import java.util.Map; + +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.xmi.util.XMLProcessor; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage; + +/** + * This class contains helper methods to serialize and deserialize XML documents + * + * + * @generated + */ +public class GRMXMLProcessor extends XMLProcessor { + + /** + * Public constructor to instantiate the helper. + * + * + * @generated + */ + public GRMXMLProcessor() { + super((EPackage.Registry.INSTANCE)); + GRMPackage.eINSTANCE.eClass(); + } + + /** + * Register for "*" and "xml" file extensions the GRMResourceFactoryImpl factory. + * + * + * @generated + */ + @Override + protected Map getRegistrations() { + if (registrations == null) { + super.getRegistrations(); + registrations.put(XML_EXTENSION, new GRMResourceFactoryImpl()); + registrations.put(STAR_EXTENSION, new GRMResourceFactoryImpl()); + } + return registrations; + } + +} //GRMXMLProcessor diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/ConstraintKind.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/ConstraintKind.java new file mode 100644 index 00000000000..20d211a3c48 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/ConstraintKind.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.MARTE_Foundations.NFPs; + +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 'Constraint Kind', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NFPsPackage#getConstraintKind() + * @model + * @generated + */ +public enum ConstraintKind implements Enumerator { + /** + * The 'Required' literal object. + * + * + * @see #REQUIRED_VALUE + * @generated + * @ordered + */ + REQUIRED(0, "required", "required"), + + /** + * The 'Offered' literal object. + * + * + * @see #OFFERED_VALUE + * @generated + * @ordered + */ + OFFERED(1, "offered", "offered"), + + /** + * The 'Contract' literal object. + * + * + * @see #CONTRACT_VALUE + * @generated + * @ordered + */ + CONTRACT(2, "contract", "contract"); + + /** + * The 'Required' literal value. + * + *

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

+ * + * @see #REQUIRED + * @model name="required" + * @generated + * @ordered + */ + public static final int REQUIRED_VALUE = 0; + + /** + * The 'Offered' literal value. + * + *

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

+ * + * @see #OFFERED + * @model name="offered" + * @generated + * @ordered + */ + public static final int OFFERED_VALUE = 1; + + /** + * The 'Contract' literal value. + * + *

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

+ * + * @see #CONTRACT + * @model name="contract" + * @generated + * @ordered + */ + public static final int CONTRACT_VALUE = 2; + + /** + * An array of all the 'Constraint Kind' enumerators. + * + * + * @generated + */ + private static final ConstraintKind[] VALUES_ARRAY = + new ConstraintKind[] { + REQUIRED, + OFFERED, + CONTRACT, + }; + + /** + * A public read-only list of all the 'Constraint Kind' enumerators. + * + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Constraint Kind' literal with the specified literal value. + * + * + * @generated + */ + public static ConstraintKind get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + ConstraintKind result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Constraint Kind' literal with the specified name. + * + * + * @generated + */ + public static ConstraintKind getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + ConstraintKind result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Constraint Kind' literal with the specified integer value. + * + * + * @generated + */ + public static ConstraintKind get(int value) { + switch (value) { + case REQUIRED_VALUE: return REQUIRED; + case OFFERED_VALUE: return OFFERED; + case CONTRACT_VALUE: return CONTRACT; + } + 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 ConstraintKind(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; + } + +} //ConstraintKind diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/Dimension.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/Dimension.java new file mode 100644 index 00000000000..cc237c9bdfb --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/Dimension.java @@ -0,0 +1,126 @@ +/***************************************************************************** + * 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.MARTE_Foundations.NFPs; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.uml2.uml.Enumeration; + +/** + * + * A representation of the model object 'Dimension'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Dimension#getSymbol Symbol}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Dimension#getBaseDimension Base Dimension}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Dimension#getBaseExponent Base Exponent}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Dimension#getBase_Enumeration Base Enumeration}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NFPsPackage#getDimension() + * @model + * @generated + */ +public interface Dimension extends EObject { + /** + * Returns the value of the 'Symbol' attribute. + * + *

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

+ * + * @return the value of the 'Symbol' attribute. + * @see #setSymbol(String) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NFPsPackage#getDimension_Symbol() + * @model unique="false" ordered="false" + * @generated + */ + String getSymbol(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Dimension#getSymbol Symbol}' attribute. + * + * + * @param value the new value of the 'Symbol' attribute. + * @see #getSymbol() + * @generated + */ + void setSymbol(String value); + + /** + * Returns the value of the 'Base Dimension' reference list. + * The list contents are of type {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Dimension}. + * + *

+ * If the meaning of the 'Base Dimension' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Dimension' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NFPsPackage#getDimension_BaseDimension() + * @model + * @generated + */ + EList getBaseDimension(); + + /** + * Returns the value of the 'Base Exponent' attribute list. + * The list contents are of type {@link java.lang.Integer}. + * + *

+ * If the meaning of the 'Base Exponent' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Exponent' attribute list. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NFPsPackage#getDimension_BaseExponent() + * @model unique="false" + * @generated + */ + EList getBaseExponent(); + + /** + * Returns the value of the 'Base Enumeration' reference. + * + *

+ * If the meaning of the 'Base Enumeration' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Enumeration' reference. + * @see #setBase_Enumeration(Enumeration) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NFPsPackage#getDimension_Base_Enumeration() + * @model required="true" ordered="false" + * @generated + */ + Enumeration getBase_Enumeration(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Dimension#getBase_Enumeration Base Enumeration}' reference. + * + * + * @param value the new value of the 'Base Enumeration' reference. + * @see #getBase_Enumeration() + * @generated + */ + void setBase_Enumeration(Enumeration value); + +} // Dimension diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/NFPsFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/NFPsFactory.java new file mode 100644 index 00000000000..e1a2881787d --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/NFPsFactory.java @@ -0,0 +1,89 @@ +/***************************************************************************** + * 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.MARTE_Foundations.NFPs; + +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.MARTE_Foundations.NFPs.NFPsPackage + * @generated + */ +public interface NFPsFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + NFPsFactory eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.NFPsFactoryImpl.init(); + + /** + * Returns a new object of class 'Nfp'. + * + * + * @return a new object of class 'Nfp'. + * @generated + */ + Nfp createNfp(); + + /** + * Returns a new object of class 'Unit'. + * + * + * @return a new object of class 'Unit'. + * @generated + */ + Unit createUnit(); + + /** + * Returns a new object of class 'Nfp Constraint'. + * + * + * @return a new object of class 'Nfp Constraint'. + * @generated + */ + NfpConstraint createNfpConstraint(); + + /** + * Returns a new object of class 'Nfp Type'. + * + * + * @return a new object of class 'Nfp Type'. + * @generated + */ + NfpType createNfpType(); + + /** + * Returns a new object of class 'Dimension'. + * + * + * @return a new object of class 'Dimension'. + * @generated + */ + Dimension createDimension(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + NFPsPackage getNFPsPackage(); + +} //NFPsFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/NFPsPackage.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/NFPsPackage.java new file mode 100644 index 00000000000..5e64ff3a71d --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/NFPsPackage.java @@ -0,0 +1,760 @@ +/***************************************************************************** + * 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.MARTE_Foundations.NFPs; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.DataTypesPackage; + +/** + * + * 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.MARTE_Foundations.NFPs.NFPsFactory + * @model kind="package" + * @generated + */ +public interface NFPsPackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "NFPs"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "http://www.eclipse.org/papyrus/NFPs/1"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "NFPs"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + NFPsPackage eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.NFPsPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.NfpImpl Nfp}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.NfpImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.NFPsPackageImpl#getNfp() + * @generated + */ + int NFP = 0; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int NFP__BASE_PROPERTY = 0; + + /** + * The number of structural features of the 'Nfp' class. + * + * + * @generated + * @ordered + */ + int NFP_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.UnitImpl Unit}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.UnitImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.NFPsPackageImpl#getUnit() + * @generated + */ + int UNIT = 1; + + /** + * The feature id for the 'Conv Factor' attribute. + * + * + * @generated + * @ordered + */ + int UNIT__CONV_FACTOR = 0; + + /** + * The feature id for the 'Conv Offset' attribute. + * + * + * @generated + * @ordered + */ + int UNIT__CONV_OFFSET = 1; + + /** + * The feature id for the 'Base Unit' reference. + * + * + * @generated + * @ordered + */ + int UNIT__BASE_UNIT = 2; + + /** + * The feature id for the 'Base Enumeration Literal' reference. + * + * + * @generated + * @ordered + */ + int UNIT__BASE_ENUMERATION_LITERAL = 3; + + /** + * The number of structural features of the 'Unit' class. + * + * + * @generated + * @ordered + */ + int UNIT_FEATURE_COUNT = 4; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.NfpConstraintImpl Nfp Constraint}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.NfpConstraintImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.NFPsPackageImpl#getNfpConstraint() + * @generated + */ + int NFP_CONSTRAINT = 2; + + /** + * The feature id for the 'Kind' attribute. + * + * + * @generated + * @ordered + */ + int NFP_CONSTRAINT__KIND = 0; + + /** + * The feature id for the 'Base Constraint' reference. + * + * + * @generated + * @ordered + */ + int NFP_CONSTRAINT__BASE_CONSTRAINT = 1; + + /** + * The feature id for the 'Mode' reference list. + * + * + * @generated + * @ordered + */ + int NFP_CONSTRAINT__MODE = 2; + + /** + * The number of structural features of the 'Nfp Constraint' class. + * + * + * @generated + * @ordered + */ + int NFP_CONSTRAINT_FEATURE_COUNT = 3; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.NfpTypeImpl Nfp Type}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.NfpTypeImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.NFPsPackageImpl#getNfpType() + * @generated + */ + int NFP_TYPE = 3; + + /** + * The feature id for the 'Tuple Attrib' reference list. + * + * + * @generated + * @ordered + */ + int NFP_TYPE__TUPLE_ATTRIB = DataTypesPackage.TUPLE_TYPE__TUPLE_ATTRIB; + + /** + * The feature id for the 'Base Data Type' reference. + * + * + * @generated + * @ordered + */ + int NFP_TYPE__BASE_DATA_TYPE = DataTypesPackage.TUPLE_TYPE__BASE_DATA_TYPE; + + /** + * The feature id for the 'Value Attrib' reference. + * + * + * @generated + * @ordered + */ + int NFP_TYPE__VALUE_ATTRIB = DataTypesPackage.TUPLE_TYPE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Unit Attrib' reference. + * + * + * @generated + * @ordered + */ + int NFP_TYPE__UNIT_ATTRIB = DataTypesPackage.TUPLE_TYPE_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Expr Attrib' reference. + * + * + * @generated + * @ordered + */ + int NFP_TYPE__EXPR_ATTRIB = DataTypesPackage.TUPLE_TYPE_FEATURE_COUNT + 2; + + /** + * The number of structural features of the 'Nfp Type' class. + * + * + * @generated + * @ordered + */ + int NFP_TYPE_FEATURE_COUNT = DataTypesPackage.TUPLE_TYPE_FEATURE_COUNT + 3; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.DimensionImpl Dimension}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.DimensionImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.NFPsPackageImpl#getDimension() + * @generated + */ + int DIMENSION = 4; + + /** + * The feature id for the 'Symbol' attribute. + * + * + * @generated + * @ordered + */ + int DIMENSION__SYMBOL = 0; + + /** + * The feature id for the 'Base Dimension' reference list. + * + * + * @generated + * @ordered + */ + int DIMENSION__BASE_DIMENSION = 1; + + /** + * The feature id for the 'Base Exponent' attribute list. + * + * + * @generated + * @ordered + */ + int DIMENSION__BASE_EXPONENT = 2; + + /** + * The feature id for the 'Base Enumeration' reference. + * + * + * @generated + * @ordered + */ + int DIMENSION__BASE_ENUMERATION = 3; + + /** + * The number of structural features of the 'Dimension' class. + * + * + * @generated + * @ordered + */ + int DIMENSION_FEATURE_COUNT = 4; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.ConstraintKind Constraint Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.ConstraintKind + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.NFPsPackageImpl#getConstraintKind() + * @generated + */ + int CONSTRAINT_KIND = 5; + + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Nfp Nfp}'. + * + * + * @return the meta object for class 'Nfp'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Nfp + * @generated + */ + EClass getNfp(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Nfp#getBase_Property Base Property}'. + * + * + * @return the meta object for the reference 'Base Property'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Nfp#getBase_Property() + * @see #getNfp() + * @generated + */ + EReference getNfp_Base_Property(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Unit Unit}'. + * + * + * @return the meta object for class 'Unit'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Unit + * @generated + */ + EClass getUnit(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Unit#getConvFactor Conv Factor}'. + * + * + * @return the meta object for the attribute 'Conv Factor'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Unit#getConvFactor() + * @see #getUnit() + * @generated + */ + EAttribute getUnit_ConvFactor(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Unit#getConvOffset Conv Offset}'. + * + * + * @return the meta object for the attribute 'Conv Offset'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Unit#getConvOffset() + * @see #getUnit() + * @generated + */ + EAttribute getUnit_ConvOffset(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Unit#getBaseUnit Base Unit}'. + * + * + * @return the meta object for the reference 'Base Unit'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Unit#getBaseUnit() + * @see #getUnit() + * @generated + */ + EReference getUnit_BaseUnit(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Unit#getBase_EnumerationLiteral Base Enumeration Literal}'. + * + * + * @return the meta object for the reference 'Base Enumeration Literal'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Unit#getBase_EnumerationLiteral() + * @see #getUnit() + * @generated + */ + EReference getUnit_Base_EnumerationLiteral(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpConstraint Nfp Constraint}'. + * + * + * @return the meta object for class 'Nfp Constraint'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpConstraint + * @generated + */ + EClass getNfpConstraint(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpConstraint#getKind Kind}'. + * + * + * @return the meta object for the attribute 'Kind'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpConstraint#getKind() + * @see #getNfpConstraint() + * @generated + */ + EAttribute getNfpConstraint_Kind(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpConstraint#getBase_Constraint Base Constraint}'. + * + * + * @return the meta object for the reference 'Base Constraint'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpConstraint#getBase_Constraint() + * @see #getNfpConstraint() + * @generated + */ + EReference getNfpConstraint_Base_Constraint(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpConstraint#getMode Mode}'. + * + * + * @return the meta object for the reference list 'Mode'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpConstraint#getMode() + * @see #getNfpConstraint() + * @generated + */ + EReference getNfpConstraint_Mode(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpType Nfp Type}'. + * + * + * @return the meta object for class 'Nfp Type'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpType + * @generated + */ + EClass getNfpType(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpType#getValueAttrib Value Attrib}'. + * + * + * @return the meta object for the reference 'Value Attrib'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpType#getValueAttrib() + * @see #getNfpType() + * @generated + */ + EReference getNfpType_ValueAttrib(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpType#getUnitAttrib Unit Attrib}'. + * + * + * @return the meta object for the reference 'Unit Attrib'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpType#getUnitAttrib() + * @see #getNfpType() + * @generated + */ + EReference getNfpType_UnitAttrib(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpType#getExprAttrib Expr Attrib}'. + * + * + * @return the meta object for the reference 'Expr Attrib'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpType#getExprAttrib() + * @see #getNfpType() + * @generated + */ + EReference getNfpType_ExprAttrib(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Dimension Dimension}'. + * + * + * @return the meta object for class 'Dimension'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Dimension + * @generated + */ + EClass getDimension(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Dimension#getSymbol Symbol}'. + * + * + * @return the meta object for the attribute 'Symbol'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Dimension#getSymbol() + * @see #getDimension() + * @generated + */ + EAttribute getDimension_Symbol(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Dimension#getBaseDimension Base Dimension}'. + * + * + * @return the meta object for the reference list 'Base Dimension'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Dimension#getBaseDimension() + * @see #getDimension() + * @generated + */ + EReference getDimension_BaseDimension(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Dimension#getBaseExponent Base Exponent}'. + * + * + * @return the meta object for the attribute list 'Base Exponent'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Dimension#getBaseExponent() + * @see #getDimension() + * @generated + */ + EAttribute getDimension_BaseExponent(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Dimension#getBase_Enumeration Base Enumeration}'. + * + * + * @return the meta object for the reference 'Base Enumeration'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Dimension#getBase_Enumeration() + * @see #getDimension() + * @generated + */ + EReference getDimension_Base_Enumeration(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.ConstraintKind Constraint Kind}'. + * + * + * @return the meta object for enum 'Constraint Kind'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.ConstraintKind + * @generated + */ + EEnum getConstraintKind(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + NFPsFactory getNFPsFactory(); + + /** + * + * 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.MARTE_Foundations.NFPs.impl.NfpImpl Nfp}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.NfpImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.NFPsPackageImpl#getNfp() + * @generated + */ + EClass NFP = eINSTANCE.getNfp(); + + /** + * The meta object literal for the 'Base Property' reference feature. + * + * + * @generated + */ + EReference NFP__BASE_PROPERTY = eINSTANCE.getNfp_Base_Property(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.UnitImpl Unit}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.UnitImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.NFPsPackageImpl#getUnit() + * @generated + */ + EClass UNIT = eINSTANCE.getUnit(); + + /** + * The meta object literal for the 'Conv Factor' attribute feature. + * + * + * @generated + */ + EAttribute UNIT__CONV_FACTOR = eINSTANCE.getUnit_ConvFactor(); + + /** + * The meta object literal for the 'Conv Offset' attribute feature. + * + * + * @generated + */ + EAttribute UNIT__CONV_OFFSET = eINSTANCE.getUnit_ConvOffset(); + + /** + * The meta object literal for the 'Base Unit' reference feature. + * + * + * @generated + */ + EReference UNIT__BASE_UNIT = eINSTANCE.getUnit_BaseUnit(); + + /** + * The meta object literal for the 'Base Enumeration Literal' reference feature. + * + * + * @generated + */ + EReference UNIT__BASE_ENUMERATION_LITERAL = eINSTANCE.getUnit_Base_EnumerationLiteral(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.NfpConstraintImpl Nfp Constraint}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.NfpConstraintImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.NFPsPackageImpl#getNfpConstraint() + * @generated + */ + EClass NFP_CONSTRAINT = eINSTANCE.getNfpConstraint(); + + /** + * The meta object literal for the 'Kind' attribute feature. + * + * + * @generated + */ + EAttribute NFP_CONSTRAINT__KIND = eINSTANCE.getNfpConstraint_Kind(); + + /** + * The meta object literal for the 'Base Constraint' reference feature. + * + * + * @generated + */ + EReference NFP_CONSTRAINT__BASE_CONSTRAINT = eINSTANCE.getNfpConstraint_Base_Constraint(); + + /** + * The meta object literal for the 'Mode' reference list feature. + * + * + * @generated + */ + EReference NFP_CONSTRAINT__MODE = eINSTANCE.getNfpConstraint_Mode(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.NfpTypeImpl Nfp Type}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.NfpTypeImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.NFPsPackageImpl#getNfpType() + * @generated + */ + EClass NFP_TYPE = eINSTANCE.getNfpType(); + + /** + * The meta object literal for the 'Value Attrib' reference feature. + * + * + * @generated + */ + EReference NFP_TYPE__VALUE_ATTRIB = eINSTANCE.getNfpType_ValueAttrib(); + + /** + * The meta object literal for the 'Unit Attrib' reference feature. + * + * + * @generated + */ + EReference NFP_TYPE__UNIT_ATTRIB = eINSTANCE.getNfpType_UnitAttrib(); + + /** + * The meta object literal for the 'Expr Attrib' reference feature. + * + * + * @generated + */ + EReference NFP_TYPE__EXPR_ATTRIB = eINSTANCE.getNfpType_ExprAttrib(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.DimensionImpl Dimension}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.DimensionImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.NFPsPackageImpl#getDimension() + * @generated + */ + EClass DIMENSION = eINSTANCE.getDimension(); + + /** + * The meta object literal for the 'Symbol' attribute feature. + * + * + * @generated + */ + EAttribute DIMENSION__SYMBOL = eINSTANCE.getDimension_Symbol(); + + /** + * The meta object literal for the 'Base Dimension' reference list feature. + * + * + * @generated + */ + EReference DIMENSION__BASE_DIMENSION = eINSTANCE.getDimension_BaseDimension(); + + /** + * The meta object literal for the 'Base Exponent' attribute list feature. + * + * + * @generated + */ + EAttribute DIMENSION__BASE_EXPONENT = eINSTANCE.getDimension_BaseExponent(); + + /** + * The meta object literal for the 'Base Enumeration' reference feature. + * + * + * @generated + */ + EReference DIMENSION__BASE_ENUMERATION = eINSTANCE.getDimension_Base_Enumeration(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.ConstraintKind Constraint Kind}' enum. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.ConstraintKind + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.NFPsPackageImpl#getConstraintKind() + * @generated + */ + EEnum CONSTRAINT_KIND = eINSTANCE.getConstraintKind(); + + } + +} //NFPsPackage diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/Nfp.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/Nfp.java new file mode 100644 index 00000000000..e16f6d445d2 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/Nfp.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.MARTE_Foundations.NFPs; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.uml2.uml.Property; + +/** + * + * A representation of the model object 'Nfp'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Nfp#getBase_Property Base Property}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NFPsPackage#getNfp() + * @model + * @generated + */ +public interface Nfp extends EObject { + /** + * Returns the value of the 'Base Property' reference. + * + *

+ * If the meaning of the 'Base Property' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Property' reference. + * @see #setBase_Property(Property) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NFPsPackage#getNfp_Base_Property() + * @model required="true" ordered="false" + * @generated + */ + Property getBase_Property(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Nfp#getBase_Property Base Property}' reference. + * + * + * @param value the new value of the 'Base Property' reference. + * @see #getBase_Property() + * @generated + */ + void setBase_Property(Property value); + +} // Nfp diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/NfpConstraint.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/NfpConstraint.java new file mode 100644 index 00000000000..c1ab1565889 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/NfpConstraint.java @@ -0,0 +1,114 @@ +/***************************************************************************** + * 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.MARTE_Foundations.NFPs; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.Mode; + +import org.eclipse.uml2.uml.Constraint; + +/** + * + * A representation of the model object 'Nfp Constraint'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpConstraint#getKind Kind}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpConstraint#getBase_Constraint Base Constraint}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpConstraint#getMode Mode}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NFPsPackage#getNfpConstraint() + * @model + * @generated + */ +public interface NfpConstraint extends EObject { + /** + * Returns the value of the 'Kind' attribute. + * The literals are from the enumeration {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.ConstraintKind}. + * + *

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

+ * + * @return the value of the 'Kind' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.ConstraintKind + * @see #setKind(ConstraintKind) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NFPsPackage#getNfpConstraint_Kind() + * @model unique="false" ordered="false" + * @generated + */ + ConstraintKind getKind(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpConstraint#getKind Kind}' attribute. + * + * + * @param value the new value of the 'Kind' attribute. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.ConstraintKind + * @see #getKind() + * @generated + */ + void setKind(ConstraintKind value); + + /** + * Returns the value of the 'Base Constraint' reference. + * + *

+ * If the meaning of the 'Base Constraint' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Constraint' reference. + * @see #setBase_Constraint(Constraint) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NFPsPackage#getNfpConstraint_Base_Constraint() + * @model required="true" ordered="false" + * @generated + */ + Constraint getBase_Constraint(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpConstraint#getBase_Constraint Base Constraint}' reference. + * + * + * @param value the new value of the 'Base Constraint' reference. + * @see #getBase_Constraint() + * @generated + */ + void setBase_Constraint(Constraint value); + + /** + * Returns the value of the 'Mode' reference list. + * The list contents are of type {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.Mode}. + * + *

+ * If the meaning of the 'Mode' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Mode' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NFPsPackage#getNfpConstraint_Mode() + * @model ordered="false" + * @generated + */ + EList getMode(); + +} // NfpConstraint diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/NfpType.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/NfpType.java new file mode 100644 index 00000000000..72374e3f11b --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/NfpType.java @@ -0,0 +1,117 @@ +/***************************************************************************** + * 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.MARTE_Foundations.NFPs; + +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.TupleType; + +import org.eclipse.uml2.uml.Property; + +/** + * + * A representation of the model object 'Nfp Type'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpType#getValueAttrib Value Attrib}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpType#getUnitAttrib Unit Attrib}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpType#getExprAttrib Expr Attrib}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NFPsPackage#getNfpType() + * @model + * @generated + */ +public interface NfpType extends TupleType { + /** + * Returns the value of the 'Value Attrib' reference. + * + *

+ * If the meaning of the 'Value Attrib' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Value Attrib' reference. + * @see #setValueAttrib(Property) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NFPsPackage#getNfpType_ValueAttrib() + * @model ordered="false" + * @generated + */ + Property getValueAttrib(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpType#getValueAttrib Value Attrib}' reference. + * + * + * @param value the new value of the 'Value Attrib' reference. + * @see #getValueAttrib() + * @generated + */ + void setValueAttrib(Property value); + + /** + * Returns the value of the 'Unit Attrib' reference. + * + *

+ * If the meaning of the 'Unit Attrib' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Unit Attrib' reference. + * @see #setUnitAttrib(Property) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NFPsPackage#getNfpType_UnitAttrib() + * @model ordered="false" + * @generated + */ + Property getUnitAttrib(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpType#getUnitAttrib Unit Attrib}' reference. + * + * + * @param value the new value of the 'Unit Attrib' reference. + * @see #getUnitAttrib() + * @generated + */ + void setUnitAttrib(Property value); + + /** + * Returns the value of the 'Expr Attrib' reference. + * + *

+ * If the meaning of the 'Expr Attrib' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Expr Attrib' reference. + * @see #setExprAttrib(Property) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NFPsPackage#getNfpType_ExprAttrib() + * @model ordered="false" + * @generated + */ + Property getExprAttrib(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpType#getExprAttrib Expr Attrib}' reference. + * + * + * @param value the new value of the 'Expr Attrib' reference. + * @see #getExprAttrib() + * @generated + */ + void setExprAttrib(Property value); + +} // NfpType diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/Unit.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/Unit.java new file mode 100644 index 00000000000..59495b4a289 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/Unit.java @@ -0,0 +1,144 @@ +/***************************************************************************** + * 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.MARTE_Foundations.NFPs; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.uml2.uml.EnumerationLiteral; + +/** + * + * A representation of the model object 'Unit'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Unit#getConvFactor Conv Factor}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Unit#getConvOffset Conv Offset}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Unit#getBaseUnit Base Unit}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Unit#getBase_EnumerationLiteral Base Enumeration Literal}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NFPsPackage#getUnit() + * @model + * @generated + */ +public interface Unit extends EObject { + /** + * Returns the value of the 'Conv Factor' attribute. + * + *

+ * If the meaning of the 'Conv Factor' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Conv Factor' attribute. + * @see #setConvFactor(String) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NFPsPackage#getUnit_ConvFactor() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.Real" ordered="false" + * @generated + */ + String getConvFactor(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Unit#getConvFactor Conv Factor}' attribute. + * + * + * @param value the new value of the 'Conv Factor' attribute. + * @see #getConvFactor() + * @generated + */ + void setConvFactor(String value); + + /** + * Returns the value of the 'Conv Offset' attribute. + * + *

+ * If the meaning of the 'Conv Offset' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Conv Offset' attribute. + * @see #setConvOffset(String) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NFPsPackage#getUnit_ConvOffset() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.Real" ordered="false" + * @generated + */ + String getConvOffset(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Unit#getConvOffset Conv Offset}' attribute. + * + * + * @param value the new value of the 'Conv Offset' attribute. + * @see #getConvOffset() + * @generated + */ + void setConvOffset(String value); + + /** + * Returns the value of the 'Base Unit' reference. + * + *

+ * If the meaning of the 'Base Unit' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Unit' reference. + * @see #setBaseUnit(Unit) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NFPsPackage#getUnit_BaseUnit() + * @model ordered="false" + * @generated + */ + Unit getBaseUnit(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Unit#getBaseUnit Base Unit}' reference. + * + * + * @param value the new value of the 'Base Unit' reference. + * @see #getBaseUnit() + * @generated + */ + void setBaseUnit(Unit value); + + /** + * Returns the value of the 'Base Enumeration Literal' reference. + * + *

+ * If the meaning of the 'Base Enumeration Literal' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Enumeration Literal' reference. + * @see #setBase_EnumerationLiteral(EnumerationLiteral) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NFPsPackage#getUnit_Base_EnumerationLiteral() + * @model required="true" ordered="false" + * @generated + */ + EnumerationLiteral getBase_EnumerationLiteral(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Unit#getBase_EnumerationLiteral Base Enumeration Literal}' reference. + * + * + * @param value the new value of the 'Base Enumeration Literal' reference. + * @see #getBase_EnumerationLiteral() + * @generated + */ + void setBase_EnumerationLiteral(EnumerationLiteral value); + +} // Unit diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/impl/DimensionImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/impl/DimensionImpl.java new file mode 100644 index 00000000000..4de903faf76 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/impl/DimensionImpl.java @@ -0,0 +1,315 @@ +/***************************************************************************** + * 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.MARTE_Foundations.NFPs.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.ecore.util.EDataTypeEList; +import org.eclipse.emf.ecore.util.EObjectResolvingEList; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Dimension; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NFPsPackage; + +import org.eclipse.uml2.uml.Enumeration; + +/** + * + * An implementation of the model object 'Dimension'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.DimensionImpl#getSymbol Symbol}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.DimensionImpl#getBaseDimension Base Dimension}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.DimensionImpl#getBaseExponent Base Exponent}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.DimensionImpl#getBase_Enumeration Base Enumeration}
  • + *
+ *

+ * + * @generated + */ +public class DimensionImpl extends EObjectImpl implements Dimension { + /** + * The default value of the '{@link #getSymbol() Symbol}' attribute. + * + * + * @see #getSymbol() + * @generated + * @ordered + */ + protected static final String SYMBOL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSymbol() Symbol}' attribute. + * + * + * @see #getSymbol() + * @generated + * @ordered + */ + protected String symbol = SYMBOL_EDEFAULT; + + /** + * The cached value of the '{@link #getBaseDimension() Base Dimension}' reference list. + * + * + * @see #getBaseDimension() + * @generated + * @ordered + */ + protected EList baseDimension; + + /** + * The cached value of the '{@link #getBaseExponent() Base Exponent}' attribute list. + * + * + * @see #getBaseExponent() + * @generated + * @ordered + */ + protected EList baseExponent; + + /** + * The cached value of the '{@link #getBase_Enumeration() Base Enumeration}' reference. + * + * + * @see #getBase_Enumeration() + * @generated + * @ordered + */ + protected Enumeration base_Enumeration; + + /** + * + * + * @generated + */ + protected DimensionImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return NFPsPackage.Literals.DIMENSION; + } + + /** + * + * + * @generated + */ + public String getSymbol() { + return symbol; + } + + /** + * + * + * @generated + */ + public void setSymbol(String newSymbol) { + String oldSymbol = symbol; + symbol = newSymbol; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NFPsPackage.DIMENSION__SYMBOL, oldSymbol, symbol)); + } + + /** + * + * + * @generated + */ + public EList getBaseDimension() { + if (baseDimension == null) { + baseDimension = new EObjectResolvingEList(Dimension.class, this, NFPsPackage.DIMENSION__BASE_DIMENSION); + } + return baseDimension; + } + + /** + * + * + * @generated + */ + public EList getBaseExponent() { + if (baseExponent == null) { + baseExponent = new EDataTypeEList(Integer.class, this, NFPsPackage.DIMENSION__BASE_EXPONENT); + } + return baseExponent; + } + + /** + * + * + * @generated + */ + public Enumeration getBase_Enumeration() { + if (base_Enumeration != null && base_Enumeration.eIsProxy()) { + InternalEObject oldBase_Enumeration = (InternalEObject)base_Enumeration; + base_Enumeration = (Enumeration)eResolveProxy(oldBase_Enumeration); + if (base_Enumeration != oldBase_Enumeration) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, NFPsPackage.DIMENSION__BASE_ENUMERATION, oldBase_Enumeration, base_Enumeration)); + } + } + return base_Enumeration; + } + + /** + * + * + * @generated + */ + public Enumeration basicGetBase_Enumeration() { + return base_Enumeration; + } + + /** + * + * + * @generated + */ + public void setBase_Enumeration(Enumeration newBase_Enumeration) { + Enumeration oldBase_Enumeration = base_Enumeration; + base_Enumeration = newBase_Enumeration; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NFPsPackage.DIMENSION__BASE_ENUMERATION, oldBase_Enumeration, base_Enumeration)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case NFPsPackage.DIMENSION__SYMBOL: + return getSymbol(); + case NFPsPackage.DIMENSION__BASE_DIMENSION: + return getBaseDimension(); + case NFPsPackage.DIMENSION__BASE_EXPONENT: + return getBaseExponent(); + case NFPsPackage.DIMENSION__BASE_ENUMERATION: + if (resolve) return getBase_Enumeration(); + return basicGetBase_Enumeration(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case NFPsPackage.DIMENSION__SYMBOL: + setSymbol((String)newValue); + return; + case NFPsPackage.DIMENSION__BASE_DIMENSION: + getBaseDimension().clear(); + getBaseDimension().addAll((Collection)newValue); + return; + case NFPsPackage.DIMENSION__BASE_EXPONENT: + getBaseExponent().clear(); + getBaseExponent().addAll((Collection)newValue); + return; + case NFPsPackage.DIMENSION__BASE_ENUMERATION: + setBase_Enumeration((Enumeration)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case NFPsPackage.DIMENSION__SYMBOL: + setSymbol(SYMBOL_EDEFAULT); + return; + case NFPsPackage.DIMENSION__BASE_DIMENSION: + getBaseDimension().clear(); + return; + case NFPsPackage.DIMENSION__BASE_EXPONENT: + getBaseExponent().clear(); + return; + case NFPsPackage.DIMENSION__BASE_ENUMERATION: + setBase_Enumeration((Enumeration)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case NFPsPackage.DIMENSION__SYMBOL: + return SYMBOL_EDEFAULT == null ? symbol != null : !SYMBOL_EDEFAULT.equals(symbol); + case NFPsPackage.DIMENSION__BASE_DIMENSION: + return baseDimension != null && !baseDimension.isEmpty(); + case NFPsPackage.DIMENSION__BASE_EXPONENT: + return baseExponent != null && !baseExponent.isEmpty(); + case NFPsPackage.DIMENSION__BASE_ENUMERATION: + return base_Enumeration != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (symbol: "); + result.append(symbol); + result.append(", baseExponent: "); + result.append(baseExponent); + result.append(')'); + return result.toString(); + } + +} //DimensionImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/impl/NFPsFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/impl/NFPsFactoryImpl.java new file mode 100644 index 00000000000..f979d75cd77 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/impl/NFPsFactoryImpl.java @@ -0,0 +1,201 @@ +/***************************************************************************** + * 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.MARTE_Foundations.NFPs.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.MARTE_Foundations.NFPs.*; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class NFPsFactoryImpl extends EFactoryImpl implements NFPsFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static NFPsFactory init() { + try { + NFPsFactory theNFPsFactory = (NFPsFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/NFPs/1"); + if (theNFPsFactory != null) { + return theNFPsFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new NFPsFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public NFPsFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case NFPsPackage.NFP: return createNfp(); + case NFPsPackage.UNIT: return createUnit(); + case NFPsPackage.NFP_CONSTRAINT: return createNfpConstraint(); + case NFPsPackage.NFP_TYPE: return createNfpType(); + case NFPsPackage.DIMENSION: return createDimension(); + 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 NFPsPackage.CONSTRAINT_KIND: + return createConstraintKindFromString(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 NFPsPackage.CONSTRAINT_KIND: + return convertConstraintKindToString(eDataType, instanceValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public Nfp createNfp() { + NfpImpl nfp = new NfpImpl(); + return nfp; + } + + /** + * + * + * @generated + */ + public Unit createUnit() { + UnitImpl unit = new UnitImpl(); + return unit; + } + + /** + * + * + * @generated + */ + public NfpConstraint createNfpConstraint() { + NfpConstraintImpl nfpConstraint = new NfpConstraintImpl(); + return nfpConstraint; + } + + /** + * + * + * @generated + */ + public NfpType createNfpType() { + NfpTypeImpl nfpType = new NfpTypeImpl(); + return nfpType; + } + + /** + * + * + * @generated + */ + public Dimension createDimension() { + DimensionImpl dimension = new DimensionImpl(); + return dimension; + } + + /** + * + * + * @generated + */ + public ConstraintKind createConstraintKindFromString(EDataType eDataType, String initialValue) { + ConstraintKind result = ConstraintKind.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertConstraintKindToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public NFPsPackage getNFPsPackage() { + return (NFPsPackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static NFPsPackage getPackage() { + return NFPsPackage.eINSTANCE; + } + +} //NFPsFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/impl/NFPsPackageImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/impl/NFPsPackageImpl.java new file mode 100644 index 00000000000..bdabd132d2b --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/impl/NFPsPackageImpl.java @@ -0,0 +1,748 @@ +/***************************************************************************** + * 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.MARTE_Foundations.NFPs.impl; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +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.ConstraintKind; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Dimension; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NFPsFactory; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NFPsPackage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Nfp; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpConstraint; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpType; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Unit; + +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.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 NFPsPackageImpl extends EPackageImpl implements NFPsPackage { + /** + * + * + * @generated + */ + private EClass nfpEClass = null; + + /** + * + * + * @generated + */ + private EClass unitEClass = null; + + /** + * + * + * @generated + */ + private EClass nfpConstraintEClass = null; + + /** + * + * + * @generated + */ + private EClass nfpTypeEClass = null; + + /** + * + * + * @generated + */ + private EClass dimensionEClass = null; + + /** + * + * + * @generated + */ + private EEnum constraintKindEEnum = 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.MARTE_Foundations.NFPs.NFPsPackage#eNS_URI + * @see #init() + * @generated + */ + private NFPsPackageImpl() { + super(eNS_URI, NFPsFactory.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 NFPsPackage#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 NFPsPackage init() { + if (isInited) return (NFPsPackage)EPackage.Registry.INSTANCE.getEPackage(NFPsPackage.eNS_URI); + + // Obtain or create and register package + NFPsPackageImpl theNFPsPackage = (NFPsPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof NFPsPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new NFPsPackageImpl()); + + 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); + 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); + 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 + theNFPsPackage.createPackageContents(); + theMARTEPackage.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(); + theMARTE_PrimitivesTypesPackage.createPackageContents(); + + // Initialize created meta-data + theNFPsPackage.initializePackageContents(); + theMARTEPackage.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(); + theMARTE_PrimitivesTypesPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theNFPsPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(NFPsPackage.eNS_URI, theNFPsPackage); + return theNFPsPackage; + } + + /** + * + * + * @generated + */ + public EClass getNfp() { + return nfpEClass; + } + + /** + * + * + * @generated + */ + public EReference getNfp_Base_Property() { + return (EReference)nfpEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getUnit() { + return unitEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getUnit_ConvFactor() { + return (EAttribute)unitEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getUnit_ConvOffset() { + return (EAttribute)unitEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getUnit_BaseUnit() { + return (EReference)unitEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getUnit_Base_EnumerationLiteral() { + return (EReference)unitEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EClass getNfpConstraint() { + return nfpConstraintEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getNfpConstraint_Kind() { + return (EAttribute)nfpConstraintEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getNfpConstraint_Base_Constraint() { + return (EReference)nfpConstraintEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getNfpConstraint_Mode() { + return (EReference)nfpConstraintEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getNfpType() { + return nfpTypeEClass; + } + + /** + * + * + * @generated + */ + public EReference getNfpType_ValueAttrib() { + return (EReference)nfpTypeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getNfpType_UnitAttrib() { + return (EReference)nfpTypeEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getNfpType_ExprAttrib() { + return (EReference)nfpTypeEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getDimension() { + return dimensionEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getDimension_Symbol() { + return (EAttribute)dimensionEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getDimension_BaseDimension() { + return (EReference)dimensionEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getDimension_BaseExponent() { + return (EAttribute)dimensionEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getDimension_Base_Enumeration() { + return (EReference)dimensionEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EEnum getConstraintKind() { + return constraintKindEEnum; + } + + /** + * + * + * @generated + */ + public NFPsFactory getNFPsFactory() { + return (NFPsFactory)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 + nfpEClass = createEClass(NFP); + createEReference(nfpEClass, NFP__BASE_PROPERTY); + + unitEClass = createEClass(UNIT); + createEAttribute(unitEClass, UNIT__CONV_FACTOR); + createEAttribute(unitEClass, UNIT__CONV_OFFSET); + createEReference(unitEClass, UNIT__BASE_UNIT); + createEReference(unitEClass, UNIT__BASE_ENUMERATION_LITERAL); + + nfpConstraintEClass = createEClass(NFP_CONSTRAINT); + createEAttribute(nfpConstraintEClass, NFP_CONSTRAINT__KIND); + createEReference(nfpConstraintEClass, NFP_CONSTRAINT__BASE_CONSTRAINT); + createEReference(nfpConstraintEClass, NFP_CONSTRAINT__MODE); + + nfpTypeEClass = createEClass(NFP_TYPE); + createEReference(nfpTypeEClass, NFP_TYPE__VALUE_ATTRIB); + createEReference(nfpTypeEClass, NFP_TYPE__UNIT_ATTRIB); + createEReference(nfpTypeEClass, NFP_TYPE__EXPR_ATTRIB); + + dimensionEClass = createEClass(DIMENSION); + createEAttribute(dimensionEClass, DIMENSION__SYMBOL); + createEReference(dimensionEClass, DIMENSION__BASE_DIMENSION); + createEAttribute(dimensionEClass, DIMENSION__BASE_EXPONENT); + createEReference(dimensionEClass, DIMENSION__BASE_ENUMERATION); + + // Create enums + constraintKindEEnum = createEEnum(CONSTRAINT_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); + + // Obtain other dependent packages + UMLPackage theUMLPackage = (UMLPackage)EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI); + MARTE_PrimitivesTypesPackage theMARTE_PrimitivesTypesPackage = (MARTE_PrimitivesTypesPackage)EPackage.Registry.INSTANCE.getEPackage(MARTE_PrimitivesTypesPackage.eNS_URI); + CoreElementsPackage theCoreElementsPackage = (CoreElementsPackage)EPackage.Registry.INSTANCE.getEPackage(CoreElementsPackage.eNS_URI); + DataTypesPackage theDataTypesPackage = (DataTypesPackage)EPackage.Registry.INSTANCE.getEPackage(DataTypesPackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + nfpTypeEClass.getESuperTypes().add(theDataTypesPackage.getTupleType()); + + // Initialize classes and features; add operations and parameters + initEClass(nfpEClass, Nfp.class, "Nfp", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getNfp_Base_Property(), theUMLPackage.getProperty(), null, "base_Property", null, 1, 1, Nfp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(unitEClass, Unit.class, "Unit", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getUnit_ConvFactor(), theMARTE_PrimitivesTypesPackage.getReal(), "convFactor", null, 0, 1, Unit.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getUnit_ConvOffset(), theMARTE_PrimitivesTypesPackage.getReal(), "convOffset", null, 0, 1, Unit.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getUnit_BaseUnit(), this.getUnit(), null, "baseUnit", null, 0, 1, Unit.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getUnit_Base_EnumerationLiteral(), theUMLPackage.getEnumerationLiteral(), null, "base_EnumerationLiteral", null, 1, 1, Unit.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(nfpConstraintEClass, NfpConstraint.class, "NfpConstraint", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getNfpConstraint_Kind(), this.getConstraintKind(), "kind", null, 0, 1, NfpConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getNfpConstraint_Base_Constraint(), theUMLPackage.getConstraint(), null, "base_Constraint", null, 1, 1, NfpConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getNfpConstraint_Mode(), theCoreElementsPackage.getMode(), null, "mode", null, 0, -1, NfpConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(nfpTypeEClass, NfpType.class, "NfpType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getNfpType_ValueAttrib(), theUMLPackage.getProperty(), null, "valueAttrib", null, 0, 1, NfpType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getNfpType_UnitAttrib(), theUMLPackage.getProperty(), null, "unitAttrib", null, 0, 1, NfpType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getNfpType_ExprAttrib(), theUMLPackage.getProperty(), null, "exprAttrib", null, 0, 1, NfpType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(dimensionEClass, Dimension.class, "Dimension", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getDimension_Symbol(), ecorePackage.getEString(), "symbol", null, 0, 1, Dimension.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getDimension_BaseDimension(), this.getDimension(), null, "baseDimension", null, 0, -1, Dimension.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDimension_BaseExponent(), ecorePackage.getEInt(), "baseExponent", null, 0, -1, Dimension.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getDimension_Base_Enumeration(), theUMLPackage.getEnumeration(), null, "base_Enumeration", null, 1, 1, Dimension.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + // Initialize enums and add enum literals + initEEnum(constraintKindEEnum, ConstraintKind.class, "ConstraintKind"); + addEEnumLiteral(constraintKindEEnum, ConstraintKind.REQUIRED); + addEEnumLiteral(constraintKindEEnum, ConstraintKind.OFFERED); + addEEnumLiteral(constraintKindEEnum, ConstraintKind.CONTRACT); + + // Create annotations + // subsets + createSubsetsAnnotations(); + } + + /** + * Initializes the annotations for subsets. + * + * + * @generated + */ + protected void createSubsetsAnnotations() { + String source = "subsets"; + addAnnotation + (getNfpType_ValueAttrib(), + source, + new String[] { + }, + new URI[] { + URI.createURI(MARTEPackage.eNS_URI).appendFragment("//MARTE_Annexes/VSL/DataTypes/TupleType/tupleAttrib") + }); + addAnnotation + (getNfpType_UnitAttrib(), + source, + new String[] { + }, + new URI[] { + URI.createURI(MARTEPackage.eNS_URI).appendFragment("//MARTE_Annexes/VSL/DataTypes/TupleType/tupleAttrib") + }); + addAnnotation + (getNfpType_ExprAttrib(), + source, + new String[] { + }, + new URI[] { + URI.createURI(MARTEPackage.eNS_URI).appendFragment("//MARTE_Annexes/VSL/DataTypes/TupleType/tupleAttrib") + }); + } + +} //NFPsPackageImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/impl/NfpConstraintImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/impl/NfpConstraintImpl.java new file mode 100644 index 00000000000..de7c3ee1a19 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/impl/NfpConstraintImpl.java @@ -0,0 +1,281 @@ +/***************************************************************************** + * 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.MARTE_Foundations.NFPs.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectResolvingEList; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.Mode; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.ConstraintKind; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NFPsPackage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpConstraint; + +import org.eclipse.uml2.uml.Constraint; + +/** + * + * An implementation of the model object 'Nfp Constraint'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.NfpConstraintImpl#getKind Kind}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.NfpConstraintImpl#getBase_Constraint Base Constraint}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.NfpConstraintImpl#getMode Mode}
  • + *
+ *

+ * + * @generated + */ +public class NfpConstraintImpl extends EObjectImpl implements NfpConstraint { + /** + * The default value of the '{@link #getKind() Kind}' attribute. + * + * + * @see #getKind() + * @generated + * @ordered + */ + protected static final ConstraintKind KIND_EDEFAULT = ConstraintKind.REQUIRED; + + /** + * The cached value of the '{@link #getKind() Kind}' attribute. + * + * + * @see #getKind() + * @generated + * @ordered + */ + protected ConstraintKind kind = KIND_EDEFAULT; + + /** + * The cached value of the '{@link #getBase_Constraint() Base Constraint}' reference. + * + * + * @see #getBase_Constraint() + * @generated + * @ordered + */ + protected Constraint base_Constraint; + + /** + * The cached value of the '{@link #getMode() Mode}' reference list. + * + * + * @see #getMode() + * @generated + * @ordered + */ + protected EList mode; + + /** + * + * + * @generated + */ + protected NfpConstraintImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return NFPsPackage.Literals.NFP_CONSTRAINT; + } + + /** + * + * + * @generated + */ + public ConstraintKind getKind() { + return kind; + } + + /** + * + * + * @generated + */ + public void setKind(ConstraintKind newKind) { + ConstraintKind oldKind = kind; + kind = newKind == null ? KIND_EDEFAULT : newKind; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NFPsPackage.NFP_CONSTRAINT__KIND, oldKind, kind)); + } + + /** + * + * + * @generated + */ + public Constraint getBase_Constraint() { + if (base_Constraint != null && base_Constraint.eIsProxy()) { + InternalEObject oldBase_Constraint = (InternalEObject)base_Constraint; + base_Constraint = (Constraint)eResolveProxy(oldBase_Constraint); + if (base_Constraint != oldBase_Constraint) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, NFPsPackage.NFP_CONSTRAINT__BASE_CONSTRAINT, oldBase_Constraint, base_Constraint)); + } + } + return base_Constraint; + } + + /** + * + * + * @generated + */ + public Constraint basicGetBase_Constraint() { + return base_Constraint; + } + + /** + * + * + * @generated + */ + public void setBase_Constraint(Constraint newBase_Constraint) { + Constraint oldBase_Constraint = base_Constraint; + base_Constraint = newBase_Constraint; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NFPsPackage.NFP_CONSTRAINT__BASE_CONSTRAINT, oldBase_Constraint, base_Constraint)); + } + + /** + * + * + * @generated + */ + public EList getMode() { + if (mode == null) { + mode = new EObjectResolvingEList(Mode.class, this, NFPsPackage.NFP_CONSTRAINT__MODE); + } + return mode; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case NFPsPackage.NFP_CONSTRAINT__KIND: + return getKind(); + case NFPsPackage.NFP_CONSTRAINT__BASE_CONSTRAINT: + if (resolve) return getBase_Constraint(); + return basicGetBase_Constraint(); + case NFPsPackage.NFP_CONSTRAINT__MODE: + return getMode(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case NFPsPackage.NFP_CONSTRAINT__KIND: + setKind((ConstraintKind)newValue); + return; + case NFPsPackage.NFP_CONSTRAINT__BASE_CONSTRAINT: + setBase_Constraint((Constraint)newValue); + return; + case NFPsPackage.NFP_CONSTRAINT__MODE: + getMode().clear(); + getMode().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case NFPsPackage.NFP_CONSTRAINT__KIND: + setKind(KIND_EDEFAULT); + return; + case NFPsPackage.NFP_CONSTRAINT__BASE_CONSTRAINT: + setBase_Constraint((Constraint)null); + return; + case NFPsPackage.NFP_CONSTRAINT__MODE: + getMode().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case NFPsPackage.NFP_CONSTRAINT__KIND: + return kind != KIND_EDEFAULT; + case NFPsPackage.NFP_CONSTRAINT__BASE_CONSTRAINT: + return base_Constraint != null; + case NFPsPackage.NFP_CONSTRAINT__MODE: + return mode != null && !mode.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (kind: "); + result.append(kind); + result.append(')'); + return result.toString(); + } + +} //NfpConstraintImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/impl/NfpImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/impl/NfpImpl.java new file mode 100644 index 00000000000..df8009dd769 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/impl/NfpImpl.java @@ -0,0 +1,169 @@ +/***************************************************************************** + * 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.MARTE_Foundations.NFPs.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NFPsPackage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Nfp; + +import org.eclipse.uml2.uml.Property; + +/** + * + * An implementation of the model object 'Nfp'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.NfpImpl#getBase_Property Base Property}
  • + *
+ *

+ * + * @generated + */ +public class NfpImpl extends EObjectImpl implements Nfp { + /** + * The cached value of the '{@link #getBase_Property() Base Property}' reference. + * + * + * @see #getBase_Property() + * @generated + * @ordered + */ + protected Property base_Property; + + /** + * + * + * @generated + */ + protected NfpImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return NFPsPackage.Literals.NFP; + } + + /** + * + * + * @generated + */ + public Property getBase_Property() { + if (base_Property != null && base_Property.eIsProxy()) { + InternalEObject oldBase_Property = (InternalEObject)base_Property; + base_Property = (Property)eResolveProxy(oldBase_Property); + if (base_Property != oldBase_Property) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, NFPsPackage.NFP__BASE_PROPERTY, oldBase_Property, base_Property)); + } + } + return base_Property; + } + + /** + * + * + * @generated + */ + public Property basicGetBase_Property() { + return base_Property; + } + + /** + * + * + * @generated + */ + public void setBase_Property(Property newBase_Property) { + Property oldBase_Property = base_Property; + base_Property = newBase_Property; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NFPsPackage.NFP__BASE_PROPERTY, oldBase_Property, base_Property)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case NFPsPackage.NFP__BASE_PROPERTY: + if (resolve) return getBase_Property(); + return basicGetBase_Property(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case NFPsPackage.NFP__BASE_PROPERTY: + setBase_Property((Property)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case NFPsPackage.NFP__BASE_PROPERTY: + setBase_Property((Property)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case NFPsPackage.NFP__BASE_PROPERTY: + return base_Property != null; + } + return super.eIsSet(featureID); + } + +} //NfpImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/impl/NfpTypeImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/impl/NfpTypeImpl.java new file mode 100644 index 00000000000..ab25aa91825 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/impl/NfpTypeImpl.java @@ -0,0 +1,290 @@ +/***************************************************************************** + * 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.MARTE_Foundations.NFPs.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.impl.TupleTypeImpl; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NFPsPackage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpType; + +import org.eclipse.uml2.uml.Property; + +/** + * + * An implementation of the model object 'Nfp Type'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.NfpTypeImpl#getValueAttrib Value Attrib}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.NfpTypeImpl#getUnitAttrib Unit Attrib}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.NfpTypeImpl#getExprAttrib Expr Attrib}
  • + *
+ *

+ * + * @generated + */ +public class NfpTypeImpl extends TupleTypeImpl implements NfpType { + /** + * The cached value of the '{@link #getValueAttrib() Value Attrib}' reference. + * + * + * @see #getValueAttrib() + * @generated + * @ordered + */ + protected Property valueAttrib; + + /** + * The cached value of the '{@link #getUnitAttrib() Unit Attrib}' reference. + * + * + * @see #getUnitAttrib() + * @generated + * @ordered + */ + protected Property unitAttrib; + + /** + * The cached value of the '{@link #getExprAttrib() Expr Attrib}' reference. + * + * + * @see #getExprAttrib() + * @generated + * @ordered + */ + protected Property exprAttrib; + + /** + * + * + * @generated + */ + protected NfpTypeImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return NFPsPackage.Literals.NFP_TYPE; + } + + /** + * + * + * @generated + */ + public Property getValueAttrib() { + if (valueAttrib != null && valueAttrib.eIsProxy()) { + InternalEObject oldValueAttrib = (InternalEObject)valueAttrib; + valueAttrib = (Property)eResolveProxy(oldValueAttrib); + if (valueAttrib != oldValueAttrib) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, NFPsPackage.NFP_TYPE__VALUE_ATTRIB, oldValueAttrib, valueAttrib)); + } + } + return valueAttrib; + } + + /** + * + * + * @generated + */ + public Property basicGetValueAttrib() { + return valueAttrib; + } + + /** + * + * + * @generated + */ + public void setValueAttrib(Property newValueAttrib) { + Property oldValueAttrib = valueAttrib; + valueAttrib = newValueAttrib; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NFPsPackage.NFP_TYPE__VALUE_ATTRIB, oldValueAttrib, valueAttrib)); + } + + /** + * + * + * @generated + */ + public Property getUnitAttrib() { + if (unitAttrib != null && unitAttrib.eIsProxy()) { + InternalEObject oldUnitAttrib = (InternalEObject)unitAttrib; + unitAttrib = (Property)eResolveProxy(oldUnitAttrib); + if (unitAttrib != oldUnitAttrib) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, NFPsPackage.NFP_TYPE__UNIT_ATTRIB, oldUnitAttrib, unitAttrib)); + } + } + return unitAttrib; + } + + /** + * + * + * @generated + */ + public Property basicGetUnitAttrib() { + return unitAttrib; + } + + /** + * + * + * @generated + */ + public void setUnitAttrib(Property newUnitAttrib) { + Property oldUnitAttrib = unitAttrib; + unitAttrib = newUnitAttrib; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NFPsPackage.NFP_TYPE__UNIT_ATTRIB, oldUnitAttrib, unitAttrib)); + } + + /** + * + * + * @generated + */ + public Property getExprAttrib() { + if (exprAttrib != null && exprAttrib.eIsProxy()) { + InternalEObject oldExprAttrib = (InternalEObject)exprAttrib; + exprAttrib = (Property)eResolveProxy(oldExprAttrib); + if (exprAttrib != oldExprAttrib) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, NFPsPackage.NFP_TYPE__EXPR_ATTRIB, oldExprAttrib, exprAttrib)); + } + } + return exprAttrib; + } + + /** + * + * + * @generated + */ + public Property basicGetExprAttrib() { + return exprAttrib; + } + + /** + * + * + * @generated + */ + public void setExprAttrib(Property newExprAttrib) { + Property oldExprAttrib = exprAttrib; + exprAttrib = newExprAttrib; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NFPsPackage.NFP_TYPE__EXPR_ATTRIB, oldExprAttrib, exprAttrib)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case NFPsPackage.NFP_TYPE__VALUE_ATTRIB: + if (resolve) return getValueAttrib(); + return basicGetValueAttrib(); + case NFPsPackage.NFP_TYPE__UNIT_ATTRIB: + if (resolve) return getUnitAttrib(); + return basicGetUnitAttrib(); + case NFPsPackage.NFP_TYPE__EXPR_ATTRIB: + if (resolve) return getExprAttrib(); + return basicGetExprAttrib(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case NFPsPackage.NFP_TYPE__VALUE_ATTRIB: + setValueAttrib((Property)newValue); + return; + case NFPsPackage.NFP_TYPE__UNIT_ATTRIB: + setUnitAttrib((Property)newValue); + return; + case NFPsPackage.NFP_TYPE__EXPR_ATTRIB: + setExprAttrib((Property)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case NFPsPackage.NFP_TYPE__VALUE_ATTRIB: + setValueAttrib((Property)null); + return; + case NFPsPackage.NFP_TYPE__UNIT_ATTRIB: + setUnitAttrib((Property)null); + return; + case NFPsPackage.NFP_TYPE__EXPR_ATTRIB: + setExprAttrib((Property)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case NFPsPackage.NFP_TYPE__VALUE_ATTRIB: + return valueAttrib != null; + case NFPsPackage.NFP_TYPE__UNIT_ATTRIB: + return unitAttrib != null; + case NFPsPackage.NFP_TYPE__EXPR_ATTRIB: + return exprAttrib != null; + } + return super.eIsSet(featureID); + } + +} //NfpTypeImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/impl/UnitImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/impl/UnitImpl.java new file mode 100644 index 00000000000..7736f3eeddf --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/impl/UnitImpl.java @@ -0,0 +1,351 @@ +/***************************************************************************** + * 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.MARTE_Foundations.NFPs.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NFPsPackage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Unit; + +import org.eclipse.uml2.uml.EnumerationLiteral; + +/** + * + * An implementation of the model object 'Unit'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.UnitImpl#getConvFactor Conv Factor}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.UnitImpl#getConvOffset Conv Offset}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.UnitImpl#getBaseUnit Base Unit}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.UnitImpl#getBase_EnumerationLiteral Base Enumeration Literal}
  • + *
+ *

+ * + * @generated + */ +public class UnitImpl extends EObjectImpl implements Unit { + /** + * The default value of the '{@link #getConvFactor() Conv Factor}' attribute. + * + * + * @see #getConvFactor() + * @generated + * @ordered + */ + protected static final String CONV_FACTOR_EDEFAULT = null; + + /** + * The cached value of the '{@link #getConvFactor() Conv Factor}' attribute. + * + * + * @see #getConvFactor() + * @generated + * @ordered + */ + protected String convFactor = CONV_FACTOR_EDEFAULT; + + /** + * The default value of the '{@link #getConvOffset() Conv Offset}' attribute. + * + * + * @see #getConvOffset() + * @generated + * @ordered + */ + protected static final String CONV_OFFSET_EDEFAULT = null; + + /** + * The cached value of the '{@link #getConvOffset() Conv Offset}' attribute. + * + * + * @see #getConvOffset() + * @generated + * @ordered + */ + protected String convOffset = CONV_OFFSET_EDEFAULT; + + /** + * The cached value of the '{@link #getBaseUnit() Base Unit}' reference. + * + * + * @see #getBaseUnit() + * @generated + * @ordered + */ + protected Unit baseUnit; + + /** + * The cached value of the '{@link #getBase_EnumerationLiteral() Base Enumeration Literal}' reference. + * + * + * @see #getBase_EnumerationLiteral() + * @generated + * @ordered + */ + protected EnumerationLiteral base_EnumerationLiteral; + + /** + * + * + * @generated + */ + protected UnitImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return NFPsPackage.Literals.UNIT; + } + + /** + * + * + * @generated + */ + public String getConvFactor() { + return convFactor; + } + + /** + * + * + * @generated + */ + public void setConvFactor(String newConvFactor) { + String oldConvFactor = convFactor; + convFactor = newConvFactor; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NFPsPackage.UNIT__CONV_FACTOR, oldConvFactor, convFactor)); + } + + /** + * + * + * @generated + */ + public String getConvOffset() { + return convOffset; + } + + /** + * + * + * @generated + */ + public void setConvOffset(String newConvOffset) { + String oldConvOffset = convOffset; + convOffset = newConvOffset; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NFPsPackage.UNIT__CONV_OFFSET, oldConvOffset, convOffset)); + } + + /** + * + * + * @generated + */ + public Unit getBaseUnit() { + if (baseUnit != null && baseUnit.eIsProxy()) { + InternalEObject oldBaseUnit = (InternalEObject)baseUnit; + baseUnit = (Unit)eResolveProxy(oldBaseUnit); + if (baseUnit != oldBaseUnit) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, NFPsPackage.UNIT__BASE_UNIT, oldBaseUnit, baseUnit)); + } + } + return baseUnit; + } + + /** + * + * + * @generated + */ + public Unit basicGetBaseUnit() { + return baseUnit; + } + + /** + * + * + * @generated + */ + public void setBaseUnit(Unit newBaseUnit) { + Unit oldBaseUnit = baseUnit; + baseUnit = newBaseUnit; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NFPsPackage.UNIT__BASE_UNIT, oldBaseUnit, baseUnit)); + } + + /** + * + * + * @generated + */ + public EnumerationLiteral getBase_EnumerationLiteral() { + if (base_EnumerationLiteral != null && base_EnumerationLiteral.eIsProxy()) { + InternalEObject oldBase_EnumerationLiteral = (InternalEObject)base_EnumerationLiteral; + base_EnumerationLiteral = (EnumerationLiteral)eResolveProxy(oldBase_EnumerationLiteral); + if (base_EnumerationLiteral != oldBase_EnumerationLiteral) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, NFPsPackage.UNIT__BASE_ENUMERATION_LITERAL, oldBase_EnumerationLiteral, base_EnumerationLiteral)); + } + } + return base_EnumerationLiteral; + } + + /** + * + * + * @generated + */ + public EnumerationLiteral basicGetBase_EnumerationLiteral() { + return base_EnumerationLiteral; + } + + /** + * + * + * @generated + */ + public void setBase_EnumerationLiteral(EnumerationLiteral newBase_EnumerationLiteral) { + EnumerationLiteral oldBase_EnumerationLiteral = base_EnumerationLiteral; + base_EnumerationLiteral = newBase_EnumerationLiteral; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NFPsPackage.UNIT__BASE_ENUMERATION_LITERAL, oldBase_EnumerationLiteral, base_EnumerationLiteral)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case NFPsPackage.UNIT__CONV_FACTOR: + return getConvFactor(); + case NFPsPackage.UNIT__CONV_OFFSET: + return getConvOffset(); + case NFPsPackage.UNIT__BASE_UNIT: + if (resolve) return getBaseUnit(); + return basicGetBaseUnit(); + case NFPsPackage.UNIT__BASE_ENUMERATION_LITERAL: + if (resolve) return getBase_EnumerationLiteral(); + return basicGetBase_EnumerationLiteral(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case NFPsPackage.UNIT__CONV_FACTOR: + setConvFactor((String)newValue); + return; + case NFPsPackage.UNIT__CONV_OFFSET: + setConvOffset((String)newValue); + return; + case NFPsPackage.UNIT__BASE_UNIT: + setBaseUnit((Unit)newValue); + return; + case NFPsPackage.UNIT__BASE_ENUMERATION_LITERAL: + setBase_EnumerationLiteral((EnumerationLiteral)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case NFPsPackage.UNIT__CONV_FACTOR: + setConvFactor(CONV_FACTOR_EDEFAULT); + return; + case NFPsPackage.UNIT__CONV_OFFSET: + setConvOffset(CONV_OFFSET_EDEFAULT); + return; + case NFPsPackage.UNIT__BASE_UNIT: + setBaseUnit((Unit)null); + return; + case NFPsPackage.UNIT__BASE_ENUMERATION_LITERAL: + setBase_EnumerationLiteral((EnumerationLiteral)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case NFPsPackage.UNIT__CONV_FACTOR: + return CONV_FACTOR_EDEFAULT == null ? convFactor != null : !CONV_FACTOR_EDEFAULT.equals(convFactor); + case NFPsPackage.UNIT__CONV_OFFSET: + return CONV_OFFSET_EDEFAULT == null ? convOffset != null : !CONV_OFFSET_EDEFAULT.equals(convOffset); + case NFPsPackage.UNIT__BASE_UNIT: + return baseUnit != null; + case NFPsPackage.UNIT__BASE_ENUMERATION_LITERAL: + return base_EnumerationLiteral != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (convFactor: "); + result.append(convFactor); + result.append(", convOffset: "); + result.append(convOffset); + result.append(')'); + return result.toString(); + } + +} //UnitImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/util/NFPsAdapterFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/util/NFPsAdapterFactory.java new file mode 100644 index 00000000000..d82262a32d8 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/util/NFPsAdapterFactory.java @@ -0,0 +1,223 @@ +/***************************************************************************** + * 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.MARTE_Foundations.NFPs.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.MARTE_Annexes.VSL.DataTypes.TupleType; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.*; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NFPsPackage + * @generated + */ +public class NFPsAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * @generated + */ + protected static NFPsPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public NFPsAdapterFactory() { + if (modelPackage == null) { + modelPackage = NFPsPackage.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 NFPsSwitch modelSwitch = + new NFPsSwitch() { + @Override + public Adapter caseNfp(Nfp object) { + return createNfpAdapter(); + } + @Override + public Adapter caseUnit(Unit object) { + return createUnitAdapter(); + } + @Override + public Adapter caseNfpConstraint(NfpConstraint object) { + return createNfpConstraintAdapter(); + } + @Override + public Adapter caseNfpType(NfpType object) { + return createNfpTypeAdapter(); + } + @Override + public Adapter caseDimension(Dimension object) { + return createDimensionAdapter(); + } + @Override + public Adapter caseTupleType(TupleType object) { + return createTupleTypeAdapter(); + } + @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.MARTE_Foundations.NFPs.Nfp Nfp}'. + * + * 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.MARTE_Foundations.NFPs.Nfp + * @generated + */ + public Adapter createNfpAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Unit Unit}'. + * + * 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.MARTE_Foundations.NFPs.Unit + * @generated + */ + public Adapter createUnitAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpConstraint Nfp Constraint}'. + * + * 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.MARTE_Foundations.NFPs.NfpConstraint + * @generated + */ + public Adapter createNfpConstraintAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpType Nfp Type}'. + * + * 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.MARTE_Foundations.NFPs.NfpType + * @generated + */ + public Adapter createNfpTypeAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Dimension Dimension}'. + * + * 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.MARTE_Foundations.NFPs.Dimension + * @generated + */ + public Adapter createDimensionAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.TupleType Tuple Type}'. + * + * 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.MARTE_Annexes.VSL.DataTypes.TupleType + * @generated + */ + public Adapter createTupleTypeAdapter() { + 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; + } + +} //NFPsAdapterFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/util/NFPsResourceFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/util/NFPsResourceFactoryImpl.java new file mode 100644 index 00000000000..7acb6846ce9 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/util/NFPsResourceFactoryImpl.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.MARTE_Foundations.NFPs.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; + +import org.eclipse.emf.ecore.xmi.XMLResource; + +/** + * + * The Resource Factory associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.util.NFPsResourceImpl + * @generated + */ +public class NFPsResourceFactoryImpl extends ResourceFactoryImpl { + /** + * Creates an instance of the resource factory. + * + * + * @generated + */ + public NFPsResourceFactoryImpl() { + super(); + } + + /** + * Creates an instance of the resource. + * + * + * @generated + */ + @Override + public Resource createResource(URI uri) { + XMLResource result = new NFPsResourceImpl(uri); + result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + + result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); + return result; + } + +} //NFPsResourceFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/util/NFPsResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/util/NFPsResourceImpl.java new file mode 100644 index 00000000000..d31ab46ecf8 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/util/NFPsResourceImpl.java @@ -0,0 +1,39 @@ +/***************************************************************************** + * 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.MARTE_Foundations.NFPs.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; + +/** + * + * The Resource associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.util.NFPsResourceFactoryImpl + * @generated + */ +public class NFPsResourceImpl extends XMLResourceImpl { + /** + * Creates an instance of the resource. + * + * + * @param uri the URI of the new resource. + * @generated + */ + public NFPsResourceImpl(URI uri) { + super(uri); + } + +} //NFPsResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/util/NFPsSwitch.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/util/NFPsSwitch.java new file mode 100644 index 00000000000..87ac2f1ee7f --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/util/NFPsSwitch.java @@ -0,0 +1,239 @@ +/***************************************************************************** + * 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.MARTE_Foundations.NFPs.util; + +import java.util.List; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.papyrus.MARTE.MARTE_Annexes.VSL.DataTypes.TupleType; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.*; + +/** + * + * 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.MARTE_Foundations.NFPs.NFPsPackage + * @generated + */ +public class NFPsSwitch { + /** + * The cached model package + * + * + * @generated + */ + protected static NFPsPackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public NFPsSwitch() { + if (modelPackage == null) { + modelPackage = NFPsPackage.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 NFPsPackage.NFP: { + Nfp nfp = (Nfp)theEObject; + T result = caseNfp(nfp); + if (result == null) result = defaultCase(theEObject); + return result; + } + case NFPsPackage.UNIT: { + Unit unit = (Unit)theEObject; + T result = caseUnit(unit); + if (result == null) result = defaultCase(theEObject); + return result; + } + case NFPsPackage.NFP_CONSTRAINT: { + NfpConstraint nfpConstraint = (NfpConstraint)theEObject; + T result = caseNfpConstraint(nfpConstraint); + if (result == null) result = defaultCase(theEObject); + return result; + } + case NFPsPackage.NFP_TYPE: { + NfpType nfpType = (NfpType)theEObject; + T result = caseNfpType(nfpType); + if (result == null) result = caseTupleType(nfpType); + if (result == null) result = defaultCase(theEObject); + return result; + } + case NFPsPackage.DIMENSION: { + Dimension dimension = (Dimension)theEObject; + T result = caseDimension(dimension); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Nfp'. + * + * 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 'Nfp'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseNfp(Nfp object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Unit'. + * + * 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 'Unit'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseUnit(Unit object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Nfp Constraint'. + * + * 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 'Nfp Constraint'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseNfpConstraint(NfpConstraint object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Nfp Type'. + * + * 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 'Nfp Type'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseNfpType(NfpType object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Dimension'. + * + * 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 'Dimension'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDimension(Dimension object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Tuple Type'. + * + * 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 'Tuple Type'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseTupleType(TupleType 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; + } + +} //NFPsSwitch diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/util/NFPsXMLProcessor.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/util/NFPsXMLProcessor.java new file mode 100644 index 00000000000..8c8be732194 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/util/NFPsXMLProcessor.java @@ -0,0 +1,61 @@ +/***************************************************************************** + * 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.MARTE_Foundations.NFPs.util; + +import java.util.Map; + +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.xmi.util.XMLProcessor; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NFPsPackage; + +/** + * This class contains helper methods to serialize and deserialize XML documents + * + * + * @generated + */ +public class NFPsXMLProcessor extends XMLProcessor { + + /** + * Public constructor to instantiate the helper. + * + * + * @generated + */ + public NFPsXMLProcessor() { + super((EPackage.Registry.INSTANCE)); + NFPsPackage.eINSTANCE.eClass(); + } + + /** + * Register for "*" and "xml" file extensions the NFPsResourceFactoryImpl factory. + * + * + * @generated + */ + @Override + protected Map getRegistrations() { + if (registrations == null) { + super.getRegistrations(); + registrations.put(XML_EXTENSION, new NFPsResourceFactoryImpl()); + registrations.put(STAR_EXTENSION, new NFPsResourceFactoryImpl()); + } + return registrations; + } + +} //NFPsXMLProcessor diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/Clock.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/Clock.java new file mode 100644 index 00000000000..362a571418c --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/Clock.java @@ -0,0 +1,207 @@ +/***************************************************************************** + * 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.MARTE_Foundations.Time; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Unit; + +import org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.TimeStandardKind; + +import org.eclipse.uml2.uml.Event; +import org.eclipse.uml2.uml.InstanceSpecification; +import org.eclipse.uml2.uml.Property; + +/** + * + * A representation of the model object 'Clock'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.Clock#getStandard Standard}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.Clock#getBase_InstanceSpecification Base Instance Specification}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.Clock#getType Type}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.Clock#getUnit Unit}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.Clock#getBase_Property Base Property}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.Clock#getBase_Event Base Event}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage#getClock() + * @model + * @generated + */ +public interface Clock extends EObject { + /** + * Returns the value of the 'Standard' attribute. + * The literals are from the enumeration {@link org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.TimeStandardKind}. + * + *

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

+ * + * @return the value of the 'Standard' attribute. + * @see org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.TimeStandardKind + * @see #setStandard(TimeStandardKind) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage#getClock_Standard() + * @model unique="false" ordered="false" + * @generated + */ + TimeStandardKind getStandard(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.Clock#getStandard Standard}' attribute. + * + * + * @param value the new value of the 'Standard' attribute. + * @see org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.TimeStandardKind + * @see #getStandard() + * @generated + */ + void setStandard(TimeStandardKind value); + + /** + * Returns the value of the 'Base Instance Specification' reference. + * + *

+ * If the meaning of the 'Base Instance Specification' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Instance Specification' reference. + * @see #setBase_InstanceSpecification(InstanceSpecification) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage#getClock_Base_InstanceSpecification() + * @model required="true" ordered="false" + * @generated + */ + InstanceSpecification getBase_InstanceSpecification(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.Clock#getBase_InstanceSpecification Base Instance Specification}' reference. + * + * + * @param value the new value of the 'Base Instance Specification' reference. + * @see #getBase_InstanceSpecification() + * @generated + */ + void setBase_InstanceSpecification(InstanceSpecification value); + + /** + * Returns the value of the 'Type' reference. + * + *

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

+ * + * @return the value of the 'Type' reference. + * @see #setType(ClockType) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage#getClock_Type() + * @model required="true" ordered="false" + * @generated + */ + ClockType getType(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.Clock#getType Type}' reference. + * + * + * @param value the new value of the 'Type' reference. + * @see #getType() + * @generated + */ + void setType(ClockType value); + + /** + * Returns the value of the 'Unit' reference. + * + *

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

+ * + * @return the value of the 'Unit' reference. + * @see #setUnit(Unit) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage#getClock_Unit() + * @model ordered="false" + * @generated + */ + Unit getUnit(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.Clock#getUnit Unit}' reference. + * + * + * @param value the new value of the 'Unit' reference. + * @see #getUnit() + * @generated + */ + void setUnit(Unit value); + + /** + * Returns the value of the 'Base Property' reference. + * + *

+ * If the meaning of the 'Base Property' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Property' reference. + * @see #setBase_Property(Property) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage#getClock_Base_Property() + * @model required="true" ordered="false" + * @generated + */ + Property getBase_Property(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.Clock#getBase_Property Base Property}' reference. + * + * + * @param value the new value of the 'Base Property' reference. + * @see #getBase_Property() + * @generated + */ + void setBase_Property(Property value); + + /** + * Returns the value of the 'Base Event' reference. + * + *

+ * If the meaning of the 'Base Event' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Event' reference. + * @see #setBase_Event(Event) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage#getClock_Base_Event() + * @model required="true" ordered="false" + * @generated + */ + Event getBase_Event(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.Clock#getBase_Event Base Event}' reference. + * + * + * @param value the new value of the 'Base Event' reference. + * @see #getBase_Event() + * @generated + */ + void setBase_Event(Event value); + +} // Clock diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/ClockConstraint.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/ClockConstraint.java new file mode 100644 index 00000000000..e1661f437cc --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/ClockConstraint.java @@ -0,0 +1,115 @@ +/***************************************************************************** + * 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.MARTE_Foundations.Time; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpConstraint; + +/** + * + * A representation of the model object 'Clock Constraint'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockConstraint#isIsCoincidenceBased Is Coincidence Based}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockConstraint#isIsPrecedenceBased Is Precedence Based}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockConstraint#isIsChronometricBased Is Chronometric Based}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage#getClockConstraint() + * @model + * @generated + */ +public interface ClockConstraint extends NfpConstraint, TimedElement { + /** + * Returns the value of the 'Is Coincidence Based' attribute. + * + *

+ * If the meaning of the 'Is Coincidence Based' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Is Coincidence Based' attribute. + * @see #setIsCoincidenceBased(boolean) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage#getClockConstraint_IsCoincidenceBased() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.Boolean" required="true" ordered="false" + * @generated + */ + boolean isIsCoincidenceBased(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockConstraint#isIsCoincidenceBased Is Coincidence Based}' attribute. + * + * + * @param value the new value of the 'Is Coincidence Based' attribute. + * @see #isIsCoincidenceBased() + * @generated + */ + void setIsCoincidenceBased(boolean value); + + /** + * Returns the value of the 'Is Precedence Based' attribute. + * + *

+ * If the meaning of the 'Is Precedence Based' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Is Precedence Based' attribute. + * @see #setIsPrecedenceBased(boolean) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage#getClockConstraint_IsPrecedenceBased() + * @model unique="false" required="true" ordered="false" + * @generated + */ + boolean isIsPrecedenceBased(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockConstraint#isIsPrecedenceBased Is Precedence Based}' attribute. + * + * + * @param value the new value of the 'Is Precedence Based' attribute. + * @see #isIsPrecedenceBased() + * @generated + */ + void setIsPrecedenceBased(boolean value); + + /** + * Returns the value of the 'Is Chronometric Based' attribute. + * + *

+ * If the meaning of the 'Is Chronometric Based' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Is Chronometric Based' attribute. + * @see #setIsChronometricBased(boolean) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage#getClockConstraint_IsChronometricBased() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.Boolean" required="true" ordered="false" + * @generated + */ + boolean isIsChronometricBased(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockConstraint#isIsChronometricBased Is Chronometric Based}' attribute. + * + * + * @param value the new value of the 'Is Chronometric Based' attribute. + * @see #isIsChronometricBased() + * @generated + */ + void setIsChronometricBased(boolean value); + +} // ClockConstraint diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/ClockType.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/ClockType.java new file mode 100644 index 00000000000..0b9dfce51ac --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/ClockType.java @@ -0,0 +1,314 @@ +/***************************************************************************** + * 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.MARTE_Foundations.Time; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.TimeNatureKind; + +import org.eclipse.uml2.uml.Enumeration; +import org.eclipse.uml2.uml.Operation; +import org.eclipse.uml2.uml.Property; + +/** + * + * A representation of the model object 'Clock Type'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockType#getNature Nature}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockType#getUnitType Unit Type}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockType#isIsLogical Is Logical}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockType#getResolAttr Resol Attr}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockType#getMaxValAttr Max Val Attr}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockType#getOffsetAttr Offset Attr}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockType#getGetTime Get Time}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockType#getSetTime Set Time}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockType#getIndexToValue Index To Value}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockType#getBase_Class Base Class}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage#getClockType() + * @model + * @generated + */ +public interface ClockType extends EObject { + /** + * Returns the value of the 'Nature' attribute. + * The literals are from the enumeration {@link org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.TimeNatureKind}. + * + *

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

+ * + * @return the value of the 'Nature' attribute. + * @see org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.TimeNatureKind + * @see #setNature(TimeNatureKind) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage#getClockType_Nature() + * @model unique="false" required="true" ordered="false" + * @generated + */ + TimeNatureKind getNature(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockType#getNature Nature}' attribute. + * + * + * @param value the new value of the 'Nature' attribute. + * @see org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.TimeNatureKind + * @see #getNature() + * @generated + */ + void setNature(TimeNatureKind value); + + /** + * Returns the value of the 'Unit Type' reference. + * + *

+ * If the meaning of the 'Unit Type' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Unit Type' reference. + * @see #setUnitType(Enumeration) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage#getClockType_UnitType() + * @model ordered="false" + * @generated + */ + Enumeration getUnitType(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockType#getUnitType Unit Type}' reference. + * + * + * @param value the new value of the 'Unit Type' reference. + * @see #getUnitType() + * @generated + */ + void setUnitType(Enumeration value); + + /** + * Returns the value of the 'Is Logical' attribute. + * The default value is "false". + * + *

+ * If the meaning of the 'Is Logical' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Is Logical' attribute. + * @see #setIsLogical(boolean) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage#getClockType_IsLogical() + * @model default="false" unique="false" dataType="org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.Boolean" required="true" ordered="false" + * @generated + */ + boolean isIsLogical(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockType#isIsLogical Is Logical}' attribute. + * + * + * @param value the new value of the 'Is Logical' attribute. + * @see #isIsLogical() + * @generated + */ + void setIsLogical(boolean value); + + /** + * Returns the value of the 'Resol Attr' reference. + * + *

+ * If the meaning of the 'Resol Attr' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Resol Attr' reference. + * @see #setResolAttr(Property) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage#getClockType_ResolAttr() + * @model ordered="false" + * @generated + */ + Property getResolAttr(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockType#getResolAttr Resol Attr}' reference. + * + * + * @param value the new value of the 'Resol Attr' reference. + * @see #getResolAttr() + * @generated + */ + void setResolAttr(Property value); + + /** + * Returns the value of the 'Max Val Attr' reference. + * + *

+ * If the meaning of the 'Max Val Attr' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Max Val Attr' reference. + * @see #setMaxValAttr(Property) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage#getClockType_MaxValAttr() + * @model ordered="false" + * @generated + */ + Property getMaxValAttr(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockType#getMaxValAttr Max Val Attr}' reference. + * + * + * @param value the new value of the 'Max Val Attr' reference. + * @see #getMaxValAttr() + * @generated + */ + void setMaxValAttr(Property value); + + /** + * Returns the value of the 'Offset Attr' reference. + * + *

+ * If the meaning of the 'Offset Attr' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Offset Attr' reference. + * @see #setOffsetAttr(Property) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage#getClockType_OffsetAttr() + * @model ordered="false" + * @generated + */ + Property getOffsetAttr(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockType#getOffsetAttr Offset Attr}' reference. + * + * + * @param value the new value of the 'Offset Attr' reference. + * @see #getOffsetAttr() + * @generated + */ + void setOffsetAttr(Property value); + + /** + * Returns the value of the 'Get Time' reference. + * + *

+ * If the meaning of the 'Get Time' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Get Time' reference. + * @see #setGetTime(Operation) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage#getClockType_GetTime() + * @model ordered="false" + * @generated + */ + Operation getGetTime(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockType#getGetTime Get Time}' reference. + * + * + * @param value the new value of the 'Get Time' reference. + * @see #getGetTime() + * @generated + */ + void setGetTime(Operation value); + + /** + * Returns the value of the 'Set Time' reference. + * + *

+ * If the meaning of the 'Set Time' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Set Time' reference. + * @see #setSetTime(Operation) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage#getClockType_SetTime() + * @model ordered="false" + * @generated + */ + Operation getSetTime(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockType#getSetTime Set Time}' reference. + * + * + * @param value the new value of the 'Set Time' reference. + * @see #getSetTime() + * @generated + */ + void setSetTime(Operation value); + + /** + * Returns the value of the 'Index To Value' reference. + * + *

+ * If the meaning of the 'Index To Value' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Index To Value' reference. + * @see #setIndexToValue(Operation) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage#getClockType_IndexToValue() + * @model ordered="false" + * @generated + */ + Operation getIndexToValue(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockType#getIndexToValue Index To Value}' reference. + * + * + * @param value the new value of the 'Index To Value' reference. + * @see #getIndexToValue() + * @generated + */ + void setIndexToValue(Operation value); + + /** + * Returns the value of the 'Base Class' reference. + * + *

+ * If the meaning of the 'Base Class' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Class' reference. + * @see #setBase_Class(org.eclipse.uml2.uml.Class) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage#getClockType_Base_Class() + * @model required="true" ordered="false" + * @generated + */ + org.eclipse.uml2.uml.Class getBase_Class(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockType#getBase_Class Base Class}' reference. + * + * + * @param value the new value of the 'Base Class' reference. + * @see #getBase_Class() + * @generated + */ + void setBase_Class(org.eclipse.uml2.uml.Class value); + +} // ClockType diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/TimeFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/TimeFactory.java new file mode 100644 index 00000000000..0f3f24f22b7 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/TimeFactory.java @@ -0,0 +1,134 @@ +/***************************************************************************** + * 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.MARTE_Foundations.Time; + +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.MARTE_Foundations.Time.TimePackage + * @generated + */ +public interface TimeFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + TimeFactory eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimeFactoryImpl.init(); + + /** + * Returns a new object of class 'Timed Domain'. + * + * + * @return a new object of class 'Timed Domain'. + * @generated + */ + TimedDomain createTimedDomain(); + + /** + * Returns a new object of class 'Clock'. + * + * + * @return a new object of class 'Clock'. + * @generated + */ + Clock createClock(); + + /** + * Returns a new object of class 'Clock Type'. + * + * + * @return a new object of class 'Clock Type'. + * @generated + */ + ClockType createClockType(); + + /** + * Returns a new object of class 'Timed Value Specification'. + * + * + * @return a new object of class 'Timed Value Specification'. + * @generated + */ + TimedValueSpecification createTimedValueSpecification(); + + /** + * Returns a new object of class 'Timed Constraint'. + * + * + * @return a new object of class 'Timed Constraint'. + * @generated + */ + TimedConstraint createTimedConstraint(); + + /** + * Returns a new object of class 'Clock Constraint'. + * + * + * @return a new object of class 'Clock Constraint'. + * @generated + */ + ClockConstraint createClockConstraint(); + + /** + * Returns a new object of class 'Timed Instant Observation'. + * + * + * @return a new object of class 'Timed Instant Observation'. + * @generated + */ + TimedInstantObservation createTimedInstantObservation(); + + /** + * Returns a new object of class 'Timed Duration Observation'. + * + * + * @return a new object of class 'Timed Duration Observation'. + * @generated + */ + TimedDurationObservation createTimedDurationObservation(); + + /** + * Returns a new object of class 'Timed Event'. + * + * + * @return a new object of class 'Timed Event'. + * @generated + */ + TimedEvent createTimedEvent(); + + /** + * Returns a new object of class 'Timed Processing'. + * + * + * @return a new object of class 'Timed Processing'. + * @generated + */ + TimedProcessing createTimedProcessing(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + TimePackage getTimePackage(); + +} //TimeFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/TimePackage.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/TimePackage.java new file mode 100644 index 00000000000..d8bb2a69576 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/TimePackage.java @@ -0,0 +1,1678 @@ +/***************************************************************************** + * 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.MARTE_Foundations.Time; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NFPsPackage; + +/** + * + * 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.MARTE_Foundations.Time.TimeFactory + * @model kind="package" + * @generated + */ +public interface TimePackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "Time"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "http://www.eclipse.org/papyrus/Time/1"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "Time"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + TimePackage eINSTANCE = org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimePackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedDomainImpl Timed Domain}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedDomainImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimePackageImpl#getTimedDomain() + * @generated + */ + int TIMED_DOMAIN = 0; + + /** + * The feature id for the 'Base Namespace' reference. + * + * + * @generated + * @ordered + */ + int TIMED_DOMAIN__BASE_NAMESPACE = 0; + + /** + * The number of structural features of the 'Timed Domain' class. + * + * + * @generated + * @ordered + */ + int TIMED_DOMAIN_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.ClockImpl Clock}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.ClockImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimePackageImpl#getClock() + * @generated + */ + int CLOCK = 1; + + /** + * The feature id for the 'Standard' attribute. + * + * + * @generated + * @ordered + */ + int CLOCK__STANDARD = 0; + + /** + * The feature id for the 'Base Instance Specification' reference. + * + * + * @generated + * @ordered + */ + int CLOCK__BASE_INSTANCE_SPECIFICATION = 1; + + /** + * The feature id for the 'Type' reference. + * + * + * @generated + * @ordered + */ + int CLOCK__TYPE = 2; + + /** + * The feature id for the 'Unit' reference. + * + * + * @generated + * @ordered + */ + int CLOCK__UNIT = 3; + + /** + * The feature id for the 'Base Property' reference. + * + * + * @generated + * @ordered + */ + int CLOCK__BASE_PROPERTY = 4; + + /** + * The feature id for the 'Base Event' reference. + * + * + * @generated + * @ordered + */ + int CLOCK__BASE_EVENT = 5; + + /** + * The number of structural features of the 'Clock' class. + * + * + * @generated + * @ordered + */ + int CLOCK_FEATURE_COUNT = 6; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.ClockTypeImpl Clock Type}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.ClockTypeImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimePackageImpl#getClockType() + * @generated + */ + int CLOCK_TYPE = 2; + + /** + * The feature id for the 'Nature' attribute. + * + * + * @generated + * @ordered + */ + int CLOCK_TYPE__NATURE = 0; + + /** + * The feature id for the 'Unit Type' reference. + * + * + * @generated + * @ordered + */ + int CLOCK_TYPE__UNIT_TYPE = 1; + + /** + * The feature id for the 'Is Logical' attribute. + * + * + * @generated + * @ordered + */ + int CLOCK_TYPE__IS_LOGICAL = 2; + + /** + * The feature id for the 'Resol Attr' reference. + * + * + * @generated + * @ordered + */ + int CLOCK_TYPE__RESOL_ATTR = 3; + + /** + * The feature id for the 'Max Val Attr' reference. + * + * + * @generated + * @ordered + */ + int CLOCK_TYPE__MAX_VAL_ATTR = 4; + + /** + * The feature id for the 'Offset Attr' reference. + * + * + * @generated + * @ordered + */ + int CLOCK_TYPE__OFFSET_ATTR = 5; + + /** + * The feature id for the 'Get Time' reference. + * + * + * @generated + * @ordered + */ + int CLOCK_TYPE__GET_TIME = 6; + + /** + * The feature id for the 'Set Time' reference. + * + * + * @generated + * @ordered + */ + int CLOCK_TYPE__SET_TIME = 7; + + /** + * The feature id for the 'Index To Value' reference. + * + * + * @generated + * @ordered + */ + int CLOCK_TYPE__INDEX_TO_VALUE = 8; + + /** + * The feature id for the 'Base Class' reference. + * + * + * @generated + * @ordered + */ + int CLOCK_TYPE__BASE_CLASS = 9; + + /** + * The number of structural features of the 'Clock Type' class. + * + * + * @generated + * @ordered + */ + int CLOCK_TYPE_FEATURE_COUNT = 10; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedElementImpl Timed Element}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedElementImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimePackageImpl#getTimedElement() + * @generated + */ + int TIMED_ELEMENT = 3; + + /** + * The feature id for the 'On' reference list. + * + * + * @generated + * @ordered + */ + int TIMED_ELEMENT__ON = 0; + + /** + * The number of structural features of the 'Timed Element' class. + * + * + * @generated + * @ordered + */ + int TIMED_ELEMENT_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedValueSpecificationImpl Timed Value Specification}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedValueSpecificationImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimePackageImpl#getTimedValueSpecification() + * @generated + */ + int TIMED_VALUE_SPECIFICATION = 4; + + /** + * The feature id for the 'On' reference list. + * + * + * @generated + * @ordered + */ + int TIMED_VALUE_SPECIFICATION__ON = TIMED_ELEMENT__ON; + + /** + * The feature id for the 'Interpretation' attribute. + * + * + * @generated + * @ordered + */ + int TIMED_VALUE_SPECIFICATION__INTERPRETATION = TIMED_ELEMENT_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Base Value Specification' reference. + * + * + * @generated + * @ordered + */ + int TIMED_VALUE_SPECIFICATION__BASE_VALUE_SPECIFICATION = TIMED_ELEMENT_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Timed Value Specification' class. + * + * + * @generated + * @ordered + */ + int TIMED_VALUE_SPECIFICATION_FEATURE_COUNT = TIMED_ELEMENT_FEATURE_COUNT + 2; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedConstraintImpl Timed Constraint}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedConstraintImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimePackageImpl#getTimedConstraint() + * @generated + */ + int TIMED_CONSTRAINT = 5; + + /** + * The feature id for the 'Kind' attribute. + * + * + * @generated + * @ordered + */ + int TIMED_CONSTRAINT__KIND = NFPsPackage.NFP_CONSTRAINT__KIND; + + /** + * The feature id for the 'Base Constraint' reference. + * + * + * @generated + * @ordered + */ + int TIMED_CONSTRAINT__BASE_CONSTRAINT = NFPsPackage.NFP_CONSTRAINT__BASE_CONSTRAINT; + + /** + * The feature id for the 'Mode' reference list. + * + * + * @generated + * @ordered + */ + int TIMED_CONSTRAINT__MODE = NFPsPackage.NFP_CONSTRAINT__MODE; + + /** + * The feature id for the 'On' reference list. + * + * + * @generated + * @ordered + */ + int TIMED_CONSTRAINT__ON = NFPsPackage.NFP_CONSTRAINT_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Interpretation' attribute. + * + * + * @generated + * @ordered + */ + int TIMED_CONSTRAINT__INTERPRETATION = NFPsPackage.NFP_CONSTRAINT_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Timed Constraint' class. + * + * + * @generated + * @ordered + */ + int TIMED_CONSTRAINT_FEATURE_COUNT = NFPsPackage.NFP_CONSTRAINT_FEATURE_COUNT + 2; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.ClockConstraintImpl Clock Constraint}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.ClockConstraintImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimePackageImpl#getClockConstraint() + * @generated + */ + int CLOCK_CONSTRAINT = 6; + + /** + * The feature id for the 'Kind' attribute. + * + * + * @generated + * @ordered + */ + int CLOCK_CONSTRAINT__KIND = NFPsPackage.NFP_CONSTRAINT__KIND; + + /** + * The feature id for the 'Base Constraint' reference. + * + * + * @generated + * @ordered + */ + int CLOCK_CONSTRAINT__BASE_CONSTRAINT = NFPsPackage.NFP_CONSTRAINT__BASE_CONSTRAINT; + + /** + * The feature id for the 'Mode' reference list. + * + * + * @generated + * @ordered + */ + int CLOCK_CONSTRAINT__MODE = NFPsPackage.NFP_CONSTRAINT__MODE; + + /** + * The feature id for the 'On' reference list. + * + * + * @generated + * @ordered + */ + int CLOCK_CONSTRAINT__ON = NFPsPackage.NFP_CONSTRAINT_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Is Coincidence Based' attribute. + * + * + * @generated + * @ordered + */ + int CLOCK_CONSTRAINT__IS_COINCIDENCE_BASED = NFPsPackage.NFP_CONSTRAINT_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Is Precedence Based' attribute. + * + * + * @generated + * @ordered + */ + int CLOCK_CONSTRAINT__IS_PRECEDENCE_BASED = NFPsPackage.NFP_CONSTRAINT_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Is Chronometric Based' attribute. + * + * + * @generated + * @ordered + */ + int CLOCK_CONSTRAINT__IS_CHRONOMETRIC_BASED = NFPsPackage.NFP_CONSTRAINT_FEATURE_COUNT + 3; + + /** + * The number of structural features of the 'Clock Constraint' class. + * + * + * @generated + * @ordered + */ + int CLOCK_CONSTRAINT_FEATURE_COUNT = NFPsPackage.NFP_CONSTRAINT_FEATURE_COUNT + 4; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedInstantObservationImpl Timed Instant Observation}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedInstantObservationImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimePackageImpl#getTimedInstantObservation() + * @generated + */ + int TIMED_INSTANT_OBSERVATION = 7; + + /** + * The feature id for the 'On' reference list. + * + * + * @generated + * @ordered + */ + int TIMED_INSTANT_OBSERVATION__ON = TIMED_ELEMENT__ON; + + /** + * The feature id for the 'Obs Kind' attribute. + * + * + * @generated + * @ordered + */ + int TIMED_INSTANT_OBSERVATION__OBS_KIND = TIMED_ELEMENT_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Base Time Observation' reference. + * + * + * @generated + * @ordered + */ + int TIMED_INSTANT_OBSERVATION__BASE_TIME_OBSERVATION = TIMED_ELEMENT_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Timed Instant Observation' class. + * + * + * @generated + * @ordered + */ + int TIMED_INSTANT_OBSERVATION_FEATURE_COUNT = TIMED_ELEMENT_FEATURE_COUNT + 2; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedDurationObservationImpl Timed Duration Observation}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedDurationObservationImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimePackageImpl#getTimedDurationObservation() + * @generated + */ + int TIMED_DURATION_OBSERVATION = 8; + + /** + * The feature id for the 'On' reference list. + * + * + * @generated + * @ordered + */ + int TIMED_DURATION_OBSERVATION__ON = TIMED_ELEMENT__ON; + + /** + * The feature id for the 'Obs Kind' attribute list. + * + * + * @generated + * @ordered + */ + int TIMED_DURATION_OBSERVATION__OBS_KIND = TIMED_ELEMENT_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Base Duration Observation' reference. + * + * + * @generated + * @ordered + */ + int TIMED_DURATION_OBSERVATION__BASE_DURATION_OBSERVATION = TIMED_ELEMENT_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Timed Duration Observation' class. + * + * + * @generated + * @ordered + */ + int TIMED_DURATION_OBSERVATION_FEATURE_COUNT = TIMED_ELEMENT_FEATURE_COUNT + 2; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedEventImpl Timed Event}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedEventImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimePackageImpl#getTimedEvent() + * @generated + */ + int TIMED_EVENT = 9; + + /** + * The feature id for the 'On' reference list. + * + * + * @generated + * @ordered + */ + int TIMED_EVENT__ON = TIMED_ELEMENT__ON; + + /** + * The feature id for the 'Repetition' attribute. + * + * + * @generated + * @ordered + */ + int TIMED_EVENT__REPETITION = TIMED_ELEMENT_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Base Time Event' reference. + * + * + * @generated + * @ordered + */ + int TIMED_EVENT__BASE_TIME_EVENT = TIMED_ELEMENT_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Every' containment reference. + * + * + * @generated + * @ordered + */ + int TIMED_EVENT__EVERY = TIMED_ELEMENT_FEATURE_COUNT + 2; + + /** + * The number of structural features of the 'Timed Event' class. + * + * + * @generated + * @ordered + */ + int TIMED_EVENT_FEATURE_COUNT = TIMED_ELEMENT_FEATURE_COUNT + 3; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedProcessingImpl Timed Processing}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedProcessingImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimePackageImpl#getTimedProcessing() + * @generated + */ + int TIMED_PROCESSING = 10; + + /** + * The feature id for the 'On' reference list. + * + * + * @generated + * @ordered + */ + int TIMED_PROCESSING__ON = TIMED_ELEMENT__ON; + + /** + * The feature id for the 'Base Action' reference. + * + * + * @generated + * @ordered + */ + int TIMED_PROCESSING__BASE_ACTION = TIMED_ELEMENT_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Base Behavior' reference. + * + * + * @generated + * @ordered + */ + int TIMED_PROCESSING__BASE_BEHAVIOR = TIMED_ELEMENT_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Base Message' reference. + * + * + * @generated + * @ordered + */ + int TIMED_PROCESSING__BASE_MESSAGE = TIMED_ELEMENT_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Duration' containment reference. + * + * + * @generated + * @ordered + */ + int TIMED_PROCESSING__DURATION = TIMED_ELEMENT_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Start' reference. + * + * + * @generated + * @ordered + */ + int TIMED_PROCESSING__START = TIMED_ELEMENT_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Finish' reference. + * + * + * @generated + * @ordered + */ + int TIMED_PROCESSING__FINISH = TIMED_ELEMENT_FEATURE_COUNT + 5; + + /** + * The number of structural features of the 'Timed Processing' class. + * + * + * @generated + * @ordered + */ + int TIMED_PROCESSING_FEATURE_COUNT = TIMED_ELEMENT_FEATURE_COUNT + 6; + + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedDomain Timed Domain}'. + * + * + * @return the meta object for class 'Timed Domain'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedDomain + * @generated + */ + EClass getTimedDomain(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedDomain#getBase_Namespace Base Namespace}'. + * + * + * @return the meta object for the reference 'Base Namespace'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedDomain#getBase_Namespace() + * @see #getTimedDomain() + * @generated + */ + EReference getTimedDomain_Base_Namespace(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.Clock Clock}'. + * + * + * @return the meta object for class 'Clock'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.Clock + * @generated + */ + EClass getClock(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.Clock#getStandard Standard}'. + * + * + * @return the meta object for the attribute 'Standard'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.Clock#getStandard() + * @see #getClock() + * @generated + */ + EAttribute getClock_Standard(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.Clock#getBase_InstanceSpecification Base Instance Specification}'. + * + * + * @return the meta object for the reference 'Base Instance Specification'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.Clock#getBase_InstanceSpecification() + * @see #getClock() + * @generated + */ + EReference getClock_Base_InstanceSpecification(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.Clock#getType Type}'. + * + * + * @return the meta object for the reference 'Type'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.Clock#getType() + * @see #getClock() + * @generated + */ + EReference getClock_Type(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.Clock#getUnit Unit}'. + * + * + * @return the meta object for the reference 'Unit'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.Clock#getUnit() + * @see #getClock() + * @generated + */ + EReference getClock_Unit(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.Clock#getBase_Property Base Property}'. + * + * + * @return the meta object for the reference 'Base Property'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.Clock#getBase_Property() + * @see #getClock() + * @generated + */ + EReference getClock_Base_Property(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.Clock#getBase_Event Base Event}'. + * + * + * @return the meta object for the reference 'Base Event'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.Clock#getBase_Event() + * @see #getClock() + * @generated + */ + EReference getClock_Base_Event(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockType Clock Type}'. + * + * + * @return the meta object for class 'Clock Type'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockType + * @generated + */ + EClass getClockType(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockType#getNature Nature}'. + * + * + * @return the meta object for the attribute 'Nature'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockType#getNature() + * @see #getClockType() + * @generated + */ + EAttribute getClockType_Nature(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockType#getUnitType Unit Type}'. + * + * + * @return the meta object for the reference 'Unit Type'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockType#getUnitType() + * @see #getClockType() + * @generated + */ + EReference getClockType_UnitType(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockType#isIsLogical Is Logical}'. + * + * + * @return the meta object for the attribute 'Is Logical'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockType#isIsLogical() + * @see #getClockType() + * @generated + */ + EAttribute getClockType_IsLogical(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockType#getResolAttr Resol Attr}'. + * + * + * @return the meta object for the reference 'Resol Attr'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockType#getResolAttr() + * @see #getClockType() + * @generated + */ + EReference getClockType_ResolAttr(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockType#getMaxValAttr Max Val Attr}'. + * + * + * @return the meta object for the reference 'Max Val Attr'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockType#getMaxValAttr() + * @see #getClockType() + * @generated + */ + EReference getClockType_MaxValAttr(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockType#getOffsetAttr Offset Attr}'. + * + * + * @return the meta object for the reference 'Offset Attr'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockType#getOffsetAttr() + * @see #getClockType() + * @generated + */ + EReference getClockType_OffsetAttr(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockType#getGetTime Get Time}'. + * + * + * @return the meta object for the reference 'Get Time'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockType#getGetTime() + * @see #getClockType() + * @generated + */ + EReference getClockType_GetTime(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockType#getSetTime Set Time}'. + * + * + * @return the meta object for the reference 'Set Time'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockType#getSetTime() + * @see #getClockType() + * @generated + */ + EReference getClockType_SetTime(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockType#getIndexToValue Index To Value}'. + * + * + * @return the meta object for the reference 'Index To Value'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockType#getIndexToValue() + * @see #getClockType() + * @generated + */ + EReference getClockType_IndexToValue(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockType#getBase_Class Base Class}'. + * + * + * @return the meta object for the reference 'Base Class'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockType#getBase_Class() + * @see #getClockType() + * @generated + */ + EReference getClockType_Base_Class(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedElement Timed Element}'. + * + * + * @return the meta object for class 'Timed Element'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedElement + * @generated + */ + EClass getTimedElement(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedElement#getOn On}'. + * + * + * @return the meta object for the reference list 'On'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedElement#getOn() + * @see #getTimedElement() + * @generated + */ + EReference getTimedElement_On(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedValueSpecification Timed Value Specification}'. + * + * + * @return the meta object for class 'Timed Value Specification'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedValueSpecification + * @generated + */ + EClass getTimedValueSpecification(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedValueSpecification#getInterpretation Interpretation}'. + * + * + * @return the meta object for the attribute 'Interpretation'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedValueSpecification#getInterpretation() + * @see #getTimedValueSpecification() + * @generated + */ + EAttribute getTimedValueSpecification_Interpretation(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedValueSpecification#getBase_ValueSpecification Base Value Specification}'. + * + * + * @return the meta object for the reference 'Base Value Specification'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedValueSpecification#getBase_ValueSpecification() + * @see #getTimedValueSpecification() + * @generated + */ + EReference getTimedValueSpecification_Base_ValueSpecification(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedConstraint Timed Constraint}'. + * + * + * @return the meta object for class 'Timed Constraint'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedConstraint + * @generated + */ + EClass getTimedConstraint(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedConstraint#getInterpretation Interpretation}'. + * + * + * @return the meta object for the attribute 'Interpretation'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedConstraint#getInterpretation() + * @see #getTimedConstraint() + * @generated + */ + EAttribute getTimedConstraint_Interpretation(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockConstraint Clock Constraint}'. + * + * + * @return the meta object for class 'Clock Constraint'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockConstraint + * @generated + */ + EClass getClockConstraint(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockConstraint#isIsCoincidenceBased Is Coincidence Based}'. + * + * + * @return the meta object for the attribute 'Is Coincidence Based'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockConstraint#isIsCoincidenceBased() + * @see #getClockConstraint() + * @generated + */ + EAttribute getClockConstraint_IsCoincidenceBased(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockConstraint#isIsPrecedenceBased Is Precedence Based}'. + * + * + * @return the meta object for the attribute 'Is Precedence Based'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockConstraint#isIsPrecedenceBased() + * @see #getClockConstraint() + * @generated + */ + EAttribute getClockConstraint_IsPrecedenceBased(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockConstraint#isIsChronometricBased Is Chronometric Based}'. + * + * + * @return the meta object for the attribute 'Is Chronometric Based'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockConstraint#isIsChronometricBased() + * @see #getClockConstraint() + * @generated + */ + EAttribute getClockConstraint_IsChronometricBased(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedInstantObservation Timed Instant Observation}'. + * + * + * @return the meta object for class 'Timed Instant Observation'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedInstantObservation + * @generated + */ + EClass getTimedInstantObservation(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedInstantObservation#getObsKind Obs Kind}'. + * + * + * @return the meta object for the attribute 'Obs Kind'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedInstantObservation#getObsKind() + * @see #getTimedInstantObservation() + * @generated + */ + EAttribute getTimedInstantObservation_ObsKind(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedInstantObservation#getBase_TimeObservation Base Time Observation}'. + * + * + * @return the meta object for the reference 'Base Time Observation'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedInstantObservation#getBase_TimeObservation() + * @see #getTimedInstantObservation() + * @generated + */ + EReference getTimedInstantObservation_Base_TimeObservation(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedDurationObservation Timed Duration Observation}'. + * + * + * @return the meta object for class 'Timed Duration Observation'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedDurationObservation + * @generated + */ + EClass getTimedDurationObservation(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedDurationObservation#getObsKind Obs Kind}'. + * + * + * @return the meta object for the attribute list 'Obs Kind'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedDurationObservation#getObsKind() + * @see #getTimedDurationObservation() + * @generated + */ + EAttribute getTimedDurationObservation_ObsKind(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedDurationObservation#getBase_DurationObservation Base Duration Observation}'. + * + * + * @return the meta object for the reference 'Base Duration Observation'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedDurationObservation#getBase_DurationObservation() + * @see #getTimedDurationObservation() + * @generated + */ + EReference getTimedDurationObservation_Base_DurationObservation(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedEvent Timed Event}'. + * + * + * @return the meta object for class 'Timed Event'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedEvent + * @generated + */ + EClass getTimedEvent(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedEvent#getRepetition Repetition}'. + * + * + * @return the meta object for the attribute 'Repetition'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedEvent#getRepetition() + * @see #getTimedEvent() + * @generated + */ + EAttribute getTimedEvent_Repetition(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedEvent#getBase_TimeEvent Base Time Event}'. + * + * + * @return the meta object for the reference 'Base Time Event'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedEvent#getBase_TimeEvent() + * @see #getTimedEvent() + * @generated + */ + EReference getTimedEvent_Base_TimeEvent(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedEvent#getEvery Every}'. + * + * + * @return the meta object for the containment reference 'Every'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedEvent#getEvery() + * @see #getTimedEvent() + * @generated + */ + EReference getTimedEvent_Every(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedProcessing Timed Processing}'. + * + * + * @return the meta object for class 'Timed Processing'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedProcessing + * @generated + */ + EClass getTimedProcessing(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedProcessing#getBase_Action Base Action}'. + * + * + * @return the meta object for the reference 'Base Action'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedProcessing#getBase_Action() + * @see #getTimedProcessing() + * @generated + */ + EReference getTimedProcessing_Base_Action(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedProcessing#getBase_Behavior Base Behavior}'. + * + * + * @return the meta object for the reference 'Base Behavior'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedProcessing#getBase_Behavior() + * @see #getTimedProcessing() + * @generated + */ + EReference getTimedProcessing_Base_Behavior(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedProcessing#getBase_Message Base Message}'. + * + * + * @return the meta object for the reference 'Base Message'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedProcessing#getBase_Message() + * @see #getTimedProcessing() + * @generated + */ + EReference getTimedProcessing_Base_Message(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedProcessing#getDuration Duration}'. + * + * + * @return the meta object for the containment reference 'Duration'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedProcessing#getDuration() + * @see #getTimedProcessing() + * @generated + */ + EReference getTimedProcessing_Duration(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedProcessing#getStart Start}'. + * + * + * @return the meta object for the reference 'Start'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedProcessing#getStart() + * @see #getTimedProcessing() + * @generated + */ + EReference getTimedProcessing_Start(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedProcessing#getFinish Finish}'. + * + * + * @return the meta object for the reference 'Finish'. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedProcessing#getFinish() + * @see #getTimedProcessing() + * @generated + */ + EReference getTimedProcessing_Finish(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + TimeFactory getTimeFactory(); + + /** + * + * 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.MARTE_Foundations.Time.impl.TimedDomainImpl Timed Domain}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedDomainImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimePackageImpl#getTimedDomain() + * @generated + */ + EClass TIMED_DOMAIN = eINSTANCE.getTimedDomain(); + + /** + * The meta object literal for the 'Base Namespace' reference feature. + * + * + * @generated + */ + EReference TIMED_DOMAIN__BASE_NAMESPACE = eINSTANCE.getTimedDomain_Base_Namespace(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.ClockImpl Clock}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.ClockImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimePackageImpl#getClock() + * @generated + */ + EClass CLOCK = eINSTANCE.getClock(); + + /** + * The meta object literal for the 'Standard' attribute feature. + * + * + * @generated + */ + EAttribute CLOCK__STANDARD = eINSTANCE.getClock_Standard(); + + /** + * The meta object literal for the 'Base Instance Specification' reference feature. + * + * + * @generated + */ + EReference CLOCK__BASE_INSTANCE_SPECIFICATION = eINSTANCE.getClock_Base_InstanceSpecification(); + + /** + * The meta object literal for the 'Type' reference feature. + * + * + * @generated + */ + EReference CLOCK__TYPE = eINSTANCE.getClock_Type(); + + /** + * The meta object literal for the 'Unit' reference feature. + * + * + * @generated + */ + EReference CLOCK__UNIT = eINSTANCE.getClock_Unit(); + + /** + * The meta object literal for the 'Base Property' reference feature. + * + * + * @generated + */ + EReference CLOCK__BASE_PROPERTY = eINSTANCE.getClock_Base_Property(); + + /** + * The meta object literal for the 'Base Event' reference feature. + * + * + * @generated + */ + EReference CLOCK__BASE_EVENT = eINSTANCE.getClock_Base_Event(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.ClockTypeImpl Clock Type}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.ClockTypeImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimePackageImpl#getClockType() + * @generated + */ + EClass CLOCK_TYPE = eINSTANCE.getClockType(); + + /** + * The meta object literal for the 'Nature' attribute feature. + * + * + * @generated + */ + EAttribute CLOCK_TYPE__NATURE = eINSTANCE.getClockType_Nature(); + + /** + * The meta object literal for the 'Unit Type' reference feature. + * + * + * @generated + */ + EReference CLOCK_TYPE__UNIT_TYPE = eINSTANCE.getClockType_UnitType(); + + /** + * The meta object literal for the 'Is Logical' attribute feature. + * + * + * @generated + */ + EAttribute CLOCK_TYPE__IS_LOGICAL = eINSTANCE.getClockType_IsLogical(); + + /** + * The meta object literal for the 'Resol Attr' reference feature. + * + * + * @generated + */ + EReference CLOCK_TYPE__RESOL_ATTR = eINSTANCE.getClockType_ResolAttr(); + + /** + * The meta object literal for the 'Max Val Attr' reference feature. + * + * + * @generated + */ + EReference CLOCK_TYPE__MAX_VAL_ATTR = eINSTANCE.getClockType_MaxValAttr(); + + /** + * The meta object literal for the 'Offset Attr' reference feature. + * + * + * @generated + */ + EReference CLOCK_TYPE__OFFSET_ATTR = eINSTANCE.getClockType_OffsetAttr(); + + /** + * The meta object literal for the 'Get Time' reference feature. + * + * + * @generated + */ + EReference CLOCK_TYPE__GET_TIME = eINSTANCE.getClockType_GetTime(); + + /** + * The meta object literal for the 'Set Time' reference feature. + * + * + * @generated + */ + EReference CLOCK_TYPE__SET_TIME = eINSTANCE.getClockType_SetTime(); + + /** + * The meta object literal for the 'Index To Value' reference feature. + * + * + * @generated + */ + EReference CLOCK_TYPE__INDEX_TO_VALUE = eINSTANCE.getClockType_IndexToValue(); + + /** + * The meta object literal for the 'Base Class' reference feature. + * + * + * @generated + */ + EReference CLOCK_TYPE__BASE_CLASS = eINSTANCE.getClockType_Base_Class(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedElementImpl Timed Element}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedElementImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimePackageImpl#getTimedElement() + * @generated + */ + EClass TIMED_ELEMENT = eINSTANCE.getTimedElement(); + + /** + * The meta object literal for the 'On' reference list feature. + * + * + * @generated + */ + EReference TIMED_ELEMENT__ON = eINSTANCE.getTimedElement_On(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedValueSpecificationImpl Timed Value Specification}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedValueSpecificationImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimePackageImpl#getTimedValueSpecification() + * @generated + */ + EClass TIMED_VALUE_SPECIFICATION = eINSTANCE.getTimedValueSpecification(); + + /** + * The meta object literal for the 'Interpretation' attribute feature. + * + * + * @generated + */ + EAttribute TIMED_VALUE_SPECIFICATION__INTERPRETATION = eINSTANCE.getTimedValueSpecification_Interpretation(); + + /** + * The meta object literal for the 'Base Value Specification' reference feature. + * + * + * @generated + */ + EReference TIMED_VALUE_SPECIFICATION__BASE_VALUE_SPECIFICATION = eINSTANCE.getTimedValueSpecification_Base_ValueSpecification(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedConstraintImpl Timed Constraint}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedConstraintImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimePackageImpl#getTimedConstraint() + * @generated + */ + EClass TIMED_CONSTRAINT = eINSTANCE.getTimedConstraint(); + + /** + * The meta object literal for the 'Interpretation' attribute feature. + * + * + * @generated + */ + EAttribute TIMED_CONSTRAINT__INTERPRETATION = eINSTANCE.getTimedConstraint_Interpretation(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.ClockConstraintImpl Clock Constraint}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.ClockConstraintImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimePackageImpl#getClockConstraint() + * @generated + */ + EClass CLOCK_CONSTRAINT = eINSTANCE.getClockConstraint(); + + /** + * The meta object literal for the 'Is Coincidence Based' attribute feature. + * + * + * @generated + */ + EAttribute CLOCK_CONSTRAINT__IS_COINCIDENCE_BASED = eINSTANCE.getClockConstraint_IsCoincidenceBased(); + + /** + * The meta object literal for the 'Is Precedence Based' attribute feature. + * + * + * @generated + */ + EAttribute CLOCK_CONSTRAINT__IS_PRECEDENCE_BASED = eINSTANCE.getClockConstraint_IsPrecedenceBased(); + + /** + * The meta object literal for the 'Is Chronometric Based' attribute feature. + * + * + * @generated + */ + EAttribute CLOCK_CONSTRAINT__IS_CHRONOMETRIC_BASED = eINSTANCE.getClockConstraint_IsChronometricBased(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedInstantObservationImpl Timed Instant Observation}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedInstantObservationImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimePackageImpl#getTimedInstantObservation() + * @generated + */ + EClass TIMED_INSTANT_OBSERVATION = eINSTANCE.getTimedInstantObservation(); + + /** + * The meta object literal for the 'Obs Kind' attribute feature. + * + * + * @generated + */ + EAttribute TIMED_INSTANT_OBSERVATION__OBS_KIND = eINSTANCE.getTimedInstantObservation_ObsKind(); + + /** + * The meta object literal for the 'Base Time Observation' reference feature. + * + * + * @generated + */ + EReference TIMED_INSTANT_OBSERVATION__BASE_TIME_OBSERVATION = eINSTANCE.getTimedInstantObservation_Base_TimeObservation(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedDurationObservationImpl Timed Duration Observation}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedDurationObservationImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimePackageImpl#getTimedDurationObservation() + * @generated + */ + EClass TIMED_DURATION_OBSERVATION = eINSTANCE.getTimedDurationObservation(); + + /** + * The meta object literal for the 'Obs Kind' attribute list feature. + * + * + * @generated + */ + EAttribute TIMED_DURATION_OBSERVATION__OBS_KIND = eINSTANCE.getTimedDurationObservation_ObsKind(); + + /** + * The meta object literal for the 'Base Duration Observation' reference feature. + * + * + * @generated + */ + EReference TIMED_DURATION_OBSERVATION__BASE_DURATION_OBSERVATION = eINSTANCE.getTimedDurationObservation_Base_DurationObservation(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedEventImpl Timed Event}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedEventImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimePackageImpl#getTimedEvent() + * @generated + */ + EClass TIMED_EVENT = eINSTANCE.getTimedEvent(); + + /** + * The meta object literal for the 'Repetition' attribute feature. + * + * + * @generated + */ + EAttribute TIMED_EVENT__REPETITION = eINSTANCE.getTimedEvent_Repetition(); + + /** + * The meta object literal for the 'Base Time Event' reference feature. + * + * + * @generated + */ + EReference TIMED_EVENT__BASE_TIME_EVENT = eINSTANCE.getTimedEvent_Base_TimeEvent(); + + /** + * The meta object literal for the 'Every' containment reference feature. + * + * + * @generated + */ + EReference TIMED_EVENT__EVERY = eINSTANCE.getTimedEvent_Every(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedProcessingImpl Timed Processing}' class. + * + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedProcessingImpl + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimePackageImpl#getTimedProcessing() + * @generated + */ + EClass TIMED_PROCESSING = eINSTANCE.getTimedProcessing(); + + /** + * The meta object literal for the 'Base Action' reference feature. + * + * + * @generated + */ + EReference TIMED_PROCESSING__BASE_ACTION = eINSTANCE.getTimedProcessing_Base_Action(); + + /** + * The meta object literal for the 'Base Behavior' reference feature. + * + * + * @generated + */ + EReference TIMED_PROCESSING__BASE_BEHAVIOR = eINSTANCE.getTimedProcessing_Base_Behavior(); + + /** + * The meta object literal for the 'Base Message' reference feature. + * + * + * @generated + */ + EReference TIMED_PROCESSING__BASE_MESSAGE = eINSTANCE.getTimedProcessing_Base_Message(); + + /** + * The meta object literal for the 'Duration' containment reference feature. + * + * + * @generated + */ + EReference TIMED_PROCESSING__DURATION = eINSTANCE.getTimedProcessing_Duration(); + + /** + * The meta object literal for the 'Start' reference feature. + * + * + * @generated + */ + EReference TIMED_PROCESSING__START = eINSTANCE.getTimedProcessing_Start(); + + /** + * The meta object literal for the 'Finish' reference feature. + * + * + * @generated + */ + EReference TIMED_PROCESSING__FINISH = eINSTANCE.getTimedProcessing_Finish(); + + } + +} //TimePackage diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/TimedConstraint.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/TimedConstraint.java new file mode 100644 index 00000000000..7c021272553 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/TimedConstraint.java @@ -0,0 +1,66 @@ +/***************************************************************************** + * 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.MARTE_Foundations.Time; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpConstraint; + +import org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.TimeInterpretationKind; + +/** + * + * A representation of the model object 'Timed Constraint'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedConstraint#getInterpretation Interpretation}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage#getTimedConstraint() + * @model + * @generated + */ +public interface TimedConstraint extends NfpConstraint, TimedElement { + /** + * Returns the value of the 'Interpretation' attribute. + * The literals are from the enumeration {@link org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.TimeInterpretationKind}. + * + *

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

+ * + * @return the value of the 'Interpretation' attribute. + * @see org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.TimeInterpretationKind + * @see #setInterpretation(TimeInterpretationKind) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage#getTimedConstraint_Interpretation() + * @model unique="false" ordered="false" + * @generated + */ + TimeInterpretationKind getInterpretation(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedConstraint#getInterpretation Interpretation}' attribute. + * + * + * @param value the new value of the 'Interpretation' attribute. + * @see org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.TimeInterpretationKind + * @see #getInterpretation() + * @generated + */ + void setInterpretation(TimeInterpretationKind value); + +} // TimedConstraint diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/TimedDomain.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/TimedDomain.java new file mode 100644 index 00000000000..c00eb381b5a --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/TimedDomain.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.MARTE_Foundations.Time; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.uml2.uml.Namespace; + +/** + * + * A representation of the model object 'Timed Domain'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedDomain#getBase_Namespace Base Namespace}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage#getTimedDomain() + * @model + * @generated + */ +public interface TimedDomain extends EObject { + /** + * Returns the value of the 'Base Namespace' reference. + * + *

+ * If the meaning of the 'Base Namespace' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Namespace' reference. + * @see #setBase_Namespace(Namespace) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage#getTimedDomain_Base_Namespace() + * @model required="true" ordered="false" + * @generated + */ + Namespace getBase_Namespace(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedDomain#getBase_Namespace Base Namespace}' reference. + * + * + * @param value the new value of the 'Base Namespace' reference. + * @see #getBase_Namespace() + * @generated + */ + void setBase_Namespace(Namespace value); + +} // TimedDomain diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/TimedDurationObservation.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/TimedDurationObservation.java new file mode 100644 index 00000000000..de51624614b --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/TimedDurationObservation.java @@ -0,0 +1,84 @@ +/***************************************************************************** + * 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.MARTE_Foundations.Time; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.EventKind; + +import org.eclipse.uml2.uml.DurationObservation; + +/** + * + * A representation of the model object 'Timed Duration Observation'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedDurationObservation#getObsKind Obs Kind}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedDurationObservation#getBase_DurationObservation Base Duration Observation}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage#getTimedDurationObservation() + * @model + * @generated + */ +public interface TimedDurationObservation extends TimedElement { + /** + * Returns the value of the 'Obs Kind' attribute list. + * The list contents are of type {@link org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.EventKind}. + * The literals are from the enumeration {@link org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.EventKind}. + * + *

+ * If the meaning of the 'Obs Kind' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Obs Kind' attribute list. + * @see org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.EventKind + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage#getTimedDurationObservation_ObsKind() + * @model unique="false" upper="2" ordered="false" + * @generated + */ + EList getObsKind(); + + /** + * Returns the value of the 'Base Duration Observation' reference. + * + *

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

+ * + * @return the value of the 'Base Duration Observation' reference. + * @see #setBase_DurationObservation(DurationObservation) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage#getTimedDurationObservation_Base_DurationObservation() + * @model required="true" ordered="false" + * @generated + */ + DurationObservation getBase_DurationObservation(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedDurationObservation#getBase_DurationObservation Base Duration Observation}' reference. + * + * + * @param value the new value of the 'Base Duration Observation' reference. + * @see #getBase_DurationObservation() + * @generated + */ + void setBase_DurationObservation(DurationObservation value); + +} // TimedDurationObservation diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/TimedElement.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/TimedElement.java new file mode 100644 index 00000000000..ef466385248 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/TimedElement.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.MARTE_Foundations.Time; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Timed Element'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedElement#getOn On}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage#getTimedElement() + * @model abstract="true" + * @generated + */ +public interface TimedElement extends EObject { + /** + * Returns the value of the 'On' reference list. + * The list contents are of type {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.Clock}. + * + *

+ * If the meaning of the 'On' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'On' reference list. + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage#getTimedElement_On() + * @model required="true" ordered="false" + * @generated + */ + EList getOn(); + +} // TimedElement diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/TimedEvent.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/TimedEvent.java new file mode 100644 index 00000000000..2ea43de2991 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/TimedEvent.java @@ -0,0 +1,116 @@ +/***************************************************************************** + * 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.MARTE_Foundations.Time; + +import org.eclipse.uml2.uml.TimeEvent; +import org.eclipse.uml2.uml.ValueSpecification; + +/** + * + * A representation of the model object 'Timed Event'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedEvent#getRepetition Repetition}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedEvent#getBase_TimeEvent Base Time Event}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedEvent#getEvery Every}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage#getTimedEvent() + * @model + * @generated + */ +public interface TimedEvent extends TimedElement { + /** + * Returns the value of the 'Repetition' attribute. + * + *

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

+ * + * @return the value of the 'Repetition' attribute. + * @see #setRepetition(int) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage#getTimedEvent_Repetition() + * @model unique="false" dataType="org.eclipse.papyrus.MARTE_Library.MARTE_PrimitivesTypes.Integer" ordered="false" + * @generated + */ + int getRepetition(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedEvent#getRepetition Repetition}' attribute. + * + * + * @param value the new value of the 'Repetition' attribute. + * @see #getRepetition() + * @generated + */ + void setRepetition(int value); + + /** + * Returns the value of the 'Base Time Event' reference. + * + *

+ * If the meaning of the 'Base Time Event' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Time Event' reference. + * @see #setBase_TimeEvent(TimeEvent) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage#getTimedEvent_Base_TimeEvent() + * @model required="true" ordered="false" + * @generated + */ + TimeEvent getBase_TimeEvent(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedEvent#getBase_TimeEvent Base Time Event}' reference. + * + * + * @param value the new value of the 'Base Time Event' reference. + * @see #getBase_TimeEvent() + * @generated + */ + void setBase_TimeEvent(TimeEvent value); + + /** + * Returns the value of the 'Every' containment reference. + * + *

+ * If the meaning of the 'Every' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Every' containment reference. + * @see #setEvery(ValueSpecification) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage#getTimedEvent_Every() + * @model containment="true" ordered="false" + * @generated + */ + ValueSpecification getEvery(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedEvent#getEvery Every}' containment reference. + * + * + * @param value the new value of the 'Every' containment reference. + * @see #getEvery() + * @generated + */ + void setEvery(ValueSpecification value); + +} // TimedEvent diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/TimedInstantObservation.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/TimedInstantObservation.java new file mode 100644 index 00000000000..cdd780d90b9 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/TimedInstantObservation.java @@ -0,0 +1,93 @@ +/***************************************************************************** + * 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.MARTE_Foundations.Time; + +import org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.EventKind; + +import org.eclipse.uml2.uml.TimeObservation; + +/** + * + * A representation of the model object 'Timed Instant Observation'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedInstantObservation#getObsKind Obs Kind}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedInstantObservation#getBase_TimeObservation Base Time Observation}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage#getTimedInstantObservation() + * @model + * @generated + */ +public interface TimedInstantObservation extends TimedElement { + /** + * Returns the value of the 'Obs Kind' attribute. + * The literals are from the enumeration {@link org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.EventKind}. + * + *

+ * If the meaning of the 'Obs Kind' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Obs Kind' attribute. + * @see org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.EventKind + * @see #setObsKind(EventKind) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage#getTimedInstantObservation_ObsKind() + * @model unique="false" ordered="false" + * @generated + */ + EventKind getObsKind(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedInstantObservation#getObsKind Obs Kind}' attribute. + * + * + * @param value the new value of the 'Obs Kind' attribute. + * @see org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.EventKind + * @see #getObsKind() + * @generated + */ + void setObsKind(EventKind value); + + /** + * Returns the value of the 'Base Time Observation' reference. + * + *

+ * If the meaning of the 'Base Time Observation' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Time Observation' reference. + * @see #setBase_TimeObservation(TimeObservation) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage#getTimedInstantObservation_Base_TimeObservation() + * @model required="true" ordered="false" + * @generated + */ + TimeObservation getBase_TimeObservation(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedInstantObservation#getBase_TimeObservation Base Time Observation}' reference. + * + * + * @param value the new value of the 'Base Time Observation' reference. + * @see #getBase_TimeObservation() + * @generated + */ + void setBase_TimeObservation(TimeObservation value); + +} // TimedInstantObservation diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/TimedProcessing.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/TimedProcessing.java new file mode 100644 index 00000000000..a6ea3b5f9d3 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/TimedProcessing.java @@ -0,0 +1,200 @@ +/***************************************************************************** + * 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.MARTE_Foundations.Time; + +import org.eclipse.uml2.uml.Action; +import org.eclipse.uml2.uml.Behavior; +import org.eclipse.uml2.uml.Event; +import org.eclipse.uml2.uml.Message; +import org.eclipse.uml2.uml.ValueSpecification; + +/** + * + * A representation of the model object 'Timed Processing'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedProcessing#getBase_Action Base Action}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedProcessing#getBase_Behavior Base Behavior}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedProcessing#getBase_Message Base Message}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedProcessing#getDuration Duration}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedProcessing#getStart Start}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedProcessing#getFinish Finish}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage#getTimedProcessing() + * @model + * @generated + */ +public interface TimedProcessing extends TimedElement { + /** + * Returns the value of the 'Base Action' reference. + * + *

+ * If the meaning of the 'Base Action' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Action' reference. + * @see #setBase_Action(Action) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage#getTimedProcessing_Base_Action() + * @model required="true" ordered="false" + * @generated + */ + Action getBase_Action(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedProcessing#getBase_Action Base Action}' reference. + * + * + * @param value the new value of the 'Base Action' reference. + * @see #getBase_Action() + * @generated + */ + void setBase_Action(Action value); + + /** + * Returns the value of the 'Base Behavior' reference. + * + *

+ * If the meaning of the 'Base Behavior' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Behavior' reference. + * @see #setBase_Behavior(Behavior) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage#getTimedProcessing_Base_Behavior() + * @model required="true" ordered="false" + * @generated + */ + Behavior getBase_Behavior(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedProcessing#getBase_Behavior Base Behavior}' reference. + * + * + * @param value the new value of the 'Base Behavior' reference. + * @see #getBase_Behavior() + * @generated + */ + void setBase_Behavior(Behavior value); + + /** + * Returns the value of the 'Base Message' reference. + * + *

+ * If the meaning of the 'Base Message' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Message' reference. + * @see #setBase_Message(Message) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage#getTimedProcessing_Base_Message() + * @model required="true" ordered="false" + * @generated + */ + Message getBase_Message(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedProcessing#getBase_Message Base Message}' reference. + * + * + * @param value the new value of the 'Base Message' reference. + * @see #getBase_Message() + * @generated + */ + void setBase_Message(Message value); + + /** + * Returns the value of the 'Duration' containment reference. + * + *

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

+ * + * @return the value of the 'Duration' containment reference. + * @see #setDuration(ValueSpecification) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage#getTimedProcessing_Duration() + * @model containment="true" ordered="false" + * @generated + */ + ValueSpecification getDuration(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedProcessing#getDuration Duration}' containment reference. + * + * + * @param value the new value of the 'Duration' containment reference. + * @see #getDuration() + * @generated + */ + void setDuration(ValueSpecification value); + + /** + * Returns the value of the 'Start' reference. + * + *

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

+ * + * @return the value of the 'Start' reference. + * @see #setStart(Event) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage#getTimedProcessing_Start() + * @model ordered="false" + * @generated + */ + Event getStart(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedProcessing#getStart Start}' reference. + * + * + * @param value the new value of the 'Start' reference. + * @see #getStart() + * @generated + */ + void setStart(Event value); + + /** + * Returns the value of the 'Finish' reference. + * + *

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

+ * + * @return the value of the 'Finish' reference. + * @see #setFinish(Event) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage#getTimedProcessing_Finish() + * @model ordered="false" + * @generated + */ + Event getFinish(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedProcessing#getFinish Finish}' reference. + * + * + * @param value the new value of the 'Finish' reference. + * @see #getFinish() + * @generated + */ + void setFinish(Event value); + +} // TimedProcessing diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/TimedValueSpecification.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/TimedValueSpecification.java new file mode 100644 index 00000000000..349bbcb60d4 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/TimedValueSpecification.java @@ -0,0 +1,93 @@ +/***************************************************************************** + * 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.MARTE_Foundations.Time; + +import org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.TimeInterpretationKind; + +import org.eclipse.uml2.uml.ValueSpecification; + +/** + * + * A representation of the model object 'Timed Value Specification'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedValueSpecification#getInterpretation Interpretation}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedValueSpecification#getBase_ValueSpecification Base Value Specification}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage#getTimedValueSpecification() + * @model + * @generated + */ +public interface TimedValueSpecification extends TimedElement { + /** + * Returns the value of the 'Interpretation' attribute. + * The literals are from the enumeration {@link org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.TimeInterpretationKind}. + * + *

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

+ * + * @return the value of the 'Interpretation' attribute. + * @see org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.TimeInterpretationKind + * @see #setInterpretation(TimeInterpretationKind) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage#getTimedValueSpecification_Interpretation() + * @model unique="false" ordered="false" + * @generated + */ + TimeInterpretationKind getInterpretation(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedValueSpecification#getInterpretation Interpretation}' attribute. + * + * + * @param value the new value of the 'Interpretation' attribute. + * @see org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.TimeInterpretationKind + * @see #getInterpretation() + * @generated + */ + void setInterpretation(TimeInterpretationKind value); + + /** + * Returns the value of the 'Base Value Specification' reference. + * + *

+ * If the meaning of the 'Base Value Specification' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Value Specification' reference. + * @see #setBase_ValueSpecification(ValueSpecification) + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage#getTimedValueSpecification_Base_ValueSpecification() + * @model required="true" ordered="false" + * @generated + */ + ValueSpecification getBase_ValueSpecification(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedValueSpecification#getBase_ValueSpecification Base Value Specification}' reference. + * + * + * @param value the new value of the 'Base Value Specification' reference. + * @see #getBase_ValueSpecification() + * @generated + */ + void setBase_ValueSpecification(ValueSpecification value); + +} // TimedValueSpecification diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/ClockConstraintImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/ClockConstraintImpl.java new file mode 100644 index 00000000000..af45ff1c74e --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/ClockConstraintImpl.java @@ -0,0 +1,358 @@ +/***************************************************************************** + * 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.MARTE_Foundations.Time.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EObjectResolvingEList; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.NfpConstraintImpl; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.Clock; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockConstraint; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedElement; + +/** + * + * An implementation of the model object 'Clock Constraint'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.ClockConstraintImpl#getOn On}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.ClockConstraintImpl#isIsCoincidenceBased Is Coincidence Based}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.ClockConstraintImpl#isIsPrecedenceBased Is Precedence Based}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.ClockConstraintImpl#isIsChronometricBased Is Chronometric Based}
  • + *
+ *

+ * + * @generated + */ +public class ClockConstraintImpl extends NfpConstraintImpl implements ClockConstraint { + /** + * The cached value of the '{@link #getOn() On}' reference list. + * + * + * @see #getOn() + * @generated + * @ordered + */ + protected EList on; + + /** + * The default value of the '{@link #isIsCoincidenceBased() Is Coincidence Based}' attribute. + * + * + * @see #isIsCoincidenceBased() + * @generated + * @ordered + */ + protected static final boolean IS_COINCIDENCE_BASED_EDEFAULT = false; + + /** + * The cached value of the '{@link #isIsCoincidenceBased() Is Coincidence Based}' attribute. + * + * + * @see #isIsCoincidenceBased() + * @generated + * @ordered + */ + protected boolean isCoincidenceBased = IS_COINCIDENCE_BASED_EDEFAULT; + + /** + * The default value of the '{@link #isIsPrecedenceBased() Is Precedence Based}' attribute. + * + * + * @see #isIsPrecedenceBased() + * @generated + * @ordered + */ + protected static final boolean IS_PRECEDENCE_BASED_EDEFAULT = false; + + /** + * The cached value of the '{@link #isIsPrecedenceBased() Is Precedence Based}' attribute. + * + * + * @see #isIsPrecedenceBased() + * @generated + * @ordered + */ + protected boolean isPrecedenceBased = IS_PRECEDENCE_BASED_EDEFAULT; + + /** + * The default value of the '{@link #isIsChronometricBased() Is Chronometric Based}' attribute. + * + * + * @see #isIsChronometricBased() + * @generated + * @ordered + */ + protected static final boolean IS_CHRONOMETRIC_BASED_EDEFAULT = false; + + /** + * The cached value of the '{@link #isIsChronometricBased() Is Chronometric Based}' attribute. + * + * + * @see #isIsChronometricBased() + * @generated + * @ordered + */ + protected boolean isChronometricBased = IS_CHRONOMETRIC_BASED_EDEFAULT; + + /** + * + * + * @generated + */ + protected ClockConstraintImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return TimePackage.Literals.CLOCK_CONSTRAINT; + } + + /** + * + * + * @generated + */ + public EList getOn() { + if (on == null) { + on = new EObjectResolvingEList(Clock.class, this, TimePackage.CLOCK_CONSTRAINT__ON); + } + return on; + } + + /** + * + * + * @generated + */ + public boolean isIsCoincidenceBased() { + return isCoincidenceBased; + } + + /** + * + * + * @generated + */ + public void setIsCoincidenceBased(boolean newIsCoincidenceBased) { + boolean oldIsCoincidenceBased = isCoincidenceBased; + isCoincidenceBased = newIsCoincidenceBased; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TimePackage.CLOCK_CONSTRAINT__IS_COINCIDENCE_BASED, oldIsCoincidenceBased, isCoincidenceBased)); + } + + /** + * + * + * @generated + */ + public boolean isIsPrecedenceBased() { + return isPrecedenceBased; + } + + /** + * + * + * @generated + */ + public void setIsPrecedenceBased(boolean newIsPrecedenceBased) { + boolean oldIsPrecedenceBased = isPrecedenceBased; + isPrecedenceBased = newIsPrecedenceBased; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TimePackage.CLOCK_CONSTRAINT__IS_PRECEDENCE_BASED, oldIsPrecedenceBased, isPrecedenceBased)); + } + + /** + * + * + * @generated + */ + public boolean isIsChronometricBased() { + return isChronometricBased; + } + + /** + * + * + * @generated + */ + public void setIsChronometricBased(boolean newIsChronometricBased) { + boolean oldIsChronometricBased = isChronometricBased; + isChronometricBased = newIsChronometricBased; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TimePackage.CLOCK_CONSTRAINT__IS_CHRONOMETRIC_BASED, oldIsChronometricBased, isChronometricBased)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case TimePackage.CLOCK_CONSTRAINT__ON: + return getOn(); + case TimePackage.CLOCK_CONSTRAINT__IS_COINCIDENCE_BASED: + return isIsCoincidenceBased(); + case TimePackage.CLOCK_CONSTRAINT__IS_PRECEDENCE_BASED: + return isIsPrecedenceBased(); + case TimePackage.CLOCK_CONSTRAINT__IS_CHRONOMETRIC_BASED: + return isIsChronometricBased(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case TimePackage.CLOCK_CONSTRAINT__ON: + getOn().clear(); + getOn().addAll((Collection)newValue); + return; + case TimePackage.CLOCK_CONSTRAINT__IS_COINCIDENCE_BASED: + setIsCoincidenceBased((Boolean)newValue); + return; + case TimePackage.CLOCK_CONSTRAINT__IS_PRECEDENCE_BASED: + setIsPrecedenceBased((Boolean)newValue); + return; + case TimePackage.CLOCK_CONSTRAINT__IS_CHRONOMETRIC_BASED: + setIsChronometricBased((Boolean)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case TimePackage.CLOCK_CONSTRAINT__ON: + getOn().clear(); + return; + case TimePackage.CLOCK_CONSTRAINT__IS_COINCIDENCE_BASED: + setIsCoincidenceBased(IS_COINCIDENCE_BASED_EDEFAULT); + return; + case TimePackage.CLOCK_CONSTRAINT__IS_PRECEDENCE_BASED: + setIsPrecedenceBased(IS_PRECEDENCE_BASED_EDEFAULT); + return; + case TimePackage.CLOCK_CONSTRAINT__IS_CHRONOMETRIC_BASED: + setIsChronometricBased(IS_CHRONOMETRIC_BASED_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case TimePackage.CLOCK_CONSTRAINT__ON: + return on != null && !on.isEmpty(); + case TimePackage.CLOCK_CONSTRAINT__IS_COINCIDENCE_BASED: + return isCoincidenceBased != IS_COINCIDENCE_BASED_EDEFAULT; + case TimePackage.CLOCK_CONSTRAINT__IS_PRECEDENCE_BASED: + return isPrecedenceBased != IS_PRECEDENCE_BASED_EDEFAULT; + case TimePackage.CLOCK_CONSTRAINT__IS_CHRONOMETRIC_BASED: + return isChronometricBased != IS_CHRONOMETRIC_BASED_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) { + if (baseClass == TimedElement.class) { + switch (derivedFeatureID) { + case TimePackage.CLOCK_CONSTRAINT__ON: return TimePackage.TIMED_ELEMENT__ON; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) { + if (baseClass == TimedElement.class) { + switch (baseFeatureID) { + case TimePackage.TIMED_ELEMENT__ON: return TimePackage.CLOCK_CONSTRAINT__ON; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (isCoincidenceBased: "); + result.append(isCoincidenceBased); + result.append(", isPrecedenceBased: "); + result.append(isPrecedenceBased); + result.append(", isChronometricBased: "); + result.append(isChronometricBased); + result.append(')'); + return result.toString(); + } + +} //ClockConstraintImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/ClockImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/ClockImpl.java new file mode 100644 index 00000000000..bc13f765c58 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/ClockImpl.java @@ -0,0 +1,484 @@ +/***************************************************************************** + * 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.MARTE_Foundations.Time.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Unit; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.Clock; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockType; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage; + +import org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.TimeStandardKind; + +import org.eclipse.uml2.uml.Event; +import org.eclipse.uml2.uml.InstanceSpecification; +import org.eclipse.uml2.uml.Property; + +/** + * + * An implementation of the model object 'Clock'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.ClockImpl#getStandard Standard}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.ClockImpl#getBase_InstanceSpecification Base Instance Specification}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.ClockImpl#getType Type}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.ClockImpl#getUnit Unit}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.ClockImpl#getBase_Property Base Property}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.ClockImpl#getBase_Event Base Event}
  • + *
+ *

+ * + * @generated + */ +public class ClockImpl extends EObjectImpl implements Clock { + /** + * The default value of the '{@link #getStandard() Standard}' attribute. + * + * + * @see #getStandard() + * @generated + * @ordered + */ + protected static final TimeStandardKind STANDARD_EDEFAULT = TimeStandardKind.TAI; + + /** + * The cached value of the '{@link #getStandard() Standard}' attribute. + * + * + * @see #getStandard() + * @generated + * @ordered + */ + protected TimeStandardKind standard = STANDARD_EDEFAULT; + + /** + * The cached value of the '{@link #getBase_InstanceSpecification() Base Instance Specification}' reference. + * + * + * @see #getBase_InstanceSpecification() + * @generated + * @ordered + */ + protected InstanceSpecification base_InstanceSpecification; + + /** + * The cached value of the '{@link #getType() Type}' reference. + * + * + * @see #getType() + * @generated + * @ordered + */ + protected ClockType type; + + /** + * The cached value of the '{@link #getUnit() Unit}' reference. + * + * + * @see #getUnit() + * @generated + * @ordered + */ + protected Unit unit; + + /** + * The cached value of the '{@link #getBase_Property() Base Property}' reference. + * + * + * @see #getBase_Property() + * @generated + * @ordered + */ + protected Property base_Property; + + /** + * The cached value of the '{@link #getBase_Event() Base Event}' reference. + * + * + * @see #getBase_Event() + * @generated + * @ordered + */ + protected Event base_Event; + + /** + * + * + * @generated + */ + protected ClockImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return TimePackage.Literals.CLOCK; + } + + /** + * + * + * @generated + */ + public TimeStandardKind getStandard() { + return standard; + } + + /** + * + * + * @generated + */ + public void setStandard(TimeStandardKind newStandard) { + TimeStandardKind oldStandard = standard; + standard = newStandard == null ? STANDARD_EDEFAULT : newStandard; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TimePackage.CLOCK__STANDARD, oldStandard, standard)); + } + + /** + * + * + * @generated + */ + public InstanceSpecification getBase_InstanceSpecification() { + if (base_InstanceSpecification != null && base_InstanceSpecification.eIsProxy()) { + InternalEObject oldBase_InstanceSpecification = (InternalEObject)base_InstanceSpecification; + base_InstanceSpecification = (InstanceSpecification)eResolveProxy(oldBase_InstanceSpecification); + if (base_InstanceSpecification != oldBase_InstanceSpecification) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, TimePackage.CLOCK__BASE_INSTANCE_SPECIFICATION, oldBase_InstanceSpecification, base_InstanceSpecification)); + } + } + return base_InstanceSpecification; + } + + /** + * + * + * @generated + */ + public InstanceSpecification basicGetBase_InstanceSpecification() { + return base_InstanceSpecification; + } + + /** + * + * + * @generated + */ + public void setBase_InstanceSpecification(InstanceSpecification newBase_InstanceSpecification) { + InstanceSpecification oldBase_InstanceSpecification = base_InstanceSpecification; + base_InstanceSpecification = newBase_InstanceSpecification; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TimePackage.CLOCK__BASE_INSTANCE_SPECIFICATION, oldBase_InstanceSpecification, base_InstanceSpecification)); + } + + /** + * + * + * @generated + */ + public ClockType getType() { + if (type != null && type.eIsProxy()) { + InternalEObject oldType = (InternalEObject)type; + type = (ClockType)eResolveProxy(oldType); + if (type != oldType) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, TimePackage.CLOCK__TYPE, oldType, type)); + } + } + return type; + } + + /** + * + * + * @generated + */ + public ClockType basicGetType() { + return type; + } + + /** + * + * + * @generated + */ + public void setType(ClockType newType) { + ClockType oldType = type; + type = newType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TimePackage.CLOCK__TYPE, oldType, type)); + } + + /** + * + * + * @generated + */ + public Unit getUnit() { + if (unit != null && unit.eIsProxy()) { + InternalEObject oldUnit = (InternalEObject)unit; + unit = (Unit)eResolveProxy(oldUnit); + if (unit != oldUnit) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, TimePackage.CLOCK__UNIT, oldUnit, unit)); + } + } + return unit; + } + + /** + * + * + * @generated + */ + public Unit basicGetUnit() { + return unit; + } + + /** + * + * + * @generated + */ + public void setUnit(Unit newUnit) { + Unit oldUnit = unit; + unit = newUnit; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TimePackage.CLOCK__UNIT, oldUnit, unit)); + } + + /** + * + * + * @generated + */ + public Property getBase_Property() { + if (base_Property != null && base_Property.eIsProxy()) { + InternalEObject oldBase_Property = (InternalEObject)base_Property; + base_Property = (Property)eResolveProxy(oldBase_Property); + if (base_Property != oldBase_Property) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, TimePackage.CLOCK__BASE_PROPERTY, oldBase_Property, base_Property)); + } + } + return base_Property; + } + + /** + * + * + * @generated + */ + public Property basicGetBase_Property() { + return base_Property; + } + + /** + * + * + * @generated + */ + public void setBase_Property(Property newBase_Property) { + Property oldBase_Property = base_Property; + base_Property = newBase_Property; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TimePackage.CLOCK__BASE_PROPERTY, oldBase_Property, base_Property)); + } + + /** + * + * + * @generated + */ + public Event getBase_Event() { + if (base_Event != null && base_Event.eIsProxy()) { + InternalEObject oldBase_Event = (InternalEObject)base_Event; + base_Event = (Event)eResolveProxy(oldBase_Event); + if (base_Event != oldBase_Event) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, TimePackage.CLOCK__BASE_EVENT, oldBase_Event, base_Event)); + } + } + return base_Event; + } + + /** + * + * + * @generated + */ + public Event basicGetBase_Event() { + return base_Event; + } + + /** + * + * + * @generated + */ + public void setBase_Event(Event newBase_Event) { + Event oldBase_Event = base_Event; + base_Event = newBase_Event; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TimePackage.CLOCK__BASE_EVENT, oldBase_Event, base_Event)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case TimePackage.CLOCK__STANDARD: + return getStandard(); + case TimePackage.CLOCK__BASE_INSTANCE_SPECIFICATION: + if (resolve) return getBase_InstanceSpecification(); + return basicGetBase_InstanceSpecification(); + case TimePackage.CLOCK__TYPE: + if (resolve) return getType(); + return basicGetType(); + case TimePackage.CLOCK__UNIT: + if (resolve) return getUnit(); + return basicGetUnit(); + case TimePackage.CLOCK__BASE_PROPERTY: + if (resolve) return getBase_Property(); + return basicGetBase_Property(); + case TimePackage.CLOCK__BASE_EVENT: + if (resolve) return getBase_Event(); + return basicGetBase_Event(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case TimePackage.CLOCK__STANDARD: + setStandard((TimeStandardKind)newValue); + return; + case TimePackage.CLOCK__BASE_INSTANCE_SPECIFICATION: + setBase_InstanceSpecification((InstanceSpecification)newValue); + return; + case TimePackage.CLOCK__TYPE: + setType((ClockType)newValue); + return; + case TimePackage.CLOCK__UNIT: + setUnit((Unit)newValue); + return; + case TimePackage.CLOCK__BASE_PROPERTY: + setBase_Property((Property)newValue); + return; + case TimePackage.CLOCK__BASE_EVENT: + setBase_Event((Event)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case TimePackage.CLOCK__STANDARD: + setStandard(STANDARD_EDEFAULT); + return; + case TimePackage.CLOCK__BASE_INSTANCE_SPECIFICATION: + setBase_InstanceSpecification((InstanceSpecification)null); + return; + case TimePackage.CLOCK__TYPE: + setType((ClockType)null); + return; + case TimePackage.CLOCK__UNIT: + setUnit((Unit)null); + return; + case TimePackage.CLOCK__BASE_PROPERTY: + setBase_Property((Property)null); + return; + case TimePackage.CLOCK__BASE_EVENT: + setBase_Event((Event)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case TimePackage.CLOCK__STANDARD: + return standard != STANDARD_EDEFAULT; + case TimePackage.CLOCK__BASE_INSTANCE_SPECIFICATION: + return base_InstanceSpecification != null; + case TimePackage.CLOCK__TYPE: + return type != null; + case TimePackage.CLOCK__UNIT: + return unit != null; + case TimePackage.CLOCK__BASE_PROPERTY: + return base_Property != null; + case TimePackage.CLOCK__BASE_EVENT: + return base_Event != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (standard: "); + result.append(standard); + result.append(')'); + return result.toString(); + } + +} //ClockImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/ClockTypeImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/ClockTypeImpl.java new file mode 100644 index 00000000000..024c39d159d --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/ClockTypeImpl.java @@ -0,0 +1,715 @@ +/***************************************************************************** + * 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.MARTE_Foundations.Time.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockType; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage; + +import org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.TimeNatureKind; + +import org.eclipse.uml2.uml.Enumeration; +import org.eclipse.uml2.uml.Operation; +import org.eclipse.uml2.uml.Property; + +/** + * + * An implementation of the model object 'Clock Type'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.ClockTypeImpl#getNature Nature}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.ClockTypeImpl#getUnitType Unit Type}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.ClockTypeImpl#isIsLogical Is Logical}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.ClockTypeImpl#getResolAttr Resol Attr}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.ClockTypeImpl#getMaxValAttr Max Val Attr}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.ClockTypeImpl#getOffsetAttr Offset Attr}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.ClockTypeImpl#getGetTime Get Time}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.ClockTypeImpl#getSetTime Set Time}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.ClockTypeImpl#getIndexToValue Index To Value}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.ClockTypeImpl#getBase_Class Base Class}
  • + *
+ *

+ * + * @generated + */ +public class ClockTypeImpl extends EObjectImpl implements ClockType { + /** + * The default value of the '{@link #getNature() Nature}' attribute. + * + * + * @see #getNature() + * @generated + * @ordered + */ + protected static final TimeNatureKind NATURE_EDEFAULT = TimeNatureKind.DISCRETE; + + /** + * The cached value of the '{@link #getNature() Nature}' attribute. + * + * + * @see #getNature() + * @generated + * @ordered + */ + protected TimeNatureKind nature = NATURE_EDEFAULT; + + /** + * The cached value of the '{@link #getUnitType() Unit Type}' reference. + * + * + * @see #getUnitType() + * @generated + * @ordered + */ + protected Enumeration unitType; + + /** + * The default value of the '{@link #isIsLogical() Is Logical}' attribute. + * + * + * @see #isIsLogical() + * @generated + * @ordered + */ + protected static final boolean IS_LOGICAL_EDEFAULT = false; + + /** + * The cached value of the '{@link #isIsLogical() Is Logical}' attribute. + * + * + * @see #isIsLogical() + * @generated + * @ordered + */ + protected boolean isLogical = IS_LOGICAL_EDEFAULT; + + /** + * The cached value of the '{@link #getResolAttr() Resol Attr}' reference. + * + * + * @see #getResolAttr() + * @generated + * @ordered + */ + protected Property resolAttr; + + /** + * The cached value of the '{@link #getMaxValAttr() Max Val Attr}' reference. + * + * + * @see #getMaxValAttr() + * @generated + * @ordered + */ + protected Property maxValAttr; + + /** + * The cached value of the '{@link #getOffsetAttr() Offset Attr}' reference. + * + * + * @see #getOffsetAttr() + * @generated + * @ordered + */ + protected Property offsetAttr; + + /** + * The cached value of the '{@link #getGetTime() Get Time}' reference. + * + * + * @see #getGetTime() + * @generated + * @ordered + */ + protected Operation getTime; + + /** + * The cached value of the '{@link #getSetTime() Set Time}' reference. + * + * + * @see #getSetTime() + * @generated + * @ordered + */ + protected Operation setTime; + + /** + * The cached value of the '{@link #getIndexToValue() Index To Value}' reference. + * + * + * @see #getIndexToValue() + * @generated + * @ordered + */ + protected Operation indexToValue; + + /** + * The cached value of the '{@link #getBase_Class() Base Class}' reference. + * + * + * @see #getBase_Class() + * @generated + * @ordered + */ + protected org.eclipse.uml2.uml.Class base_Class; + + /** + * + * + * @generated + */ + protected ClockTypeImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return TimePackage.Literals.CLOCK_TYPE; + } + + /** + * + * + * @generated + */ + public TimeNatureKind getNature() { + return nature; + } + + /** + * + * + * @generated + */ + public void setNature(TimeNatureKind newNature) { + TimeNatureKind oldNature = nature; + nature = newNature == null ? NATURE_EDEFAULT : newNature; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TimePackage.CLOCK_TYPE__NATURE, oldNature, nature)); + } + + /** + * + * + * @generated + */ + public Enumeration getUnitType() { + if (unitType != null && unitType.eIsProxy()) { + InternalEObject oldUnitType = (InternalEObject)unitType; + unitType = (Enumeration)eResolveProxy(oldUnitType); + if (unitType != oldUnitType) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, TimePackage.CLOCK_TYPE__UNIT_TYPE, oldUnitType, unitType)); + } + } + return unitType; + } + + /** + * + * + * @generated + */ + public Enumeration basicGetUnitType() { + return unitType; + } + + /** + * + * + * @generated + */ + public void setUnitType(Enumeration newUnitType) { + Enumeration oldUnitType = unitType; + unitType = newUnitType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TimePackage.CLOCK_TYPE__UNIT_TYPE, oldUnitType, unitType)); + } + + /** + * + * + * @generated + */ + public boolean isIsLogical() { + return isLogical; + } + + /** + * + * + * @generated + */ + public void setIsLogical(boolean newIsLogical) { + boolean oldIsLogical = isLogical; + isLogical = newIsLogical; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TimePackage.CLOCK_TYPE__IS_LOGICAL, oldIsLogical, isLogical)); + } + + /** + * + * + * @generated + */ + public Property getResolAttr() { + if (resolAttr != null && resolAttr.eIsProxy()) { + InternalEObject oldResolAttr = (InternalEObject)resolAttr; + resolAttr = (Property)eResolveProxy(oldResolAttr); + if (resolAttr != oldResolAttr) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, TimePackage.CLOCK_TYPE__RESOL_ATTR, oldResolAttr, resolAttr)); + } + } + return resolAttr; + } + + /** + * + * + * @generated + */ + public Property basicGetResolAttr() { + return resolAttr; + } + + /** + * + * + * @generated + */ + public void setResolAttr(Property newResolAttr) { + Property oldResolAttr = resolAttr; + resolAttr = newResolAttr; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TimePackage.CLOCK_TYPE__RESOL_ATTR, oldResolAttr, resolAttr)); + } + + /** + * + * + * @generated + */ + public Property getMaxValAttr() { + if (maxValAttr != null && maxValAttr.eIsProxy()) { + InternalEObject oldMaxValAttr = (InternalEObject)maxValAttr; + maxValAttr = (Property)eResolveProxy(oldMaxValAttr); + if (maxValAttr != oldMaxValAttr) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, TimePackage.CLOCK_TYPE__MAX_VAL_ATTR, oldMaxValAttr, maxValAttr)); + } + } + return maxValAttr; + } + + /** + * + * + * @generated + */ + public Property basicGetMaxValAttr() { + return maxValAttr; + } + + /** + * + * + * @generated + */ + public void setMaxValAttr(Property newMaxValAttr) { + Property oldMaxValAttr = maxValAttr; + maxValAttr = newMaxValAttr; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TimePackage.CLOCK_TYPE__MAX_VAL_ATTR, oldMaxValAttr, maxValAttr)); + } + + /** + * + * + * @generated + */ + public Property getOffsetAttr() { + if (offsetAttr != null && offsetAttr.eIsProxy()) { + InternalEObject oldOffsetAttr = (InternalEObject)offsetAttr; + offsetAttr = (Property)eResolveProxy(oldOffsetAttr); + if (offsetAttr != oldOffsetAttr) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, TimePackage.CLOCK_TYPE__OFFSET_ATTR, oldOffsetAttr, offsetAttr)); + } + } + return offsetAttr; + } + + /** + * + * + * @generated + */ + public Property basicGetOffsetAttr() { + return offsetAttr; + } + + /** + * + * + * @generated + */ + public void setOffsetAttr(Property newOffsetAttr) { + Property oldOffsetAttr = offsetAttr; + offsetAttr = newOffsetAttr; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TimePackage.CLOCK_TYPE__OFFSET_ATTR, oldOffsetAttr, offsetAttr)); + } + + /** + * + * + * @generated + */ + public Operation getGetTime() { + if (getTime != null && getTime.eIsProxy()) { + InternalEObject oldGetTime = (InternalEObject)getTime; + getTime = (Operation)eResolveProxy(oldGetTime); + if (getTime != oldGetTime) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, TimePackage.CLOCK_TYPE__GET_TIME, oldGetTime, getTime)); + } + } + return getTime; + } + + /** + * + * + * @generated + */ + public Operation basicGetGetTime() { + return getTime; + } + + /** + * + * + * @generated + */ + public void setGetTime(Operation newGetTime) { + Operation oldGetTime = getTime; + getTime = newGetTime; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TimePackage.CLOCK_TYPE__GET_TIME, oldGetTime, getTime)); + } + + /** + * + * + * @generated + */ + public Operation getSetTime() { + if (setTime != null && setTime.eIsProxy()) { + InternalEObject oldSetTime = (InternalEObject)setTime; + setTime = (Operation)eResolveProxy(oldSetTime); + if (setTime != oldSetTime) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, TimePackage.CLOCK_TYPE__SET_TIME, oldSetTime, setTime)); + } + } + return setTime; + } + + /** + * + * + * @generated + */ + public Operation basicGetSetTime() { + return setTime; + } + + /** + * + * + * @generated + */ + public void setSetTime(Operation newSetTime) { + Operation oldSetTime = setTime; + setTime = newSetTime; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TimePackage.CLOCK_TYPE__SET_TIME, oldSetTime, setTime)); + } + + /** + * + * + * @generated + */ + public Operation getIndexToValue() { + if (indexToValue != null && indexToValue.eIsProxy()) { + InternalEObject oldIndexToValue = (InternalEObject)indexToValue; + indexToValue = (Operation)eResolveProxy(oldIndexToValue); + if (indexToValue != oldIndexToValue) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, TimePackage.CLOCK_TYPE__INDEX_TO_VALUE, oldIndexToValue, indexToValue)); + } + } + return indexToValue; + } + + /** + * + * + * @generated + */ + public Operation basicGetIndexToValue() { + return indexToValue; + } + + /** + * + * + * @generated + */ + public void setIndexToValue(Operation newIndexToValue) { + Operation oldIndexToValue = indexToValue; + indexToValue = newIndexToValue; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TimePackage.CLOCK_TYPE__INDEX_TO_VALUE, oldIndexToValue, indexToValue)); + } + + /** + * + * + * @generated + */ + public org.eclipse.uml2.uml.Class getBase_Class() { + if (base_Class != null && base_Class.eIsProxy()) { + InternalEObject oldBase_Class = (InternalEObject)base_Class; + base_Class = (org.eclipse.uml2.uml.Class)eResolveProxy(oldBase_Class); + if (base_Class != oldBase_Class) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, TimePackage.CLOCK_TYPE__BASE_CLASS, oldBase_Class, base_Class)); + } + } + return base_Class; + } + + /** + * + * + * @generated + */ + public org.eclipse.uml2.uml.Class basicGetBase_Class() { + return base_Class; + } + + /** + * + * + * @generated + */ + public void setBase_Class(org.eclipse.uml2.uml.Class newBase_Class) { + org.eclipse.uml2.uml.Class oldBase_Class = base_Class; + base_Class = newBase_Class; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TimePackage.CLOCK_TYPE__BASE_CLASS, oldBase_Class, base_Class)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case TimePackage.CLOCK_TYPE__NATURE: + return getNature(); + case TimePackage.CLOCK_TYPE__UNIT_TYPE: + if (resolve) return getUnitType(); + return basicGetUnitType(); + case TimePackage.CLOCK_TYPE__IS_LOGICAL: + return isIsLogical(); + case TimePackage.CLOCK_TYPE__RESOL_ATTR: + if (resolve) return getResolAttr(); + return basicGetResolAttr(); + case TimePackage.CLOCK_TYPE__MAX_VAL_ATTR: + if (resolve) return getMaxValAttr(); + return basicGetMaxValAttr(); + case TimePackage.CLOCK_TYPE__OFFSET_ATTR: + if (resolve) return getOffsetAttr(); + return basicGetOffsetAttr(); + case TimePackage.CLOCK_TYPE__GET_TIME: + if (resolve) return getGetTime(); + return basicGetGetTime(); + case TimePackage.CLOCK_TYPE__SET_TIME: + if (resolve) return getSetTime(); + return basicGetSetTime(); + case TimePackage.CLOCK_TYPE__INDEX_TO_VALUE: + if (resolve) return getIndexToValue(); + return basicGetIndexToValue(); + case TimePackage.CLOCK_TYPE__BASE_CLASS: + if (resolve) return getBase_Class(); + return basicGetBase_Class(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case TimePackage.CLOCK_TYPE__NATURE: + setNature((TimeNatureKind)newValue); + return; + case TimePackage.CLOCK_TYPE__UNIT_TYPE: + setUnitType((Enumeration)newValue); + return; + case TimePackage.CLOCK_TYPE__IS_LOGICAL: + setIsLogical((Boolean)newValue); + return; + case TimePackage.CLOCK_TYPE__RESOL_ATTR: + setResolAttr((Property)newValue); + return; + case TimePackage.CLOCK_TYPE__MAX_VAL_ATTR: + setMaxValAttr((Property)newValue); + return; + case TimePackage.CLOCK_TYPE__OFFSET_ATTR: + setOffsetAttr((Property)newValue); + return; + case TimePackage.CLOCK_TYPE__GET_TIME: + setGetTime((Operation)newValue); + return; + case TimePackage.CLOCK_TYPE__SET_TIME: + setSetTime((Operation)newValue); + return; + case TimePackage.CLOCK_TYPE__INDEX_TO_VALUE: + setIndexToValue((Operation)newValue); + return; + case TimePackage.CLOCK_TYPE__BASE_CLASS: + setBase_Class((org.eclipse.uml2.uml.Class)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case TimePackage.CLOCK_TYPE__NATURE: + setNature(NATURE_EDEFAULT); + return; + case TimePackage.CLOCK_TYPE__UNIT_TYPE: + setUnitType((Enumeration)null); + return; + case TimePackage.CLOCK_TYPE__IS_LOGICAL: + setIsLogical(IS_LOGICAL_EDEFAULT); + return; + case TimePackage.CLOCK_TYPE__RESOL_ATTR: + setResolAttr((Property)null); + return; + case TimePackage.CLOCK_TYPE__MAX_VAL_ATTR: + setMaxValAttr((Property)null); + return; + case TimePackage.CLOCK_TYPE__OFFSET_ATTR: + setOffsetAttr((Property)null); + return; + case TimePackage.CLOCK_TYPE__GET_TIME: + setGetTime((Operation)null); + return; + case TimePackage.CLOCK_TYPE__SET_TIME: + setSetTime((Operation)null); + return; + case TimePackage.CLOCK_TYPE__INDEX_TO_VALUE: + setIndexToValue((Operation)null); + return; + case TimePackage.CLOCK_TYPE__BASE_CLASS: + setBase_Class((org.eclipse.uml2.uml.Class)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case TimePackage.CLOCK_TYPE__NATURE: + return nature != NATURE_EDEFAULT; + case TimePackage.CLOCK_TYPE__UNIT_TYPE: + return unitType != null; + case TimePackage.CLOCK_TYPE__IS_LOGICAL: + return isLogical != IS_LOGICAL_EDEFAULT; + case TimePackage.CLOCK_TYPE__RESOL_ATTR: + return resolAttr != null; + case TimePackage.CLOCK_TYPE__MAX_VAL_ATTR: + return maxValAttr != null; + case TimePackage.CLOCK_TYPE__OFFSET_ATTR: + return offsetAttr != null; + case TimePackage.CLOCK_TYPE__GET_TIME: + return getTime != null; + case TimePackage.CLOCK_TYPE__SET_TIME: + return setTime != null; + case TimePackage.CLOCK_TYPE__INDEX_TO_VALUE: + return indexToValue != null; + case TimePackage.CLOCK_TYPE__BASE_CLASS: + return base_Class != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (nature: "); + result.append(nature); + result.append(", isLogical: "); + result.append(isLogical); + result.append(')'); + return result.toString(); + } + +} //ClockTypeImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/TimeFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/TimeFactoryImpl.java new file mode 100644 index 00000000000..1828dc60c8b --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/TimeFactoryImpl.java @@ -0,0 +1,205 @@ +/***************************************************************************** + * 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.MARTE_Foundations.Time.impl; + +import org.eclipse.emf.ecore.EClass; +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.MARTE_Foundations.Time.*; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class TimeFactoryImpl extends EFactoryImpl implements TimeFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static TimeFactory init() { + try { + TimeFactory theTimeFactory = (TimeFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/Time/1"); + if (theTimeFactory != null) { + return theTimeFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new TimeFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public TimeFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case TimePackage.TIMED_DOMAIN: return createTimedDomain(); + case TimePackage.CLOCK: return createClock(); + case TimePackage.CLOCK_TYPE: return createClockType(); + case TimePackage.TIMED_VALUE_SPECIFICATION: return createTimedValueSpecification(); + case TimePackage.TIMED_CONSTRAINT: return createTimedConstraint(); + case TimePackage.CLOCK_CONSTRAINT: return createClockConstraint(); + case TimePackage.TIMED_INSTANT_OBSERVATION: return createTimedInstantObservation(); + case TimePackage.TIMED_DURATION_OBSERVATION: return createTimedDurationObservation(); + case TimePackage.TIMED_EVENT: return createTimedEvent(); + case TimePackage.TIMED_PROCESSING: return createTimedProcessing(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public TimedDomain createTimedDomain() { + TimedDomainImpl timedDomain = new TimedDomainImpl(); + return timedDomain; + } + + /** + * + * + * @generated + */ + public Clock createClock() { + ClockImpl clock = new ClockImpl(); + return clock; + } + + /** + * + * + * @generated + */ + public ClockType createClockType() { + ClockTypeImpl clockType = new ClockTypeImpl(); + return clockType; + } + + /** + * + * + * @generated + */ + public TimedValueSpecification createTimedValueSpecification() { + TimedValueSpecificationImpl timedValueSpecification = new TimedValueSpecificationImpl(); + return timedValueSpecification; + } + + /** + * + * + * @generated + */ + public TimedConstraint createTimedConstraint() { + TimedConstraintImpl timedConstraint = new TimedConstraintImpl(); + return timedConstraint; + } + + /** + * + * + * @generated + */ + public ClockConstraint createClockConstraint() { + ClockConstraintImpl clockConstraint = new ClockConstraintImpl(); + return clockConstraint; + } + + /** + * + * + * @generated + */ + public TimedInstantObservation createTimedInstantObservation() { + TimedInstantObservationImpl timedInstantObservation = new TimedInstantObservationImpl(); + return timedInstantObservation; + } + + /** + * + * + * @generated + */ + public TimedDurationObservation createTimedDurationObservation() { + TimedDurationObservationImpl timedDurationObservation = new TimedDurationObservationImpl(); + return timedDurationObservation; + } + + /** + * + * + * @generated + */ + public TimedEvent createTimedEvent() { + TimedEventImpl timedEvent = new TimedEventImpl(); + return timedEvent; + } + + /** + * + * + * @generated + */ + public TimedProcessing createTimedProcessing() { + TimedProcessingImpl timedProcessing = new TimedProcessingImpl(); + return timedProcessing; + } + + /** + * + * + * @generated + */ + public TimePackage getTimePackage() { + return (TimePackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static TimePackage getPackage() { + return TimePackage.eINSTANCE; + } + +} //TimeFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/TimePackageImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/TimePackageImpl.java new file mode 100644 index 00000000000..4c88587daf0 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/TimePackageImpl.java @@ -0,0 +1,1057 @@ +/***************************************************************************** + * 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.MARTE_Foundations.Time.impl; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +import org.eclipse.emf.ecore.impl.EPackageImpl; + +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.Clock; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockConstraint; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockType; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimeFactory; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedConstraint; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedDomain; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedDurationObservation; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedElement; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedEvent; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedInstantObservation; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedProcessing; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedValueSpecification; + +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.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 TimePackageImpl extends EPackageImpl implements TimePackage { + /** + * + * + * @generated + */ + private EClass timedDomainEClass = null; + + /** + * + * + * @generated + */ + private EClass clockEClass = null; + + /** + * + * + * @generated + */ + private EClass clockTypeEClass = null; + + /** + * + * + * @generated + */ + private EClass timedElementEClass = null; + + /** + * + * + * @generated + */ + private EClass timedValueSpecificationEClass = null; + + /** + * + * + * @generated + */ + private EClass timedConstraintEClass = null; + + /** + * + * + * @generated + */ + private EClass clockConstraintEClass = null; + + /** + * + * + * @generated + */ + private EClass timedInstantObservationEClass = null; + + /** + * + * + * @generated + */ + private EClass timedDurationObservationEClass = null; + + /** + * + * + * @generated + */ + private EClass timedEventEClass = null; + + /** + * + * + * @generated + */ + private EClass timedProcessingEClass = 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.MARTE_Foundations.Time.TimePackage#eNS_URI + * @see #init() + * @generated + */ + private TimePackageImpl() { + super(eNS_URI, TimeFactory.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 TimePackage#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 TimePackage init() { + if (isInited) return (TimePackage)EPackage.Registry.INSTANCE.getEPackage(TimePackage.eNS_URI); + + // Obtain or create and register package + TimePackageImpl theTimePackage = (TimePackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof TimePackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new TimePackageImpl()); + + 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); + 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); + 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 + theTimePackage.createPackageContents(); + theMARTEPackage.createPackageContents(); + theNFPsPackage.createPackageContents(); + theCoreElementsPackage.createPackageContents(); + theAllocPackage.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(); + theMARTE_PrimitivesTypesPackage.createPackageContents(); + + // Initialize created meta-data + theTimePackage.initializePackageContents(); + theMARTEPackage.initializePackageContents(); + theNFPsPackage.initializePackageContents(); + theCoreElementsPackage.initializePackageContents(); + theAllocPackage.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(); + theMARTE_PrimitivesTypesPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theTimePackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(TimePackage.eNS_URI, theTimePackage); + return theTimePackage; + } + + /** + * + * + * @generated + */ + public EClass getTimedDomain() { + return timedDomainEClass; + } + + /** + * + * + * @generated + */ + public EReference getTimedDomain_Base_Namespace() { + return (EReference)timedDomainEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getClock() { + return clockEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getClock_Standard() { + return (EAttribute)clockEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getClock_Base_InstanceSpecification() { + return (EReference)clockEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getClock_Type() { + return (EReference)clockEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getClock_Unit() { + return (EReference)clockEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EReference getClock_Base_Property() { + return (EReference)clockEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EReference getClock_Base_Event() { + return (EReference)clockEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EClass getClockType() { + return clockTypeEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getClockType_Nature() { + return (EAttribute)clockTypeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getClockType_UnitType() { + return (EReference)clockTypeEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getClockType_IsLogical() { + return (EAttribute)clockTypeEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getClockType_ResolAttr() { + return (EReference)clockTypeEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EReference getClockType_MaxValAttr() { + return (EReference)clockTypeEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EReference getClockType_OffsetAttr() { + return (EReference)clockTypeEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EReference getClockType_GetTime() { + return (EReference)clockTypeEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EReference getClockType_SetTime() { + return (EReference)clockTypeEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EReference getClockType_IndexToValue() { + return (EReference)clockTypeEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + public EReference getClockType_Base_Class() { + return (EReference)clockTypeEClass.getEStructuralFeatures().get(9); + } + + /** + * + * + * @generated + */ + public EClass getTimedElement() { + return timedElementEClass; + } + + /** + * + * + * @generated + */ + public EReference getTimedElement_On() { + return (EReference)timedElementEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getTimedValueSpecification() { + return timedValueSpecificationEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getTimedValueSpecification_Interpretation() { + return (EAttribute)timedValueSpecificationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getTimedValueSpecification_Base_ValueSpecification() { + return (EReference)timedValueSpecificationEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getTimedConstraint() { + return timedConstraintEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getTimedConstraint_Interpretation() { + return (EAttribute)timedConstraintEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getClockConstraint() { + return clockConstraintEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getClockConstraint_IsCoincidenceBased() { + return (EAttribute)clockConstraintEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getClockConstraint_IsPrecedenceBased() { + return (EAttribute)clockConstraintEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getClockConstraint_IsChronometricBased() { + return (EAttribute)clockConstraintEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getTimedInstantObservation() { + return timedInstantObservationEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getTimedInstantObservation_ObsKind() { + return (EAttribute)timedInstantObservationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getTimedInstantObservation_Base_TimeObservation() { + return (EReference)timedInstantObservationEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getTimedDurationObservation() { + return timedDurationObservationEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getTimedDurationObservation_ObsKind() { + return (EAttribute)timedDurationObservationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getTimedDurationObservation_Base_DurationObservation() { + return (EReference)timedDurationObservationEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getTimedEvent() { + return timedEventEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getTimedEvent_Repetition() { + return (EAttribute)timedEventEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getTimedEvent_Base_TimeEvent() { + return (EReference)timedEventEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getTimedEvent_Every() { + return (EReference)timedEventEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getTimedProcessing() { + return timedProcessingEClass; + } + + /** + * + * + * @generated + */ + public EReference getTimedProcessing_Base_Action() { + return (EReference)timedProcessingEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getTimedProcessing_Base_Behavior() { + return (EReference)timedProcessingEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getTimedProcessing_Base_Message() { + return (EReference)timedProcessingEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getTimedProcessing_Duration() { + return (EReference)timedProcessingEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EReference getTimedProcessing_Start() { + return (EReference)timedProcessingEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EReference getTimedProcessing_Finish() { + return (EReference)timedProcessingEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public TimeFactory getTimeFactory() { + return (TimeFactory)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 + timedDomainEClass = createEClass(TIMED_DOMAIN); + createEReference(timedDomainEClass, TIMED_DOMAIN__BASE_NAMESPACE); + + clockEClass = createEClass(CLOCK); + createEAttribute(clockEClass, CLOCK__STANDARD); + createEReference(clockEClass, CLOCK__BASE_INSTANCE_SPECIFICATION); + createEReference(clockEClass, CLOCK__TYPE); + createEReference(clockEClass, CLOCK__UNIT); + createEReference(clockEClass, CLOCK__BASE_PROPERTY); + createEReference(clockEClass, CLOCK__BASE_EVENT); + + clockTypeEClass = createEClass(CLOCK_TYPE); + createEAttribute(clockTypeEClass, CLOCK_TYPE__NATURE); + createEReference(clockTypeEClass, CLOCK_TYPE__UNIT_TYPE); + createEAttribute(clockTypeEClass, CLOCK_TYPE__IS_LOGICAL); + createEReference(clockTypeEClass, CLOCK_TYPE__RESOL_ATTR); + createEReference(clockTypeEClass, CLOCK_TYPE__MAX_VAL_ATTR); + createEReference(clockTypeEClass, CLOCK_TYPE__OFFSET_ATTR); + createEReference(clockTypeEClass, CLOCK_TYPE__GET_TIME); + createEReference(clockTypeEClass, CLOCK_TYPE__SET_TIME); + createEReference(clockTypeEClass, CLOCK_TYPE__INDEX_TO_VALUE); + createEReference(clockTypeEClass, CLOCK_TYPE__BASE_CLASS); + + timedElementEClass = createEClass(TIMED_ELEMENT); + createEReference(timedElementEClass, TIMED_ELEMENT__ON); + + timedValueSpecificationEClass = createEClass(TIMED_VALUE_SPECIFICATION); + createEAttribute(timedValueSpecificationEClass, TIMED_VALUE_SPECIFICATION__INTERPRETATION); + createEReference(timedValueSpecificationEClass, TIMED_VALUE_SPECIFICATION__BASE_VALUE_SPECIFICATION); + + timedConstraintEClass = createEClass(TIMED_CONSTRAINT); + createEAttribute(timedConstraintEClass, TIMED_CONSTRAINT__INTERPRETATION); + + clockConstraintEClass = createEClass(CLOCK_CONSTRAINT); + createEAttribute(clockConstraintEClass, CLOCK_CONSTRAINT__IS_COINCIDENCE_BASED); + createEAttribute(clockConstraintEClass, CLOCK_CONSTRAINT__IS_PRECEDENCE_BASED); + createEAttribute(clockConstraintEClass, CLOCK_CONSTRAINT__IS_CHRONOMETRIC_BASED); + + timedInstantObservationEClass = createEClass(TIMED_INSTANT_OBSERVATION); + createEAttribute(timedInstantObservationEClass, TIMED_INSTANT_OBSERVATION__OBS_KIND); + createEReference(timedInstantObservationEClass, TIMED_INSTANT_OBSERVATION__BASE_TIME_OBSERVATION); + + timedDurationObservationEClass = createEClass(TIMED_DURATION_OBSERVATION); + createEAttribute(timedDurationObservationEClass, TIMED_DURATION_OBSERVATION__OBS_KIND); + createEReference(timedDurationObservationEClass, TIMED_DURATION_OBSERVATION__BASE_DURATION_OBSERVATION); + + timedEventEClass = createEClass(TIMED_EVENT); + createEAttribute(timedEventEClass, TIMED_EVENT__REPETITION); + createEReference(timedEventEClass, TIMED_EVENT__BASE_TIME_EVENT); + createEReference(timedEventEClass, TIMED_EVENT__EVERY); + + timedProcessingEClass = createEClass(TIMED_PROCESSING); + createEReference(timedProcessingEClass, TIMED_PROCESSING__BASE_ACTION); + createEReference(timedProcessingEClass, TIMED_PROCESSING__BASE_BEHAVIOR); + createEReference(timedProcessingEClass, TIMED_PROCESSING__BASE_MESSAGE); + createEReference(timedProcessingEClass, TIMED_PROCESSING__DURATION); + createEReference(timedProcessingEClass, TIMED_PROCESSING__START); + createEReference(timedProcessingEClass, TIMED_PROCESSING__FINISH); + } + + /** + * + * + * @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 + UMLPackage theUMLPackage = (UMLPackage)EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI); + TimeTypesLibraryPackage theTimeTypesLibraryPackage = (TimeTypesLibraryPackage)EPackage.Registry.INSTANCE.getEPackage(TimeTypesLibraryPackage.eNS_URI); + NFPsPackage theNFPsPackage = (NFPsPackage)EPackage.Registry.INSTANCE.getEPackage(NFPsPackage.eNS_URI); + 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 + timedValueSpecificationEClass.getESuperTypes().add(this.getTimedElement()); + timedConstraintEClass.getESuperTypes().add(theNFPsPackage.getNfpConstraint()); + timedConstraintEClass.getESuperTypes().add(this.getTimedElement()); + clockConstraintEClass.getESuperTypes().add(theNFPsPackage.getNfpConstraint()); + clockConstraintEClass.getESuperTypes().add(this.getTimedElement()); + timedInstantObservationEClass.getESuperTypes().add(this.getTimedElement()); + timedDurationObservationEClass.getESuperTypes().add(this.getTimedElement()); + timedEventEClass.getESuperTypes().add(this.getTimedElement()); + timedProcessingEClass.getESuperTypes().add(this.getTimedElement()); + + // Initialize classes and features; add operations and parameters + initEClass(timedDomainEClass, TimedDomain.class, "TimedDomain", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getTimedDomain_Base_Namespace(), theUMLPackage.getNamespace(), null, "base_Namespace", null, 1, 1, TimedDomain.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(clockEClass, Clock.class, "Clock", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getClock_Standard(), theTimeTypesLibraryPackage.getTimeStandardKind(), "standard", null, 0, 1, Clock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getClock_Base_InstanceSpecification(), theUMLPackage.getInstanceSpecification(), null, "base_InstanceSpecification", null, 1, 1, Clock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getClock_Type(), this.getClockType(), null, "type", null, 1, 1, Clock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getClock_Unit(), theNFPsPackage.getUnit(), null, "unit", null, 0, 1, Clock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getClock_Base_Property(), theUMLPackage.getProperty(), null, "base_Property", null, 1, 1, Clock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getClock_Base_Event(), theUMLPackage.getEvent(), null, "base_Event", null, 1, 1, Clock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(clockTypeEClass, ClockType.class, "ClockType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getClockType_Nature(), theTimeTypesLibraryPackage.getTimeNatureKind(), "nature", null, 1, 1, ClockType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getClockType_UnitType(), theUMLPackage.getEnumeration(), null, "unitType", null, 0, 1, ClockType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getClockType_IsLogical(), theMARTE_PrimitivesTypesPackage.getBoolean(), "isLogical", "false", 1, 1, ClockType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getClockType_ResolAttr(), theUMLPackage.getProperty(), null, "resolAttr", null, 0, 1, ClockType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getClockType_MaxValAttr(), theUMLPackage.getProperty(), null, "maxValAttr", null, 0, 1, ClockType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getClockType_OffsetAttr(), theUMLPackage.getProperty(), null, "offsetAttr", null, 0, 1, ClockType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getClockType_GetTime(), theUMLPackage.getOperation(), null, "getTime", null, 0, 1, ClockType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getClockType_SetTime(), theUMLPackage.getOperation(), null, "setTime", null, 0, 1, ClockType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getClockType_IndexToValue(), theUMLPackage.getOperation(), null, "indexToValue", null, 0, 1, ClockType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getClockType_Base_Class(), theUMLPackage.getClass_(), null, "base_Class", null, 1, 1, ClockType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(timedElementEClass, TimedElement.class, "TimedElement", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getTimedElement_On(), this.getClock(), null, "on", null, 1, -1, TimedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(timedValueSpecificationEClass, TimedValueSpecification.class, "TimedValueSpecification", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getTimedValueSpecification_Interpretation(), theTimeTypesLibraryPackage.getTimeInterpretationKind(), "interpretation", null, 0, 1, TimedValueSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getTimedValueSpecification_Base_ValueSpecification(), theUMLPackage.getValueSpecification(), null, "base_ValueSpecification", null, 1, 1, TimedValueSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(timedConstraintEClass, TimedConstraint.class, "TimedConstraint", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getTimedConstraint_Interpretation(), theTimeTypesLibraryPackage.getTimeInterpretationKind(), "interpretation", null, 0, 1, TimedConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(clockConstraintEClass, ClockConstraint.class, "ClockConstraint", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getClockConstraint_IsCoincidenceBased(), theMARTE_PrimitivesTypesPackage.getBoolean(), "isCoincidenceBased", null, 1, 1, ClockConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getClockConstraint_IsPrecedenceBased(), ecorePackage.getEBoolean(), "isPrecedenceBased", null, 1, 1, ClockConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getClockConstraint_IsChronometricBased(), theMARTE_PrimitivesTypesPackage.getBoolean(), "isChronometricBased", null, 1, 1, ClockConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(timedInstantObservationEClass, TimedInstantObservation.class, "TimedInstantObservation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getTimedInstantObservation_ObsKind(), theTimeTypesLibraryPackage.getEventKind(), "obsKind", null, 0, 1, TimedInstantObservation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getTimedInstantObservation_Base_TimeObservation(), theUMLPackage.getTimeObservation(), null, "base_TimeObservation", null, 1, 1, TimedInstantObservation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(timedDurationObservationEClass, TimedDurationObservation.class, "TimedDurationObservation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getTimedDurationObservation_ObsKind(), theTimeTypesLibraryPackage.getEventKind(), "obsKind", null, 0, 2, TimedDurationObservation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getTimedDurationObservation_Base_DurationObservation(), theUMLPackage.getDurationObservation(), null, "base_DurationObservation", null, 1, 1, TimedDurationObservation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(timedEventEClass, TimedEvent.class, "TimedEvent", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getTimedEvent_Repetition(), theMARTE_PrimitivesTypesPackage.getInteger(), "repetition", null, 0, 1, TimedEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getTimedEvent_Base_TimeEvent(), theUMLPackage.getTimeEvent(), null, "base_TimeEvent", null, 1, 1, TimedEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getTimedEvent_Every(), theUMLPackage.getValueSpecification(), null, "every", null, 0, 1, TimedEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(timedProcessingEClass, TimedProcessing.class, "TimedProcessing", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getTimedProcessing_Base_Action(), theUMLPackage.getAction(), null, "base_Action", null, 1, 1, TimedProcessing.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getTimedProcessing_Base_Behavior(), theUMLPackage.getBehavior(), null, "base_Behavior", null, 1, 1, TimedProcessing.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getTimedProcessing_Base_Message(), theUMLPackage.getMessage(), null, "base_Message", null, 1, 1, TimedProcessing.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getTimedProcessing_Duration(), theUMLPackage.getValueSpecification(), null, "duration", null, 0, 1, TimedProcessing.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getTimedProcessing_Start(), theUMLPackage.getEvent(), null, "start", null, 0, 1, TimedProcessing.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getTimedProcessing_Finish(), theUMLPackage.getEvent(), null, "finish", null, 0, 1, TimedProcessing.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + } + +} //TimePackageImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/TimedConstraintImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/TimedConstraintImpl.java new file mode 100644 index 00000000000..7e25e328cf2 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/TimedConstraintImpl.java @@ -0,0 +1,252 @@ +/***************************************************************************** + * 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.MARTE_Foundations.Time.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EObjectResolvingEList; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.NfpConstraintImpl; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.Clock; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedConstraint; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedElement; + +import org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.TimeInterpretationKind; + +/** + * + * An implementation of the model object 'Timed Constraint'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedConstraintImpl#getOn On}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedConstraintImpl#getInterpretation Interpretation}
  • + *
+ *

+ * + * @generated + */ +public class TimedConstraintImpl extends NfpConstraintImpl implements TimedConstraint { + /** + * The cached value of the '{@link #getOn() On}' reference list. + * + * + * @see #getOn() + * @generated + * @ordered + */ + protected EList on; + + /** + * The default value of the '{@link #getInterpretation() Interpretation}' attribute. + * + * + * @see #getInterpretation() + * @generated + * @ordered + */ + protected static final TimeInterpretationKind INTERPRETATION_EDEFAULT = TimeInterpretationKind.DURATION; + + /** + * The cached value of the '{@link #getInterpretation() Interpretation}' attribute. + * + * + * @see #getInterpretation() + * @generated + * @ordered + */ + protected TimeInterpretationKind interpretation = INTERPRETATION_EDEFAULT; + + /** + * + * + * @generated + */ + protected TimedConstraintImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return TimePackage.Literals.TIMED_CONSTRAINT; + } + + /** + * + * + * @generated + */ + public EList getOn() { + if (on == null) { + on = new EObjectResolvingEList(Clock.class, this, TimePackage.TIMED_CONSTRAINT__ON); + } + return on; + } + + /** + * + * + * @generated + */ + public TimeInterpretationKind getInterpretation() { + return interpretation; + } + + /** + * + * + * @generated + */ + public void setInterpretation(TimeInterpretationKind newInterpretation) { + TimeInterpretationKind oldInterpretation = interpretation; + interpretation = newInterpretation == null ? INTERPRETATION_EDEFAULT : newInterpretation; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TimePackage.TIMED_CONSTRAINT__INTERPRETATION, oldInterpretation, interpretation)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case TimePackage.TIMED_CONSTRAINT__ON: + return getOn(); + case TimePackage.TIMED_CONSTRAINT__INTERPRETATION: + return getInterpretation(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case TimePackage.TIMED_CONSTRAINT__ON: + getOn().clear(); + getOn().addAll((Collection)newValue); + return; + case TimePackage.TIMED_CONSTRAINT__INTERPRETATION: + setInterpretation((TimeInterpretationKind)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case TimePackage.TIMED_CONSTRAINT__ON: + getOn().clear(); + return; + case TimePackage.TIMED_CONSTRAINT__INTERPRETATION: + setInterpretation(INTERPRETATION_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case TimePackage.TIMED_CONSTRAINT__ON: + return on != null && !on.isEmpty(); + case TimePackage.TIMED_CONSTRAINT__INTERPRETATION: + return interpretation != INTERPRETATION_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) { + if (baseClass == TimedElement.class) { + switch (derivedFeatureID) { + case TimePackage.TIMED_CONSTRAINT__ON: return TimePackage.TIMED_ELEMENT__ON; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) { + if (baseClass == TimedElement.class) { + switch (baseFeatureID) { + case TimePackage.TIMED_ELEMENT__ON: return TimePackage.TIMED_CONSTRAINT__ON; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (interpretation: "); + result.append(interpretation); + result.append(')'); + return result.toString(); + } + +} //TimedConstraintImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/TimedDomainImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/TimedDomainImpl.java new file mode 100644 index 00000000000..8a2d2b72b92 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/TimedDomainImpl.java @@ -0,0 +1,169 @@ +/***************************************************************************** + * 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.MARTE_Foundations.Time.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedDomain; + +import org.eclipse.uml2.uml.Namespace; + +/** + * + * An implementation of the model object 'Timed Domain'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedDomainImpl#getBase_Namespace Base Namespace}
  • + *
+ *

+ * + * @generated + */ +public class TimedDomainImpl extends EObjectImpl implements TimedDomain { + /** + * The cached value of the '{@link #getBase_Namespace() Base Namespace}' reference. + * + * + * @see #getBase_Namespace() + * @generated + * @ordered + */ + protected Namespace base_Namespace; + + /** + * + * + * @generated + */ + protected TimedDomainImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return TimePackage.Literals.TIMED_DOMAIN; + } + + /** + * + * + * @generated + */ + public Namespace getBase_Namespace() { + if (base_Namespace != null && base_Namespace.eIsProxy()) { + InternalEObject oldBase_Namespace = (InternalEObject)base_Namespace; + base_Namespace = (Namespace)eResolveProxy(oldBase_Namespace); + if (base_Namespace != oldBase_Namespace) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, TimePackage.TIMED_DOMAIN__BASE_NAMESPACE, oldBase_Namespace, base_Namespace)); + } + } + return base_Namespace; + } + + /** + * + * + * @generated + */ + public Namespace basicGetBase_Namespace() { + return base_Namespace; + } + + /** + * + * + * @generated + */ + public void setBase_Namespace(Namespace newBase_Namespace) { + Namespace oldBase_Namespace = base_Namespace; + base_Namespace = newBase_Namespace; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TimePackage.TIMED_DOMAIN__BASE_NAMESPACE, oldBase_Namespace, base_Namespace)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case TimePackage.TIMED_DOMAIN__BASE_NAMESPACE: + if (resolve) return getBase_Namespace(); + return basicGetBase_Namespace(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case TimePackage.TIMED_DOMAIN__BASE_NAMESPACE: + setBase_Namespace((Namespace)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case TimePackage.TIMED_DOMAIN__BASE_NAMESPACE: + setBase_Namespace((Namespace)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case TimePackage.TIMED_DOMAIN__BASE_NAMESPACE: + return base_Namespace != null; + } + return super.eIsSet(featureID); + } + +} //TimedDomainImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/TimedDurationObservationImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/TimedDurationObservationImpl.java new file mode 100644 index 00000000000..4780ab2144b --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/TimedDurationObservationImpl.java @@ -0,0 +1,227 @@ +/***************************************************************************** + * 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.MARTE_Foundations.Time.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EDataTypeEList; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedDurationObservation; + +import org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.EventKind; + +import org.eclipse.uml2.uml.DurationObservation; + +/** + * + * An implementation of the model object 'Timed Duration Observation'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedDurationObservationImpl#getObsKind Obs Kind}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedDurationObservationImpl#getBase_DurationObservation Base Duration Observation}
  • + *
+ *

+ * + * @generated + */ +public class TimedDurationObservationImpl extends TimedElementImpl implements TimedDurationObservation { + /** + * The cached value of the '{@link #getObsKind() Obs Kind}' attribute list. + * + * + * @see #getObsKind() + * @generated + * @ordered + */ + protected EList obsKind; + + /** + * The cached value of the '{@link #getBase_DurationObservation() Base Duration Observation}' reference. + * + * + * @see #getBase_DurationObservation() + * @generated + * @ordered + */ + protected DurationObservation base_DurationObservation; + + /** + * + * + * @generated + */ + protected TimedDurationObservationImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return TimePackage.Literals.TIMED_DURATION_OBSERVATION; + } + + /** + * + * + * @generated + */ + public EList getObsKind() { + if (obsKind == null) { + obsKind = new EDataTypeEList(EventKind.class, this, TimePackage.TIMED_DURATION_OBSERVATION__OBS_KIND); + } + return obsKind; + } + + /** + * + * + * @generated + */ + public DurationObservation getBase_DurationObservation() { + if (base_DurationObservation != null && base_DurationObservation.eIsProxy()) { + InternalEObject oldBase_DurationObservation = (InternalEObject)base_DurationObservation; + base_DurationObservation = (DurationObservation)eResolveProxy(oldBase_DurationObservation); + if (base_DurationObservation != oldBase_DurationObservation) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, TimePackage.TIMED_DURATION_OBSERVATION__BASE_DURATION_OBSERVATION, oldBase_DurationObservation, base_DurationObservation)); + } + } + return base_DurationObservation; + } + + /** + * + * + * @generated + */ + public DurationObservation basicGetBase_DurationObservation() { + return base_DurationObservation; + } + + /** + * + * + * @generated + */ + public void setBase_DurationObservation(DurationObservation newBase_DurationObservation) { + DurationObservation oldBase_DurationObservation = base_DurationObservation; + base_DurationObservation = newBase_DurationObservation; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TimePackage.TIMED_DURATION_OBSERVATION__BASE_DURATION_OBSERVATION, oldBase_DurationObservation, base_DurationObservation)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case TimePackage.TIMED_DURATION_OBSERVATION__OBS_KIND: + return getObsKind(); + case TimePackage.TIMED_DURATION_OBSERVATION__BASE_DURATION_OBSERVATION: + if (resolve) return getBase_DurationObservation(); + return basicGetBase_DurationObservation(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case TimePackage.TIMED_DURATION_OBSERVATION__OBS_KIND: + getObsKind().clear(); + getObsKind().addAll((Collection)newValue); + return; + case TimePackage.TIMED_DURATION_OBSERVATION__BASE_DURATION_OBSERVATION: + setBase_DurationObservation((DurationObservation)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case TimePackage.TIMED_DURATION_OBSERVATION__OBS_KIND: + getObsKind().clear(); + return; + case TimePackage.TIMED_DURATION_OBSERVATION__BASE_DURATION_OBSERVATION: + setBase_DurationObservation((DurationObservation)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case TimePackage.TIMED_DURATION_OBSERVATION__OBS_KIND: + return obsKind != null && !obsKind.isEmpty(); + case TimePackage.TIMED_DURATION_OBSERVATION__BASE_DURATION_OBSERVATION: + return base_DurationObservation != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (obsKind: "); + result.append(obsKind); + result.append(')'); + return result.toString(); + } + +} //TimedDurationObservationImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/TimedElementImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/TimedElementImpl.java new file mode 100644 index 00000000000..fd3f84f267c --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/TimedElementImpl.java @@ -0,0 +1,145 @@ +/***************************************************************************** + * 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.MARTE_Foundations.Time.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectResolvingEList; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.Clock; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedElement; + +/** + * + * An implementation of the model object 'Timed Element'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedElementImpl#getOn On}
  • + *
+ *

+ * + * @generated + */ +public abstract class TimedElementImpl extends EObjectImpl implements TimedElement { + /** + * The cached value of the '{@link #getOn() On}' reference list. + * + * + * @see #getOn() + * @generated + * @ordered + */ + protected EList on; + + /** + * + * + * @generated + */ + protected TimedElementImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return TimePackage.Literals.TIMED_ELEMENT; + } + + /** + * + * + * @generated + */ + public EList getOn() { + if (on == null) { + on = new EObjectResolvingEList(Clock.class, this, TimePackage.TIMED_ELEMENT__ON); + } + return on; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case TimePackage.TIMED_ELEMENT__ON: + return getOn(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case TimePackage.TIMED_ELEMENT__ON: + getOn().clear(); + getOn().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case TimePackage.TIMED_ELEMENT__ON: + getOn().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case TimePackage.TIMED_ELEMENT__ON: + return on != null && !on.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //TimedElementImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/TimedEventImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/TimedEventImpl.java new file mode 100644 index 00000000000..81b01212233 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/TimedEventImpl.java @@ -0,0 +1,316 @@ +/***************************************************************************** + * 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.MARTE_Foundations.Time.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedEvent; + +import org.eclipse.uml2.uml.TimeEvent; +import org.eclipse.uml2.uml.ValueSpecification; + +/** + * + * An implementation of the model object 'Timed Event'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedEventImpl#getRepetition Repetition}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedEventImpl#getBase_TimeEvent Base Time Event}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedEventImpl#getEvery Every}
  • + *
+ *

+ * + * @generated + */ +public class TimedEventImpl extends TimedElementImpl implements TimedEvent { + /** + * The default value of the '{@link #getRepetition() Repetition}' attribute. + * + * + * @see #getRepetition() + * @generated + * @ordered + */ + protected static final int REPETITION_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getRepetition() Repetition}' attribute. + * + * + * @see #getRepetition() + * @generated + * @ordered + */ + protected int repetition = REPETITION_EDEFAULT; + + /** + * The cached value of the '{@link #getBase_TimeEvent() Base Time Event}' reference. + * + * + * @see #getBase_TimeEvent() + * @generated + * @ordered + */ + protected TimeEvent base_TimeEvent; + + /** + * The cached value of the '{@link #getEvery() Every}' containment reference. + * + * + * @see #getEvery() + * @generated + * @ordered + */ + protected ValueSpecification every; + + /** + * + * + * @generated + */ + protected TimedEventImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return TimePackage.Literals.TIMED_EVENT; + } + + /** + * + * + * @generated + */ + public int getRepetition() { + return repetition; + } + + /** + * + * + * @generated + */ + public void setRepetition(int newRepetition) { + int oldRepetition = repetition; + repetition = newRepetition; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TimePackage.TIMED_EVENT__REPETITION, oldRepetition, repetition)); + } + + /** + * + * + * @generated + */ + public TimeEvent getBase_TimeEvent() { + if (base_TimeEvent != null && base_TimeEvent.eIsProxy()) { + InternalEObject oldBase_TimeEvent = (InternalEObject)base_TimeEvent; + base_TimeEvent = (TimeEvent)eResolveProxy(oldBase_TimeEvent); + if (base_TimeEvent != oldBase_TimeEvent) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, TimePackage.TIMED_EVENT__BASE_TIME_EVENT, oldBase_TimeEvent, base_TimeEvent)); + } + } + return base_TimeEvent; + } + + /** + * + * + * @generated + */ + public TimeEvent basicGetBase_TimeEvent() { + return base_TimeEvent; + } + + /** + * + * + * @generated + */ + public void setBase_TimeEvent(TimeEvent newBase_TimeEvent) { + TimeEvent oldBase_TimeEvent = base_TimeEvent; + base_TimeEvent = newBase_TimeEvent; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TimePackage.TIMED_EVENT__BASE_TIME_EVENT, oldBase_TimeEvent, base_TimeEvent)); + } + + /** + * + * + * @generated + */ + public ValueSpecification getEvery() { + return every; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetEvery(ValueSpecification newEvery, NotificationChain msgs) { + ValueSpecification oldEvery = every; + every = newEvery; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, TimePackage.TIMED_EVENT__EVERY, oldEvery, newEvery); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setEvery(ValueSpecification newEvery) { + if (newEvery != every) { + NotificationChain msgs = null; + if (every != null) + msgs = ((InternalEObject)every).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - TimePackage.TIMED_EVENT__EVERY, null, msgs); + if (newEvery != null) + msgs = ((InternalEObject)newEvery).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - TimePackage.TIMED_EVENT__EVERY, null, msgs); + msgs = basicSetEvery(newEvery, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TimePackage.TIMED_EVENT__EVERY, newEvery, newEvery)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case TimePackage.TIMED_EVENT__EVERY: + return basicSetEvery(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case TimePackage.TIMED_EVENT__REPETITION: + return getRepetition(); + case TimePackage.TIMED_EVENT__BASE_TIME_EVENT: + if (resolve) return getBase_TimeEvent(); + return basicGetBase_TimeEvent(); + case TimePackage.TIMED_EVENT__EVERY: + return getEvery(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case TimePackage.TIMED_EVENT__REPETITION: + setRepetition((Integer)newValue); + return; + case TimePackage.TIMED_EVENT__BASE_TIME_EVENT: + setBase_TimeEvent((TimeEvent)newValue); + return; + case TimePackage.TIMED_EVENT__EVERY: + setEvery((ValueSpecification)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case TimePackage.TIMED_EVENT__REPETITION: + setRepetition(REPETITION_EDEFAULT); + return; + case TimePackage.TIMED_EVENT__BASE_TIME_EVENT: + setBase_TimeEvent((TimeEvent)null); + return; + case TimePackage.TIMED_EVENT__EVERY: + setEvery((ValueSpecification)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case TimePackage.TIMED_EVENT__REPETITION: + return repetition != REPETITION_EDEFAULT; + case TimePackage.TIMED_EVENT__BASE_TIME_EVENT: + return base_TimeEvent != null; + case TimePackage.TIMED_EVENT__EVERY: + return every != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (repetition: "); + result.append(repetition); + result.append(')'); + return result.toString(); + } + +} //TimedEventImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/TimedInstantObservationImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/TimedInstantObservationImpl.java new file mode 100644 index 00000000000..4abb09d183f --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/TimedInstantObservationImpl.java @@ -0,0 +1,238 @@ +/***************************************************************************** + * 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.MARTE_Foundations.Time.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedInstantObservation; + +import org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.EventKind; + +import org.eclipse.uml2.uml.TimeObservation; + +/** + * + * An implementation of the model object 'Timed Instant Observation'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedInstantObservationImpl#getObsKind Obs Kind}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedInstantObservationImpl#getBase_TimeObservation Base Time Observation}
  • + *
+ *

+ * + * @generated + */ +public class TimedInstantObservationImpl extends TimedElementImpl implements TimedInstantObservation { + /** + * The default value of the '{@link #getObsKind() Obs Kind}' attribute. + * + * + * @see #getObsKind() + * @generated + * @ordered + */ + protected static final EventKind OBS_KIND_EDEFAULT = EventKind.START; + + /** + * The cached value of the '{@link #getObsKind() Obs Kind}' attribute. + * + * + * @see #getObsKind() + * @generated + * @ordered + */ + protected EventKind obsKind = OBS_KIND_EDEFAULT; + + /** + * The cached value of the '{@link #getBase_TimeObservation() Base Time Observation}' reference. + * + * + * @see #getBase_TimeObservation() + * @generated + * @ordered + */ + protected TimeObservation base_TimeObservation; + + /** + * + * + * @generated + */ + protected TimedInstantObservationImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return TimePackage.Literals.TIMED_INSTANT_OBSERVATION; + } + + /** + * + * + * @generated + */ + public EventKind getObsKind() { + return obsKind; + } + + /** + * + * + * @generated + */ + public void setObsKind(EventKind newObsKind) { + EventKind oldObsKind = obsKind; + obsKind = newObsKind == null ? OBS_KIND_EDEFAULT : newObsKind; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TimePackage.TIMED_INSTANT_OBSERVATION__OBS_KIND, oldObsKind, obsKind)); + } + + /** + * + * + * @generated + */ + public TimeObservation getBase_TimeObservation() { + if (base_TimeObservation != null && base_TimeObservation.eIsProxy()) { + InternalEObject oldBase_TimeObservation = (InternalEObject)base_TimeObservation; + base_TimeObservation = (TimeObservation)eResolveProxy(oldBase_TimeObservation); + if (base_TimeObservation != oldBase_TimeObservation) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, TimePackage.TIMED_INSTANT_OBSERVATION__BASE_TIME_OBSERVATION, oldBase_TimeObservation, base_TimeObservation)); + } + } + return base_TimeObservation; + } + + /** + * + * + * @generated + */ + public TimeObservation basicGetBase_TimeObservation() { + return base_TimeObservation; + } + + /** + * + * + * @generated + */ + public void setBase_TimeObservation(TimeObservation newBase_TimeObservation) { + TimeObservation oldBase_TimeObservation = base_TimeObservation; + base_TimeObservation = newBase_TimeObservation; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TimePackage.TIMED_INSTANT_OBSERVATION__BASE_TIME_OBSERVATION, oldBase_TimeObservation, base_TimeObservation)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case TimePackage.TIMED_INSTANT_OBSERVATION__OBS_KIND: + return getObsKind(); + case TimePackage.TIMED_INSTANT_OBSERVATION__BASE_TIME_OBSERVATION: + if (resolve) return getBase_TimeObservation(); + return basicGetBase_TimeObservation(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case TimePackage.TIMED_INSTANT_OBSERVATION__OBS_KIND: + setObsKind((EventKind)newValue); + return; + case TimePackage.TIMED_INSTANT_OBSERVATION__BASE_TIME_OBSERVATION: + setBase_TimeObservation((TimeObservation)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case TimePackage.TIMED_INSTANT_OBSERVATION__OBS_KIND: + setObsKind(OBS_KIND_EDEFAULT); + return; + case TimePackage.TIMED_INSTANT_OBSERVATION__BASE_TIME_OBSERVATION: + setBase_TimeObservation((TimeObservation)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case TimePackage.TIMED_INSTANT_OBSERVATION__OBS_KIND: + return obsKind != OBS_KIND_EDEFAULT; + case TimePackage.TIMED_INSTANT_OBSERVATION__BASE_TIME_OBSERVATION: + return base_TimeObservation != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (obsKind: "); + result.append(obsKind); + result.append(')'); + return result.toString(); + } + +} //TimedInstantObservationImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/TimedProcessingImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/TimedProcessingImpl.java new file mode 100644 index 00000000000..38f558e1d51 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/TimedProcessingImpl.java @@ -0,0 +1,491 @@ +/***************************************************************************** + * 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.MARTE_Foundations.Time.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedProcessing; + +import org.eclipse.uml2.uml.Action; +import org.eclipse.uml2.uml.Behavior; +import org.eclipse.uml2.uml.Event; +import org.eclipse.uml2.uml.Message; +import org.eclipse.uml2.uml.ValueSpecification; + +/** + * + * An implementation of the model object 'Timed Processing'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedProcessingImpl#getBase_Action Base Action}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedProcessingImpl#getBase_Behavior Base Behavior}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedProcessingImpl#getBase_Message Base Message}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedProcessingImpl#getDuration Duration}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedProcessingImpl#getStart Start}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedProcessingImpl#getFinish Finish}
  • + *
+ *

+ * + * @generated + */ +public class TimedProcessingImpl extends TimedElementImpl implements TimedProcessing { + /** + * The cached value of the '{@link #getBase_Action() Base Action}' reference. + * + * + * @see #getBase_Action() + * @generated + * @ordered + */ + protected Action base_Action; + + /** + * The cached value of the '{@link #getBase_Behavior() Base Behavior}' reference. + * + * + * @see #getBase_Behavior() + * @generated + * @ordered + */ + protected Behavior base_Behavior; + + /** + * The cached value of the '{@link #getBase_Message() Base Message}' reference. + * + * + * @see #getBase_Message() + * @generated + * @ordered + */ + protected Message base_Message; + + /** + * The cached value of the '{@link #getDuration() Duration}' containment reference. + * + * + * @see #getDuration() + * @generated + * @ordered + */ + protected ValueSpecification duration; + + /** + * The cached value of the '{@link #getStart() Start}' reference. + * + * + * @see #getStart() + * @generated + * @ordered + */ + protected Event start; + + /** + * The cached value of the '{@link #getFinish() Finish}' reference. + * + * + * @see #getFinish() + * @generated + * @ordered + */ + protected Event finish; + + /** + * + * + * @generated + */ + protected TimedProcessingImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return TimePackage.Literals.TIMED_PROCESSING; + } + + /** + * + * + * @generated + */ + public Action getBase_Action() { + if (base_Action != null && base_Action.eIsProxy()) { + InternalEObject oldBase_Action = (InternalEObject)base_Action; + base_Action = (Action)eResolveProxy(oldBase_Action); + if (base_Action != oldBase_Action) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, TimePackage.TIMED_PROCESSING__BASE_ACTION, oldBase_Action, base_Action)); + } + } + return base_Action; + } + + /** + * + * + * @generated + */ + public Action basicGetBase_Action() { + return base_Action; + } + + /** + * + * + * @generated + */ + public void setBase_Action(Action newBase_Action) { + Action oldBase_Action = base_Action; + base_Action = newBase_Action; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TimePackage.TIMED_PROCESSING__BASE_ACTION, oldBase_Action, base_Action)); + } + + /** + * + * + * @generated + */ + public Behavior getBase_Behavior() { + if (base_Behavior != null && base_Behavior.eIsProxy()) { + InternalEObject oldBase_Behavior = (InternalEObject)base_Behavior; + base_Behavior = (Behavior)eResolveProxy(oldBase_Behavior); + if (base_Behavior != oldBase_Behavior) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, TimePackage.TIMED_PROCESSING__BASE_BEHAVIOR, oldBase_Behavior, base_Behavior)); + } + } + return base_Behavior; + } + + /** + * + * + * @generated + */ + public Behavior basicGetBase_Behavior() { + return base_Behavior; + } + + /** + * + * + * @generated + */ + public void setBase_Behavior(Behavior newBase_Behavior) { + Behavior oldBase_Behavior = base_Behavior; + base_Behavior = newBase_Behavior; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TimePackage.TIMED_PROCESSING__BASE_BEHAVIOR, oldBase_Behavior, base_Behavior)); + } + + /** + * + * + * @generated + */ + public Message getBase_Message() { + if (base_Message != null && base_Message.eIsProxy()) { + InternalEObject oldBase_Message = (InternalEObject)base_Message; + base_Message = (Message)eResolveProxy(oldBase_Message); + if (base_Message != oldBase_Message) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, TimePackage.TIMED_PROCESSING__BASE_MESSAGE, oldBase_Message, base_Message)); + } + } + return base_Message; + } + + /** + * + * + * @generated + */ + public Message basicGetBase_Message() { + return base_Message; + } + + /** + * + * + * @generated + */ + public void setBase_Message(Message newBase_Message) { + Message oldBase_Message = base_Message; + base_Message = newBase_Message; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TimePackage.TIMED_PROCESSING__BASE_MESSAGE, oldBase_Message, base_Message)); + } + + /** + * + * + * @generated + */ + public ValueSpecification getDuration() { + return duration; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetDuration(ValueSpecification newDuration, NotificationChain msgs) { + ValueSpecification oldDuration = duration; + duration = newDuration; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, TimePackage.TIMED_PROCESSING__DURATION, oldDuration, newDuration); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setDuration(ValueSpecification newDuration) { + if (newDuration != duration) { + NotificationChain msgs = null; + if (duration != null) + msgs = ((InternalEObject)duration).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - TimePackage.TIMED_PROCESSING__DURATION, null, msgs); + if (newDuration != null) + msgs = ((InternalEObject)newDuration).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - TimePackage.TIMED_PROCESSING__DURATION, null, msgs); + msgs = basicSetDuration(newDuration, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TimePackage.TIMED_PROCESSING__DURATION, newDuration, newDuration)); + } + + /** + * + * + * @generated + */ + public Event getStart() { + if (start != null && start.eIsProxy()) { + InternalEObject oldStart = (InternalEObject)start; + start = (Event)eResolveProxy(oldStart); + if (start != oldStart) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, TimePackage.TIMED_PROCESSING__START, oldStart, start)); + } + } + return start; + } + + /** + * + * + * @generated + */ + public Event basicGetStart() { + return start; + } + + /** + * + * + * @generated + */ + public void setStart(Event newStart) { + Event oldStart = start; + start = newStart; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TimePackage.TIMED_PROCESSING__START, oldStart, start)); + } + + /** + * + * + * @generated + */ + public Event getFinish() { + if (finish != null && finish.eIsProxy()) { + InternalEObject oldFinish = (InternalEObject)finish; + finish = (Event)eResolveProxy(oldFinish); + if (finish != oldFinish) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, TimePackage.TIMED_PROCESSING__FINISH, oldFinish, finish)); + } + } + return finish; + } + + /** + * + * + * @generated + */ + public Event basicGetFinish() { + return finish; + } + + /** + * + * + * @generated + */ + public void setFinish(Event newFinish) { + Event oldFinish = finish; + finish = newFinish; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TimePackage.TIMED_PROCESSING__FINISH, oldFinish, finish)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case TimePackage.TIMED_PROCESSING__DURATION: + return basicSetDuration(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case TimePackage.TIMED_PROCESSING__BASE_ACTION: + if (resolve) return getBase_Action(); + return basicGetBase_Action(); + case TimePackage.TIMED_PROCESSING__BASE_BEHAVIOR: + if (resolve) return getBase_Behavior(); + return basicGetBase_Behavior(); + case TimePackage.TIMED_PROCESSING__BASE_MESSAGE: + if (resolve) return getBase_Message(); + return basicGetBase_Message(); + case TimePackage.TIMED_PROCESSING__DURATION: + return getDuration(); + case TimePackage.TIMED_PROCESSING__START: + if (resolve) return getStart(); + return basicGetStart(); + case TimePackage.TIMED_PROCESSING__FINISH: + if (resolve) return getFinish(); + return basicGetFinish(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case TimePackage.TIMED_PROCESSING__BASE_ACTION: + setBase_Action((Action)newValue); + return; + case TimePackage.TIMED_PROCESSING__BASE_BEHAVIOR: + setBase_Behavior((Behavior)newValue); + return; + case TimePackage.TIMED_PROCESSING__BASE_MESSAGE: + setBase_Message((Message)newValue); + return; + case TimePackage.TIMED_PROCESSING__DURATION: + setDuration((ValueSpecification)newValue); + return; + case TimePackage.TIMED_PROCESSING__START: + setStart((Event)newValue); + return; + case TimePackage.TIMED_PROCESSING__FINISH: + setFinish((Event)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case TimePackage.TIMED_PROCESSING__BASE_ACTION: + setBase_Action((Action)null); + return; + case TimePackage.TIMED_PROCESSING__BASE_BEHAVIOR: + setBase_Behavior((Behavior)null); + return; + case TimePackage.TIMED_PROCESSING__BASE_MESSAGE: + setBase_Message((Message)null); + return; + case TimePackage.TIMED_PROCESSING__DURATION: + setDuration((ValueSpecification)null); + return; + case TimePackage.TIMED_PROCESSING__START: + setStart((Event)null); + return; + case TimePackage.TIMED_PROCESSING__FINISH: + setFinish((Event)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case TimePackage.TIMED_PROCESSING__BASE_ACTION: + return base_Action != null; + case TimePackage.TIMED_PROCESSING__BASE_BEHAVIOR: + return base_Behavior != null; + case TimePackage.TIMED_PROCESSING__BASE_MESSAGE: + return base_Message != null; + case TimePackage.TIMED_PROCESSING__DURATION: + return duration != null; + case TimePackage.TIMED_PROCESSING__START: + return start != null; + case TimePackage.TIMED_PROCESSING__FINISH: + return finish != null; + } + return super.eIsSet(featureID); + } + +} //TimedProcessingImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/TimedValueSpecificationImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/TimedValueSpecificationImpl.java new file mode 100644 index 00000000000..37735530e04 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/TimedValueSpecificationImpl.java @@ -0,0 +1,238 @@ +/***************************************************************************** + * 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.MARTE_Foundations.Time.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage; +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedValueSpecification; + +import org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.TimeInterpretationKind; + +import org.eclipse.uml2.uml.ValueSpecification; + +/** + * + * An implementation of the model object 'Timed Value Specification'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedValueSpecificationImpl#getInterpretation Interpretation}
  • + *
  • {@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedValueSpecificationImpl#getBase_ValueSpecification Base Value Specification}
  • + *
+ *

+ * + * @generated + */ +public class TimedValueSpecificationImpl extends TimedElementImpl implements TimedValueSpecification { + /** + * The default value of the '{@link #getInterpretation() Interpretation}' attribute. + * + * + * @see #getInterpretation() + * @generated + * @ordered + */ + protected static final TimeInterpretationKind INTERPRETATION_EDEFAULT = TimeInterpretationKind.DURATION; + + /** + * The cached value of the '{@link #getInterpretation() Interpretation}' attribute. + * + * + * @see #getInterpretation() + * @generated + * @ordered + */ + protected TimeInterpretationKind interpretation = INTERPRETATION_EDEFAULT; + + /** + * The cached value of the '{@link #getBase_ValueSpecification() Base Value Specification}' reference. + * + * + * @see #getBase_ValueSpecification() + * @generated + * @ordered + */ + protected ValueSpecification base_ValueSpecification; + + /** + * + * + * @generated + */ + protected TimedValueSpecificationImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return TimePackage.Literals.TIMED_VALUE_SPECIFICATION; + } + + /** + * + * + * @generated + */ + public TimeInterpretationKind getInterpretation() { + return interpretation; + } + + /** + * + * + * @generated + */ + public void setInterpretation(TimeInterpretationKind newInterpretation) { + TimeInterpretationKind oldInterpretation = interpretation; + interpretation = newInterpretation == null ? INTERPRETATION_EDEFAULT : newInterpretation; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TimePackage.TIMED_VALUE_SPECIFICATION__INTERPRETATION, oldInterpretation, interpretation)); + } + + /** + * + * + * @generated + */ + public ValueSpecification getBase_ValueSpecification() { + if (base_ValueSpecification != null && base_ValueSpecification.eIsProxy()) { + InternalEObject oldBase_ValueSpecification = (InternalEObject)base_ValueSpecification; + base_ValueSpecification = (ValueSpecification)eResolveProxy(oldBase_ValueSpecification); + if (base_ValueSpecification != oldBase_ValueSpecification) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, TimePackage.TIMED_VALUE_SPECIFICATION__BASE_VALUE_SPECIFICATION, oldBase_ValueSpecification, base_ValueSpecification)); + } + } + return base_ValueSpecification; + } + + /** + * + * + * @generated + */ + public ValueSpecification basicGetBase_ValueSpecification() { + return base_ValueSpecification; + } + + /** + * + * + * @generated + */ + public void setBase_ValueSpecification(ValueSpecification newBase_ValueSpecification) { + ValueSpecification oldBase_ValueSpecification = base_ValueSpecification; + base_ValueSpecification = newBase_ValueSpecification; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TimePackage.TIMED_VALUE_SPECIFICATION__BASE_VALUE_SPECIFICATION, oldBase_ValueSpecification, base_ValueSpecification)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case TimePackage.TIMED_VALUE_SPECIFICATION__INTERPRETATION: + return getInterpretation(); + case TimePackage.TIMED_VALUE_SPECIFICATION__BASE_VALUE_SPECIFICATION: + if (resolve) return getBase_ValueSpecification(); + return basicGetBase_ValueSpecification(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case TimePackage.TIMED_VALUE_SPECIFICATION__INTERPRETATION: + setInterpretation((TimeInterpretationKind)newValue); + return; + case TimePackage.TIMED_VALUE_SPECIFICATION__BASE_VALUE_SPECIFICATION: + setBase_ValueSpecification((ValueSpecification)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case TimePackage.TIMED_VALUE_SPECIFICATION__INTERPRETATION: + setInterpretation(INTERPRETATION_EDEFAULT); + return; + case TimePackage.TIMED_VALUE_SPECIFICATION__BASE_VALUE_SPECIFICATION: + setBase_ValueSpecification((ValueSpecification)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case TimePackage.TIMED_VALUE_SPECIFICATION__INTERPRETATION: + return interpretation != INTERPRETATION_EDEFAULT; + case TimePackage.TIMED_VALUE_SPECIFICATION__BASE_VALUE_SPECIFICATION: + return base_ValueSpecification != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (interpretation: "); + result.append(interpretation); + result.append(')'); + return result.toString(); + } + +} //TimedValueSpecificationImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/util/TimeAdapterFactory.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/util/TimeAdapterFactory.java new file mode 100644 index 00000000000..d4cc3497a4c --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/util/TimeAdapterFactory.java @@ -0,0 +1,331 @@ +/***************************************************************************** + * 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.MARTE_Foundations.Time.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.MARTE_Foundations.NFPs.NfpConstraint; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.*; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage + * @generated + */ +public class TimeAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * @generated + */ + protected static TimePackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public TimeAdapterFactory() { + if (modelPackage == null) { + modelPackage = TimePackage.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 TimeSwitch modelSwitch = + new TimeSwitch() { + @Override + public Adapter caseTimedDomain(TimedDomain object) { + return createTimedDomainAdapter(); + } + @Override + public Adapter caseClock(Clock object) { + return createClockAdapter(); + } + @Override + public Adapter caseClockType(ClockType object) { + return createClockTypeAdapter(); + } + @Override + public Adapter caseTimedElement(TimedElement object) { + return createTimedElementAdapter(); + } + @Override + public Adapter caseTimedValueSpecification(TimedValueSpecification object) { + return createTimedValueSpecificationAdapter(); + } + @Override + public Adapter caseTimedConstraint(TimedConstraint object) { + return createTimedConstraintAdapter(); + } + @Override + public Adapter caseClockConstraint(ClockConstraint object) { + return createClockConstraintAdapter(); + } + @Override + public Adapter caseTimedInstantObservation(TimedInstantObservation object) { + return createTimedInstantObservationAdapter(); + } + @Override + public Adapter caseTimedDurationObservation(TimedDurationObservation object) { + return createTimedDurationObservationAdapter(); + } + @Override + public Adapter caseTimedEvent(TimedEvent object) { + return createTimedEventAdapter(); + } + @Override + public Adapter caseTimedProcessing(TimedProcessing object) { + return createTimedProcessingAdapter(); + } + @Override + public Adapter caseNfpConstraint(NfpConstraint object) { + return createNfpConstraintAdapter(); + } + @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.MARTE_Foundations.Time.TimedDomain Timed Domain}'. + * + * 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.MARTE_Foundations.Time.TimedDomain + * @generated + */ + public Adapter createTimedDomainAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.Clock 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.MARTE_Foundations.Time.Clock + * @generated + */ + public Adapter createClockAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockType Clock Type}'. + * + * 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.MARTE_Foundations.Time.ClockType + * @generated + */ + public Adapter createClockTypeAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedElement Timed Element}'. + * + * 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.MARTE_Foundations.Time.TimedElement + * @generated + */ + public Adapter createTimedElementAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedValueSpecification Timed Value Specification}'. + * + * 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.MARTE_Foundations.Time.TimedValueSpecification + * @generated + */ + public Adapter createTimedValueSpecificationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedConstraint Timed Constraint}'. + * + * 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.MARTE_Foundations.Time.TimedConstraint + * @generated + */ + public Adapter createTimedConstraintAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.ClockConstraint Clock Constraint}'. + * + * 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.MARTE_Foundations.Time.ClockConstraint + * @generated + */ + public Adapter createClockConstraintAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedInstantObservation Timed Instant Observation}'. + * + * 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.MARTE_Foundations.Time.TimedInstantObservation + * @generated + */ + public Adapter createTimedInstantObservationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedDurationObservation Timed Duration Observation}'. + * + * 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.MARTE_Foundations.Time.TimedDurationObservation + * @generated + */ + public Adapter createTimedDurationObservationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedEvent Timed Event}'. + * + * 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.MARTE_Foundations.Time.TimedEvent + * @generated + */ + public Adapter createTimedEventAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedProcessing Timed Processing}'. + * + * 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.MARTE_Foundations.Time.TimedProcessing + * @generated + */ + public Adapter createTimedProcessingAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpConstraint Nfp Constraint}'. + * + * 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.MARTE_Foundations.NFPs.NfpConstraint + * @generated + */ + public Adapter createNfpConstraintAdapter() { + 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; + } + +} //TimeAdapterFactory diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/util/TimeResourceFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/util/TimeResourceFactoryImpl.java new file mode 100644 index 00000000000..dbdf0394acd --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/util/TimeResourceFactoryImpl.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.MARTE_Foundations.Time.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; + +import org.eclipse.emf.ecore.xmi.XMLResource; + +/** + * + * The Resource Factory associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.util.TimeResourceImpl + * @generated + */ +public class TimeResourceFactoryImpl extends ResourceFactoryImpl { + /** + * Creates an instance of the resource factory. + * + * + * @generated + */ + public TimeResourceFactoryImpl() { + super(); + } + + /** + * Creates an instance of the resource. + * + * + * @generated + */ + @Override + public Resource createResource(URI uri) { + XMLResource result = new TimeResourceImpl(uri); + result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); + + result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); + return result; + } + +} //TimeResourceFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/util/TimeResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/util/TimeResourceImpl.java new file mode 100644 index 00000000000..54daa7e8871 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/util/TimeResourceImpl.java @@ -0,0 +1,39 @@ +/***************************************************************************** + * 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.MARTE_Foundations.Time.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; + +/** + * + * The Resource associated with the package. + * + * @see org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.util.TimeResourceFactoryImpl + * @generated + */ +public class TimeResourceImpl extends XMLResourceImpl { + /** + * Creates an instance of the resource. + * + * + * @param uri the URI of the new resource. + * @generated + */ + public TimeResourceImpl(URI uri) { + super(uri); + } + +} //TimeResourceImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/util/TimeSwitch.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/util/TimeSwitch.java new file mode 100644 index 00000000000..9fede948253 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/util/TimeSwitch.java @@ -0,0 +1,373 @@ +/***************************************************************************** + * 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.MARTE_Foundations.Time.util; + +import java.util.List; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpConstraint; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.*; + +/** + * + * 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.MARTE_Foundations.Time.TimePackage + * @generated + */ +public class TimeSwitch { + /** + * The cached model package + * + * + * @generated + */ + protected static TimePackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public TimeSwitch() { + if (modelPackage == null) { + modelPackage = TimePackage.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 TimePackage.TIMED_DOMAIN: { + TimedDomain timedDomain = (TimedDomain)theEObject; + T result = caseTimedDomain(timedDomain); + if (result == null) result = defaultCase(theEObject); + return result; + } + case TimePackage.CLOCK: { + Clock clock = (Clock)theEObject; + T result = caseClock(clock); + if (result == null) result = defaultCase(theEObject); + return result; + } + case TimePackage.CLOCK_TYPE: { + ClockType clockType = (ClockType)theEObject; + T result = caseClockType(clockType); + if (result == null) result = defaultCase(theEObject); + return result; + } + case TimePackage.TIMED_ELEMENT: { + TimedElement timedElement = (TimedElement)theEObject; + T result = caseTimedElement(timedElement); + if (result == null) result = defaultCase(theEObject); + return result; + } + case TimePackage.TIMED_VALUE_SPECIFICATION: { + TimedValueSpecification timedValueSpecification = (TimedValueSpecification)theEObject; + T result = caseTimedValueSpecification(timedValueSpecification); + if (result == null) result = caseTimedElement(timedValueSpecification); + if (result == null) result = defaultCase(theEObject); + return result; + } + case TimePackage.TIMED_CONSTRAINT: { + TimedConstraint timedConstraint = (TimedConstraint)theEObject; + T result = caseTimedConstraint(timedConstraint); + if (result == null) result = caseNfpConstraint(timedConstraint); + if (result == null) result = caseTimedElement(timedConstraint); + if (result == null) result = defaultCase(theEObject); + return result; + } + case TimePackage.CLOCK_CONSTRAINT: { + ClockConstraint clockConstraint = (ClockConstraint)theEObject; + T result = caseClockConstraint(clockConstraint); + if (result == null) result = caseNfpConstraint(clockConstraint); + if (result == null) result = caseTimedElement(clockConstraint); + if (result == null) result = defaultCase(theEObject); + return result; + } + case TimePackage.TIMED_INSTANT_OBSERVATION: { + TimedInstantObservation timedInstantObservation = (TimedInstantObservation)theEObject; + T result = caseTimedInstantObservation(timedInstantObservation); + if (result == null) result = caseTimedElement(timedInstantObservation); + if (result == null) result = defaultCase(theEObject); + return result; + } + case TimePackage.TIMED_DURATION_OBSERVATION: { + TimedDurationObservation timedDurationObservation = (TimedDurationObservation)theEObject; + T result = caseTimedDurationObservation(timedDurationObservation); + if (result == null) result = caseTimedElement(timedDurationObservation); + if (result == null) result = defaultCase(theEObject); + return result; + } + case TimePackage.TIMED_EVENT: { + TimedEvent timedEvent = (TimedEvent)theEObject; + T result = caseTimedEvent(timedEvent); + if (result == null) result = caseTimedElement(timedEvent); + if (result == null) result = defaultCase(theEObject); + return result; + } + case TimePackage.TIMED_PROCESSING: { + TimedProcessing timedProcessing = (TimedProcessing)theEObject; + T result = caseTimedProcessing(timedProcessing); + if (result == null) result = caseTimedElement(timedProcessing); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Timed Domain'. + * + * 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 'Timed Domain'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseTimedDomain(TimedDomain object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '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 'Clock'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseClock(Clock object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Clock Type'. + * + * 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 'Clock Type'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseClockType(ClockType object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Timed Element'. + * + * 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 'Timed Element'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseTimedElement(TimedElement object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Timed Value Specification'. + * + * 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 'Timed Value Specification'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseTimedValueSpecification(TimedValueSpecification object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Timed Constraint'. + * + * 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 'Timed Constraint'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseTimedConstraint(TimedConstraint object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Clock Constraint'. + * + * 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 'Clock Constraint'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseClockConstraint(ClockConstraint object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Timed Instant Observation'. + * + * 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 'Timed Instant Observation'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseTimedInstantObservation(TimedInstantObservation object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Timed Duration Observation'. + * + * 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 'Timed Duration Observation'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseTimedDurationObservation(TimedDurationObservation object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Timed Event'. + * + * 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 'Timed Event'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseTimedEvent(TimedEvent object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Timed Processing'. + * + * 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 'Timed Processing'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseTimedProcessing(TimedProcessing object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Nfp Constraint'. + * + * 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 'Nfp Constraint'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseNfpConstraint(NfpConstraint 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; + } + +} //TimeSwitch diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/util/TimeXMLProcessor.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/util/TimeXMLProcessor.java new file mode 100644 index 00000000000..0e0bbdb220f --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/util/TimeXMLProcessor.java @@ -0,0 +1,61 @@ +/***************************************************************************** + * 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.MARTE_Foundations.Time.util; + +import java.util.Map; + +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.xmi.util.XMLProcessor; + +import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage; + +/** + * This class contains helper methods to serialize and deserialize XML documents + * + * + * @generated + */ +public class TimeXMLProcessor extends XMLProcessor { + + /** + * Public constructor to instantiate the helper. + * + * + * @generated + */ + public TimeXMLProcessor() { + super((EPackage.Registry.INSTANCE)); + TimePackage.eINSTANCE.eClass(); + } + + /** + * Register for "*" and "xml" file extensions the TimeResourceFactoryImpl factory. + * + * + * @generated + */ + @Override + protected Map getRegistrations() { + if (registrations == null) { + super.getRegistrations(); + registrations.put(XML_EXTENSION, new TimeResourceFactoryImpl()); + registrations.put(STAR_EXTENSION, new TimeResourceFactoryImpl()); + } + return registrations; + } + +} //TimeXMLProcessor diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/dummy.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/dummy.java new file mode 100644 index 00000000000..58ed41b8bab --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/dummy.java @@ -0,0 +1,167 @@ +/***************************************************************************** + * 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; + +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 'dummy', + * and utility methods for working with them. + * + * @see org.eclipse.papyrus.MARTE.MARTEPackage#getdummy() + * @model + * @generated + */ +public enum dummy implements Enumerator { + ; + + /** + * An array of all the 'dummy' enumerators. + * + * + * @generated + */ + private static final dummy[] VALUES_ARRAY = + new dummy[] { + }; + + /** + * A public read-only list of all the 'dummy' enumerators. + * + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'dummy' literal with the specified literal value. + * + * + * @generated + */ + public static dummy get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + dummy result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'dummy' literal with the specified name. + * + * + * @generated + */ + public static dummy getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + dummy result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'dummy' literal with the specified integer value. + * + * + * @generated + */ + public static dummy get(int value) { + switch (value) { + } + 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 dummy(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; + } + +} //dummy diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/impl/MARTEFactoryImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/impl/MARTEFactoryImpl.java new file mode 100644 index 00000000000..e1904a08ac0 --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/impl/MARTEFactoryImpl.java @@ -0,0 +1,146 @@ +/***************************************************************************** + * 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.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.*; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class MARTEFactoryImpl extends EFactoryImpl implements MARTEFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static MARTEFactory init() { + try { + MARTEFactory theMARTEFactory = (MARTEFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/MARTE/1"); + if (theMARTEFactory != null) { + return theMARTEFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new MARTEFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public MARTEFactoryImpl() { + 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 MARTEPackage.DUMMY: + return createdummyFromString(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 MARTEPackage.DUMMY: + return convertdummyToString(eDataType, instanceValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public dummy createdummyFromString(EDataType eDataType, String initialValue) { + dummy result = dummy.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertdummyToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public MARTEPackage getMARTEPackage() { + return (MARTEPackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static MARTEPackage getPackage() { + return MARTEPackage.eINSTANCE; + } + +} //MARTEFactoryImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/impl/MARTEPackageImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/impl/MARTEPackageImpl.java new file mode 100644 index 00000000000..09bfad3d70f --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/impl/MARTEPackageImpl.java @@ -0,0 +1,480 @@ +/***************************************************************************** + * 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.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.dummy; +import org.eclipse.papyrus.MARTE.MARTEFactory; +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.dummy; + +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.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 MARTEPackageImpl extends EPackageImpl implements MARTEPackage { + /** + * + * + * @generated + */ + private EEnum dummyEEnum = 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.MARTEPackage#eNS_URI + * @see #init() + * @generated + */ + private MARTEPackageImpl() { + super(eNS_URI, MARTEFactory.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 MARTEPackage#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 MARTEPackage init() { + if (isInited) return (MARTEPackage)EPackage.Registry.INSTANCE.getEPackage(MARTEPackage.eNS_URI); + + // Obtain or create and register package + MARTEPackageImpl theMARTEPackage = (MARTEPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof MARTEPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new MARTEPackageImpl()); + + isInited = true; + + // Initialize simple dependencies + UMLPackage.eINSTANCE.eClass(); + + // Obtain or create and register interdependencies + 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); + 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 + 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(); + theMARTE_PrimitivesTypesPackage.createPackageContents(); + + // Initialize created meta-data + 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(); + theMARTE_PrimitivesTypesPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theMARTEPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(MARTEPackage.eNS_URI, theMARTEPackage); + return theMARTEPackage; + } + + /** + * + * + * @generated + */ + public EEnum getdummy() { + return dummyEEnum; + } + + /** + * + * + * @generated + */ + public MARTEFactory getMARTEFactory() { + return (MARTEFactory)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 + dummyEEnum = createEEnum(DUMMY); + } + + /** + * + * + * @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 + NFPsPackage theNFPsPackage = (NFPsPackage)EPackage.Registry.INSTANCE.getEPackage(NFPsPackage.eNS_URI); + CoreElementsPackage theCoreElementsPackage = (CoreElementsPackage)EPackage.Registry.INSTANCE.getEPackage(CoreElementsPackage.eNS_URI); + AllocPackage theAllocPackage = (AllocPackage)EPackage.Registry.INSTANCE.getEPackage(AllocPackage.eNS_URI); + TimePackage theTimePackage = (TimePackage)EPackage.Registry.INSTANCE.getEPackage(TimePackage.eNS_URI); + GRMPackage theGRMPackage = (GRMPackage)EPackage.Registry.INSTANCE.getEPackage(GRMPackage.eNS_URI); + RSMPackage theRSMPackage = (RSMPackage)EPackage.Registry.INSTANCE.getEPackage(RSMPackage.eNS_URI); + VariablesPackage theVariablesPackage = (VariablesPackage)EPackage.Registry.INSTANCE.getEPackage(VariablesPackage.eNS_URI); + OperatorsPackage theOperatorsPackage = (OperatorsPackage)EPackage.Registry.INSTANCE.getEPackage(OperatorsPackage.eNS_URI); + DataTypesPackage theDataTypesPackage = (DataTypesPackage)EPackage.Registry.INSTANCE.getEPackage(DataTypesPackage.eNS_URI); + HLAMPackage theHLAMPackage = (HLAMPackage)EPackage.Registry.INSTANCE.getEPackage(HLAMPackage.eNS_URI); + HwComputingPackage theHwComputingPackage = (HwComputingPackage)EPackage.Registry.INSTANCE.getEPackage(HwComputingPackage.eNS_URI); + HwCommunicationPackage theHwCommunicationPackage = (HwCommunicationPackage)EPackage.Registry.INSTANCE.getEPackage(HwCommunicationPackage.eNS_URI); + HwStorageManagerPackage theHwStorageManagerPackage = (HwStorageManagerPackage)EPackage.Registry.INSTANCE.getEPackage(HwStorageManagerPackage.eNS_URI); + HwMemoryPackage theHwMemoryPackage = (HwMemoryPackage)EPackage.Registry.INSTANCE.getEPackage(HwMemoryPackage.eNS_URI); + HwTimingPackage theHwTimingPackage = (HwTimingPackage)EPackage.Registry.INSTANCE.getEPackage(HwTimingPackage.eNS_URI); + HwDevicePackage theHwDevicePackage = (HwDevicePackage)EPackage.Registry.INSTANCE.getEPackage(HwDevicePackage.eNS_URI); + HwGeneralPackage theHwGeneralPackage = (HwGeneralPackage)EPackage.Registry.INSTANCE.getEPackage(HwGeneralPackage.eNS_URI); + HwLayoutPackage theHwLayoutPackage = (HwLayoutPackage)EPackage.Registry.INSTANCE.getEPackage(HwLayoutPackage.eNS_URI); + HwPowerPackage theHwPowerPackage = (HwPowerPackage)EPackage.Registry.INSTANCE.getEPackage(HwPowerPackage.eNS_URI); + SW_ResourceCorePackage theSW_ResourceCorePackage = (SW_ResourceCorePackage)EPackage.Registry.INSTANCE.getEPackage(SW_ResourceCorePackage.eNS_URI); + SW_ConcurrencyPackage theSW_ConcurrencyPackage = (SW_ConcurrencyPackage)EPackage.Registry.INSTANCE.getEPackage(SW_ConcurrencyPackage.eNS_URI); + SW_BrokeringPackage theSW_BrokeringPackage = (SW_BrokeringPackage)EPackage.Registry.INSTANCE.getEPackage(SW_BrokeringPackage.eNS_URI); + SW_InteractionPackage theSW_InteractionPackage = (SW_InteractionPackage)EPackage.Registry.INSTANCE.getEPackage(SW_InteractionPackage.eNS_URI); + GCMPackage theGCMPackage = (GCMPackage)EPackage.Registry.INSTANCE.getEPackage(GCMPackage.eNS_URI); + GQAMPackage theGQAMPackage = (GQAMPackage)EPackage.Registry.INSTANCE.getEPackage(GQAMPackage.eNS_URI); + SAMPackage theSAMPackage = (SAMPackage)EPackage.Registry.INSTANCE.getEPackage(SAMPackage.eNS_URI); + PAMPackage thePAMPackage = (PAMPackage)EPackage.Registry.INSTANCE.getEPackage(PAMPackage.eNS_URI); + + // Add subpackages + getESubpackages().add(theNFPsPackage); + getESubpackages().add(theCoreElementsPackage); + getESubpackages().add(theAllocPackage); + getESubpackages().add(theTimePackage); + getESubpackages().add(theGRMPackage); + getESubpackages().add(theRSMPackage); + getESubpackages().add(theVariablesPackage); + getESubpackages().add(theOperatorsPackage); + getESubpackages().add(theDataTypesPackage); + getESubpackages().add(theHLAMPackage); + getESubpackages().add(theHwComputingPackage); + getESubpackages().add(theHwCommunicationPackage); + getESubpackages().add(theHwStorageManagerPackage); + getESubpackages().add(theHwMemoryPackage); + getESubpackages().add(theHwTimingPackage); + getESubpackages().add(theHwDevicePackage); + getESubpackages().add(theHwGeneralPackage); + getESubpackages().add(theHwLayoutPackage); + getESubpackages().add(theHwPowerPackage); + getESubpackages().add(theSW_ResourceCorePackage); + getESubpackages().add(theSW_ConcurrencyPackage); + getESubpackages().add(theSW_BrokeringPackage); + getESubpackages().add(theSW_InteractionPackage); + getESubpackages().add(theGCMPackage); + getESubpackages().add(theGQAMPackage); + getESubpackages().add(theSAMPackage); + getESubpackages().add(thePAMPackage); + + // Initialize enums and add enum literals + initEEnum(dummyEEnum, dummy.class, "dummy"); + + // Create resource + createResource(eNS_URI); + } + +} //MARTEPackageImpl diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/utils/MarteResource.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/utils/MarteResource.java new file mode 100644 index 00000000000..f4188ffaacf --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/utils/MarteResource.java @@ -0,0 +1,10 @@ +package org.eclipse.papyrus.MARTE.utils; + +public class MarteResource { + + public static String FLOW_PORT_ID = "MARTE::MARTE_DesignModel::GCM::FlowPort"; + + public static String CLIENT_SERVER_PORT_ID = "MARTE::MARTE_DesignModel::GCM::ClientServerPort"; + + +} diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/utils/MarteUtils.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/utils/MarteUtils.java new file mode 100644 index 00000000000..198f082674d --- /dev/null +++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/utils/MarteUtils.java @@ -0,0 +1,33 @@ +/***************************************************************************** + * 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.utils; + +import java.util.StringTokenizer; + +public class MarteUtils { + + public static String getValueFromTuple(String tupleValue, String propertyName) { + StringTokenizer tupleTokenizer = new StringTokenizer(tupleValue.substring(1,tupleValue.length()-1), ","); + while(tupleTokenizer.hasMoreTokens()) { + String currentToken = tupleTokenizer.nextToken(); + StringTokenizer propertyTokenizer = new StringTokenizer(currentToken, "="); + String nextToken = propertyTokenizer.nextToken().trim(); + if(nextToken.equals(propertyName)) + if(propertyTokenizer.hasMoreTokens()) + return propertyTokenizer.nextToken().trim(); + } + return null; + } + +} 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 + *

    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @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 + *
    + *
  • 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.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