check which port not connected |
Post Reply |
Author | |
edward22243
Major Contributor Joined: 19.Apr.2019 Points: 41 |
Post Options
Thanks(0)
Posted: 21.Oct.2021 at 08:38 |
I have an object with ports and I want to check if they are all connected.
But when I do something like this:
than the counter is stuck at 2 , this means only do #PubSubConnector is 'entered' when it is already connected. It seems the connector does not exist if nothing is connected to it. So how can I check if every connector (all 4 in the picture below) is connected to something? |
|
jpt
MetaCase Joined: 25.Mar.2008 Points: 239 |
Post Options
Thanks(0)
|
Yes, do #() shows all connected ports. To make
comparison the generator must compare connections via ports with the all
possible ports available. Depending on the metamodel, all possible ports are defined in a subgraph, as
properties of the object (‘TopicPublisher’), or somewhere else.
Demo repository includes a project ‘EAST-ADL’ in which graph type ‘HardwareComponentType’ has quite similar functionality discussed here. Please check generator named ‘Unconnected pins’. It is run as a part of LiveCheck generator showing at modeling time the status of unconnected pins. In this example the pins (ports) are defined in the subgraph, so the generator seeks all available ports from there. If your metamodel defined ports similarly in a subgraph the right would be something like: subreport '_translators' run If ports are defined as properties of TopicPublisher the ports must be stored differently etc. |
|
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 |