I am using whitestaruml for Matlab Software design. Unlike most compiled languages like C/C++, scripted languages usually allow multiple return arguments, i.e. virtually anything can be send via left side of the method. I am struggling with the representation in whitestaruml in doing the following:
I define a new method: myMethod()
I define input parameters for the method: myMethod(input1, input2)
I define return arguments out1, out2, which are displayed in the class diagram like this: myMethod(input1, input2, out2)
Obviously whitestaruml assumes one possible return argument only, whilst additional parameters are send via right side, i.e. function input.
Is it possible to tweak the illustration and tell whitestaruml, that my language of choice supports multiple return arguments?
Thanks,
Daniel
Last edit: Mr Dan 2015-06-10
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You may set for a parameter the value of Properties - Detail - DirectionKind to RETURN. But setting this for more than one parameter becomes somehow visually unpredictable. So it looks that this program is not currently friendly to handling multiple return values.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
So, I understand that object visualization in a class diagram cannot handle multiple return arguments properly. However, it is possible to suppress argument diplaying completely by de-selecting "Format -> Show Operation Signature". In doing so, the class descriptionm can be kept correct, whilst inheritance, patterns etc. are illustrated schematically without further details. For me this workaround works fine for the moment.
Thanks again, Daniel
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
View and moderate all "General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Hi,
I am using whitestaruml for Matlab Software design. Unlike most compiled languages like C/C++, scripted languages usually allow multiple return arguments, i.e. virtually anything can be send via left side of the method. I am struggling with the representation in whitestaruml in doing the following:
Obviously whitestaruml assumes one possible return argument only, whilst additional parameters are send via right side, i.e. function input.
Is it possible to tweak the illustration and tell whitestaruml, that my language of choice supports multiple return arguments?
Thanks,
Daniel
Last edit: Mr Dan 2015-06-10
You may set for a parameter the value of Properties - Detail - DirectionKind to RETURN. But setting this for more than one parameter becomes somehow visually unpredictable. So it looks that this program is not currently friendly to handling multiple return values.
Thanks for the quick reply!
So, I understand that object visualization in a class diagram cannot handle multiple return arguments properly. However, it is possible to suppress argument diplaying completely by de-selecting "Format -> Show Operation Signature". In doing so, the class descriptionm can be kept correct, whilst inheritance, patterns etc. are illustrated schematically without further details. For me this workaround works fine for the moment.
Thanks again, Daniel