Home » Modeling » Papyrus » How to extend OCL standard library in Papyrus
| | | |
Re: How to extend OCL standard library in Papyrus [message #1714946 is a reply to message #1714853] |
Tue, 17 November 2015 20:08 |
waseem anwar Messages: 4 Registered: November 2015 |
Junior Member |
|
|
Dear Ed Willink
Thanks for your early response. I think it is necessary to first describe my requirements. First of all, i am working to develop a complete MDA platform for embedded systems that includes: 1) Modeling tool 2) Transformation Engine and 3) Simulation. In my modeling approach, i have proposed few new functions in OCL standard library (OCLAny) so that end-user should be able to write constraints in UML / SYSML models through my proposed OCL extension. For OCL extension, i have used Xtext editor to customize standard OCL library. Now come to the first step i.e. Modeling tool. I have to include modeling tool in my framework so that end-user should be able to model requirements. I have selected Papyrus because it is open source and can be customized as per requirements. I cannot select other modeling tools like magic draw, RSA etc. due to their proprietary licenses. Furthermore, I cannot use GMT to develop my own modeling tool because it is very time-consuming. Consequently, i have selected Papyrus as a best choice and customize it for my framework. At the moment, papyrus is working fine in my framework to provide modeling facilities in UML and SYSML profiles. However, when it comes to write constraints through my proposed OCL extension, Papyrus OCL editor give syntax error because it cannot recognize my extended OCL functions. I just want to resolve syntax error issue for my new OCL functions because i do not need any OCL validation features. At this stage, I already done a lot of work on papyrus. I just want to know how to load complete OCL document in Papyrus such that my customized OCL functions should be recognize by Papyrus OCL editor (just syntax). As my only concern is syntax support, Is there any other way (may be without loading completeOCL) in papyrus to achieve that ? I don't want to ask end-users to write OCL constraints in separate file because it will increase complexity. I hope now you can understand the exact situation that why i am stick with papyrus and why i am only interested in syntax support for my customized OCL functions.
looking for your reply
regards
|
|
| |
Re: How to extend OCL standard library in Papyrus [message #1714999 is a reply to message #1714946] |
Wed, 18 November 2015 11:46 |
Ed Willink Messages: 7655 Registered: July 2009 |
Senior Member |
|
|
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi<br>
<br>
Since you are leveraging Ecipse to provide your modeling tool, you
should offset the many savings that you get from re-use from some
costs through contributing back enhancements. You cannot expect to
get everything included added functionality for free.<br>
<br>
I provided you with three solutions that I might work on one day.
If you want solutions sooner, you need to contribute. All the
underlying functionality is there, it's just the inadequate
'import' that is a blocker.<br>
<br>
With regards to not imposing an extra file on your users, that is
misguided. If the users want 10 lines of OCL, fine embed it in the
UML. If the users want 1000 lines of OCL then an extra file is a
much much better solution. Both approaches should work.<br>
<br>
Regards<br>
<br>
Ed Willink<br>
<br>
<br>
On 17/11/2015 20:08, waseem anwar wrote:<br>
</div>
<blockquote cite="mid:n2g1gj$ju6$1@xxxxxxxxe.org" type="cite">Dear
Ed Willink
<br>
<br>
Thanks for your early response. I think it is necessary to first
describe my requirements. First of all, i am working to develop a
complete MDA platform for embedded systems that includes: 1)
Modeling tool 2) Transformation Engine and 3) Simulation. In my
modeling approach, i have proposed few new functions in OCL
standard library (OCLAny) so that end-user should be able to write
constraints in UML / SYSML models through my proposed OCL
extension. For OCL extension, i have used Xtext editor to
customize standard OCL library. Now come to the first step i.e.
Modeling tool. I have to include modeling tool in my framework so
that end-user should be able to model requirements. I have
selected Papyrus because it is open source and can be customized
as per requirements. I cannot select other modeling tools like
magic draw, RSA etc. due to their proprietary licenses.
Furthermore, I cannot use GMT to develop my own modeling tool
because it is very time-consuming. Consequently, i have selected
Papyrus as a best choice and customize it for my framework. At the
moment, papyrus is working fine in my framework to provide
modeling facilities in UML and SYSML profiles. However, when it
comes to write constraints through my proposed OCL extension,
Papyrus OCL editor give syntax error because it cannot recognize
my extended OCL functions. I just want to resolve syntax error
issue for my new OCL functions because i do not need any OCL
validation features. At this stage, I already done a lot of work
on papyrus. I just want to know how to load complete OCL document
in Papyrus such that my customized OCL functions should be
recognize by Papyrus OCL editor (just syntax). As my only concern
is syntax support, Is there any other way (may be without loading
completeOCL) in papyrus to achieve that ? I don't want to ask
end-users to write OCL constraints in separate file because it
will increase complexity. I hope now you can understand the exact
situation that why i am stick with papyrus and why i am only
interested in syntax support for my customized OCL functions.
looking for your reply <br>
regards </blockquote>
<br>
</body>
</html>
|
|
|
Re: How to extend OCL standard library in Papyrus [message #1715279 is a reply to message #1714999] |
Fri, 20 November 2015 20:48 |
waseem anwar Messages: 4 Registered: November 2015 |
Junior Member |
|
|
Dear Letavernier and Willink
I am thankful to both of you for your valuable comments. First of all, I am agree with Camille Letavernier that this is one possible solution but it is lengthy solution as i just need few customized functions in OCL. However, this solution is in my mind if I will not find any other simple solution.
For Ed Willink Comments, I just want to clear one thing that is I am not developing anything commercial by using all open source software's. In fact, our framework will also be open source and freely available for relevant students, researchers and practitioners. Currently, we are in scientific publications phase and we will provide the link of our framework soon.
So far, I have removed some additional features of papyrus to meet the particular requirement of my framework. Whenever, i add any new feature in papyrus or any other corresponding eclipse plugin, i will definitely share the details with you. In addition, I never expect all things for free without contributing. For example, I have developed my own transformation engine with a lot of efforts though i have used all open source M2M and M2T tools. Further, my frame work will also be freely available (open source).
Finally, I want to say that I have post my query here just to get the simplest and quick solution of my issue to save my time because all senior members of this forum are experts of the domain and very helpful. In fact, the provided comments are very valuable for me to find the solution of my problem.
regards
|
|
|
Goto Forum:
Current Time: Thu Mar 28 23:46:03 GMT 2024
Powered by FUDForum. Page generated in 0.02650 seconds
|