Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Meta Models
Meta Models [message #1697699] Sat, 06 June 2015 13:57 Go to next message
Muhammad Kashif is currently offline Muhammad KashifFriend
Messages: 52
Registered: April 2015
Member
Hi

I want to make the metamodel using MOF. anybody can please illustrate the way to create EMF metamodel and then I want to use that meta model in uml profile diagram which will then be applied to sysml model.

Thanku
Re: Meta Models [message #1697700 is a reply to message #1697699] Sat, 06 June 2015 14:27 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30354
Registered: July 2009
Senior Member
Ask about UML profiles on the UML forum after reading:
https://www.eclipse.org/modeling/mdt/uml2/docs/articles/Introduction_to_UML2_Profiles/article.html

On 06/06/2015 3:57 PM, Ali Khan wrote:
> Hi
>
> I want to make the metamodel using MOF. anybody can please illustrate
> the way to create EMF metamodel and then I want to use that meta model
> in uml profile diagram which will then be applied to sysml model.
>
> Thanku
Re: Meta Models [message #1697701 is a reply to message #1697699] Sat, 06 June 2015 14:52 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6439
Registered: July 2009
Senior Member
Hi

There is no explicit MOF support in the main Eclipse modeling projects.

However Essential MOF is available: You can create an EMOF model from an
Ecore model just by using SaveAS.. to *.emof.

UML based on MOF is available: You can create a UML model from an Ecore
model by using the Convert To UML action from the Sample Ecore Editor
menu entry for an EPackage.

Once you have a UML model there are SaveAs... *.cmof capabilities.

Only a UML model can be used in conjunction with other UML profiles and
models.

Regards

Ed Willink


On 06/06/2015 14:57, Ali Khan wrote:
> Hi
>
> I want to make the metamodel using MOF. anybody can please illustrate
> the way to create EMF metamodel and then I want to use that meta model
> in uml profile diagram which will then be applied to sysml model.
>
> Thanku
Re: Meta Models [message #1697703 is a reply to message #1697701] Sat, 06 June 2015 16:59 Go to previous messageGo to next message
Muhammad Kashif is currently offline Muhammad KashifFriend
Messages: 52
Registered: April 2015
Member
I do have idea about profiles. Actually I want to extend stereotypes in my profile with "state", "transition" etc derived from MOF not from UML.
UML concepts "Behavioral state machine" and "Transition" must also be derived from MOF, so we can use MOF directly instead of referring to UML.
Re: Meta Models [message #1697707 is a reply to message #1697703] Sat, 06 June 2015 19:03 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6439
Registered: July 2009
Senior Member
Hi

I think you should go back to basics and question what you are really
trying to do.

The MOF 2.4.1 specification has zero mentions of stereotype in any form
and only three mentions of profile, all of them in the form "UML profile".

Regards

Ed Willink

On 06/06/2015 17:59, Ali Khan wrote:
> I do have idea about profiles. Actually I want to extend stereotypes
> in my profile with "state", "transition" etc derived from MOF not from
> UML.
> UML concepts "Behavioral state machine" and "Transition" must also be
> derived from MOF, so we can use MOF directly instead of referring to UML.
Re: Meta Models [message #1697718 is a reply to message #1697707] Sun, 07 June 2015 08:56 Go to previous messageGo to next message
Muhammad Kashif is currently offline Muhammad KashifFriend
Messages: 52
Registered: April 2015
Member
Hi

I think I am unable to formulate my thoughts clearly, actually what I want to do is that I am defining a non-UML modeling language, based on MOF and for that I cannot extend from UML meta-classes. Let me know if there is any facility in Papyrus through which we can directly inherit from MOF meta-classes. I hope I have myself clear.

let me know whether I can model the structure in SMD in papyrus or not,, if yes how?

Thankyou
Re: Meta Models [message #1697720 is a reply to message #1697718] Sun, 07 June 2015 09:51 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6439
Registered: July 2009
Senior Member
Hi

You need to distinguish your meta/tooling-levels.

You can define your own modeling languages in whatever way you like.
This does not necessarily restrict your choice of tooling.

You could easily choose to use/specify using Ecore or UML tools to
support your design.

The OMG UML specification uses MOF as the ultimate specification.

Ecore tooling uses Ecore as the ultimate tooling.

Eclipse UML again uses Ecore as the ultimate tooling.

If you really need to start again, you may find that Sirius is a better
choice than Papyrus since you have no need for the richness of UML.

Regards

Ed Willink


On 07/06/2015 09:56, Ali Khan wrote:
> Hi
>
> I think I am unable to formulate my thoughts clearly, actually what I
> want to do is that I am defining a non-UML modeling language, based on
> MOF and for that I cannot extend from UML meta-classes. Let me know if
> there is any facility in Papyrus through which we can directly inherit
> from MOF meta-classes. I hope I have myself clear.
>
> let me know whether I can model the structure in SMD in papyrus or
> not,, if yes how?
>
> Thankyou
>
Re: Meta Models [message #1697750 is a reply to message #1697720] Mon, 08 June 2015 07:39 Go to previous messageGo to next message
Muhammad Kashif is currently offline Muhammad KashifFriend
Messages: 52
Registered: April 2015
Member
Ok. Let me make this more precise. Can we inherit directly from MOF classes. if yes how?
Re: Meta Models [message #1697766 is a reply to message #1697750] Mon, 08 June 2015 09:28 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6439
Registered: July 2009
Senior Member
On 08/06/2015 08:39, Ali Khan wrote:
> Ok. Let me make this more precise. Can we inherit directly from MOF
> classes. if yes how?

What does "we inherit" mean? Clearly "we" as people have difficulty
inheriting from classes.

If you mean can your custom Java classes extend MOF Java classes? Yes,
provided you acquire some MOF Java classes. Eclipse does not provide any.

If you mean can you develop a custom model containing Classes that
specialize MOF Classes? Yes, provided you have a model of the MOF
classes. Eclipse does not provide one, so you will have to develop it
yourself or adjust the OMG distribution to be useful.

Regards

Ed Willink
Re: Meta Models [message #1697768 is a reply to message #1697766] Mon, 08 June 2015 10:22 Go to previous messageGo to next message
Muhammad Kashif is currently offline Muhammad KashifFriend
Messages: 52
Registered: April 2015
Member
Thankyou fro your response.

by "we inherit" I mean that is it possible to extend the stereotype in uml profile diagram with MOF class In papyrus.
if yes how can i achieve that in papyrus?
If not what is the alternative?

Thanku
Re: Meta Models [message #1697772 is a reply to message #1697768] Mon, 08 June 2015 11:21 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6439
Registered: July 2009
Senior Member
Hi

If your question is about Papyrus, please use the Papyrus newsgroup.

I have explained that MOF is a specification that inspires various
implementations. If you want to use precisely MOF then you must use
models that are precisely MOF and acquiring those models is your
responsibility. Once you have a MOF model in UML using stereotypes
should be just like using stereotypes for other UML purposes.

I have also suggested that you go back to basics in understanding why
you want to use MOF. Overall your questions are rather close to
gibberish. If an analogy helps, it is almost as if you keep asking
whether your email client allows you to send messages in Unicode. Er
yes, but it is all hidden, and for some email clients may only work if
you use an ASCII subset.

Regards

Ed Willink




On 08/06/2015 11:22, Ali Khan wrote:
> Thankyou fro your response.
>
> by "we inherit" I mean that is it possible to extend the stereotype in
> uml profile diagram with MOF class In papyrus.
> if yes how can i achieve that in papyrus?
> If not what is the alternative?
>
> Thanku
>
Previous Topic:How can I integrate ecore models?
Next Topic:enumeration
Goto Forum:
  


Current Time: Wed Aug 21 16:03:34 GMT 2019

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

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

Back to the top