Questions tagged [statechart]

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.

116 questions
35
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
  • 21,936
  • 42
  • 103
  • 153
27
votes
13 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,468
  • 9
  • 46
  • 61
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
  • 70,516
  • 97
  • 259
  • 375
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
  • 4,206
  • 5
  • 25
  • 50
7
votes
4 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
  • 135
  • 2
  • 8
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
  • 5,540
  • 6
  • 34
  • 50
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
  • 70,516
  • 97
  • 259
  • 375
4
votes
1 answer

State or workflow diagram component for .NET

I'm looking for a component or library for .NET, that would allow me to either visually edit, or at least visualise simple state or workflow diagrams or charts. Preferably free, but comercial is fine too. Anyone have any recomendation or experience?
Euphoric
  • 12,015
  • 1
  • 26
  • 41
4
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
  • 413
  • 2
  • 7
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
  • 409
  • 4
  • 15
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
  • 2,574
  • 4
  • 32
  • 67
3
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
  • 6,905
  • 8
  • 40
  • 95
3
votes
2 answers

hierarchical statecharts designer with code generation

What is the best free and the best commercial tool that lets me draw uml hierarchical statechats like in the picture below. It would also be cool if it could generate the c# source code stubs.
bitbonk
  • 45,662
  • 32
  • 173
  • 270
3
votes
2 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
  • 257
  • 1
  • 3
  • 8
3
votes
1 answer

Looking for a large corpus of business processes

I am looking, for research purposes, for a large set of examples of business processes, preferably from industry or realistic sources. The process description can be in any format, including, but not limited to: BPEL or BPMN UML Activity, Sequence…
Little Bobby Tables
  • 5,021
  • 2
  • 31
  • 44
1
2 3 4 5 6 7 8