saeaadl / aadlv2.2

SAE AADL core language, version 2.2
1 stars 0 forks source link

Flow specification only allows one level of reference into nested feature groups #29

Open reteprelief opened 5 years ago

reteprelief commented 5 years ago

Connections can reach into nested feature groups multiple levels.

reteprelief commented 5 years ago

ok.

jjhugues commented 3 years ago

Must investigate status with Lutz

lwrage commented 3 years ago

I have implemented a prototype for OSATE, this is a fairly straight forward change.

Note:

Example model

Note that this model was created purely for testing purposes.

package P3
public

    feature group fgt
        features
            fg1: feature group fgt1[2];
            fg2: feature group fgt1;
    end fgt;

    feature group fgt1
        features
            f1: out feature;
            f2: out feature;
    end fgt1;

    system P
        features
            fgo: feature group fgt;
        flows
            fsrc: flow source fgo;
    end P;

    system M
        features
            fgi: feature group inverse of fgt;
            fgo: feature group fgt;
        flows
            fpth: flow path fgi.fg1 -> fgo.fg2;
    end M;

    system implementation M.i
        flows
            fpth: flow path fgi.fg1.f2 -> fgo.fg2.f1;
    end M.i;

    system C
        features
            fgi: feature group inverse of fgt;
        flows
            fsnk: flow sink fgi;
    end C;

    system S
    end S;

    system implementation S.i
        subcomponents
            p: system P;
            m: system M;
            c: system C;
        connections
            cpm: feature p.fgo.fg1.f1 -> m.fgi.fg1.f2;
            cmc: feature m.fgo.fg2 -> c.fgi.fg2;
        flows
            e: end to end flow p.fsrc -> cpm -> m.fpth -> cmc -> c.fsnk;
    end S.i;

end P3;
jjhugues commented 3 years ago
jjhugues commented 3 years ago

@lwrage this one also requires feedback

jjhugues commented 2 years ago

Added to document by Lutz