Book a Demo

Author Topic: EA 9.1 Simulation with statechart  (Read 2370 times)

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
EA 9.1 Simulation with statechart
« on: November 04, 2011, 09:08:41 am »
Hi

I opened EA Example project to try the simulation tool.
If find it useful with the activity diagram, but the statechart isn't as straightforward.
- the Pedestrian Crossing statechart executes well but it's full of variables and behaviour written for On Entry and On Exit operations, plus these variables are checked on guard conditions.
If I just want to simulate the statechart depending on the event to move from one state to the other, couldn't EA suggest the possible next moves ? Better, could it react depending on operations called against the class and values on the attributes (as these values could be affected by operations' behaviour)
Considering the Operating States statechart, this model doesn't execute this Play is not defined > how can I fix this according to EA's logic? Does I have to On Entry/exit operations?

thanks
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: EA 9.1 Simulation with statechart
« Reply #1 on: November 07, 2011, 08:25:49 am »
EA supports two different modes of simulation.
  • Manual: where you are prompted for the next node to move to
  • Interpreted: where the next node is determined by the simulation engine based on the current state (by which I mean values of variables in addition to the currend node) of the simulation.
The example model is set up to provide an interpreted simulation for the Pedestrian crossing example, but this doesn't prevent you from running it in manual mode if you wish. Just right click on the diagram background and select Simulation | Manual.
« Last Edit: November 07, 2011, 08:26:23 am by simonm »