Book a Demo

Author Topic: State Model Simulation  (Read 7190 times)

Rethinking

  • EA Novice
  • *
  • Posts: 14
  • Karma: +1/-0
  • Curious about stuff ... including how to use EA
    • View Profile
    • Rethinking Transport
State Model Simulation
« on: December 06, 2021, 04:08:00 am »
Hello fellow Sparxians, :)

Without using Executable State Machine functionality (I only have Corporate license), can I create a simulation of a state model, whereby when I dynamically create an object of a particular class via sim.Product=CreateObject("ClassA"); where Class A is Class in the model, it automatically picks up that State Machine from "under" that class in the Project Browser and starts modelling the state behaviour of that class in the simulation i.e. the model starts at the initial control node and progresses to the first allowable state, when there is one clear pathway ?

I suspect the problem might be to do with "scopes", but I don't really understand scope; can someone provide a good reference?


Many thanks, in advance for your help.
Rethinking Transport
- A Transport consultancy with a difference

Rethinking

  • EA Novice
  • *
  • Posts: 14
  • Karma: +1/-0
  • Curious about stuff ... including how to use EA
    • View Profile
    • Rethinking Transport
Re: State Model Simulation
« Reply #1 on: December 31, 2021, 08:13:17 am »
I got no replies discussing simulation, so I downloaded a trial version to include Executable State Machines. I've worked through all of the examples, but I can't find a way to create two instances of an object with a state model, which can act independently. I can only get broadcast events to switch between states - so both instances are impacted in the same way. I can't make %SEND_EVENT ....% work, as I don't understand the CONTEXT_REF. Can anyone send any pointers ?

TIA,

Rethinking
Rethinking Transport
- A Transport consultancy with a difference