Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » [EVL] Validate UML Model from Papyrus
[EVL] Validate UML Model from Papyrus [message #1011459] Tue, 19 February 2013 15:35 Go to next message
André Ribeiro is currently offline André RibeiroFriend
Messages: 55
Registered: January 2013
Member
Hi everyone,

I'm developing a UML Profile using Papyrus and I would like to know if it's possible to validate a UML model that uses my profile using the EVL.
Thanks in advance.



André Ribeiro
IST Lisbon
Portugal
Re: [EVL] Validate UML Model from Papyrus [message #1011573 is a reply to message #1011459] Tue, 19 February 2013 20:39 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2154
Registered: July 2009
Location: York, UK
Senior Member

Hi André,

We've worked with Papyrus and Epsilon before (I must admit it was a while ago) so I wouldn't expect any problems with this.

Cheers,
Dimitris
Re: [EVL] Validate UML Model from Papyrus [message #1011590 is a reply to message #1011573] Tue, 19 February 2013 21:29 Go to previous messageGo to next message
André Ribeiro is currently offline André RibeiroFriend
Messages: 55
Registered: January 2013
Member
Many thanks for the answer Dimitris.
Do you know if there is any example online that performs such a validation?


André Ribeiro
IST Lisbon
Portugal
Re: [EVL] Validate UML Model from Papyrus [message #1011599 is a reply to message #1011590] Tue, 19 February 2013 21:51 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2154
Registered: July 2009
Location: York, UK
Senior Member

Hi André,

I've added a minimal example that demonstrates using EVL to validate a Papyrus UML model on which I've applied the built-in Ecore profile under [1].

Cheers,
Dimitris

[1] https://dev.eclipse.org/svnroot/modeling/org.eclipse.epsilon/trunk/examples/org.eclipse.epsilon.examples.evl.papyrus.profile
Re: [EVL] Validate UML Model from Papyrus [message #1011609 is a reply to message #1011599] Tue, 19 February 2013 22:20 Go to previous messageGo to next message
André Ribeiro is currently offline André RibeiroFriend
Messages: 55
Registered: January 2013
Member
Thank you very much Dimitris!
You've made my day! Very Happy


André Ribeiro
IST Lisbon
Portugal
Re: [EVL] Validate UML Model from Papyrus [message #1011612 is a reply to message #1011609] Tue, 19 February 2013 22:29 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2154
Registered: July 2009
Location: York, UK
Senior Member

Great! Any problems, please let us know.

Cheers,
Dimitris (incidentally, in Lisbon tomorrow)
Re: [EVL] Validate UML Model from Papyrus [message #1014359 is a reply to message #1011612] Mon, 25 February 2013 16:50 Go to previous messageGo to next message
André Ribeiro is currently offline André RibeiroFriend
Messages: 55
Registered: January 2013
Member
Hi Dimitris,

I've written some constraints, but some doubts have arose:

1. In my UML profile I have stereotypes that extend metaclasses like Class or Association. In the context of a stereotype, is it possible to get the metaclass it extends?
2. Or should I use the context of the metaclass and get the stereotype? If this is the case, how can I do it? (I've done it 'self.getAppliedStereotypes()')
3. I'm also using Composite Structure Diagrams. How can I access the classes that compose a certain class? (I've done it with 'self.ownedMember')

Thanks a lot.


André Ribeiro
IST Lisbon
Portugal

[Updated on: Mon, 25 February 2013 17:13]

Report message to a moderator

Re: [EVL] Validate UML Model from Papyrus [message #1014525 is a reply to message #1014359] Tue, 26 February 2013 01:19 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2154
Registered: July 2009
Location: York, UK
Senior Member

Hi Andre,

Apologies for the slow reply. After reading your updated post I understand that you've now solved these problems but please let me know if this is not the case.

Cheers,
Dimitris
Re: [EVL] Validate UML Model from Papyrus [message #1014846 is a reply to message #1014359] Tue, 26 February 2013 15:19 Go to previous messageGo to next message
André Ribeiro is currently offline André RibeiroFriend
Messages: 55
Registered: January 2013
Member
Hi Dimitris,

The following question still makes sense or the recommended way to do it, is using the context of the metaclass?
André Ribeiro wrote on Mon, 25 February 2013 16:50
Hi Dimitris,
1. In my UML profile I have stereotypes that extend metaclasses like Class or Association. In the context of a stereotype, is it possible to get the metaclass it extends?


Thanks.


André Ribeiro
IST Lisbon
Portugal
Re: [EVL] Validate UML Model from Papyrus [message #1015513 is a reply to message #1014846] Fri, 01 March 2013 00:53 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2154
Registered: July 2009
Location: York, UK
Senior Member

Hi Andre,

#2 looks fine. An alternative might be to use the getExtendedMetaclasses() method of Stereotype.

Cheers,
Dimitris
Re: [EVL] Validate UML Model from Papyrus [message #1015645 is a reply to message #1015513] Fri, 01 March 2013 14:06 Go to previous message
André Ribeiro is currently offline André RibeiroFriend
Messages: 55
Registered: January 2013
Member
Many thanks Dimitris Smile

André Ribeiro
IST Lisbon
Portugal
Previous Topic:Validation after Transformation
Next Topic:[EGL] Error when adding Enumeration Classes to the Model
Goto Forum:
  


Current Time: Fri Mar 29 04:35:37 GMT 2024

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

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

Back to the top