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
37
votes
4 answers
Difference between StateChart and Activity Diagram
I am really unable to understand the real difference between these 2 diagrams. I mean both of these deal is "states" but I am not sure what deals with what?

itsaboutcode
- 24,525
- 45
- 110
- 156
34
votes
15 answers
Is there a programming language with built-in state machine construct?
I am just curious if there is a programming language which has state machines (similar to boost::statechart) as primary language construct.
Analogies - c# has delegates where java uses the observer pattern and C has callbacks. Perl and python have…

danatel
- 4,844
- 11
- 48
- 62
11
votes
3 answers
Does statemachine and statechart mean the same?
I have heard people using these terms.
I wonder if they refer to the same thing or is there a difference between these two?

ajsie
- 77,632
- 106
- 276
- 381
8
votes
5 answers
Statechart vs Statemachine
I am studying for an exam and a question on one of the previous exams is:
A lot of answers on the web are saying Statecharts and Statemachines are the same thing? If not could someone explain the difference in relation to this question.
If someone…

user3541209
- 145
- 2
- 9
8
votes
2 answers
States in Ember.js without using routes?
I am trying to understand whether States in Ember.js are only designed/assumed to be defined in a route manager, and whether routes are integral to Ember. Pretty much all of the guides I've seen seem to assume you want states and routes exactly…

Sam Fen
- 5,074
- 5
- 30
- 56
6
votes
2 answers
PlantUML: control arrow shape and direction
With PlantUML I've created a little state chart for my documentation:
@startuml
state Powered {
[*] -d-> Starting
Powered -r-> Starting : Some error
Starting -d-> Operational
}
[*] -d-> Powered : Power On
Powered…

frans
- 8,868
- 11
- 58
- 132
5
votes
1 answer
How can I Implement Statecharts in Haskell?
After having read the excellent book "Practical UML Statecharts in
C/C++" by Miro Samek, I am eager to try them out sometime. More
recently, I have started to teach myself Haskell and functional
programming.
Only a few chapters into my book on…

user4311624
- 71
- 1
- 5
5
votes
5 answers
Is a statechart / finite state machine suitable for modelling a questionnaire
I'd like model the above questionnaire which I believe is a directed acyclic graph.
The two libraries I've been looking at are:
https://github.com/davidkpiano/xstate
https://github.com/jbeard4/SCION-CORE
A couple of the issues I have are:
The…

Stephen S
- 453
- 2
- 9
4
votes
2 answers
boost statechart pass arguments with transition
I'm trying to learn boost::statechart.
I want to make a little app which loads a file.
// --------------------------------
// | |
// | O Project |
// | | |
// | …

P3trus
- 6,747
- 8
- 40
- 54
4
votes
5 answers
Statechart for javascript like Sproutcore's statechart?
In Sproutcore there is a statechart framework I can use for giving the application states which holds actions for what you can do in different states.
I wonder if there is a similar standalone statechart framework I can use outside Sproutcore eg. in…

ajsie
- 77,632
- 106
- 276
- 381
4
votes
2 answers
UML State machine with nested states and do Activity
On the state machine below, let us suppose I am in "StateE". Then comes Sig1, so the transition is takes place. First I exit "StateE", then assume that the "Grd1" guard lets me throuh.
Now I enter "StateH", execute the entry action ("Act2"). Then I…

user2281723
- 519
- 1
- 5
- 16
4
votes
3 answers
how to convert json data into BPMN compatible format?
I am using state chart supported by gojs library.
This library use JSON data to draw the diagram on canvas. Whatever diagram we draw, node and link are getting arranged into JSON data format.
I want to convert this data into BMPL to utilize this…

user226817
- 287
- 1
- 4
- 10
4
votes
2 answers
state chart of brainfuck interpreter
i have written an alpha version of an brainfuck ide. i wrote my own interpreter although i had massive help from my teacher regarding loops in the code because i had a really hard time understanding it in the "IT way". now for my report i need a…

LeonidasFett
- 3,052
- 4
- 46
- 76
3
votes
1 answer
Using xstate, is it possible to configure an event that is applicable under all states and is handled in the same way across all states and substates?
I am new to xstate, and I'm trying to use it in an application where a user can request different things in an application, based on parent state and/or sub-state. However, there are some requests that the user should be able to make, no matter…

curiousWebDev
- 35
- 4
3
votes
2 answers
Multiple actions for the same triggered event UML statechart
I'm a newbie at UML statechart notation, I'm trying to simulate that there are two fired action on the same triggered event but one of these actions is optional depending on a condition.
The following is just a simulation for my need, so is the…

Mahmoud Emam
- 1,499
- 4
- 20
- 37