Home » Modeling » UML2 » How to add an interface into to list of providedinterfaces of Port?
| | | | | | |
Re: How to add an interface into to list of providedinterfaces of Port? [message #473941 is a reply to message #473899] |
Tue, 10 July 2007 13:44 |
Kenn Hussey Messages: 1620 Registered: July 2009 |
Senior Member |
|
|
Ueli,
As James, has stated, the UML2 API is, for the most part, a direct
implementation of the UML specification, so referencing the specification
should help. In this case, for example, you'd find the following
descriptions of Port::required and Port::provided:
.. required: Interface References the interfaces specifying the set of
operations and receptions that the classifier expects its environment to
handle. This association is derived as the set of interfaces required by the
type of the port or its supertypes.
.. provided: Interface References the interfaces specifying the set of
operations and receptions that the classifier offers to its environment, and
which it will handle either directly or by forwarding it to a part of its
internal structure. This association is derived from the interfaces realized
by the type of the port or by the type of the port, if the port was typed by
an interface.
Note that text that is similar to this can also be found in the Javadoc for
the corresponding getters, Port#getRequireds() and Port#getProvideds().
Kenn
"ubrawand" <ueli.brawand@bluewin.ch> wrote in message
news:f6u41q$3fk$1@build.eclipse.org...
> Hi again
>
> Where do I find some documentation about API of Eclipse.UML2 explaining
> such topics?
>
> ~Ueli
>
> "James Bruck" <jbruck@ca.ibm.com> wrote in message
> news:f6tdd3$up7$2@build.eclipse.org...
>> Hi Ueli,
>>
>> You don't mention what you want to add a required or provided interface
>> to?
>> A component or a port?
>> To add a provided interface to a component, you can create a Realization
>> from the component to the interface.
>> To add a required interface to a component you can create a Usage from
>> the
>> the component to the interface.
>> To create a provided interface to a port you have two options, type the
>> port
>> by the interface or type it by a classifier that has a realization to the
>> interface.
>> To create a required interface to a port you have to type it by a
>> classifier
>> that has a usage relationship to the interface.
>>
>> - James.
>>
>>
>> "ubrawand" <ueli.brawand@bluewin.ch> wrote in message
>> news:f6m4vf$te7$1@build.eclipse.org...
>>> Hi NG
>>>
>>> I'm working on a java interface create Eclipse UML model out of the
>>> repository of a uml tool.
>>> Now I stuck in how to add an interface to the list of provided or
>>> required
>>> interfaces with java code.
>>>
>>> Any help is welcome.
>>>
>>> Regards, Ueli
>>>
>>>
>>
>>
>
>
|
|
| | | | | | | |
Re: How to add an interface into to list of providedinterfaces of Port? [message #623640 is a reply to message #473899] |
Tue, 10 July 2007 13:44 |
Kenn Hussey Messages: 1620 Registered: July 2009 |
Senior Member |
|
|
Ueli,
As James, has stated, the UML2 API is, for the most part, a direct
implementation of the UML specification, so referencing the specification
should help. In this case, for example, you'd find the following
descriptions of Port::required and Port::provided:
.. required: Interface References the interfaces specifying the set of
operations and receptions that the classifier expects its environment to
handle. This association is derived as the set of interfaces required by the
type of the port or its supertypes.
.. provided: Interface References the interfaces specifying the set of
operations and receptions that the classifier offers to its environment, and
which it will handle either directly or by forwarding it to a part of its
internal structure. This association is derived from the interfaces realized
by the type of the port or by the type of the port, if the port was typed by
an interface.
Note that text that is similar to this can also be found in the Javadoc for
the corresponding getters, Port#getRequireds() and Port#getProvideds().
Kenn
"ubrawand" <ueli.brawand@bluewin.ch> wrote in message
news:f6u41q$3fk$1@build.eclipse.org...
> Hi again
>
> Where do I find some documentation about API of Eclipse.UML2 explaining
> such topics?
>
> ~Ueli
>
> "James Bruck" <jbruck@ca.ibm.com> wrote in message
> news:f6tdd3$up7$2@build.eclipse.org...
>> Hi Ueli,
>>
>> You don't mention what you want to add a required or provided interface
>> to?
>> A component or a port?
>> To add a provided interface to a component, you can create a Realization
>> from the component to the interface.
>> To add a required interface to a component you can create a Usage from
>> the
>> the component to the interface.
>> To create a provided interface to a port you have two options, type the
>> port
>> by the interface or type it by a classifier that has a realization to the
>> interface.
>> To create a required interface to a port you have to type it by a
>> classifier
>> that has a usage relationship to the interface.
>>
>> - James.
>>
>>
>> "ubrawand" <ueli.brawand@bluewin.ch> wrote in message
>> news:f6m4vf$te7$1@build.eclipse.org...
>>> Hi NG
>>>
>>> I'm working on a java interface create Eclipse UML model out of the
>>> repository of a uml tool.
>>> Now I stuck in how to add an interface to the list of provided or
>>> required
>>> interfaces with java code.
>>>
>>> Any help is welcome.
>>>
>>> Regards, Ueli
>>>
>>>
>>
>>
>
>
|
|
| |
Goto Forum:
Current Time: Wed Sep 25 14:15:24 GMT 2024
Powered by FUDForum. Page generated in 0.05166 seconds
|