A statechart is a hierarchical state machine, introduced by Harel. Since it is hierarchical, its capability to reduce complexity and state proliferation allows to be used also for real-world problems and not only for toy or theoretical examples. The UML state diagram is an OO adaptation of the Harel statechart.
Questions tagged [statechart]
133 questions
2
votes
1 answer
multiple triggered events from a composite state
I'm designing an application that may check the user accout balance, I've set an FSM for the application and I made a composite state for this.
I have some questions:
Is this right to set two arrow for the tranision from this composite state?
The…

Mahmoud Emam
- 1,499
- 4
- 20
- 37
2
votes
3 answers
UML common trigger notation
What is the notation for a common trigger in a UML state machine? What about multiple common triggers?
Let's say we have at state-machine with 20 states. 18 of these states have a common trigger, that would transition to State_A. Another common…

Ole Tetzschner
- 91
- 1
- 3
- 9
2
votes
0 answers
boost statechart, unit-testing fraction of a state-machine
I'm looking for a way to execute (for unit-testing purposes) only fractions of a complex state -machine. For that purpose I'm evaluating boost::statechart framework.
One way that I considered was to design a hierarchical state machine, where each…

Amir Halperin
- 21
- 4
2
votes
1 answer
Ember state not fully changed in state's Enter method, still in previous state
I am trying to call an action in a state directly when I enter it. (Actually in my app I am trying to call an action on my state's parent state, but the net result is the same.)
In my app, I transition from StateOne to StateTwo. When I enter my…

Sam Fen
- 5,074
- 5
- 30
- 56
2
votes
2 answers
Automatic scxml code synthesis for statechart models
Can the w3c scxml specs be considered under model driven development? i.e statecharts as models for scxml which can be autogenerated using a tool instead of hand coding them. I'm looking for such a tool for tablet GUI interactions.
David Harel's…

iceman
- 4,211
- 13
- 65
- 92
2
votes
1 answer
Visual programming tool for modeling statecharts representing multi-modal user interfaces
Is there any visual programming tool for modeling statecharts representing multi-modal user interfaces? I want to build an android and windows metro app which receives input from touch and voice. The application guides the user through a…

iceman
- 4,211
- 13
- 65
- 92
1
vote
1 answer
Visual statechart editor for non-programmers, with limited conditions, events and actions
I'm looking for some visual statechart-editor, for my customer. I'm building for him server application, and he needs tool to build statecarts and upload them to the servers. Ofcourse, the tool needs to have the capability to export to some readable…

Yaakov Shoham
- 10,182
- 7
- 37
- 45
1
vote
1 answer
catching discarded events in boost statechart library
I am looking at Boost StateChart lib documentation, and I am not able to find out a way to catch abnormal events.
For example, if I am in state A, which handles only EventA, and I call
machine.proces_event(EventB())
The event seems to get silently…

user252652
- 179
- 1
- 1
- 9
1
vote
2 answers
Difference between a statechart and a finite statemachine (FSM)?
Here is a statechart diagram: http://www.jointjs.com/demos/run.html?unit=uml.statechart
Here is a finite statemachine: http://www.jointjs.com/demos/fsa
What are the differences between these diagrams?

ajsie
- 77,632
- 106
- 276
- 381
1
vote
1 answer
How to get the current most derived state in a boost::statechart state_machine object?
I am using boost::state_chart library.
For debug purposes, I would like to know at any given time the state of my state machine.
How to get the current (most derived) state in the state_machine object ?

wip
- 2,313
- 5
- 31
- 47
1
vote
1 answer
Confused about title of a state and concurrency representation in state machine diagram
My object can be at different states at time according to its variables.
So, I decided to put these possible states into a global composite state with concurrency notation.
The object can only be at one of the each couple of states shown above -at…

Galaluddin Owais Galal
- 129
- 5
1
vote
1 answer
How to diagram state machine that changes next state based on previously received events
I do not know if there is a good way to represent this in a UML2 statechart diagram.
Given a set of states, State 1, State 2, State 3, and State 4. Given a set of events, Event 2, Event 3, and Event 4.
States have a relative priority indicated by…

Graznarak
- 3,626
- 4
- 28
- 47
1
vote
1 answer
Anylogic: how to compare parameter and variable value within statechart?
In my Anylogic model I have a hub which can store 5 containers. So it has a capacity parameter with value 5. I also have given it a variable with the numberOfContainers stored at the hub at that moment. When I run the model I see that the variable…

Ella
- 125
- 6
1
vote
1 answer
How can I react to events from a master statechart in Yakindu?
I have a statechart that does stuff depending on another statechart. Let's call them Master and Slave.
In the Slave statechart I import the Master and assign it to a variable.
import: "Master.ysc"
var master: Master
Let's say the Slave statechart…

ketla
- 31
- 5
1
vote
2 answers
How to determine the state in state diagram?
My system has more functions than it is shown inside the diagram but I am trying to do it based on the scenario.
My current scenario is that the librarian/admin is trying to delete a book record from the database, normal users can access the…

Chin
- 97
- 2
- 9