Skip to main content



      Home
Home » Modeling » Model-to-Model Transformation » Dependency transformation
Dependency transformation [message #1061563] Sun, 02 June 2013 20:10 Go to next message
Eclipse UserFriend
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 05:55 Go to previous message
Eclipse UserFriend
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 log() messages in java
Next Topic:Create UML Diagrams from other UML Diagrams
Goto Forum:
  


Current Time: Mon Jul 07 15:56:53 EDT 2025

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

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

Back to the top