Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "MoScript/Use Cases/Megamodel Population Part 2"

Line 9: Line 9:
 
===== Registering artifacts  =====
 
===== Registering artifacts  =====
  
program megamodelPopulation
+
program megamodelPopulation  
 +
 +
using {
  
using {
+
  ecore : !MetaMetamodel = OclUndefined
  ecore : !MetaMetamodel = OclUndefined
+
  familiesMetamodel : !Metamodel = OclUndefined
  familiesMetamodel : !Metamodel = OclUndefined
+
  personsMetamodel : !Metamodel = OclUndefined
  personsMetamodel : !Metamodel = OclUndefined
+
}
}
+

Revision as of 10:56, 23 December 2011

Megamodel Population Part 2

Continuing with the use case Megamodel Population Part 1, this use cases shows how to programmatically populate the megamodel with models, metamodels and transformations. For this purpose we are going to populate it with the content of an ATL project that can be found in the ATL Transformations Zoo

Environment Preparation
  • Download the Families to Persons source code from here
  • Unzip the project and import it into eclipse copying the fiels into the workspace
Registering artifacts
program megamodelPopulation 

using { 
  ecore : !MetaMetamodel = OclUndefined
  familiesMetamodel : !Metamodel = OclUndefined
  personsMetamodel : !Metamodel = OclUndefined
}

Back to the top