rcasteran / jarvis4se

JARVIS for Systems Engineers
https://regis-casteran.gitbook.io/jarvis4se/
MIT License
3 stars 1 forks source link

Command list data shows consumer that is not related to the interface #55

Closed rcasteran closed 2 years ago

rcasteran commented 2 years ago

Impacted version jarvis4se version: 1.2.4

Describe the bug Command list data for a functional interface shows function which is consuming the same data, but which is allocated to a functional element that is not exposing the interface. In this case Jarvis is displaying a confusing message "\<function name> is not allocated" is the consumer functional element list.

To Reproduce Execute the following commands:

%%jarvis
with test
F1 is a function
F2 is a function
F3 is a function

a is a data
F1 produces a
F2 consumes a
F3 consumes a

E1 is a functional element
E1 allocates F1

E2 is a functional element
E2 allocates F2

E3 is a functional element
E3 allocates F3

I_E1_E2 is a functional interface
I_E1_E2 allocates a
E1 exposes I_E1_E2
E2 exposes I_E1_E2

list data I_E1_E2

Expected behavior In the example above, Jarvis must not list F3 in last consumer function and not display the warning message "F3 is not allocated", because F3 is allocated to E3 that is not exposing I_E1_E2

Desktop (please complete the following information):