|
Re: types of interface [message #987227 is a reply to message #987201] |
Sat, 24 November 2012 19:13 |
|
Hi, Laya,
The distinction between "provided" and "required" Interfaces is not
intrinsic to the interfaces, themselves. Rather, it is in how a
Component depends on them.
A "provided" interface is nothing more than an interface that a
Component makes available to other Components by providing some
implementation of that interfaces.
A "required" interface is nothing more than an interface that a
Component needs to implement its function, which it expects to be
provided by some other component in the assembly.
Required interfaces are typically determined by the dependencies of a
Component and/or the types of its parts and its ports. Provided
interfaces are typically determined by the InterfaceRealizations of a
Component and/or the types of its parts and its ports.
HTH,
Christian
On 2012-11-24 12:42:30 +0000, Laya eng said:
> hello everyone
>
> i want to build provided interface and required interface
> i select interface from Palette but how to make this interface provided
> or required?
>
> Best Regards
>
> Laya
|
|
|
|
|
|
|
|
Re: types of interface [message #987702 is a reply to message #987699] |
Tue, 27 November 2012 16:31 |
Camille Letavernier Messages: 952 Registered: February 2011 |
Senior Member |
|
|
Hello Laya,
I've checked the handler test, and it's a little bit restrictive. The menu only appears when you right-click on a Graphical port (From the diagram). It won't be available in the ModelExplorer, nor on the port's label from the diagram.
Regards,
Camille
Camille Letavernier
[Updated on: Tue, 27 November 2012 16:31] Report message to a moderator
|
|
|
|
|
|
Re: types of interface [message #988805 is a reply to message #988616] |
Mon, 03 December 2012 09:58 |
Camille Letavernier Messages: 952 Registered: February 2011 |
Senior Member |
|
|
Hello Laya,
To manage ports required/provided interfaces, here are the steps to follow:
- Create a Port on either a Component (Component diagram) or a Class (Composite structure diagram)
- Set this Port's type to either a Class or an Interface
- Right click on the graphical representation of the Port, and select "Manage interfaces"
- Select the interfaces this Port provides (i.e. implements) and requires (i.e. depends on). Note that when the Port is typed with an Interface, this interface is automatically "Provided", and you cannot add new Provided interfaces.
So, two things to remember:
- Provided/Required are derived properties. They are derived from the type of the Port. So the Port needs a type before you can use "Manage interfaces"
- The "Manage interfaces" menu is only available on diagrams, for Composite Structure and Component diagrams. You have to right click on the graphical representation of the Port. This is a tool limitation which will need to be fixed.
Regards,
Camille
Camille Letavernier
|
|
|
Powered by
FUDForum. Page generated in 0.03515 seconds