How to create an EMF model and use it in Kermeta

Zoé Drey

Didier Vojtisek

Build date: 16-June-2006


Table of Contents

1. Introduction
1.1. Required knowledge
1.2. Terminology and format used in this tutorial
1.3. Required environment
2. Create a meta-model for Kermeta programs
2.1. Step by step
2.2. Resulting metamodel
2.3. EMF Metamodel creation tips
2.4. External documentation
2.5. Alternative ways to create a metamodel
3. Create an EMF model from your metamodel
3.1. With the dynamic instance creation tool
3.2. Using a reflexive editor
3.2.1. Generate the editor
3.2.2. Use the editor
4. Manipulate EMF models with Kermeta
4.1. Preparing a Kermeta program
4.1.1. The persistence library
4.1.2. Your first Kermeta program using persistence
4.2. Load an EMF model with Kermeta
4.3. Modify and save an EMF model with Kermeta
4.4. Create a model in Kermeta, and save it as an EMF model
4.5. A template for a complete kermeta program
5. Metamodel with behavior and persistency

List of Figures

2.1. Selection of the model object (root element)
2.2. Selection of the model object (root element)
2.3. New empty ecore model
2.4. How to show properties view
2.5. New child on EPackage root node
2.6. Setting the properties of an EReference
2.7. a simple fsm metamodel
2.8. Generate ecore metamodel from kermeta
3.1. Create dynamic instance from an ecore file
4.1. Fsm_scratch_sample view