Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » types of interface
types of interface [message #987201] Sat, 24 November 2012 12:42 Go to next message
Laya eng is currently offline Laya engFriend
Messages: 51
Registered: October 2012
Member
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 #987227 is a reply to message #987201] Sat, 24 November 2012 19:13 Go to previous messageGo to next message
Christian W. Damus is currently offline Christian W. DamusFriend
Messages: 830
Registered: July 2009
Senior Member
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 #987371 is a reply to message #987227] Mon, 26 November 2012 10:36 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 502
Registered: February 2011
Senior Member
Hello Laya,


From the tool point of view, you can edit the port's interfaces from the "Manage Interfaces" menu.

Simply right-click on the port, and select "Manage Interfaces".


Regards,
Camille


Camille Letavernier
Papyrus developer
Re: types of interface [message #987428 is a reply to message #987371] Mon, 26 November 2012 15:08 Go to previous messageGo to next message
Laya eng is currently offline Laya engFriend
Messages: 51
Registered: October 2012
Member
Hello Christian ,Hello Camille

thank you for helping me

1*only use required and provided interface with component diagram?if yes
so in what case we use the interface element in Palette?

2*i try what you mentioned above
please check them to specify the correctness of them because when i right click on port i don't find "Manage Interfaces" option

Best Regards
Laya
  • Attachment: step2.PNG
    (Size: 26.84KB, Downloaded 103 times)
  • Attachment: step1.PNG
    (Size: 6.61KB, Downloaded 95 times)
Re: types of interface [message #987430 is a reply to message #987428] Mon, 26 November 2012 15:10 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 502
Registered: February 2011
Senior Member
Hello,

The menu doesn't appear on the port's label (This is a usability issue).

You have to right click on the port element.


Regards,
Camille


Camille Letavernier
Papyrus developer
Re: types of interface [message #987433 is a reply to message #987430] Mon, 26 November 2012 15:24 Go to previous messageGo to next message
Laya eng is currently offline Laya engFriend
Messages: 51
Registered: October 2012
Member
Hello Camille

Please check it
i didn't find this option

Regards
Laya
  • Attachment: try.png
    (Size: 101.70KB, Downloaded 89 times)
Re: types of interface [message #987699 is a reply to message #987430] Tue, 27 November 2012 16:26 Go to previous messageGo to next message
Laya eng is currently offline Laya engFriend
Messages: 51
Registered: October 2012
Member
Hello Camille

i use the last version of Papyrus juno
i don't find this option?

Regards
Laya
Re: types of interface [message #987702 is a reply to message #987699] Tue, 27 November 2012 16:31 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 502
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
Papyrus developer

[Updated on: Tue, 27 November 2012 16:31]

Report message to a moderator

Re: types of interface [message #987706 is a reply to message #987702] Tue, 27 November 2012 16:51 Go to previous messageGo to next message
Laya eng is currently offline Laya engFriend
Messages: 51
Registered: October 2012
Member
Hello Camille

thank you so much for your efforts
yes i find it but a message occur told me to define port before manage it as illustrated in attachment
how can i define it?

Regards
Laya
  • Attachment: define.PNG
    (Size: 29.97KB, Downloaded 89 times)
Re: types of interface [message #988422 is a reply to message #987702] Thu, 29 November 2012 20:46 Go to previous messageGo to next message
Laya eng is currently offline Laya engFriend
Messages: 51
Registered: October 2012
Member
Hello Camille,

i try to perform two cases
the first one is to specify that a component require number of operations and the second case that a component provide number of opertions required by other component
so where can i define these operation?

Regards
Laya
Re: types of interface [message #988616 is a reply to message #987702] Fri, 30 November 2012 17:25 Go to previous messageGo to next message
Laya eng is currently offline Laya engFriend
Messages: 51
Registered: October 2012
Member
Hello Camille

i am really miss you
you are smart and active member in this sub-forum and i hope i can do the same for other members

i hope you guide me in finding the way to perform two cases mentioned above

Kind Regards
Laya
Re: types of interface [message #988805 is a reply to message #988616] Mon, 03 December 2012 09:58 Go to previous message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 502
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
Papyrus developer
Previous Topic:Use Case Specification
Next Topic:MARTE profile in uml format
Goto Forum:
  


Current Time: Sat Nov 22 10:41:02 GMT 2014

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

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