Initial state of state machine

Moderator: Moderators

Initial state of state machine

Postby » Sat Nov 21, 2020 3:59 am


I try to simulate a state machine associated to a class.

My first problem is the following: I have an attribute named state in the class which is an enumeration, and i want to be matched with every state in the state machine. Currently I just gave the states in the state machine the same name, but is there a better/more correct way to do that?

My second problem is during execution of an activity which has an input type matching the same class i would like to start the state machine, but so that the initial state matches the state attribute of the instance. Like if the state attribute is SEND_NOTIFICATION i would like to start the machine from there. Is there a nice way to achieve that result?


You do not have the required permissions to view the files attached to this post.
Forum Newbie
Forum Newbie
Posts: 13
Posts Rating:4
Joined: Wed Jun 10, 2020 8:45 am

Return to Cameo Simulation Toolkits

Who is online

Users browsing this forum: No registered users and 2 guests