union of meta models [message #82676] |
Thu, 29 May 2008 14:20 |
Eclipse User |
|
|
|
Originally posted by: monnet2.etu.unige.ch
Hello,
I am a university student and doing some studies about meta model
composition.
I am new with ATL and I read the basic examples and the manual.
Now I started with my own simple example. My objective is to take 2 meta
models and do an union to produce a composed meta model.
So I took the Family.ecore and Persons.ecore meta models, and I want to
get a FamilyUnionPersons.ecore. The resulting meta model should contain
then elements of both meta models:
- Family
- Member
- Persons
For the moment, as I am beginning with ATL and I am faced to some
dificulties, I would like to at least produce a resulting meta model which
will contain elements of the Family.ecore meta model. I tried with Ecore
eClasses and now I am trying with Ecore EPackage in order to try to have
the EPackages from the Families meta model in the resulting meta model.
Here is the ATL file i created in order to get this resulting Ecore meta
model:
------------------------------------------------------------
module simpleUnion; -- Module Template
create FamiliesUnionPersons : Ecore from Families : Ecore, Persons : Ecore;
rule CopyOfFamilies {
from
fc : Families!"ecore:EPackage"
to
rc : FamiliesUnionPersons!"ecore:EPackage" (
name<-fc.name
)
}
------------------------------------------------------------
I created the launch configuration with:
Meta model: Ecore;
Source Models: Families.ecore, Persons.ecore;
Target Model: FamiliesUnionPersons.ecore
I am getting this error message in the console:
SEVERE: ****** BEGIN Stack Trace
SEVERE: message: cannot find metamodel element ecore:EPackage in model
Families
SEVERE: A.main() : ??#22 null
SEVERE: local variables = {self=simpleUnion : ASMModule}
SEVERE: local stack = []
SEVERE: A.__matcher__() : ??#1 null
SEVERE: local variables = {self=simpleUnion : ASMModule}
SEVERE: local stack = []
SEVERE: A.__matchCopyOfFamilies() : ??#2 null
SEVERE: local variables = {self=simpleUnion : ASMModule}
SEVERE: local stack = []
SEVERE: ****** END Stack Trace
INFO: Execution terminated due to error (see launch configuration to allow
continuation after errors).
SEVERE: cannot find metamodel element ecore:EPackage in model Families
java.lang.RuntimeException: cannot find metamodel element ecore:EPackage
in model Families
at
org.eclipse.m2m.atl.engine.vm.SimpleDebugger.error(SimpleDeb ugger.java:195)
at
org.eclipse.m2m.atl.engine.vm.StackFrame.printStackTrace(Sta ckFrame.java:95)
at
org.eclipse.m2m.atl.engine.vm.StackFrame.printStackTrace(Sta ckFrame.java:91)
at
org.eclipse.m2m.atl.engine.vm.ASMOperation.realExec(ASMOpera tion.java:296)
at org.eclipse.m2m.atl.engine.vm.ASMOperation.exec(ASMOperation .java:171)
at
org.eclipse.m2m.atl.engine.vm.nativelib.ASMOclAny.invoke(ASM OclAny.java:143)
at
org.eclipse.m2m.atl.engine.vm.nativelib.ASMOclAny.invoke(ASM OclAny.java:101)
at
org.eclipse.m2m.atl.engine.vm.ASMOperation.realExec(ASMOpera tion.java:240)
at org.eclipse.m2m.atl.engine.vm.ASMOperation.exec(ASMOperation .java:171)
at
org.eclipse.m2m.atl.engine.vm.nativelib.ASMOclAny.invoke(ASM OclAny.java:143)
at
org.eclipse.m2m.atl.engine.vm.nativelib.ASMOclAny.invoke(ASM OclAny.java:101)
at
org.eclipse.m2m.atl.engine.vm.ASMOperation.realExec(ASMOpera tion.java:240)
at org.eclipse.m2m.atl.engine.vm.ASMOperation.exec(ASMOperation .java:171)
at
org.eclipse.m2m.atl.engine.vm.ASMInterpreter.<init>(ASMInterpreter.java:299)
at org.eclipse.m2m.atl.engine.AtlLauncher.launch(AtlLauncher.ja va:169)
at org.eclipse.m2m.atl.engine.AtlLauncher.launch(AtlLauncher.ja va:111)
at org.eclipse.m2m.atl.engine.AtlLauncher.launch(AtlLauncher.ja va:87)
at
org.eclipse.m2m.atl.adt.launching.AtlRegularVM.runAtlLaunche r(AtlRegularVM.java:326)
at
org.eclipse.m2m.atl.adt.launching.AtlRegularVM.runAtlLaunche r(AtlRegularVM.java:426)
at
org.eclipse.m2m.atl.adt.launching.AtlRegularVM.launch(AtlReg ularVM.java:398)
at
org.eclipse.m2m.atl.adt.launching.AtlLaunchConfigurationDele gate.launch(AtlLaunchConfigurationDelegate.java:42)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:759)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:608)
at
org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(D ebugUIPlugin.java:899)
at
org.eclipse.debug.internal.ui.DebugUIPlugin$7.run(DebugUIPlu gin.java:1102)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Do you have any idea on what I am doing wrong?
Thank you in advance for any help.
|
|
|
|
Powered by
FUDForum. Page generated in 0.01894 seconds