![]() |
Objects instead of subobject for dynamic ports |
Post Reply
|
| Author | |
Tahir
Major Contributor
Joined: 01.Mar.2012 Points: 27 |
Post Options
Thanks(0)
Quote Reply
Topic: Objects instead of subobject for dynamic portsPosted: 27.Sep.2013 at 12:14 |
|
Hi!
I have a graph with several objects (s1...sn). All the objects are subobjects of a main object (m). for each s1..sn I am generating dynamic ports. The criteria for ports is the direction property. I am wondering if it is somehow possible to use object instead of each subobject while navigating the graph. For example. foreach .m { if :direction = 'in' then id endif } |
|
![]() |
|
jpt
MetaCase
Joined: 25.Mar.2008 Points: 253 |
Post Options
Thanks(0)
Quote Reply
Posted: 27.Sep.2013 at 13:21 |
|
Generators allow to access and select subobjects in many ways. If s and m are in different graph types then you need to access the subgraph and the objects there, like for each m: do decompositions { foreach .s; where :direction = 'in' { id newline } } If you need to access only s1..sn which are used in relationships of m1, then you may access them directly from the ports as follows: foreach .m { do #() where :direction = 'in' { /* gives ports connected */ id newline } } If instances of s and m are in the same graph, then you may access them: foreach .m { foreach .s; where :direction = 'in' { id newline } } When accessing instances of s you may also sort them in different ways, like based on their properties, coordinates etc. If you have a specific case of metamodel and would like to have one-to-one webmeeting feel free to suggest time (jpt@metacase.com).
|
|
![]() |
|
Post Reply
|
|
| Tweet |
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |