Systems-Modeling / SysML-v2-Pilot-Implementation

Proof-of-concept pilot implementation of the SysML v2 textual notation and visualization
GNU Lesser General Public License v3.0
114 stars 23 forks source link

ST6RI-782: Memberships of inherited features are not correctly rendered (PlantUML) #577

Open himi opened 6 days ago

himi commented 6 days ago

Since the fix in ST6RI-767 has a problem to find a target of PRelation, the example below:

package TestInheritedPart1 {
    part def Vehicle {
        part powerTrain;
    }
    part vehicle : Vehicle;
}

is wrongly rendered with SHOWINHERIT style as below: image

himi commented 6 days ago

By this fix, the example above is correctly rendered: Screenshot 2024-06-23 at 12 23 07 AM

himi commented 6 days ago

Since this fix corrected the algorithm to handle redefinitions, I also checked about it. For example,

package TestRedef2 {
    action a1 {
        action a11;         
    }
    action a1x {
        action a110;
    }
    action a2 :> a1;
    action a3 :> a2 {
        action :>> a11;
    }
    action a4 :> a2 {
        action :>> a11;
    }
    action a5 :> a2;
    action a6 :> a5, a1x {
        action :>> a11;
        action :>> a110;
    }
}

is correctly rendered as:

Screenshot 2024-06-23 at 12 25 35 AM