Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » how to create object diagram using UML 2 eclipse tool
icon4.gif  how to create object diagram using UML 2 eclipse tool [message #530842] Sat, 01 May 2010 17:08 Go to next message
wafaa is currently offline wafaaFriend
Messages: 163
Registered: January 2010
Location: Egypt
Senior Member
Hi all

I wonder how to draw object from a class using the Eclipse UML 2 tool, it was not mentioned there in the Tutorial and I need to create a full object diagram with instances of classes and Association, can u suggest me what to use instance value, instance specification, by the way i use uml editor not he graphical one:::

wafaa
Re: how to create object diagram using UML 2 eclipse tool [message #530901 is a reply to message #530842] Sun, 02 May 2010 14:14 Go to previous messageGo to next message
wafaa is currently offline wafaaFriend
Messages: 163
Registered: January 2010
Location: Egypt
Senior Member
Hi again,

does that mean noone knows, Ok i have tried the instance specifcation
Can any one be volunteer to say how to use it in link instantiation and how to create its member ends

please i am stuck in this point and need help


PLZ
Re: how to create object diagram using UML 2 eclipse tool [message #531037 is a reply to message #530901] Mon, 03 May 2010 13:15 Go to previous messageGo to next message
Christian Damus is currently offline Christian DamusFriend
Messages: 1270
Registered: July 2009
Location: Canada
Senior Member

Hi, PLZ,

Just because nobody answered on their free time over the week-end,
doesn't mean that nobody knows an answer. :-)

A link is an InstanceSpecification whose classifier is an Association.
If you don't have an association (but just a property typed by some
Class) then you can't have a link.

For each end of the association you will need a Slot whose value is an
InstanceValue referencing the InstanceSpecification at that end of the
link. These slots reference the corresponding member ends of the
association as their definingFeature.

Depending on whether or how many of the associated Classes have
navigable properties in this association, your InstanceSpecifications on
either end of the link may also have Slots defined by those ends, with
InstanceValues referencing the InstanceSpecification at the other end.

Even if you are not using the object diagramming tool from the UML2
Tools project, you might nonetheless want to use it to draw a diagram
representative of your scenario to see what it produces in the model ...

HTH,

Christian


On 02/05/10 10:14 AM, wafaa wrote:
> Hi again,
>
> does that mean noone knows, Ok i have tried the instance specifcation
> Can any one be volunteer to say how to use it in link instantiation and
> how to create its member ends
> please i am stuck in this point and need help
>
>
> PLZ
Re: how to create object diagram using UML 2 eclipse tool [message #531908 is a reply to message #531037] Thu, 06 May 2010 14:00 Go to previous messageGo to next message
wafaa is currently offline wafaaFriend
Messages: 163
Registered: January 2010
Location: Egypt
Senior Member
Christian W. Damus wrote on Mon, 03 May 2010 16:15
Hi, PLZ,

Just because nobody answered on their free time over the week-end,
doesn't mean that nobody knows an answer. Smile

A link is an InstanceSpecification whose classifier is an Association.
If you don't have an association (but just a property typed by some
Class) then you can't have a link.

For each end of the association you will need a Slot whose value is an
InstanceValue referencing the InstanceSpecification at that end of the
link. These slots reference the corresponding member ends of the
association as their definingFeature.

Depending on whether or how many of the associated Classes have
navigable properties in this association, your InstanceSpecifications on
either end of the link may also have Slots defined by those ends, with
InstanceValues referencing the InstanceSpecification at the other end.

Even if you are not using the object diagramming tool from the UML2
Tools project, you might nonetheless want to use it to draw a diagram
representative of your scenario to see what it produces in the model ...

HTH,

Christian






Thanks Aot Christian for ur time and reply
I got ur approach which was useful for me, and with my expirements i found a simple approach for that,
1- Create a slot in the src end of the desired association: put the classifier as the type of that class (the src of the assoctation)
2- create an instance value and put the type and he instance the target class of the association

This will make direct link between the two insatces while ur will create an extra class for the association



Thanks again

wafaa

[Updated on: Thu, 06 May 2010 14:04]

Report message to a moderator

Re: how to create object diagram using UML 2 eclipse tool [message #556527 is a reply to message #531908] Wed, 01 September 2010 16:29 Go to previous messageGo to next message
Chica is currently offline ChicaFriend
Messages: 6
Registered: September 2010
Junior Member
Hey Wafaa,

I'm trying to create an object Diagram also. Can you paste the code of the one that u created please?

Thanks.
chica
Re: how to create object diagram using UML 2 eclipse tool [message #628429 is a reply to message #530901] Mon, 03 May 2010 13:15 Go to previous messageGo to next message
Christian Damus is currently offline Christian DamusFriend
Messages: 1270
Registered: July 2009
Location: Canada
Senior Member

Hi, PLZ,

Just because nobody answered on their free time over the week-end,
doesn't mean that nobody knows an answer. :-)

A link is an InstanceSpecification whose classifier is an Association.
If you don't have an association (but just a property typed by some
Class) then you can't have a link.

For each end of the association you will need a Slot whose value is an
InstanceValue referencing the InstanceSpecification at that end of the
link. These slots reference the corresponding member ends of the
association as their definingFeature.

Depending on whether or how many of the associated Classes have
navigable properties in this association, your InstanceSpecifications on
either end of the link may also have Slots defined by those ends, with
InstanceValues referencing the InstanceSpecification at the other end.

Even if you are not using the object diagramming tool from the UML2
Tools project, you might nonetheless want to use it to draw a diagram
representative of your scenario to see what it produces in the model ...

HTH,

Christian


On 02/05/10 10:14 AM, wafaa wrote:
> Hi again,
>
> does that mean noone knows, Ok i have tried the instance specifcation
> Can any one be volunteer to say how to use it in link instantiation and
> how to create its member ends
> please i am stuck in this point and need help
>
>
> PLZ
Re: how to create object diagram using UML 2 eclipse tool [message #628436 is a reply to message #531037] Thu, 06 May 2010 14:00 Go to previous messageGo to next message
wafaa is currently offline wafaaFriend
Messages: 163
Registered: January 2010
Location: Egypt
Senior Member
Christian W. Damus wrote on Mon, 03 May 2010 16:15
> Hi, PLZ,
>
> Just because nobody answered on their free time over the week-end,
> doesn't mean that nobody knows an answer. :)
>
> A link is an InstanceSpecification whose classifier is an Association.
> If you don't have an association (but just a property typed by some
> Class) then you can't have a link.
>
> For each end of the association you will need a Slot whose value is an
> InstanceValue referencing the InstanceSpecification at that end of the
> link. These slots reference the corresponding member ends of the
> association as their definingFeature.
>
> Depending on whether or how many of the associated Classes have
> navigable properties in this association, your InstanceSpecifications on
> either end of the link may also have Slots defined by those ends, with
> InstanceValues referencing the InstanceSpecification at the other end.
>
> Even if you are not using the object diagramming tool from the UML2
> Tools project, you might nonetheless want to use it to draw a diagram
> representative of your scenario to see what it produces in the model ...
>
> HTH,
>
> Christian



Thanks Aot Christian for ur time and reply
I got ur approach which was useful for me, and with my expirements i found a simple approach for that, if u want i will put it

Thanks again

wafaa
Re: how to create object diagram using UML 2 eclipse tool [message #628621 is a reply to message #531908] Wed, 01 September 2010 16:29 Go to previous message
Chica is currently offline ChicaFriend
Messages: 6
Registered: September 2010
Junior Member
Hey Wafaa,

I'm trying to create an object Diagram also. Can you paste the code of the one that u created please?

Thanks.
chica
Previous Topic:Problem copy sterotype
Next Topic:Problem applying stereotype
Goto Forum:
  


Current Time: Fri Mar 29 10:26:17 GMT 2024

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

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

Back to the top