osate / osate-ge

Old Graphical editor for OSATE repository, kept for reference
6 stars 3 forks source link

Missing Component Implementation Arrow When Parent In a Package #70

Closed esorton closed 10 years ago

esorton commented 10 years ago

The model below:

package one
public
    system parent
    end parent;
    system implementation parent.i
    end parent.i;

    system child extends parent
    end child;
    system implementation child.i extends parent.i
    end child.i;
end one;

generates the diagram:

screenshot from 2014-09-02 16 00 07

Splitting the parent and child into separate packages.

Contents of file twoP.aadl:

package twoP
public
    system parent
    end parent;
    system implementation parent.i
    end parent.i;
end twoP;

Contents of file twoC.aadl:

package twoC
public
    with twoP;
    system child extends twoP::parent
    end child;
    system implementation child.i extends twoP::parent.i
    end child.i;
end twoC;

generates the diagram:

screenshot from 2014-09-02 16 00 16

Note that the component implementation arrow between the parent and parent implementation is missing in the second diagram. I would consider this a bug, but it may be the expected behavior.

philip-alldredge commented 10 years ago

I'm not sure if I consider that a bug since that is the behavior I originally expected. I believe what you have described however is a more intuitive behavior. I have implemented a fix for the issue.