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 09:44   |
Eclipse User |
|
|
|
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 #473944 is a reply to message #473899] |
Tue, 10 July 2007 15:49  |
Eclipse User |
|
|
|
Hi all
Thank you for your help. I think with the superstructure and the UML2 API I
can help myself.
~Ueli
"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 #623306 is a reply to message #473886] |
Mon, 09 July 2007 09:32  |
Eclipse User |
|
|
|
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 #623309 is a reply to message #473892] |
Mon, 09 July 2007 15:55  |
Eclipse User |
|
|
|
Hi James
Thanx for your hints. Yes I forgot to specify where I wand to add required
and provided interfaces to.
I use it with ports. If you write "type the port by the interface" does this
mean port.setType(interface), or does it mean something else?
The same for required interface.
~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 #623310 is a reply to message #473892] |
Mon, 09 July 2007 15:58  |
Eclipse User |
|
|
|
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 #623311 is a reply to message #473897] |
Mon, 09 July 2007 18:21  |
Eclipse User |
|
|
|
Hi Ueli,
Yes, port.setType(...) is what that means.
- James.
"ubrawand" <ueli.brawand@bluewin.ch> wrote in message
news:f6u3sa$343$1@build.eclipse.org...
> Hi James
>
> Thanx for your hints. Yes I forgot to specify where I wand to add required
> and provided interfaces to.
> I use it with ports. If you write "type the port by the interface" does
> this mean port.setType(interface), or does it mean something else?
> The same for required interface.
>
> ~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 #623312 is a reply to message #473899] |
Mon, 09 July 2007 18:21  |
Eclipse User |
|
|
|
"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 #623313 is a reply to message #473899] |
Mon, 09 July 2007 18:24  |
Eclipse User |
|
|
|
Hi Ueli,
The best documentation on how to use required/provided interfaces or any
aspect of UML is the UML superstructure specification at www.omg.org.
The opensource API is based on the superstructure specification.
-James
"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 09:44  |
Eclipse User |
|
|
|
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 #623643 is a reply to message #473899] |
Tue, 10 July 2007 15:49  |
Eclipse User |
|
|
|
Hi all
Thank you for your help. I think with the superstructure and the UML2 API I
can help myself.
~Ueli
"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: Tue Jul 15 22:52:01 EDT 2025
Powered by FUDForum. Page generated in 0.72991 seconds
|