|
|
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 |
|
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 |
wafaa 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,
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 #628429 is a reply to message #530901] |
Mon, 03 May 2010 13: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
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 |
wafaa 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
|
|
|
|
Powered by
FUDForum. Page generated in 0.04300 seconds