Skip to main content



      Home
Home » Modeling » Papyrus » Papyrus class diagram - expression methods(How to create methods with expression as return type)
Papyrus class diagram - expression methods [message #1770967] Sun, 20 August 2017 01:22 Go to next message
Eclipse UserFriend
Hi,

Can anyone please help me how can I create a class diagram with expression as return type. Please see my example for more details.

*I wanted to have a UML class diagram representation of this method

public Int calculateTotalSale(int num1, int num2)
{

return num1 + num2;

}

can anyone help? thank you
Re: Papyrus class diagram - expression methods [message #1771163 is a reply to message #1770967] Tue, 22 August 2017 11:11 Go to previous messageGo to next message
Eclipse UserFriend
You can create an opaque behavior that consists of "return num1+num2;". You can choose for instance Java or C++ as language for this behavior. You can link the UML operation with this method (behavior), but it is not possible to see the implementation within the class diagram.

Papyrus SW designer has some example of classes with opaque behaviors (update-site: http://download.eclipse.org/modeling/mdt/papyrus/components/designer/)
Re: Papyrus class diagram - expression methods [message #1771282 is a reply to message #1771163] Wed, 23 August 2017 12:21 Go to previous message
Eclipse UserFriend
Thank you Ansgar
Previous Topic:Migration from Neon to Oxygen?
Next Topic:C++ reverse engineer howto
Goto Forum:
  


Current Time: Fri Jul 04 23:00:31 EDT 2025

Powered by FUDForum. Page generated in 0.04032 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top