Expressions and MOKA [message #1746776] |
Fri, 04 November 2016 09:20  |
Eclipse User |
|
|
|
Dear folks,
Is it possible to use MOKA considering parameters from classes to be used in expressions? For example, I have this expression "a + b". I have classes that has the parameters a and b. Now, I created a simple activity diagram with MOKA and I'd like to read a and b from classes and run the expression a + b.
Is it possible?
|
|
|
|
Re: Expressions and MOKA [message #1747987 is a reply to message #1747207] |
Thu, 17 November 2016 08:09   |
Eclipse User |
|
|
|
Hi Bruno,
In addition, you can also have a look at this tutorial: https://www.youtube.com/watch?v=itiAu9QZTMY&list=PL9nkS1KDTMm7XBenuBonLyAch1xFXiiuw&index=4
The tutorial is related to the FMI functionnalities of Moka, but you can probably inspire from it.
Basically, so far, there is no built in support for "expression evaluation" in Moka. This is why, as explained by Jérémie, the expression has to be "encoded" in an activity.
Please note also that Papyrus provides basic support for the Alf action language, so that you can specifiy textually the Activity described by Jeremie.
Cheers,
Arnaud
[Updated on: Thu, 17 November 2016 08:14] by Moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.20356 seconds