5 2 b Eclipse Modeling Framework EMF Tutorial
5 -2 b. Eclipse Modeling Framework (EMF) Tutorial / Exercise <Presenter> <Company>, <Country> <E-mail> © 2005 -2006 The ATHENA Consortium.
Exercise • Objective – Hands-on experience with EMF – Develop the PIM 4 SOA information metamodel • References – EMF http: //www. eclipse. org/emf – Help and Tutorials http: //help. eclipse. org © 2005 -2006 The ATHENA Consortium. 2
Create an EMF project © 2005 -2006 The ATHENA Consortium. 3
Create a model folder © 2005 -2006 The ATHENA Consortium. 4
Create a new ecore model © 2005 -2006 The ATHENA Consortium. 5
Making the metamodel(EClass) © 2005 -2006 The ATHENA Consortium. 6
Making the metamodel (Generalization) © 2005 -2006 The ATHENA Consortium. 7
Making the metamodel (EAttribute) © 2005 -2006 The ATHENA Consortium. 8
Making the metamodel (Aggregation) Multiplicity 0, 1, * (-1 in here) © 2005 -2006 The ATHENA Consortium. 9
Making the metamodel (Association) © 2005 -2006 The ATHENA Consortium. 10
The PIM 4 SOA information metamodel © 2005 -2006 The ATHENA Consortium. 11
Create the EMF model © 2005 -2006 The ATHENA Consortium. 12
Generate Model and Edit Code © 2005 -2006 The ATHENA Consortium. 13
This course has been developed under the funding of the EC with the support of the EC ATHENA-IP Project. Disclaimer and Copyright Notice: Permission is granted without fee for personal or educational (non-profit) use, previous notification is needed. For notification purposes, please, address to the ATHENA Training Programme Chair at rg@uninova. pt. In other cases please, contact at the same e-mail address for use conditions. Some of the figures presented in this course are freely inspired by others reported in referenced works/sources. For such figures copyright and all rights therein are maintained by the original authors or by other copyright holders. It is understood that all persons copying these figures will adhere to the terms and constraints invoked by each copyright holder. © 2005 -2006 The ATHENA Consortium. 14
- Slides: 14