Menu

Multiple return arguments for method

Anonymous
2015-06-10
2015-06-11
  • Anonymous

    Anonymous - 2015-06-10

    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:

    1. I define a new method: myMethod()
    2. I define input parameters for the method: myMethod(input1, input2)
    3. 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
  • Janusz Szpilewski

    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.

     
  • Mr Dan

    Mr Dan - 2015-06-11

    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

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.