Tom Sawyer draws pretty graphics. the following code:
package ‘ActionSuccession’ {
item def Scene;
item def Image;
item def Picture;
action def Focus{ in scene : Scene; out image : Image; }
action def Sh{ in image : Image; out picture : Picture; }
action def TakePicture {
in scene : Scene;
out picture : Picture;
bind focus.scene = scene;
action focus : Focus { in scene; out image; }
flow focus.image to sh.image;
first focus then sh;
action sh : Sh { in image; out picture; }
bind sh.picture = picture;
}
}
can be vizualized and after clicking “orthogonal layout” I get this picture:
personally I would prefer to have the in- & outgoing parameters on the left side of the Action “Take Picture”, Therefore: It would be nice to be supported in:
-
selecting some graphical elements
-
activate a “flip horizontally” or “flip vertically” function
so that I get the “mirrored” graphic.
remark:
Example inspired by document “Introduction to the SysML v2 LanguageTextual Notation”
(published by OMG), see page 30 „Action Definition“.
[entering the original words in the code (compare picture) was not possible due to restrictions of the portal]
