Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » interface query
interface query [message #39288] Thu, 27 September 2007 12:02 Go to next message
Eclipse UserFriend
Originally posted by: nickkirtley.gmail.com

Hi,

I have an interface.
The interface is provided from a component that has an interface
realization. A port is typed by that component.

Is it possible, from interface, to check which ports provide that
interface, or would i have to do that from the ports themselves?

so is something like this possible:
where self = the relevant interface
self.whoprovidesme

nick
Re: interface query [message #39351 is a reply to message #39288] Thu, 27 September 2007 13:55 Go to previous message
Eclipse UserFriend
Originally posted by: cdamus.ca.ibm.com

Hi, Nick,

Try

Port.allInstances()->select(required->includes(self))

HTH,

Christian


nick kirtley wrote:

> Hi,
>
> I have an interface.
> The interface is provided from a component that has an interface
> realization. A port is typed by that component.
>
> Is it possible, from interface, to check which ports provide that
> interface, or would i have to do that from the ports themselves?
>
> so is something like this possible:
> where self = the relevant interface
> self.whoprovidesme
>
> nick
Previous Topic:attribute query
Next Topic:[OCL Tools] article draft
Goto Forum:
  


Current Time: Wed Sep 11 13:13:38 GMT 2024

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

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

Back to the top