Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing property association on mode transition instance #1096

Etienne13 opened this issue Mar 12, 2018 · 1 comment · Fixed by #1754

Missing property association on mode transition instance #1096

Etienne13 opened this issue Mar 12, 2018 · 1 comment · Fixed by #1754


Copy link

Etienne13 commented Mar 12, 2018

This issue is a follow up on issue #1092

The instantiation of the following AADL model succeeds after a workaround for the bug identified in issue #1092 (i.e. required modes in threads and references to these modes have been commented).

However, the instance model is not complete: in component instance “proc", the property association stating that mode transition m1 to m2 is an emergency mode transition is absent.

Detail: there is a warning stating that feature i of proc is not connected even though it is virtually connected in a mode transition. I believe the warning is excessive in this case. I tried to connect the port to see if it would enable the definition of the property association for the mode transition but it did not work.

Here is the model:

    package modes_instantiation_2
    system main
    end main;
    system implementation main.impl
            cpu: processor cpu;        
            proc: process proc.impl;
            c_mode: port cpu.o -> proc.i;        
   -- properties
   --         Period => 1000 ms in modes (m1), 200 ms in modes (m2) applies to proc.t;        
    end main.impl;
    processor cpu
                    o: out event port;
    end cpu;
    process proc
                    i: in event port;
                    m1: initial mode;
                    m2: mode;
                    m1TOm2: m1 -[i]-> m2;
                    Mode_Transition_Response => Emergency applies to m1Tom2;
    end proc;
    process implementation proc.impl
                    t: thread t;        
    end proc.impl;
    thread t
           -- requires modes
           --         m1: initial mode;
           --         m2: mode;
    end t;
    end modes_instantiation_2;
Copy link
Contributor Author

Note: the issue seem to be specific to the use of the "applies to" clause. Indeed, if the property association is directly attached to the mode transition, the instantiation preserves it.

Here is the modification in the previous model to have a correct instance mode:

    m1TOm2: m1 -[i]-> m2 {Mode_Transition_Response => Emergency;};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

Successfully merging a pull request may close this issue.

3 participants