Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Model-to-Model Transformation » Behavioral features ( state machine) support(import and preserve behavioral features of UML models)
Behavioral features ( state machine) support [message #985914] Fri, 16 November 2012 16:44 Go to next message
Rihab Eltayeb is currently offline Rihab EltayebFriend
Messages: 6
Registered: November 2012
Junior Member
Hi all,

I have two models A and B, they are based on two meta models PIMmeta and PSMmeta respectively. The models represents both structural (classes) and behavioral ( state machines) features of UML models. All the models are based on UML using MagicDraw.
The goal is to transform the states in model A to the equivalent states in model B.

After creating the project and linking to the models,and in the the resulted ecore files from the models, only the structural parts(classes) were derived. All the state machines and Activity diagrams were ignored.

how to convert my models to .ecore while preserving the behavioral features?

Thanks in advance,
Re: Behavioral features ( state machine) support [message #985928 is a reply to message #985914] Fri, 16 November 2012 17:32 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

ECore does not support State Macghines so don't use it.

UML is much richer and what MagicDraw gave you; stick with it if you
want UML facilities.

Transformations can use UML as input and/or output.

Regards

Ed Willink


On 16/11/2012 16:46, Rihab Eltayeb wrote:
> Hi all,
>
> I have two models A and B, they are based on two meta models PIMmeta
> and PSMmeta respectively. The models represents both structural
> (classes) and behavioral ( state machines) features of UML models. All
> the models are based on UML using MagicDraw.
> The goal is to transform the states in model A to the equivalent
> states in model B.
>
> After creating the project and linking to the models,and in the the
> resulted ecore files from the models, only the structural
> parts(classes) were derived. All the state machines and Activity
> diagrams were ignored.
>
> how to convert my models to .ecore while preserving the behavioral
> features?
>
> Thanks in advance,
>
Re: Behavioral features ( state machine) support [message #986499 is a reply to message #985928] Tue, 20 November 2012 16:31 Go to previous messageGo to next message
Rihab Eltayeb is currently offline Rihab EltayebFriend
Messages: 6
Registered: November 2012
Junior Member
Thank you so much Ed,

Since ECore does not support my transformation then any tool based on ECore will not do it.
so which tool can I use?
Any examples? tutorials?
Re: Behavioral features ( state machine) support [message #986505 is a reply to message #986499] Tue, 20 November 2012 16:45 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

You are confusing meta-levels.

Ecore tooling may be used for arbitrary meta-models such as UML that
support StateMachines.

As a user you should not need to care what actually representation is
used by your tools, you just need to use meta-models that have your
concepts.

For instance if you want to model Money, that doesn't mean you cannot
use Ecore or UML. It just means you need to use a meta-model (defined
perhaps in Ecore or UML) that does support Money.

Regards

Ed Willink

On 20/11/2012 16:31, Rihab Eltayeb wrote:
> Thank you so much Ed,
> Since ECore does not support my transformation then any tool based on
> ECore will not do it.
> so which tool can I use?
> Any examples? tutorials?
>
Re: Behavioral features ( state machine) support [message #986506 is a reply to message #986499] Tue, 20 November 2012 16:51 Go to previous messageGo to next message
Rihab Eltayeb is currently offline Rihab EltayebFriend
Messages: 6
Registered: November 2012
Junior Member
I was also trying Medini QVT plugin, it is based on ECore,
The meta models have to be registered in order to use them as model type,
The registeration needs an ecore file ! again the ecore problem sustains.
Re: Behavioral features ( state machine) support [message #986524 is a reply to message #986506] Tue, 20 November 2012 17:51 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
No

Again you confuse metamodel levels.

The Eclipse MDT/UML2 implementation of the UML meta-model uses Ecore;
UML.ecore.

UML supports state machines and has an Ecore metanmodel; use UML for
StateMachine support, or write your own, or Google for one of the
available Ecore-based StateMachine models.

Most EMF-based transformation machines can transform UML models; set up
can be a bit tricky. I expect Medini QVT can too.

Regards

Ed Willink

On 20/11/2012 16:51, Rihab Eltayeb wrote:
> I was also trying Medini QVT plugin, it is based on ECore,
> The meta models have to be registered in order to use them as model type,
> The registeration needs an ecore file ! again the ecore problem sustains.
Re: Behavioral features ( state machine) support [message #986659 is a reply to message #986524] Wed, 21 November 2012 10:15 Go to previous messageGo to next message
Rihab Eltayeb is currently offline Rihab EltayebFriend
Messages: 6
Registered: November 2012
Junior Member
Hi Ed and thank you for the clarifications,
My understanding of ECore is that it provides a way to describe models. It also used for runtime support of models.
The ECore concept is similar to MOF concept in UML ( particularly EMOF).

You suggest to define PIMmeta:uml , PIMmeta is of type uml which is defined by uml.ecore.
This is fine. I tried that in QVT before and it works.
You were absolutely right, setup is needed, the question is how?
Now I want to refer to A:PIMmeta , A is an instance of PIMmeta, I got an error that PIMmeta is unkown model type.
I think the PIMmeta.uml have to be registered too. what do you think?
Re: Behavioral features ( state machine) support [message #986707 is a reply to message #986659] Wed, 21 November 2012 11:52 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

If you told me which of many possible tools, approaches and versions you
were using, I might be able to help.

It saves me (and you) a lot of tike if you prepare a small simple zipped
project that demonstrates your best attempt.

Regards

Ed Willink

On 21/11/2012 10:15, Rihab Eltayeb wrote:
> Hi Ed and thank you for the clarifications,
> My understanding of ECore is that it provides a way to describe
> models. It also used for runtime support of models.
> The ECore concept is similar to MOF concept in UML ( particularly EMOF).
>
> You suggest to define PIMmeta:uml , PIMmeta is of type uml which is
> defined by uml.ecore.
> This is fine. I tried that in QVT before and it works.
> You were absolutely right, setup is needed, the question is how?
> Now I want to refer to A:PIMmeta , A is an instance of PIMmeta, I got
> an error that PIMmeta is unkown model type.
> I think the PIMmeta.uml have to be registered too. what do you think?
Re: Behavioral features ( state machine) support [message #987143 is a reply to message #986707] Fri, 23 November 2012 19:15 Go to previous messageGo to next message
Rihab Eltayeb is currently offline Rihab EltayebFriend
Messages: 6
Registered: November 2012
Junior Member
Hi Ed,

I prepared the ziped file, but it seems that I don't have the right to attach something. No Browse link is available with the reply form.

The models were created using magicDraw 16.5, I tried a modeling project in Eclipse Helios to load my models but failed to represent behavior.

The transformation is tried using Medini QVT 1.7
Re: Behavioral features ( state machine) support [message #987154 is a reply to message #987143] Fri, 23 November 2012 21:26 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
HI

Medini QVT is not an Eclipse Foundation project so you should try the
Medini support.

Regards

Ed Willink

On 23/11/2012 19:15, Rihab Eltayeb wrote:
> Hi Ed,
>
> I prepared the ziped file, but it seems that I don't have the right to
> attach something. No Browse link is available with the reply form.
>
> The models were created using magicDraw 16.5, I tried a modeling
> project in Eclipse Helios to load my models but failed to represent
> behavior.
>
> The transformation is tried using Medini QVT 1.7
Re: Behavioral features ( state machine) support [message #987156 is a reply to message #987154] Fri, 23 November 2012 21:38 Go to previous messageGo to next message
Rihab Eltayeb is currently offline Rihab EltayebFriend
Messages: 6
Registered: November 2012
Junior Member
HI,
Using Medini QVT was an alternative way to solve the problem.
What I originally did is to create a new modeling project in Eclipse Helios,and add my models to it.
The loss of states prevents me from doing the transformation in Eclipse.
How to setup EMF to use UML meta models and preserve behaviors
Please help me in regard to Eclipse.
Re: Behavioral features ( state machine) support [message #987161 is a reply to message #987156] Fri, 23 November 2012 22:00 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

Try reading the UML tutorials so that you understand the relationship
between UML2 and EMF and stop make confused statements.

Then look for a UML example to copy for your chosen transformation tool.

Regards

Ed Willink

On 23/11/2012 21:38, Rihab Eltayeb wrote:
> HI,
> Using Medini QVT was an alternative way to solve the problem.
> What I originally did is to create a new modeling project in Eclipse
> Helios,and add my models to it.
> The loss of states prevents me from doing the transformation in Eclipse.
> How to setup EMF to use UML meta models and preserve behaviors
> Please help me in regard to Eclipse.
Previous Topic:[ATL] XSD to ECORE ATL transformation
Next Topic:[ATL]different transformed results between ATL configuration and Java programming transformation
Goto Forum:
  


Current Time: Thu Apr 25 13:56:04 GMT 2024

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

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

Back to the top