Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » dependency and allocation
dependency and allocation [message #477008] Fri, 29 February 2008 21:32 Go to next message
charfi asma is currently offline charfi asmaFriend
Messages: 78
Registered: July 2009
Member
Hi,

I create a profile to model association between application and architecture
of a System On Chip.
I want to associate data to memory (I have a stereotype called Memory) but I
can not create dependency between ports and the component stereotyped
Memory.
Does UML allow this?
And if it is not possible to link port to a component, how can I associate
data that flows through ports with the component stereotyped Memory?

thanks a lot

Asma
Re: dependency and allocation [message #477011 is a reply to message #477008] Fri, 29 February 2008 16:57 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Charfi,

I'm not certain what exactly you mean by "..but I cannot create dependency
between ports and the component ....".
You say that you want to somehow "link port to a component".


A Component is an EncapsulatedClassifier and thereby has an ownedPorts
collection (ports are owned by composition).

I would need some clarification on what you are trying to accomplish.

- James.


"charfi asma" <asma@charfi.com> wrote in message
news:fq8u1f$pr$2@build.eclipse.org...
> Hi,
>
> I create a profile to model association between application and
> architecture of a System On Chip.
> I want to associate data to memory (I have a stereotype called Memory) but
> I can not create dependency between ports and the component stereotyped
> Memory.
> Does UML allow this?
> And if it is not possible to link port to a component, how can I associate
> data that flows through ports with the component stereotyped Memory?
>
> thanks a lot
>
> Asma
>
Re: dependency and allocation [message #477012 is a reply to message #477011] Fri, 29 February 2008 17:06 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
.... You are perhaps trying to associate ports on different Components in
which case you use a Dependency or possibly an InformationFlow or possibly
Connector if you are using the component with the context of some
StructuredClassifier...

I would need more info.

- James.


"James Bruck" <jbruck@ca.ibm.com> wrote in message
news:fq9dig$9lv$2@build.eclipse.org...
> Hi Charfi,
>
> I'm not certain what exactly you mean by "..but I cannot create dependency
> between ports and the component ....".
> You say that you want to somehow "link port to a component".
>
>
> A Component is an EncapsulatedClassifier and thereby has an ownedPorts
> collection (ports are owned by composition).
>
> I would need some clarification on what you are trying to accomplish.
>
> - James.
>
>
> "charfi asma" <asma@charfi.com> wrote in message
> news:fq8u1f$pr$2@build.eclipse.org...
>> Hi,
>>
>> I create a profile to model association between application and
>> architecture of a System On Chip.
>> I want to associate data to memory (I have a stereotype called Memory)
>> but I can not create dependency between ports and the component
>> stereotyped Memory.
>> Does UML allow this?
>> And if it is not possible to link port to a component, how can I
>> associate data that flows through ports with the component stereotyped
>> Memory?
>>
>> thanks a lot
>>
>> Asma
>>
>
>
Re: dependency and allocation [message #477013 is a reply to message #477012] Mon, 03 March 2008 21:39 Go to previous messageGo to next message
charfi asma is currently offline charfi asmaFriend
Messages: 78
Registered: July 2009
Member
hi james,
that exacteley what I want to do , associate one port (of a component
stereotyped "applicationcomponent") with a component stereotyped "Memory" to
say that datas that flows from the port are stocked in the memory.
I want to stereotype my dependancy "dataallocation".
My question is, can we use dependancy to link a port to a component.
Is this conform to the UML spec.
thanks
"James Bruck" <jbruck@ca.ibm.com> a
Re: dependency and allocation [message #477020 is a reply to message #477013] Mon, 03 March 2008 22:18 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Charfi,

Yes absolutely, you can use a dependency for that.
You can draw a dependency between any NamedElement ( just about anything in
UML ).
The UML superstructure spec has examples where a dependency is drawn between
various required/provided interfaces on ports and drawing dependency between
port and component is fine.

From the spec:
A dependency is a relationship that signifies that a single or a set of
model elements requires other model elements for their specification or
implementation. This means that the complete semantics of the depending
elements is either semantically or structurally dependent on the definition
of the supplier element(s).

Cheers,
- James.

"charfi asma" <asma@charfi.com> wrote in message
news:fqgrhp$4pk$2@build.eclipse.org...
> hi james,
> that exacteley what I want to do , associate one port (of a component
> stereotyped "applicationcomponent") with a component stereotyped "Memory"
> to say that datas that flows from the port are stocked in the memory.
> I want to stereotype my dependancy "dataallocation".
> My question is, can we use dependancy to link a port to a component.
> Is this conform to the UML spec.
> thanks
> "James Bruck" <jbruck@ca.ibm.com> a
Re: dependency and allocation [message #477047 is a reply to message #477020] Tue, 11 March 2008 03:58 Go to previous message
charfi asma is currently offline charfi asmaFriend
Messages: 78
Registered: July 2009
Member
thanks a lot Jmaes :-)
Asma

"James Bruck" <jbruck@ca.ibm.com> a
Re: dependency and allocation [message #626115 is a reply to message #477008] Fri, 29 February 2008 16:57 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Charfi,

I'm not certain what exactly you mean by "..but I cannot create dependency
between ports and the component ....".
You say that you want to somehow "link port to a component".


A Component is an EncapsulatedClassifier and thereby has an ownedPorts
collection (ports are owned by composition).

I would need some clarification on what you are trying to accomplish.

- James.


"charfi asma" <asma@charfi.com> wrote in message
news:fq8u1f$pr$2@build.eclipse.org...
> Hi,
>
> I create a profile to model association between application and
> architecture of a System On Chip.
> I want to associate data to memory (I have a stereotype called Memory) but
> I can not create dependency between ports and the component stereotyped
> Memory.
> Does UML allow this?
> And if it is not possible to link port to a component, how can I associate
> data that flows through ports with the component stereotyped Memory?
>
> thanks a lot
>
> Asma
>
Re: dependency and allocation [message #626116 is a reply to message #477011] Fri, 29 February 2008 17:06 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
.... You are perhaps trying to associate ports on different Components in
which case you use a Dependency or possibly an InformationFlow or possibly
Connector if you are using the component with the context of some
StructuredClassifier...

I would need more info.

- James.


"James Bruck" <jbruck@ca.ibm.com> wrote in message
news:fq9dig$9lv$2@build.eclipse.org...
> Hi Charfi,
>
> I'm not certain what exactly you mean by "..but I cannot create dependency
> between ports and the component ....".
> You say that you want to somehow "link port to a component".
>
>
> A Component is an EncapsulatedClassifier and thereby has an ownedPorts
> collection (ports are owned by composition).
>
> I would need some clarification on what you are trying to accomplish.
>
> - James.
>
>
> "charfi asma" <asma@charfi.com> wrote in message
> news:fq8u1f$pr$2@build.eclipse.org...
>> Hi,
>>
>> I create a profile to model association between application and
>> architecture of a System On Chip.
>> I want to associate data to memory (I have a stereotype called Memory)
>> but I can not create dependency between ports and the component
>> stereotyped Memory.
>> Does UML allow this?
>> And if it is not possible to link port to a component, how can I
>> associate data that flows through ports with the component stereotyped
>> Memory?
>>
>> thanks a lot
>>
>> Asma
>>
>
>
Re: dependency and allocation [message #626117 is a reply to message #477012] Mon, 03 March 2008 21:39 Go to previous message
charfi asma is currently offline charfi asmaFriend
Messages: 78
Registered: July 2009
Member
hi james,
that exacteley what I want to do , associate one port (of a component
stereotyped "applicationcomponent") with a component stereotyped "Memory" to
say that datas that flows from the port are stocked in the memory.
I want to stereotype my dependancy "dataallocation".
My question is, can we use dependancy to link a port to a component.
Is this conform to the UML spec.
thanks
"James Bruck" <jbruck@ca.ibm.com> a
Re: dependency and allocation [message #626124 is a reply to message #477013] Mon, 03 March 2008 22:18 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Charfi,

Yes absolutely, you can use a dependency for that.
You can draw a dependency between any NamedElement ( just about anything in
UML ).
The UML superstructure spec has examples where a dependency is drawn between
various required/provided interfaces on ports and drawing dependency between
port and component is fine.

From the spec:
A dependency is a relationship that signifies that a single or a set of
model elements requires other model elements for their specification or
implementation. This means that the complete semantics of the depending
elements is either semantically or structurally dependent on the definition
of the supplier element(s).

Cheers,
- James.

"charfi asma" <asma@charfi.com> wrote in message
news:fqgrhp$4pk$2@build.eclipse.org...
> hi james,
> that exacteley what I want to do , associate one port (of a component
> stereotyped "applicationcomponent") with a component stereotyped "Memory"
> to say that datas that flows from the port are stocked in the memory.
> I want to stereotype my dependancy "dataallocation".
> My question is, can we use dependancy to link a port to a component.
> Is this conform to the UML spec.
> thanks
> "James Bruck" <jbruck@ca.ibm.com> a
Re: dependency and allocation [message #626167 is a reply to message #477020] Tue, 11 March 2008 03:58 Go to previous message
charfi asma is currently offline charfi asmaFriend
Messages: 78
Registered: July 2009
Member
thanks a lot Jmaes :-)
Asma

"James Bruck" <jbruck@ca.ibm.com> a
Previous Topic:Sequence Diagrams - creating a message which source and target is the same lifeline
Next Topic:part's multiplicity
Goto Forum:
  


Current Time: Thu Apr 18 07:48:38 GMT 2024

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

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

Back to the top