Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Using a reference model in uml2(Extending Standard models for local use)
Using a reference model in uml2 [message #517552] Mon, 01 March 2010 09:50 Go to next message
Mobius  is currently offline Mobius Friend
Messages: 42
Registered: January 2010
Member

Hi There,

I can't find the right way to use a reference model in UML2.

I wan't to extend an exising standard model (CIM) for local use (DSL?). I will create an profile for this, but that is on the metamodel level.
I wan't to be able to subclass a class from the reference model (with a localy defined stereotype) in order to alter the original class for local use. e.g. alter attributetypes, alter multiplicity, add local attributes etc ).

Any ideas?

Best Regards,

Mobius
Re: Using a reference model in uml2 [message #517571 is a reply to message #517552] Mon, 01 March 2010 11:28 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Mobius,

Generally you need to load the resource you want to reuse, or refer to,
into the editor, and then its contents will become available for use in
the properties view or for drag and drop from the outline.


Mobius wrote:
>
> Hi There,
>
> I can't find the right way to use a reference model in UML2.
>
> I wan't to extend an exising standard model (CIM) for local use
> (DSL?). I will create an profile for this, but that is on the
> metamodel level.
> I wan't to be able to subclass a class from the reference model (with
> a localy defined stereotype) in order to alter the original class for
> local use. e.g. alter attributetypes, alter multiplicity, add local
> attributes etc ).
> Any ideas?
>
> Best Regards,
>
> Mobius


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Using a reference model in uml2 [message #517677 is a reply to message #517571] Mon, 01 March 2010 16:40 Go to previous messageGo to next message
Vlad Varnica is currently offline Vlad VarnicaFriend
Messages: 546
Registered: July 2009
Location: Milton Keynes - UK
Senior Member
............................................................ ........................

[Updated on: Wed, 10 March 2010 14:02]

Report message to a moderator

Re: Using a reference model in uml2 [message #517895 is a reply to message #517552] Tue, 02 March 2010 13:22 Go to previous messageGo to next message
Mobius  is currently offline Mobius Friend
Messages: 42
Registered: January 2010
Member
Ed,

Figured as much, but there are some glitches.

I load a resource from the 'UML editor' menu. Goes well, and I can select from it in the properties window.
However :
- after loading the resource I don't get the oppurtunity to SAVE
- I don't get it in the outline
- After saving (create property for saving), closing and reloading the resource is gone. When loading it again I get
"AXParseException: Content is not allowed in prolog. (http://schema.omg.org/spec/XMI/2.1, 1, 1)".

Using latest Galileo. Resource is an XMI file that has no problems on its own.

I have some problems applying a profile too. The profile is just for adding Stereotypes to the standard UML profile in order to be able to extend and alter the reference model (which is a global standard information model).
After applying a stereotype it doesn't show up.

Are these small bugs?? Or am I doing this myself.

@vlad. Thanks, helpfull.

Best Regards,

Mobius
Re: Using a reference model in uml2 [message #517921 is a reply to message #517895] Tue, 02 March 2010 09:38 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Mobius,

Comments below.

Mobius wrote:
> Ed,
>
> Figured as much, but there are some glitches.
>
> I load a resource from the 'UML editor' menu. Goes well, and I can
> select from it in the properties window.
> However : - after loading the resource I don't get the oppurtunity to
> SAVE
Until you change the state of the model, there's nothing to save.
> - I don't get it in the outline
The basic editor doesn't have an outline view (the graphical one does)
but the resource should show up in the list of resources on the main
tab. It does for me.
> - After saving (create property for saving), closing and reloading the
> resource is gone. When loading it again I get "AXParseException:
> Content is not allowed in prolog. (http://schema.omg.org/spec/XMI/2.1,
> 1, 1)".
I couldn't reproduce that.
>
> Using latest Galileo. Resource is an XMI file that has no problems on
> its own.
>
> I have some problems applying a profile too. The profile is just for
> adding Stereotypes to the standard UML profile in order to be able to
> extend and alter the reference model (which is a global standard
> information model).
> After applying a stereotype it doesn't show up.
>
> Are these small bugs?? Or am I doing this myself.
Maybe there are bugs, but you'll need to provide detailed steps to
reproduce them and report them as bugzillas.
>
> @vlad. Thanks, helpfull.
>
> Best Regards,
>
> Mobius


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Using a reference model in uml2 [message #517978 is a reply to message #517552] Tue, 02 March 2010 16:16 Go to previous messageGo to next message
Mobius  is currently offline Mobius Friend
Messages: 42
Registered: January 2010
Member

Ed,

In the graphical editor I can import the resource. It becomes selectable and persistant.
I can't open the model in the UML editor though, I still get the previous error.

Question: how do I make a generalization from a class to a class in the reference model?

Best Regards,

Mobius
Re: Using a reference model in uml2 [message #517988 is a reply to message #517978] Tue, 02 March 2010 16:25 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Mobius,

I'm not at all familiar with the graphical editor. Maybe that's a
question for the UML2Tools newsgroup.


Mobius wrote:
>
> Ed,
>
> In the graphical editor I can import the resource. It becomes
> selectable and persistant.
> I can't open the model in the UML editor though, I still get the
> previous error.
>
> Question: how do I make a generalization from a class to a class in
> the reference model?
>
> Best Regards,
>
> Mobius


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Using a reference model in uml2 [message #518583 is a reply to message #517552] Thu, 04 March 2010 14:51 Go to previous messageGo to next message
Mobius  is currently offline Mobius Friend
Messages: 42
Registered: January 2010
Member

Ed,

Disarmed the parsing error. I loaded a XMI resource exported from Enterprise architect.
This XMI file doesn't have any problems in the UML editor, but as a resource it will give the above mentioned error.
Rename to .uml, move the namespace definitions from the XMI:xmi tag to the uml:model tag and remove all thecustomprofile (from EA) namespace references.

There are some discrepancies between the text and graphical UML editors for which I have asked a question on the UMLtools list.

Best Regards,

Mobius
Re: Using a reference model in uml2 [message #518584 is a reply to message #517552] Thu, 04 March 2010 14:52 Go to previous message
Mobius  is currently offline Mobius Friend
Messages: 42
Registered: January 2010
Member
ps. remove the XMI:xmi tags
Re: Using a reference model in uml2 [message #628278 is a reply to message #517571] Mon, 01 March 2010 16:40 Go to previous message
Vlad Varnica is currently offline Vlad VarnicaFriend
Messages: 546
Registered: July 2009
Location: Milton Keynes - UK
Senior Member
Hi Mobius,

Do you want to use the and add specific stereotypes on the top of the metamodel in order to have a kind of DSL or do you want to have a specific DSL metmaodel not related to UML ?

If the need is to add stereotypes on the top of UML then please have a look at one of my tutorials: http://www.tutorial-omondo.com/profileIntro/index.html
Previous Topic:Extending the Standard profile
Next Topic:Using a reference model in uml2
Goto Forum:
  


Current Time: Thu Mar 28 12:37:53 GMT 2024

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

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

Back to the top