Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » MetaSysml to MetaAcme simple rules transformation problem(Transformation problem)
MetaSysml to MetaAcme simple rules transformation problem [message #1689577] Mon, 23 March 2015 21:50
FSM ISFSM is currently offline FSM ISFSMFriend
Messages: 21
Registered: March 2015
Junior Member
Hello everybody,

I'm working on some issues I'm meeting trying to make transformation rules from MetaSysml to MetaAcme.

Here are 2 very simple rules:

rule Bddiagram2Family {
	from  fam: MetaSysml!BDDiagram
	to  
	     t : MetaAcme!Family (  name        <- fam.name
)}

rule   Bddiagram2System {
	from sys: MetaSysml!BDDiagram 
	to  
	     t : MetaAcme!System ( 
		  name     <- 'System' ,
		 family   <- s.extend
)}


The problem is that I get this error when executed:

org.eclipse.m2m.atl.engine.emfvm.VMException: Trying to register several rules as default for element org.eclipse.emf.ecore.impl.DynamicEObjectImpl@9fff91 (eClass: org.eclipse.emf.ecore.impl.EClassImpl@68160c (name: BDDiagram) (instanceClassName: null) (abstract: false, interface: false)) : Bddiagram2Family and Bddiagram2System

Do I need to modify the metamodel? or maybe some other solutions exists...

Thank you very much.
Previous Topic:No output file (or model) after execution
Next Topic: transformation of MetaSysml to MetaAcme
Goto Forum:
  


Current Time: Sun Sep 24 19:39:38 GMT 2017

Powered by FUDForum. Page generated in 0.02389 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software