Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Model-to-Model Transformation » Dependency transformation
Dependency transformation [message #1061563] Mon, 03 June 2013 00:10 Go to next message
Mahin Abbasipour is currently offline Mahin Abbasipour
Messages: 14
Registered: June 2013
Junior Member
Hi,

I created a very simple input and output uml profiles in eclipse galileo and want to know if my transformation works for dependency or not. When I open the diagram of created output model by choosing "Initialize Class Diagram", it has only two classes without any dependency between them. Is there something wrong? Here is the simple code:


module dependency;
create OUT : MM1 from IN : MM;

rule models {
from
source: MM!Model
to
target: MM1!Model (
name <- 'OutputModel'
)
}


rule classes {
from s:MM!Class
to t:MM1!Class (name <-s.name, package <-s.package)
}


rule S1 {
from s:MM!S1
to t:MM1! T1 (
base_Class <- s.base_Class)
}


rule S2 {
from s:MM!S2
to t:MM1!T2 (
base_Class <- s.base_Class)
}



rule D1 {
from s:MM!Dependency

to t: MM1!Dependency (
name <- 'D',
-- package <- s.package,
client <- s.client,
supplier <- s.supplier

),
t2: MM1!DT1 (
base_Dependency <- t
)

}
Re: Dependency transformation [message #1061615 is a reply to message #1061563] Mon, 03 June 2013 09:55 Go to previous message
Ed Willink is currently offline Ed Willink
Messages: 4045
Registered: July 2009
Senior Member
Hi

a) Eclipse Galileo is very old, so your favourite tool may well have
improved since then.

b) your code looks like ATL to me, so you may get a more helpful
response on the ATL newsgroup.

c) UML, in particular UML Profiles, are challenging so you need someone
who understands UML within ATL to answer, and they will probably need a
much fuller reproduction of your problem. A zipped project with launch
configuration is always good for a non-trivial question.

Regards

Ed Willink


On 03/06/2013 02:29, Mahin Abbasipour wrote:
> Hi,
>
> I created a very simple input and output uml profiles in eclipse
> galileo and want to know if my transformation works for dependency or
> not. When I open the diagram of created output model by choosing
> "Initialize Class Diagram", it has only two classes without any
> dependency between them. Is there something wrong? Here is the simple
> code:
>
>
> module dependency;
> create OUT : MM1 from IN : MM;
>
> rule models {
> from
> source: MM!Model
> to
> target: MM1!Model (
> name <- 'OutputModel'
> )
> }
>
>
> rule classes {
> from s:MM!Class
> to t:MM1!Class (name <-s.name, package <-s.package)
> }
>
>
> rule S1 {
> from s:MM!S1
> to t:MM1! T1 (
> base_Class <- s.base_Class)
> }
>
>
> rule S2 {
> from s:MM!S2
> to t:MM1!T2 (
> base_Class <- s.base_Class)
> }
>
>
>
> rule D1 {
> from s:MM!Dependency
> to t: MM1!Dependency (
> name <- 'D',
> -- package <- s.package,
> client <- s.client,
> supplier <- s.supplier
>
> ),
> t2: MM1!DT1 (
> base_Dependency <- t
> )
>
> }
>
Previous Topic:[QVTo] how to use two target sources?
Next Topic:Create UML Diagrams from other UML Diagrams
Goto Forum:
  


Current Time: Tue Sep 16 19:32:51 GMT 2014

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

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