Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » UML repository instance
UML repository instance [message #473228] Thu, 21 June 2007 21:00 Go to next message
Krzysztof Kaczmarski is currently offline Krzysztof KaczmarskiFriend
Messages: 88
Registered: July 2009
Member
Hi All,

I have a question concerning RSA behavior with object instance diagrams.
I programmed a tool which for a given uml model creates a model that
is a representation of UML repository for that model. It contains
instance specification objects that refer to UML metaclasses.
The goal is to illustrate how certain models look like from internal
UML's point of view.

So, I have an instance model (uml file) which is
correctly imported into RSA project. It recognizes that
InstanceSpecifications inside refer to metaclasses, which is right.
Then, it automatically opens UML metamodel to keep my model
consistent, which is just right again. The problem begins when I try
to visualize this model on an object diagram. It looks like RSA cannot
correctly draw this diagram when InstanceSpecification objects refer
to metaclasses. It draws a "class box" for a link instead of a line
between two instance objects.
Funny thing is that if my instance model does not refer to metaclasses
then RSA can draw its diagram without any problems.

The question is how can I visualize uml model that is refering to UML
metamodel as a model.

It seems to me that the solution could be to remove from UML metamodel
information that it is a metamodel and force RSA to treat it as a
normal model and get instance specifications correctly drawn.
Unfortunately I don't know how to do that... I opened
UML.metamodel.emx files but it looks like there is no information
inside that it is a metamodel... here I stuck.

I am not sure if I sketched the problem clearly. If anyone has any
ideas, please help.

I also considered conversion of uml file to svg file but it seems that
there are no tools that can do that for InstanceSpecification
objects... are there?

Thanks,
Krzysztof
Re: UML repository instance [message #473230 is a reply to message #473228] Fri, 22 June 2007 17:06 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Krzysztof ,

Links are instance specifications whose classifier is an association. In
your case, it does not sound like the classifier in question is an
association.
Even the classifier is an association, RSA might have a hard time
visualizing the link as a connector between other instance specifications
since there could be several alternative representations.

One suggestion might be to simply create your classifiers and associations
in the UML model, then in RSA, select all those classifiers and say "add to
object diagram". It should generate the instance specifications and diagram
correctly then.

Cheers,

- James.


"Krzysztof Kaczmarski" <krzysztof_kaczmarski@o2.pl> wrote in message
news:f5eot0$prh$1@build.eclipse.org...
> Hi All,
>
> I have a question concerning RSA behavior with object instance diagrams.
> I programmed a tool which for a given uml model creates a model that
> is a representation of UML repository for that model. It contains
> instance specification objects that refer to UML metaclasses.
> The goal is to illustrate how certain models look like from internal
> UML's point of view.
>
> So, I have an instance model (uml file) which is
> correctly imported into RSA project. It recognizes that
> InstanceSpecifications inside refer to metaclasses, which is right.
> Then, it automatically opens UML metamodel to keep my model
> consistent, which is just right again. The problem begins when I try
> to visualize this model on an object diagram. It looks like RSA cannot
> correctly draw this diagram when InstanceSpecification objects refer
> to metaclasses. It draws a "class box" for a link instead of a line
> between two instance objects.
> Funny thing is that if my instance model does not refer to metaclasses
> then RSA can draw its diagram without any problems.
>
> The question is how can I visualize uml model that is refering to UML
> metamodel as a model.
>
> It seems to me that the solution could be to remove from UML metamodel
> information that it is a metamodel and force RSA to treat it as a
> normal model and get instance specifications correctly drawn.
> Unfortunately I don't know how to do that... I opened
> UML.metamodel.emx files but it looks like there is no information
> inside that it is a metamodel... here I stuck.
>
> I am not sure if I sketched the problem clearly. If anyone has any
> ideas, please help.
>
> I also considered conversion of uml file to svg file but it seems that
> there are no tools that can do that for InstanceSpecification
> objects... are there?
>
> Thanks,
> Krzysztof
Re: UML repository instance [message #621881 is a reply to message #473228] Fri, 22 June 2007 17:06 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Krzysztof ,

Links are instance specifications whose classifier is an association. In
your case, it does not sound like the classifier in question is an
association.
Even the classifier is an association, RSA might have a hard time
visualizing the link as a connector between other instance specifications
since there could be several alternative representations.

One suggestion might be to simply create your classifiers and associations
in the UML model, then in RSA, select all those classifiers and say "add to
object diagram". It should generate the instance specifications and diagram
correctly then.

Cheers,

- James.


"Krzysztof Kaczmarski" <krzysztof_kaczmarski@o2.pl> wrote in message
news:f5eot0$prh$1@build.eclipse.org...
> Hi All,
>
> I have a question concerning RSA behavior with object instance diagrams.
> I programmed a tool which for a given uml model creates a model that
> is a representation of UML repository for that model. It contains
> instance specification objects that refer to UML metaclasses.
> The goal is to illustrate how certain models look like from internal
> UML's point of view.
>
> So, I have an instance model (uml file) which is
> correctly imported into RSA project. It recognizes that
> InstanceSpecifications inside refer to metaclasses, which is right.
> Then, it automatically opens UML metamodel to keep my model
> consistent, which is just right again. The problem begins when I try
> to visualize this model on an object diagram. It looks like RSA cannot
> correctly draw this diagram when InstanceSpecification objects refer
> to metaclasses. It draws a "class box" for a link instead of a line
> between two instance objects.
> Funny thing is that if my instance model does not refer to metaclasses
> then RSA can draw its diagram without any problems.
>
> The question is how can I visualize uml model that is refering to UML
> metamodel as a model.
>
> It seems to me that the solution could be to remove from UML metamodel
> information that it is a metamodel and force RSA to treat it as a
> normal model and get instance specifications correctly drawn.
> Unfortunately I don't know how to do that... I opened
> UML.metamodel.emx files but it looks like there is no information
> inside that it is a metamodel... here I stuck.
>
> I am not sure if I sketched the problem clearly. If anyone has any
> ideas, please help.
>
> I also considered conversion of uml file to svg file but it seems that
> there are no tools that can do that for InstanceSpecification
> objects... are there?
>
> Thanks,
> Krzysztof
Previous Topic:how to save a model with applied stereotypes and tag values
Next Topic:how to save a model with applied stereotypes and tag values
Goto Forum:
  


Current Time: Wed Apr 01 11:47:38 GMT 2020

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

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

Back to the top