rcasteran / jarvis4se

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

show decomposition functional element #7

Closed rcasteran closed 2 years ago

rcasteran commented 2 years ago

Is your feature request related to a problem? Please describe. Improvement about command "show decomposition" for a functional element

Describe the solution you'd like Considering the following command:

%%jarvis
with test
F1 is a function
F1a is a function
F1b is a function
F1c is a function
F1 is composed of F1a
F1 is composed of F1b
F1 is composed of F1c

F1c1 is a function
F1c is composed of F1c1

F2 is a function
F2a is a function
F2 is composed of F2a

F3 is a function
F3a is a function
F3 is composed of F3a

E1 is a functional element
E1a is a functional element
E1b is a functional element
E1c is a functional element
E1 is composed of E1a
E1 is composed of E1b
E1 is composed of E1c
E1c1 is a functional element
E1c2 is a functional element
E1c is composed of E1c1
E1c is composed of E1c2

E1 allocates F1
E1 allocates F2
E1a allocates F1a
E1a allocates F3a
E1b allocates F1b
E1c allocates F1c
E1c1 allocates F1c1

show decomposition E1

The generated allocation must be:

The generated diagram must show:

And all data between the different functions and the functional elements in the context of E1 must be shown (like in context diagram)

And Jarvis must ask if F3 shall be allocated to E1 (because of the allocation of F3a to E1a) : if answer is no an error must be generated indicating that F3 is not allocated despite one of its child is allocated

Describe alternatives you've considered None