Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » State machine animation(State machine animation)
State machine animation [message #1784430] Tue, 27 March 2018 19:54 Go to next message
Steve Zielinski is currently offline Steve ZielinskiFriend
Messages: 6
Registered: March 2018
Junior Member
I am trying to build a project with state machine animation.

I see that it is possible viewing this YouTube example:

Model Simulation and Animation
https://www.youtube.com/watch?v=zxQ-lcbIz7s

I have followed the tutorials and have successfully animated the Activity diagrams found in the BasicActiveObjectExample. However, when I add a simple 2 state state machine to the Increment class, it does not animate.

Animation of state machines seems to be a hole in the available documentation as well as in the available YouTube videos. If a detailed tutorial exists, please point me toward it.

I have attached the exported files. Perhaps I'm not initializing something I should?
Re: State machine animation [message #1784450 is a reply to message #1784430] Wed, 28 March 2018 07:05 Go to previous messageGo to next message
Carsten Pitz is currently offline Carsten PitzFriend
Messages: 137
Registered: May 2015
Location: Germany
Senior Member
Hi Steve,
do you have the Moka components installed?

And there is an issue starting the simulation working with the Moka debug perspective.
Please try to start the simulation within the Papyrus perspective and switch to the Moka perspective after the animation is running.

/Carsten
Re: State machine animation [message #1784521 is a reply to message #1784450] Wed, 28 March 2018 21:53 Go to previous messageGo to next message
Steve Zielinski is currently offline Steve ZielinskiFriend
Messages: 6
Registered: March 2018
Junior Member
Hi Carsten,

Yes, I do have the Moka components installed.

I seem to have gone backwards - the BasicActiveObjectExample is no longer executing reliably. I will have to reload and try again.

Steve

Re: State machine animation [message #1785090 is a reply to message #1784521] Mon, 09 April 2018 11:48 Go to previous messageGo to next message
THEOBALD Maurice is currently offline THEOBALD MauriceFriend
Messages: 19
Registered: February 2017
Junior Member
Hi Steve,

Did you select the org.eclipse.papyrus.moka.fuml.statemachines execution engine ?

Maurice
Re: State machine animation [message #1797879 is a reply to message #1785090] Wed, 07 November 2018 22:27 Go to previous messageGo to next message
Steve Zielinski is currently offline Steve ZielinskiFriend
Messages: 6
Registered: March 2018
Junior Member
After a long delay I finally returned to this project.

I now have the BasicActiveObjectExample running and animating. However, no breakpoints appear to work. I have tried setting breakpoints on items labeled [Activity Edge] and those labeled [Activity Node], yet Moka never hits the breakpoints.

I have attached an image of the incrementMethod showing multiple blue dots.

I do notice something interesting in the "Breakpoints" tab. Each breakpoint is listed as "BasicActiveObjectExample.uml". This is also shown in the attached image.

This is unlike the ModelExecution tutorial where the breakpoint tab shows things like " ObjectFlow5" and "read counter".

Ideas??
Re: State machine animation [message #1797881 is a reply to message #1797879] Wed, 07 November 2018 23:12 Go to previous messageGo to next message
Steve Zielinski is currently offline Steve ZielinskiFriend
Messages: 6
Registered: March 2018
Junior Member
I have now tried to add a very simple state machine.

See attached image.

I then re-generated the Increment_Factory.

I then created a new Debug Configuration using org.eclipse.papyrus.moka.fuml.statemachines

as the Execution Engine. See attached image.

The statemachine did not animate. Both the IncrementClassifierBehavior diagram and the incrementMethod did animate.


Re: State machine animation [message #1797928 is a reply to message #1797881] Thu, 08 November 2018 16:15 Go to previous message
Steve Zielinski is currently offline Steve ZielinskiFriend
Messages: 6
Registered: March 2018
Junior Member
Still having no luck animating the statemachine.

However, completely exiting Eclipse and re-starting now has breakpoints working. When I came back into the project, I noticed all the existing breakpoints had been removed. I created one and it worked.

I do continue to note, however, the "Breakpoints" tab lists the breakpoint as BasicActiveObjectExample.uml (nothing more specific than that).
Previous Topic:Document generation from a model
Next Topic:ExternLibrary Stereotype
Goto Forum:
  


Current Time: Fri Nov 16 13:40:28 GMT 2018

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

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

Back to the top