Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » QVT-OML » UML Tool + QVT(An integration between UML Tool and QVT)
UML Tool + QVT [message #1691209] Fri, 03 April 2015 11:21 Go to next message
eunjung park is currently offline eunjung parkFriend
Messages: 68
Registered: April 2015
Member
Hi,
I'm trying to use QVT in a UML Tool, StarUML which is open source.
StarUML provides several extension mechanisms for custom profiles.
The extensions are implemented by C#, so I cannot use directly the QVT functions.
Currently, I think C# can invoke an Java application of QVT, then after the application will finish its job, C# will get control again.
By the way, to do this, I need standalone java application of QVT.
Are there some way to do this?
If yes, how to do it?

Please give me some ideas.

Thank you and regards,
Eunjung Park

Re: UML Tool + QVT [message #1691223 is a reply to message #1691209] Fri, 03 April 2015 14:50 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 5472
Registered: July 2009
Senior Member
HI

QVTo can be used standalone.

Good luck.

Please share your solution with the community.

Regards

Ed Willink

On 03/04/2015 14:02, eunjung park wrote:
> Hi, I'm trying to use QVT in a UML Tool, StarUML which is open source.
> StarUML provides several extension mechanisms for custom profiles.
> The extensions are implemented by C#, so I cannot use directly the QVT
> functions.
> Currently, I think C# can invoke an Java application of QVT, then
> after the application will finish its job, C# will get control again.
> By the way, to do this, I need standalone java application of QVT.
> Are there some way to do this?
> If yes, how to do it?
>
> Please give me some ideas.
>
> Thank you and regards,
> Eunjung Park
>
>
Re: UML Tool + QVT [message #1691247 is a reply to message #1691209] Fri, 03 April 2015 20:50 Go to previous messageGo to next message
eunjung park is currently offline eunjung parkFriend
Messages: 68
Registered: April 2015
Member
Thank you for your information.
I'm so happy to hear that QVTo can be used standalone.
Do you have some guidelines for it?
I saw a java program file that might be related to it on the eclipse project introudictio site.
Do I need to include the code in my java application program?
I wonder if that is enough.

Thank you so much.
Regards,
Eunjung Park
Re: UML Tool + QVT [message #1691451 is a reply to message #1691247] Tue, 07 April 2015 11:09 Go to previous messageGo to next message
Carlos Gomez is currently offline Carlos GomezFriend
Messages: 63
Registered: October 2010
Member
Hello Eunjung,

Have you seen the InvokeInJava example?

Here the link:
https://wiki.eclipse.org/QVTOML/Examples/InvokeInJava

It works well without using blackbox.
Re: UML Tool + QVT [message #1691875 is a reply to message #1691451] Fri, 10 April 2015 09:22 Go to previous messageGo to next message
eunjung park is currently offline eunjung parkFriend
Messages: 68
Registered: April 2015
Member
Hi Carlos,

Thank you for your information.
I could find a solution to link a StarUML and QVTO(mediniQVT).
By the way, another problem arose.
The UML and XMI version difference.
StarUML5 supports XMI1.x, but the mediniQVT supports XMI2.x.
Additionally, although it says that StarUML5 support UML2.0, I don't know if the MOF of mediniQVT which is based on EMF is compatable with StarUML5.

Do you have any idea for these?

Thank you so much.

Regards,
Eunjung Park
Re: UML Tool + QVT [message #1691888 is a reply to message #1691875] Fri, 10 April 2015 10:14 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 5472
Registered: July 2009
Senior Member
Hi

You seem a little confused. MediniQVT is QVTr not QVTo.

It is probably more accurate to say that StarUML was Open Source. It's
most recent download on SourceForge is 5 years old and so predates many
recent developments, leading to your version compatibility issues.

An Open Source alternative to StarUML is of course Papyrus which is an
active part of Eclipse and so has natural and synchronized rather than
accidental integration of related Eclipse technologies such as UML2,
OCL, QVTo. Contributions to integration within Papyrus might get
incorporated in relevant Eclipse projects rather than being your
external add-on that may soon go obsolete.

Regards

Ed Willink



On 10/04/2015 10:22, eunjung park wrote:
> Hi Carlos,
>
> Thank you for your information.
> I could find a solution to link a StarUML and QVTO(mediniQVT).
> By the way, another problem arose.
> The UML and XMI version difference.
> StarUML5 supports XMI1.x, but the mediniQVT supports XMI2.x.
> Additionally, although it says that StarUML5 support UML2.0, I don't
> know if the MOF of mediniQVT which is based on EMF is compatable with
> StarUML5.
>
> Do you have any idea for these?
>
> Thank you so much.
>
> Regards,
> Eunjung Park
Re: UML Tool + QVT [message #1691948 is a reply to message #1691888] Fri, 10 April 2015 16:57 Go to previous messageGo to next message
eunjung park is currently offline eunjung parkFriend
Messages: 68
Registered: April 2015
Member
Hi, Ed.

I'm new on QVT, so there may be something wrong.
Actually, I don't know what differences there are between QVTo and QVTr.
I think I have to study it more.

By the way, what I want to do is to exactly express notations in a required form.
StarUML supports the mechanism with the name of the notation extension, so we could relatively freely represent custom defined notations.
For example, I could set a priority value on a tagged value of a newly defined notation and show it with an exclamation mark image in the corresponding view.
On top of it, I wanted to build up mapping rules, but it is quite limited in StarUML.
Now, I'm considering migration our extended features based on StarUML to the EMF based UML Tool.

Following your mention, I searched papyrus and read some articles, but I don't know if it has features which can support notation extensions.
Do you probably know a tool that supports features which is similar to the notation extenions?
Could you let me know?

Thank you so much.

Regards,
Eunjung Park
Re: UML Tool + QVT [message #1691953 is a reply to message #1691948] Fri, 10 April 2015 18:03 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 5472
Registered: July 2009
Senior Member
Hi

Sorry. If you want to do advanced things you need to acquire advanced
knowledge.

I have given you my advice. Follow it or ignore it as you choose.

You might try the Papyrus newsgroup.

Regards

Ed Willink


On 10/04/2015 17:57, eunjung park wrote:
> Hi, Ed.
>
> I'm new on QVT, so there may be something wrong.
> Actually, I don't know what differences there are between QVTo and QVTr.
> I think I have to study it more.
>
> By the way, what I want to do is to exactly express notations in a
> required form.
> StarUML supports the mechanism with the name of the notation
> extension, so we could relatively freely represent custom defined
> notations.
> For example, I could set a priority value on a tagged value of a newly
> defined notation and show it with an exclamation mark image in the
> corresponding view.
> On top of it, I wanted to build up mapping rules, but it is quite
> limited in StarUML.
> Now, I'm considering migration our extended features based on StarUML
> to the EMF based UML Tool.
>
> Following your mention, I searched papyrus and read some articles, but
> I don't know if it has features which can support notation extensions.
> Do you probably know a tool that supports features which is similar to
> the notation extenions?
> Could you let me know?
>
> Thank you so much.
>
> Regards,
> Eunjung Park
>
Re: UML Tool + QVT [message #1692301 is a reply to message #1691953] Tue, 14 April 2015 22:09 Go to previous messageGo to next message
eunjung park is currently offline eunjung parkFriend
Messages: 68
Registered: April 2015
Member
Hi Ed,
Thank you for your recommendation.
I think migration to the Papyrus is more suitable in my situation.
Now, I'm trying to understand the QVT and execute some examples on eclipse.
I could find model transformation with EMF based profile, but I couldn't find on Papyrus.
Could I find some materials regarding to tramsformation, i.e. a model which is generated by papyrus with a customed profile to a model?
I'm trying to find it but, it's hard.

Thank you so much.

Best,
Eunjung Park
Re: UML Tool + QVT [message #1692348 is a reply to message #1691953] Wed, 15 April 2015 08:52 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 5472
Registered: July 2009
Senior Member
Hi

QVTo does not yet provide a good UML example.

Papyrus uses QVTo, so try the Papyrus newsgroup.

Regards

Ed Willink


On 10/04/2015 19:03, Ed Willink wrote:
> Hi
>
> Sorry. If you want to do advanced things you need to acquire advanced
> knowledge.
>
> I have given you my advice. Follow it or ignore it as you choose.
>
> You might try the Papyrus newsgroup.
>
> Regards
>
> Ed Willink
>
>
> On 10/04/2015 17:57, eunjung park wrote:
>> Hi, Ed.
>>
>> I'm new on QVT, so there may be something wrong.
>> Actually, I don't know what differences there are between QVTo and QVTr.
>> I think I have to study it more.
>>
>> By the way, what I want to do is to exactly express notations in a
>> required form.
>> StarUML supports the mechanism with the name of the notation
>> extension, so we could relatively freely represent custom defined
>> notations.
>> For example, I could set a priority value on a tagged value of a
>> newly defined notation and show it with an exclamation mark image in
>> the corresponding view.
>> On top of it, I wanted to build up mapping rules, but it is quite
>> limited in StarUML.
>> Now, I'm considering migration our extended features based on StarUML
>> to the EMF based UML Tool.
>>
>> Following your mention, I searched papyrus and read some articles,
>> but I don't know if it has features which can support notation
>> extensions.
>> Do you probably know a tool that supports features which is similar
>> to the notation extenions?
>> Could you let me know?
>>
>> Thank you so much.
>>
>> Regards,
>> Eunjung Park
>>
>
Re: UML Tool + QVT [message #1692452 is a reply to message #1692348] Wed, 15 April 2015 19:33 Go to previous messageGo to next message
Carlos Gomez is currently offline Carlos GomezFriend
Messages: 63
Registered: October 2010
Member
Hello Eunjung,

In Papyrus, you can define your own profile extending UML elements. Use UML or EMF that depends you want to do. If your meta-model is not too complex and using the essential concepts of UML is enough, the best option is EMF. In contrast, if you want use behavioral elements (state machines, activity diagrams, etc) or "complex" structural elements (e.g. components), a good option is UML.

If EMF is your option and you want to define a graphical representation, you could try Sirius.

It's easier to define transformations using EMF metamodels, they are less complex. In UML, you have to understand well its metamodel to define transformation rules.

A tip for accessing a UML profile element (Stereotype) Elt.getAppliedStereotypes(), and then use StereotypedElt.getValue(stereotype, propertyName).

Good luck!!!




Re: UML Tool + QVT [message #1692529 is a reply to message #1692452] Thu, 16 April 2015 11:04 Go to previous message
eunjung park is currently offline eunjung parkFriend
Messages: 68
Registered: April 2015
Member
Hi Carlos,
Thank you so much for your information.
What I want to do is to implement some functions that other notations can connect or map to the UML diagrams.
As I following your guidance, I tried to Sirius based UMLTool, but I felt that it has some limitations to impelment what I want to do.
The tip you gave will be very helpful when I implement.
Thanks alot.

Best Regards,
Eunjung Park

Previous Topic:Sequence Diagrams Repository
Next Topic:transformation to adopt on metamodel-change?
Goto Forum:
  


Current Time: Thu Nov 23 00:21:16 GMT 2017

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

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