How to get a list of all Component Exchange from a LAB?

Hi,
When we realized a Logical or a Physical architecture diagram, is it possible to have a list of all Component Exchange that we have created in our system ?

Regards,

You could use the “Interpreter” view for that. Window->showView->Other…->Acceleo Model 2 Text->Interpreter, and I set the Language to “Sirius”

Then, e.g. to find all ComponentExchanges under a Model Element selected in Project Explorer:

aql:self.eAllContents(fa::ComponentExchange)

To find all ComponentExchanges in a Diagram, select the diagram canvas and try:

aql:self.eAllContents(diagram::DEdge)->collect(d | d.target)->filter(fa::ComponentExchange)

Thanks,
Is it possible to have the pair of Logical Components that are linked by the Component Exchange ?

Everything is possible :wink:

1 Like